blob: 7ec9091bafed92005e00c4d063da352cd1d692f9 [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'od69e7e22008-02-15 21:28:48 -05001909 pre_vers=`echo $base_ver 0.01 - p | dc`
Andreas Dilger927566a2006-11-12 19:41:25 -05001910 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1911 ;;
1912*)
1913 E2FSPROGS_PKGVER="$base_ver"
1914 ;;
1915esac
1916
1917unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +00001918echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1919echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1920
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001921
1922
1923
Andreas Dilger927566a2006-11-12 19:41:25 -05001924
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001925# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001926$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1927 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1928echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001929 { (exit 1); exit 1; }; }
1930
Theodore Ts'oe1052142006-10-21 21:46:47 -04001931{ echo "$as_me:$LINENO: checking build system type" >&5
1932echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001933if test "${ac_cv_build+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001936 ac_build_alias=$build_alias
1937test "x$ac_build_alias" = x &&
1938 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1939test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001940 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1941echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1942 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001943ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1944 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1945echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001946 { (exit 1); exit 1; }; }
1947
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001948fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001949{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1950echo "${ECHO_T}$ac_cv_build" >&6; }
1951case $ac_cv_build in
1952*-*-*) ;;
1953*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1954echo "$as_me: error: invalid value of canonical build" >&2;}
1955 { (exit 1); exit 1; }; };;
1956esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001957build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001958ac_save_IFS=$IFS; IFS='-'
1959set x $ac_cv_build
1960shift
1961build_cpu=$1
1962build_vendor=$2
1963shift; shift
1964# Remember, the first character of IFS is used to create $*,
1965# except with old shells:
1966build_os=$*
1967IFS=$ac_save_IFS
1968case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001969
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001970
Theodore Ts'oe1052142006-10-21 21:46:47 -04001971{ echo "$as_me:$LINENO: checking host system type" >&5
1972echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001973if test "${ac_cv_host+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001976 if test "x$host_alias" = x; then
1977 ac_cv_host=$ac_cv_build
1978else
1979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1980 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1981echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001982 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001983fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001984
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001985fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001986{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1987echo "${ECHO_T}$ac_cv_host" >&6; }
1988case $ac_cv_host in
1989*-*-*) ;;
1990*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1991echo "$as_me: error: invalid value of canonical host" >&2;}
1992 { (exit 1); exit 1; }; };;
1993esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001994host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001995ac_save_IFS=$IFS; IFS='-'
1996set x $ac_cv_host
1997shift
1998host_cpu=$1
1999host_vendor=$2
2000shift; shift
2001# Remember, the first character of IFS is used to create $*,
2002# except with old shells:
2003host_os=$*
2004IFS=$ac_save_IFS
2005case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002006
2007
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002008
Theodore Ts'oe1052142006-10-21 21:46:47 -04002009# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002010if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002011 withval=$with_diet_libc; CC="diet cc -nostdinc"
2012{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2013echo "${ECHO_T}CC=$CC" >&6; }
2014fi
2015
2016# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002017if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002018 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2019echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002020CC=$withval
2021else
2022 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002023{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2024echo "${ECHO_T}CC defaults to $CC" >&6; }
2025fi
2026export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002028ac_ext=c
2029ac_cpp='$CPP $CPPFLAGS'
2030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2035set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002038if test "${ac_cv_prog_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002040else
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2043else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2054 fi
2055done
2056done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002057IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002058
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002059fi
2060fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002061CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002062if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002063 { echo "$as_me:$LINENO: result: $CC" >&5
2064echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002065else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002066 { echo "$as_me:$LINENO: result: no" >&5
2067echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002068fi
2069
Theodore Ts'oe1052142006-10-21 21:46:47 -04002070
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002071fi
2072if test -z "$ac_cv_prog_CC"; then
2073 ac_ct_CC=$CC
2074 # Extract the first word of "gcc", so it can be a program name with args.
2075set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080else
2081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083else
2084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002091 ac_cv_prog_ac_ct_CC="gcc"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 break 2
2094 fi
2095done
2096done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002097IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002098
2099fi
2100fi
2101ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002103 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002105else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002106 { echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002108fi
2109
Theodore Ts'oe1052142006-10-21 21:46:47 -04002110 if test "x$ac_ct_CC" = x; then
2111 CC=""
2112 else
2113 case $cross_compiling:$ac_tool_warned in
2114yes:)
2115{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2116whose name does not start with the host triplet. If you think this
2117configuration is useful to you, please write to autoconf@gnu.org." >&5
2118echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2119whose name does not start with the host triplet. If you think this
2120configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2121ac_tool_warned=yes ;;
2122esac
2123 CC=$ac_ct_CC
2124 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002125else
2126 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002127fi
2128
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002129if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002130 if test -n "$ac_tool_prefix"; then
2131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002132set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002135if test "${ac_cv_prog_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002137else
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2140else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002148 ac_cv_prog_CC="${ac_tool_prefix}cc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2151 fi
2152done
2153done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002154IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002155
2156fi
2157fi
2158CC=$ac_cv_prog_CC
2159if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002160 { echo "$as_me:$LINENO: result: $CC" >&5
2161echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002162else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002163 { echo "$as_me:$LINENO: result: no" >&5
2164echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002165fi
2166
Theodore Ts'oe1052142006-10-21 21:46:47 -04002167
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002168 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002169fi
2170if test -z "$CC"; then
2171 # Extract the first word of "cc", so it can be a program name with args.
2172set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002175if test "${ac_cv_prog_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177else
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2180else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002181 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183for as_dir in $PATH
2184do
2185 IFS=$as_save_IFS
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2190 ac_prog_rejected=yes
2191 continue
2192 fi
2193 ac_cv_prog_CC="cc"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2196 fi
2197done
2198done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002199IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002200
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002201if test $ac_prog_rejected = yes; then
2202 # We found a bogon in the path, so make sure we never use it.
2203 set dummy $ac_cv_prog_CC
2204 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002205 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002206 # We chose a different compiler from the bogus one.
2207 # However, it has the same basename, so the bogon will be chosen
2208 # first if we set CC to just the basename; use the full file name.
2209 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002211 fi
2212fi
2213fi
2214fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002215CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002216if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002217 { echo "$as_me:$LINENO: result: $CC" >&5
2218echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002219else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002220 { echo "$as_me:$LINENO: result: no" >&5
2221echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002222fi
2223
Theodore Ts'oe1052142006-10-21 21:46:47 -04002224
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002225fi
2226if test -z "$CC"; then
2227 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002228 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002229 do
2230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002234if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002236else
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2239else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 break 2
2250 fi
2251done
2252done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002253IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002254
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002255fi
2256fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002257CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002258if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002259 { echo "$as_me:$LINENO: result: $CC" >&5
2260echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002261else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002262 { echo "$as_me:$LINENO: result: no" >&5
2263echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002264fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002265
Theodore Ts'oe1052142006-10-21 21:46:47 -04002266
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002267 test -n "$CC" && break
2268 done
2269fi
2270if test -z "$CC"; then
2271 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002272 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002273do
2274 # Extract the first word of "$ac_prog", so it can be a program name with args.
2275set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002278if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 if test -n "$ac_ct_CC"; then
2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283else
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002291 ac_cv_prog_ac_ct_CC="$ac_prog"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002294 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002295done
2296done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002297IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002298
2299fi
2300fi
2301ac_ct_CC=$ac_cv_prog_ac_ct_CC
2302if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002303 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2304echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002305else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002306 { echo "$as_me:$LINENO: result: no" >&5
2307echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002308fi
2309
Theodore Ts'oe1052142006-10-21 21:46:47 -04002310
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002311 test -n "$ac_ct_CC" && break
2312done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002313
Theodore Ts'oe1052142006-10-21 21:46:47 -04002314 if test "x$ac_ct_CC" = x; then
2315 CC=""
2316 else
2317 case $cross_compiling:$ac_tool_warned in
2318yes:)
2319{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2320whose name does not start with the host triplet. If you think this
2321configuration is useful to you, please write to autoconf@gnu.org." >&5
2322echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2323whose name does not start with the host triplet. If you think this
2324configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2325ac_tool_warned=yes ;;
2326esac
2327 CC=$ac_ct_CC
2328 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002329fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002331fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002332
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002333
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002334test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: no acceptable C compiler found in \$PATH
2337See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2339
2340# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002341echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002342ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002343{ (ac_try="$ac_compiler --version >&5"
2344case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347esac
2348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002353{ (ac_try="$ac_compiler -v >&5"
2354case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357esac
2358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002363{ (ac_try="$ac_compiler -V >&5"
2364case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367esac
2368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }
2373
2374cat >conftest.$ac_ext <<_ACEOF
2375/* confdefs.h. */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h. */
2380
2381int
2382main ()
2383{
2384
2385 ;
2386 return 0;
2387}
2388_ACEOF
2389ac_clean_files_save=$ac_clean_files
2390ac_clean_files="$ac_clean_files a.out a.exe b.out"
2391# Try to create an executable without -o first, disregard a.out.
2392# It will help us diagnose broken compilers, and finding out an intuition
2393# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002394{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2395echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002396ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002397#
2398# List of possible output files, starting from the most likely.
2399# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2400# only as a last resort. b.out is created by i960 compilers.
2401ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2402#
2403# The IRIX 6 linker writes into existing files which may not be
2404# executable, retaining their permissions. Remove them first so a
2405# subsequent execution test works.
2406ac_rmfiles=
2407for ac_file in $ac_files
2408do
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2411 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2412 esac
2413done
2414rm -f $ac_rmfiles
2415
2416if { (ac_try="$ac_link_default"
2417case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2420esac
2421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002426 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2427# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2428# in a Makefile. We should not override ac_cv_exeext if it was cached,
2429# so that the user can short-circuit this test for compilers unknown to
2430# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002431for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002432do
2433 test -f "$ac_file" || continue
2434 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002436 ;;
2437 [ab].out )
2438 # We found the default executable, but exeext='' is most
2439 # certainly right.
2440 break;;
2441 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002442 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2443 then :; else
2444 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2445 fi
2446 # We set ac_cv_exeext here because the later test for it is not
2447 # safe: cross compilers may not add the suffix if given an `-o'
2448 # argument, so we may need to know it at that point already.
2449 # Even if this section looks crufty: it has the advantage of
2450 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002451 break;;
2452 * )
2453 break;;
2454 esac
2455done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002456test "$ac_cv_exeext" = no && ac_cv_exeext=
2457
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002458else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002459 ac_file=''
2460fi
2461
2462{ echo "$as_me:$LINENO: result: $ac_file" >&5
2463echo "${ECHO_T}$ac_file" >&6; }
2464if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002465 echo "$as_me: failed program was:" >&5
2466sed 's/^/| /' conftest.$ac_ext >&5
2467
2468{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2469See \`config.log' for more details." >&5
2470echo "$as_me: error: C compiler cannot create executables
2471See \`config.log' for more details." >&2;}
2472 { (exit 77); exit 77; }; }
2473fi
2474
2475ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002476
Theodore Ts'oe1052142006-10-21 21:46:47 -04002477# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002478# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002479{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2480echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002481# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2482# If not cross compiling, check that we can run a simple program.
2483if test "$cross_compiling" != yes; then
2484 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002485 { (case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488esac
2489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002495 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002496 if test "$cross_compiling" = maybe; then
2497 cross_compiling=yes
2498 else
2499 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2500If you meant to cross compile, use \`--host'.
2501See \`config.log' for more details." >&5
2502echo "$as_me: error: cannot run C compiled programs.
2503If you meant to cross compile, use \`--host'.
2504See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2506 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002507 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002508fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002509{ echo "$as_me:$LINENO: result: yes" >&5
2510echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002511
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002512rm -f a.out a.exe conftest$ac_cv_exeext b.out
2513ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002514# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002515# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002516{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2517echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2518{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2519echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002520
Theodore Ts'oe1052142006-10-21 21:46:47 -04002521{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2522echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2523if { (ac_try="$ac_link"
2524case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
2528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; then
2533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2534# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2535# work properly (i.e., refer to `conftest.exe'), while it won't with
2536# `rm'.
2537for ac_file in conftest.exe conftest conftest.*; do
2538 test -f "$ac_file" || continue
2539 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 break;;
2543 * ) break;;
2544 esac
2545done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002546else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002547 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2548See \`config.log' for more details." >&5
2549echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2550See \`config.log' for more details." >&2;}
2551 { (exit 1); exit 1; }; }
2552fi
2553
2554rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002555{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2556echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002557
2558rm -f conftest.$ac_ext
2559EXEEXT=$ac_cv_exeext
2560ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002561{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2562echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002563if test "${ac_cv_objext+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566 cat >conftest.$ac_ext <<_ACEOF
2567/* confdefs.h. */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h. */
2572
2573int
2574main ()
2575{
2576
2577 ;
2578 return 0;
2579}
2580_ACEOF
2581rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002582if { (ac_try="$ac_compile"
2583case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586esac
2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002592 for ac_file in conftest.o conftest.obj conftest.*; do
2593 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002594 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2597 break;;
2598 esac
2599done
2600else
2601 echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
2604{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2605See \`config.log' for more details." >&5
2606echo "$as_me: error: cannot compute suffix of object files: cannot compile
2607See \`config.log' for more details." >&2;}
2608 { (exit 1); exit 1; }; }
2609fi
2610
2611rm -f conftest.$ac_cv_objext conftest.$ac_ext
2612fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002613{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2614echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002615OBJEXT=$ac_cv_objext
2616ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002617{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2618echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002619if test "${ac_cv_c_compiler_gnu+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621else
2622 cat >conftest.$ac_ext <<_ACEOF
2623/* confdefs.h. */
2624_ACEOF
2625cat confdefs.h >>conftest.$ac_ext
2626cat >>conftest.$ac_ext <<_ACEOF
2627/* end confdefs.h. */
2628
2629int
2630main ()
2631{
2632#ifndef __GNUC__
2633 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002634#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002635
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002636 ;
2637 return 0;
2638}
2639_ACEOF
2640rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002641if { (ac_try="$ac_compile"
2642case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645esac
2646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002648 ac_status=$?
2649 grep -v '^ *+' conftest.er1 >conftest.err
2650 rm -f conftest.er1
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002653 (exit $ac_status); } && {
2654 test -z "$ac_c_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002657 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002658else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002659 echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
Theodore Ts'oe1052142006-10-21 21:46:47 -04002662 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002663fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002664
2665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002666ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002667
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002668fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002669{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2670echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002671GCC=`test $ac_compiler_gnu = yes && echo yes`
2672ac_test_CFLAGS=${CFLAGS+set}
2673ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002674{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2675echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002676if test "${ac_cv_prog_cc_g+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002678else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002679 ac_save_c_werror_flag=$ac_c_werror_flag
2680 ac_c_werror_flag=yes
2681 ac_cv_prog_cc_g=no
2682 CFLAGS="-g"
2683 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002684/* confdefs.h. */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h. */
2689
2690int
2691main ()
2692{
2693
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002699if { (ac_try="$ac_compile"
2700case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002711 (exit $ac_status); } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002715 ac_cv_prog_cc_g=yes
2716else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002717 echo "$as_me: failed program was:" >&5
2718sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002719
Theodore Ts'oe1052142006-10-21 21:46:47 -04002720 CFLAGS=""
2721 cat >conftest.$ac_ext <<_ACEOF
2722/* confdefs.h. */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h. */
2727
2728int
2729main ()
2730{
2731
2732 ;
2733 return 0;
2734}
2735_ACEOF
2736rm -f conftest.$ac_objext
2737if { (ac_try="$ac_compile"
2738case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741esac
2742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compile") 2>conftest.er1
2744 ac_status=$?
2745 grep -v '^ *+' conftest.er1 >conftest.err
2746 rm -f conftest.er1
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002749 (exit $ac_status); } && {
2750 test -z "$ac_c_werror_flag" ||
2751 test ! -s conftest.err
2752 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002753 :
2754else
2755 echo "$as_me: failed program was:" >&5
2756sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 ac_c_werror_flag=$ac_save_c_werror_flag
2759 CFLAGS="-g"
2760 cat >conftest.$ac_ext <<_ACEOF
2761/* confdefs.h. */
2762_ACEOF
2763cat confdefs.h >>conftest.$ac_ext
2764cat >>conftest.$ac_ext <<_ACEOF
2765/* end confdefs.h. */
2766
2767int
2768main ()
2769{
2770
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775rm -f conftest.$ac_objext
2776if { (ac_try="$ac_compile"
2777case "(($ac_try" in
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2780esac
2781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compile") 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002788 (exit $ac_status); } && {
2789 test -z "$ac_c_werror_flag" ||
2790 test ! -s conftest.err
2791 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002792 ac_cv_prog_cc_g=yes
2793else
2794 echo "$as_me: failed program was:" >&5
2795sed 's/^/| /' conftest.$ac_ext >&5
2796
2797
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002798fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002799
2800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002801fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002802
2803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804fi
2805
2806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 ac_c_werror_flag=$ac_save_c_werror_flag
2808fi
2809{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002811if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002812 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002813elif test $ac_cv_prog_cc_g = yes; then
2814 if test "$GCC" = yes; then
2815 CFLAGS="-g -O2"
2816 else
2817 CFLAGS="-g"
2818 fi
2819else
2820 if test "$GCC" = yes; then
2821 CFLAGS="-O2"
2822 else
2823 CFLAGS=
2824 fi
2825fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002826{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2827echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2828if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002831 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002832ac_save_CC=$CC
2833cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
2839#include <stdarg.h>
2840#include <stdio.h>
2841#include <sys/types.h>
2842#include <sys/stat.h>
2843/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2844struct buf { int x; };
2845FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846static char *e (p, i)
2847 char **p;
2848 int i;
2849{
2850 return p[i];
2851}
2852static char *f (char * (*g) (char **, int), char **p, ...)
2853{
2854 char *s;
2855 va_list v;
2856 va_start (v,p);
2857 s = g (p, va_arg (v,int));
2858 va_end (v);
2859 return s;
2860}
2861
2862/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2863 function prototypes and stuff, but not '\xHH' hex character constants.
2864 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002865 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2867 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002868 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002869int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870
Theodore Ts'oe1052142006-10-21 21:46:47 -04002871/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2872 inside strings and character constants. */
2873#define FOO(x) 'x'
2874int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2875
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002876int test (int i, double x);
2877struct s1 {int (*f) (int a);};
2878struct s2 {int (*f) (double a);};
2879int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880int argc;
2881char **argv;
2882int
2883main ()
2884{
2885return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2886 ;
2887 return 0;
2888}
2889_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002890for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002892do
2893 CC="$ac_save_CC $ac_arg"
2894 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002895if { (ac_try="$ac_compile"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
2900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002902 ac_status=$?
2903 grep -v '^ *+' conftest.er1 >conftest.err
2904 rm -f conftest.er1
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002907 (exit $ac_status); } && {
2908 test -z "$ac_c_werror_flag" ||
2909 test ! -s conftest.err
2910 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002911 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002912else
2913 echo "$as_me: failed program was:" >&5
2914sed 's/^/| /' conftest.$ac_ext >&5
2915
Theodore Ts'oe1052142006-10-21 21:46:47 -04002916
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002917fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002918
2919rm -f core conftest.err conftest.$ac_objext
2920 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002922rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002923CC=$ac_save_CC
2924
2925fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002926# AC_CACHE_VAL
2927case "x$ac_cv_prog_cc_c89" in
2928 x)
2929 { echo "$as_me:$LINENO: result: none needed" >&5
2930echo "${ECHO_T}none needed" >&6; } ;;
2931 xno)
2932 { echo "$as_me:$LINENO: result: unsupported" >&5
2933echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002934 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002935 CC="$CC $ac_cv_prog_cc_c89"
2936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2937echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002938esac
2939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002940
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002941ac_ext=c
2942ac_cpp='$CPP $CPPFLAGS'
2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002947ac_ext=c
2948ac_cpp='$CPP $CPPFLAGS'
2949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002952{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2953echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002954# On Suns, sometimes $CPP names a directory.
2955if test -n "$CPP" && test -d "$CPP"; then
2956 CPP=
2957fi
2958if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002959 if test "${ac_cv_prog_CPP+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002961else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002962 # Double quotes because CPP needs to be expanded
2963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2964 do
2965 ac_preproc_ok=false
2966for ac_c_preproc_warn_flag in '' yes
2967do
2968 # Use a header file that comes with gcc, so configuring glibc
2969 # with a fresh cross-compiler works.
2970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2971 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002972 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002973 # not just through cpp. "Syntax error" is here to catch this case.
2974 cat >conftest.$ac_ext <<_ACEOF
2975/* confdefs.h. */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h. */
2980#ifdef __STDC__
2981# include <limits.h>
2982#else
2983# include <assert.h>
2984#endif
2985 Syntax error
2986_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002987if { (ac_try="$ac_cpp conftest.$ac_ext"
2988case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002999 (exit $ac_status); } >/dev/null && {
3000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003003 :
3004else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003005 echo "$as_me: failed program was:" >&5
3006sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008 # Broken: fails on valid input.
3009continue
3010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003012rm -f conftest.err conftest.$ac_ext
3013
Theodore Ts'oe1052142006-10-21 21:46:47 -04003014 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003015 # can be detected and how.
3016 cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */
3022#include <ac_nonexistent.h>
3023_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003024if { (ac_try="$ac_cpp conftest.$ac_ext"
3025case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003036 (exit $ac_status); } >/dev/null && {
3037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003040 # Broken: success on invalid input.
3041continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003043 echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046 # Passes both tests.
3047ac_preproc_ok=:
3048break
3049fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003050
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003051rm -f conftest.err conftest.$ac_ext
3052
3053done
3054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3055rm -f conftest.err conftest.$ac_ext
3056if $ac_preproc_ok; then
3057 break
3058fi
3059
3060 done
3061 ac_cv_prog_CPP=$CPP
3062
3063fi
3064 CPP=$ac_cv_prog_CPP
3065else
3066 ac_cv_prog_CPP=$CPP
3067fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003068{ echo "$as_me:$LINENO: result: $CPP" >&5
3069echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003070ac_preproc_ok=false
3071for ac_c_preproc_warn_flag in '' yes
3072do
3073 # Use a header file that comes with gcc, so configuring glibc
3074 # with a fresh cross-compiler works.
3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076 # <limits.h> exists even on freestanding compilers.
3077 # On the NeXT, cc -E runs the code through the compiler's parser,
3078 # not just through cpp. "Syntax error" is here to catch this case.
3079 cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
3085#ifdef __STDC__
3086# include <limits.h>
3087#else
3088# include <assert.h>
3089#endif
3090 Syntax error
3091_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003092if { (ac_try="$ac_cpp conftest.$ac_ext"
3093case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003099 ac_status=$?
3100 grep -v '^ *+' conftest.er1 >conftest.err
3101 rm -f conftest.er1
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003104 (exit $ac_status); } >/dev/null && {
3105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3106 test ! -s conftest.err
3107 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003108 :
3109else
3110 echo "$as_me: failed program was:" >&5
3111sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 # Broken: fails on valid input.
3114continue
3115fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003116
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003117rm -f conftest.err conftest.$ac_ext
3118
Theodore Ts'oe1052142006-10-21 21:46:47 -04003119 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003120 # can be detected and how.
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127#include <ac_nonexistent.h>
3128_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003129if { (ac_try="$ac_cpp conftest.$ac_ext"
3130case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003141 (exit $ac_status); } >/dev/null && {
3142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3144 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003145 # Broken: success on invalid input.
3146continue
3147else
3148 echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 # Passes both tests.
3152ac_preproc_ok=:
3153break
3154fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003155
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003156rm -f conftest.err conftest.$ac_ext
3157
3158done
3159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160rm -f conftest.err conftest.$ac_ext
3161if $ac_preproc_ok; then
3162 :
3163else
3164 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3165See \`config.log' for more details." >&5
3166echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3167See \`config.log' for more details." >&2;}
3168 { (exit 1); exit 1; }; }
3169fi
3170
3171ac_ext=c
3172ac_cpp='$CPP $CPPFLAGS'
3173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176
3177
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003178# Check whether --with-linker was given.
3179if test "${with_linker+set}" = set; then
3180 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3181echo "${ECHO_T}LD=$withval" >&6; }
3182LD=$withval
3183else
3184 if test -z "$LD" ; then LD=$CC; fi
3185{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3186echo "${ECHO_T}LD defaults to $LD" >&6; }
3187fi
3188export LD
3189
3190
3191# Check whether --with-ccopts was given.
3192if test "${with_ccopts+set}" = set; then
3193 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3194echo "${ECHO_T}CCOPTS is $withval" >&6; }
3195CFLAGS=$withval
3196fi
3197
3198
Theodore Ts'oe1052142006-10-21 21:46:47 -04003199{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3200echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3201if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003204 # Extract the first word of "grep ggrep" to use in msg output
3205if test -z "$GREP"; then
3206set dummy grep ggrep; ac_prog_name=$2
3207if test "${ac_cv_path_GREP+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210 ac_path_GREP_found=false
3211# Loop through the user's path and test for each of PROGNAME-LIST
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3214do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_prog in grep ggrep; do
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003220 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003221 # Check for GNU ac_path_GREP and select it if it is found.
3222 # Check for GNU $ac_path_GREP
3223case `"$ac_path_GREP" --version 2>&1` in
3224*GNU*)
3225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3226*)
3227 ac_count=0
3228 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3229 while :
3230 do
3231 cat "conftest.in" "conftest.in" >"conftest.tmp"
3232 mv "conftest.tmp" "conftest.in"
3233 cp "conftest.in" "conftest.nl"
3234 echo 'GREP' >> "conftest.nl"
3235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3237 ac_count=`expr $ac_count + 1`
3238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3239 # Best one so far, save it but keep looking for a better one
3240 ac_cv_path_GREP="$ac_path_GREP"
3241 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003242 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003243 # 10*(2^10) chars as input seems more than enough
3244 test $ac_count -gt 10 && break
3245 done
3246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3247esac
3248
3249
3250 $ac_path_GREP_found && break 3
3251 done
3252done
3253
3254done
3255IFS=$as_save_IFS
3256
3257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003258fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003259
3260GREP="$ac_cv_path_GREP"
3261if test -z "$GREP"; then
3262 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3263echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3264 { (exit 1); exit 1; }; }
3265fi
3266
3267else
3268 ac_cv_path_GREP=$GREP
3269fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003270
3271
Theodore Ts'oe1052142006-10-21 21:46:47 -04003272fi
3273{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3274echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3275 GREP="$ac_cv_path_GREP"
3276
3277
3278{ echo "$as_me:$LINENO: checking for egrep" >&5
3279echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3280if test "${ac_cv_path_EGREP+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3284 then ac_cv_path_EGREP="$GREP -E"
3285 else
3286 # Extract the first word of "egrep" to use in msg output
3287if test -z "$EGREP"; then
3288set dummy egrep; ac_prog_name=$2
3289if test "${ac_cv_path_EGREP+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291else
3292 ac_path_EGREP_found=false
3293# Loop through the user's path and test for each of PROGNAME-LIST
3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3296do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_prog in egrep; do
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003303 # Check for GNU ac_path_EGREP and select it if it is found.
3304 # Check for GNU $ac_path_EGREP
3305case `"$ac_path_EGREP" --version 2>&1` in
3306*GNU*)
3307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3308*)
3309 ac_count=0
3310 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3311 while :
3312 do
3313 cat "conftest.in" "conftest.in" >"conftest.tmp"
3314 mv "conftest.tmp" "conftest.in"
3315 cp "conftest.in" "conftest.nl"
3316 echo 'EGREP' >> "conftest.nl"
3317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3319 ac_count=`expr $ac_count + 1`
3320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3321 # Best one so far, save it but keep looking for a better one
3322 ac_cv_path_EGREP="$ac_path_EGREP"
3323 ac_path_EGREP_max=$ac_count
3324 fi
3325 # 10*(2^10) chars as input seems more than enough
3326 test $ac_count -gt 10 && break
3327 done
3328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3329esac
3330
3331
3332 $ac_path_EGREP_found && break 3
3333 done
3334done
3335
3336done
3337IFS=$as_save_IFS
3338
3339
3340fi
3341
3342EGREP="$ac_cv_path_EGREP"
3343if test -z "$EGREP"; then
3344 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3345echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3346 { (exit 1); exit 1; }; }
3347fi
3348
3349else
3350 ac_cv_path_EGREP=$EGREP
3351fi
3352
3353
3354 fi
3355fi
3356{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3357echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3358 EGREP="$ac_cv_path_EGREP"
3359
3360
3361{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3362echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003363if test "${ac_cv_header_stdc+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366 cat >conftest.$ac_ext <<_ACEOF
3367/* confdefs.h. */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h. */
3372#include <stdlib.h>
3373#include <stdarg.h>
3374#include <string.h>
3375#include <float.h>
3376
3377int
3378main ()
3379{
3380
3381 ;
3382 return 0;
3383}
3384_ACEOF
3385rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003386if { (ac_try="$ac_compile"
3387case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003393 ac_status=$?
3394 grep -v '^ *+' conftest.er1 >conftest.err
3395 rm -f conftest.er1
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003398 (exit $ac_status); } && {
3399 test -z "$ac_c_werror_flag" ||
3400 test ! -s conftest.err
3401 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003402 ac_cv_header_stdc=yes
3403else
3404 echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
Theodore Ts'oe1052142006-10-21 21:46:47 -04003407 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003408fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003409
3410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003411
3412if test $ac_cv_header_stdc = yes; then
3413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420#include <string.h>
3421
3422_ACEOF
3423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 $EGREP "memchr" >/dev/null 2>&1; then
3425 :
3426else
3427 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003428fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003429rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003430
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003431fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003432
3433if test $ac_cv_header_stdc = yes; then
3434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3435 cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h. */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h. */
3441#include <stdlib.h>
3442
3443_ACEOF
3444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3445 $EGREP "free" >/dev/null 2>&1; then
3446 :
3447else
3448 ac_cv_header_stdc=no
3449fi
3450rm -f conftest*
3451
3452fi
3453
3454if test $ac_cv_header_stdc = yes; then
3455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3456 if test "$cross_compiling" = yes; then
3457 :
3458else
3459 cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h. */
3465#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003466#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003467#if ((' ' & 0x0FF) == 0x020)
3468# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3469# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3470#else
3471# define ISLOWER(c) \
3472 (('a' <= (c) && (c) <= 'i') \
3473 || ('j' <= (c) && (c) <= 'r') \
3474 || ('s' <= (c) && (c) <= 'z'))
3475# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3476#endif
3477
3478#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3479int
3480main ()
3481{
3482 int i;
3483 for (i = 0; i < 256; i++)
3484 if (XOR (islower (i), ISLOWER (i))
3485 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003486 return 2;
3487 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003488}
3489_ACEOF
3490rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003491if { (ac_try="$ac_link"
3492case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495esac
3496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003501 { (case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504esac
3505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 :
3511else
3512 echo "$as_me: program exited with status $ac_status" >&5
3513echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516( exit $ac_status )
3517ac_cv_header_stdc=no
3518fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3520fi
3521
3522
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003523fi
3524fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003525{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3526echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003527if test $ac_cv_header_stdc = yes; then
3528
3529cat >>confdefs.h <<\_ACEOF
3530#define STDC_HEADERS 1
3531_ACEOF
3532
3533fi
3534
3535# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3546 inttypes.h stdint.h unistd.h
3547do
3548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003549{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553else
3554 cat >conftest.$ac_ext <<_ACEOF
3555/* confdefs.h. */
3556_ACEOF
3557cat confdefs.h >>conftest.$ac_ext
3558cat >>conftest.$ac_ext <<_ACEOF
3559/* end confdefs.h. */
3560$ac_includes_default
3561
3562#include <$ac_header>
3563_ACEOF
3564rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003565if { (ac_try="$ac_compile"
3566case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569esac
3570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003581 eval "$as_ac_Header=yes"
3582else
3583 echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
Theodore Ts'oe1052142006-10-21 21:46:47 -04003586 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003587fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003588
3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003590fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003591ac_res=`eval echo '${'$as_ac_Header'}'`
3592 { echo "$as_me:$LINENO: result: $ac_res" >&5
3593echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003594if test `eval echo '${'$as_ac_Header'}'` = yes; then
3595 cat >>confdefs.h <<_ACEOF
3596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3597_ACEOF
3598
3599fi
3600
3601done
3602
3603
3604if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003605 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3606echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003607if test "${ac_cv_header_linux_fs_h+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003610{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3611echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003612else
3613 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003614{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3615echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003616cat >conftest.$ac_ext <<_ACEOF
3617/* confdefs.h. */
3618_ACEOF
3619cat confdefs.h >>conftest.$ac_ext
3620cat >>conftest.$ac_ext <<_ACEOF
3621/* end confdefs.h. */
3622$ac_includes_default
3623#include <linux/fs.h>
3624_ACEOF
3625rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003626if { (ac_try="$ac_compile"
3627case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630esac
3631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003638 (exit $ac_status); } && {
3639 test -z "$ac_c_werror_flag" ||
3640 test ! -s conftest.err
3641 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003642 ac_header_compiler=yes
3643else
3644 echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
Theodore Ts'oe1052142006-10-21 21:46:47 -04003647 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003648fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003649
3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3652echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003653
3654# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003655{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3656echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003657cat >conftest.$ac_ext <<_ACEOF
3658/* confdefs.h. */
3659_ACEOF
3660cat confdefs.h >>conftest.$ac_ext
3661cat >>conftest.$ac_ext <<_ACEOF
3662/* end confdefs.h. */
3663#include <linux/fs.h>
3664_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003665if { (ac_try="$ac_cpp conftest.$ac_ext"
3666case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003677 (exit $ac_status); } >/dev/null && {
3678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3679 test ! -s conftest.err
3680 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003681 ac_header_preproc=yes
3682else
3683 echo "$as_me: failed program was:" >&5
3684sed 's/^/| /' conftest.$ac_ext >&5
3685
3686 ac_header_preproc=no
3687fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003688
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003689rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003690{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3691echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003692
3693# So? What about this header?
3694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3695 yes:no: )
3696 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3697echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3699echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3700 ac_header_preproc=yes
3701 ;;
3702 no:yes:* )
3703 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3704echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3706echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3708echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3710echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3712echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3714echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003715
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003716 ;;
3717esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003718{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3719echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003720if test "${ac_cv_header_linux_fs_h+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723 ac_cv_header_linux_fs_h=$ac_header_preproc
3724fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003725{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3726echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003727
3728fi
3729if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003730 linux_headers=yes
3731else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003732 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003733fi
3734
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003735
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003736if test "$linux_headers" != yes; then
3737 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003738fi
3739
Theodore Ts'oe1052142006-10-21 21:46:47 -04003740{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3741echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003742if test "$GCC" = yes
3743then
3744 case "$host_cpu" in
3745 alpha) addcflags="-mieee" ;;
3746 esac
3747fi
3748if test "x$addcflags" != x
3749then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003750 { echo "$as_me:$LINENO: result: $addcflags" >&5
3751echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003752 CFLAGS="$addcflags $CFLAGS"
3753else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003754 { echo "$as_me:$LINENO: result: (none)" >&5
3755echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003756fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003757LIB_EXT=.a
3758STATIC_LIB_EXT=.a
3759PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003760
Theodore Ts'oe1052142006-10-21 21:46:47 -04003761# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003762if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003763 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3764echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003765LDFLAGS=$withval
3766else
3767 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003768fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003769
Theodore Ts'oe1052142006-10-21 21:46:47 -04003770
3771# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003772if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003773 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003774else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003775 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003776fi
3777# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003778if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003779 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003780then
3781 MAINTAINER_CMT=#
3782 echo "Disabling maintainer mode"
3783else
3784 MAINTAINER_CMT=
3785 echo "Enabling maintainer mode"
3786fi
3787
3788else
3789 MAINTAINER_CMT=#
3790echo "Disabling maintainer mode by default"
3791
Theodore Ts'oe1052142006-10-21 21:46:47 -04003792fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003793
Theodore Ts'oe1052142006-10-21 21:46:47 -04003794
3795# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003796if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003797 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003798then
3799 echo "Disabling compression support"
3800else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003801 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003802#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003803_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003804
3805 echo "Enabling compression support"
3806 echo "WARNING: Compression support is experimental"
3807fi
3808
3809else
3810 echo "Disabling compression support by default"
3811
Theodore Ts'oe1052142006-10-21 21:46:47 -04003812fi
3813
3814# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003815if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003816 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003817then
3818 HTREE_CMT=#
3819 echo "Disabling htree directory support"
3820else
3821 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003822 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003823#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003824_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003825
3826 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003827fi
3828
3829else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003830 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003831cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003832#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003833_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003834
3835echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003836
Theodore Ts'oe1052142006-10-21 21:46:47 -04003837fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003838
Theodore Ts'oe1052142006-10-21 21:46:47 -04003839
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003840E2_PKG_CONFIG_STATIC=--static
Theodore Ts'oe1052142006-10-21 21:46:47 -04003841# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003842if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003843 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003844then
3845 ELF_CMT=#
3846 MAKEFILE_ELF=/dev/null
3847 echo "Disabling ELF shared libraries"
3848else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003849 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003850 ELF_CMT=
3851 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003852 case "$host_os" in
3853 solaris2.*)
3854 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3855 ;;
3856 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003857 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003858 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003859 echo "Enabling ELF shared libraries"
3860fi
3861
3862else
3863 MAKEFILE_ELF=/dev/null
3864ELF_CMT=#
3865echo "Disabling ELF shared libraries by default"
3866
Theodore Ts'oe1052142006-10-21 21:46:47 -04003867fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003868
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003869
Theodore Ts'oe1052142006-10-21 21:46:47 -04003870
3871# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003872if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003873 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003874then
3875 BSDLIB_CMT=#
3876 MAKEFILE_BSDLIB=/dev/null
3877 echo "Disabling BSD shared libraries"
3878else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003879 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003880 BSDLIB_CMT=
3881 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003882 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003883 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003884 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003885 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3886 LIB_EXT=.dylib
3887 ;;
3888 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003889 echo "Enabling BSD shared libraries"
3890fi
3891
3892else
3893 MAKEFILE_BSDLIB=/dev/null
3894BSDLIB_CMT=#
3895echo "Disabling BSD shared libraries by default"
3896
Theodore Ts'oe1052142006-10-21 21:46:47 -04003897fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003898
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003899
Theodore Ts'oe1052142006-10-21 21:46:47 -04003900
3901# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003902if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003903 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003904then
3905 PROFILE_CMT=#
3906 MAKEFILE_PROFILE=/dev/null
3907 echo "Disabling profiling libraries"
3908else
3909 PROFILE_CMT=
3910 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3911 PROFILED_LIB_EXT=_p.a
3912 echo "Building profiling libraries"
3913fi
3914
3915else
3916 PROFILE_CMT=#
3917MAKEFILE_PROFILE=/dev/null
3918echo "Disabling profiling libraries by default"
3919
Theodore Ts'oe1052142006-10-21 21:46:47 -04003920fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003921
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003922
Theodore Ts'oe1052142006-10-21 21:46:47 -04003923
3924# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003925if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003926 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003927then
3928 CHECKER_CMT=#
3929 MAKEFILE_CHECKER=/dev/null
3930 echo "Disabling checker libraries"
3931else
3932 CHECKER_CMT=
3933 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3934 echo "Building checker libraries"
3935fi
3936
3937else
3938 CHECKER_CMT=#
3939MAKEFILE_CHECKER=/dev/null
3940echo "Disabling checker libraries by default"
3941
Theodore Ts'oe1052142006-10-21 21:46:47 -04003942fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003943
3944
3945
3946
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003947
Theodore Ts'oe1052142006-10-21 21:46:47 -04003948
3949# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003950if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003951 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003952then
3953 echo "Disabling journal debugging"
3954else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003955 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003956#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003957_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003958
3959 echo "Enabling journal debugging"
3960fi
3961
3962else
3963 echo "Disabling journal debugging by default"
3964
Theodore Ts'oe1052142006-10-21 21:46:47 -04003965fi
3966
3967# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003968if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003969 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003970then
3971 echo "Disabling blkid debugging"
3972else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003973 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003974#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003975_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003976
3977 echo "Enabling blkid debugging"
3978fi
3979
3980else
3981 echo "Disabling blkid debugging by default"
3982
Theodore Ts'oe1052142006-10-21 21:46:47 -04003983fi
3984
3985# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003986if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003987 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003988then
3989 echo "Disabling testio debugging"
3990else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003991 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003992#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003993_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003994
3995 echo "Enabling testio debugging"
3996fi
3997
3998else
3999 echo "Disabling testio debugging by default"
4000
Theodore Ts'oe1052142006-10-21 21:46:47 -04004001fi
4002
Theodore Ts'oe1052142006-10-21 21:46:47 -04004003# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004004if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004005 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004006then
4007 echo "Disabling debugfs support"
4008 DEBUGFS_CMT="#"
4009else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004010 DEBUGFS_CMT=
4011 echo "Enabling debugfs support"
4012fi
4013
4014else
4015 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004016DEBUGFS_CMT=
4017
Theodore Ts'oe1052142006-10-21 21:46:47 -04004018fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004019
Theodore Ts'oe1052142006-10-21 21:46:47 -04004020
4021# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004022if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004023 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004024then
4025 echo "Disabling e2image support"
4026 IMAGER_CMT="#"
4027else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004028 IMAGER_CMT=
4029 echo "Enabling e2image support"
4030fi
4031
4032else
4033 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004034IMAGER_CMT=
4035
Theodore Ts'oe1052142006-10-21 21:46:47 -04004036fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004037
Theodore Ts'oe1052142006-10-21 21:46:47 -04004038
4039# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004040if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004041 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004042then
4043 echo "Disabling e2resize support"
4044 RESIZER_CMT="#"
4045else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004046 RESIZER_CMT=
4047 echo "Enabling e2resize support"
4048fi
4049
4050else
4051 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004052RESIZER_CMT=
4053
Theodore Ts'oe1052142006-10-21 21:46:47 -04004054fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004055
Theodore Ts'oe1052142006-10-21 21:46:47 -04004056
Theodore Ts'oe1052142006-10-21 21:46:47 -04004057# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004058if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004059 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004060then
4061 FSCK_PROG='' FSCK_MAN=''
4062 echo "Not building fsck wrapper"
4063else
4064 FSCK_PROG=fsck FSCK_MAN=fsck.8
4065 echo "Building fsck wrapper"
4066fi
4067
4068else
4069 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004070 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004071 FSCK_PROG='' FSCK_MAN=''
4072 echo "Not building fsck wrapper by default"
4073 ;;
4074 *)
4075 FSCK_PROG=fsck FSCK_MAN=fsck.8
4076 echo "Building fsck wrapper by default"
4077esac
4078
Theodore Ts'oe1052142006-10-21 21:46:47 -04004079fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004080
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004081
Theodore Ts'oe1052142006-10-21 21:46:47 -04004082
4083# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004084if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004085 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004086then
4087 E2INITRD_PROG='' E2INITRD_MAN=''
4088 echo "Not building e2initrd helper"
4089else
4090 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4091 echo "Building e2initrd helper"
4092fi
4093
4094else
4095 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4096echo "Building e2initrd helper by default"
4097
Theodore Ts'oe1052142006-10-21 21:46:47 -04004098fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004099
4100
Theodore Ts'oe1052142006-10-21 21:46:47 -04004101
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004102STATIC_BLKID_DEVMAPPER_LIBS=''
Theodore Ts'oe1052142006-10-21 21:46:47 -04004103# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004104if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004105 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004106then
4107 echo "Disabling device-mapper support"
4108 DEVMAPPER_REQ=''
4109 DEVMAPPER_LIBS=''
4110 STATIC_DEVMAPPER_LIBS=''
4111else
4112 cat >>confdefs.h <<\_ACEOF
4113#define HAVE_DEVMAPPER 1
4114_ACEOF
4115
4116 echo "Enabling device-mapper support"
4117
Karel Zak4db2f592006-03-08 14:17:28 -05004118
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004119
4120if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4121 if test -n "$ac_tool_prefix"; then
4122 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4123set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4124{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4126if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129 case $PKG_CONFIG in
4130 [\\/]* | ?:[\\/]*)
4131 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4132 ;;
4133 *)
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4144 fi
4145done
4146done
4147IFS=$as_save_IFS
4148
4149 ;;
4150esac
4151fi
4152PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4153if test -n "$PKG_CONFIG"; then
4154 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4155echo "${ECHO_T}$PKG_CONFIG" >&6; }
4156else
4157 { echo "$as_me:$LINENO: result: no" >&5
4158echo "${ECHO_T}no" >&6; }
4159fi
4160
4161
4162fi
4163if test -z "$ac_cv_path_PKG_CONFIG"; then
4164 ac_pt_PKG_CONFIG=$PKG_CONFIG
4165 # Extract the first word of "pkg-config", so it can be a program name with args.
4166set dummy pkg-config; ac_word=$2
4167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4169if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172 case $ac_pt_PKG_CONFIG in
4173 [\\/]* | ?:[\\/]*)
4174 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4175 ;;
4176 *)
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4187 fi
4188done
4189done
4190IFS=$as_save_IFS
4191
4192 ;;
4193esac
4194fi
4195ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4196if test -n "$ac_pt_PKG_CONFIG"; then
4197 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4198echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4199else
4200 { echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6; }
4202fi
4203
4204 if test "x$ac_pt_PKG_CONFIG" = x; then
4205 PKG_CONFIG=""
4206 else
4207 case $cross_compiling:$ac_tool_warned in
4208yes:)
4209{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4210whose name does not start with the host triplet. If you think this
4211configuration is useful to you, please write to autoconf@gnu.org." >&5
4212echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4213whose name does not start with the host triplet. If you think this
4214configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4215ac_tool_warned=yes ;;
4216esac
4217 PKG_CONFIG=$ac_pt_PKG_CONFIG
4218 fi
4219else
4220 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4221fi
4222
4223fi
4224if test -n "$PKG_CONFIG"; then
4225 _pkg_min_version=0.9.0
4226 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4227echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4228 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4229 { echo "$as_me:$LINENO: result: yes" >&5
4230echo "${ECHO_T}yes" >&6; }
4231 else
4232 { echo "$as_me:$LINENO: result: no" >&5
4233echo "${ECHO_T}no" >&6; }
4234 PKG_CONFIG=""
4235 fi
4236
4237fi
4238
4239 if test -z "$PKG_CONFIG"; then
4240 echo "pkg-config not installed; please install it."
4241 exit 1;
4242 fi
4243
4244 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4245echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4246if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249 ac_check_lib_save_LIBS=$LIBS
4250LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4251cat >conftest.$ac_ext <<_ACEOF
4252/* confdefs.h. */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h. */
4257
4258/* Override any GCC internal prototype to avoid an error.
4259 Use char because int might match the return type of a GCC
4260 builtin and then its argument prototype would still apply. */
4261#ifdef __cplusplus
4262extern "C"
4263#endif
4264char dm_tree_create ();
4265int
4266main ()
4267{
4268return dm_tree_create ();
4269 ;
4270 return 0;
4271}
4272_ACEOF
4273rm -f conftest.$ac_objext conftest$ac_exeext
4274if { (ac_try="$ac_link"
4275case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_link") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest$ac_exeext &&
4290 $as_test_x conftest$ac_exeext; then
4291 ac_cv_lib_devmapper_dm_tree_create=yes
4292else
4293 echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296 ac_cv_lib_devmapper_dm_tree_create=no
4297fi
4298
4299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4300 conftest$ac_exeext conftest.$ac_ext
4301LIBS=$ac_check_lib_save_LIBS
4302fi
4303{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4304echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4305if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4306 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4307 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4308 DEVMAPPER_REQ="devmapper";
4309 DEVMAPPER_PC_LIBS="-ldevmapper"
4310else
4311 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4312echo "$as_me: error: device-mapper library not found" >&2;}
4313 { (exit 1); exit 1; }; }
4314fi
4315
4316 # work around stupid devmapper.pc bug in Debian
4317 case "$STATIC_DEVMAPPER_LIBS" in
4318 *pthread*)
4319 ;;
4320 *)
4321 echo "Working around Debian bug #390243..."
4322 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4323 ;;
4324 esac
4325 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4326 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4327 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4328 fi
Karel Zak4db2f592006-03-08 14:17:28 -05004329fi
4330
4331else
4332 echo "Disabling device-mapper support by default"
4333
Theodore Ts'oe1052142006-10-21 21:46:47 -04004334fi
4335
Karel Zak4db2f592006-03-08 14:17:28 -05004336
4337
4338
4339
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004340
Theodore Ts'o32493942007-12-31 10:45:01 -05004341# Check whether --enable-tls was given.
4342if test "${enable_tls+set}" = set; then
4343 enableval=$enable_tls; if test "$enableval" = "no"
4344then
4345 try_tls=""
4346 echo "Disabling thread local support"
4347else
4348 try_tls="yes"
4349 echo "Enabling thread local support"
4350fi
4351
4352else
4353 try_tls="yes"
4354echo "Try using thread local support by default"
4355
4356fi
4357
4358if test "$try_tls" = "yes"
4359then
4360
4361 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4362echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4363 if test "${ac_cv_tls+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366
4367 ax_tls_keywords="__thread __declspec(thread) none"
4368 for ax_tls_keyword in $ax_tls_keywords; do
4369 case $ax_tls_keyword in
4370 none) ac_cv_tls=none ; break ;;
4371 *)
4372 cat >conftest.$ac_ext <<_ACEOF
4373/* confdefs.h. */
4374_ACEOF
4375cat confdefs.h >>conftest.$ac_ext
4376cat >>conftest.$ac_ext <<_ACEOF
4377/* end confdefs.h. */
4378#include <stdlib.h>
4379 static void
4380 foo(void) {
4381 static $ax_tls_keyword int bar;
4382 exit(1);
4383 }
4384int
4385main ()
4386{
4387
4388 ;
4389 return 0;
4390}
4391_ACEOF
4392rm -f conftest.$ac_objext
4393if { (ac_try="$ac_compile"
4394case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } && {
4406 test -z "$ac_c_werror_flag" ||
4407 test ! -s conftest.err
4408 } && test -s conftest.$ac_objext; then
4409 ac_cv_tls=$ax_tls_keyword ; break
4410else
4411 echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 ac_cv_tls=none
4415
4416fi
4417
4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 esac
4420 done
4421
4422fi
4423
4424
4425 if test "$ac_cv_tls" != "none"; then
4426
4427cat >>confdefs.h <<_ACEOF
4428#define TLS $ac_cv_tls
4429_ACEOF
4430
4431 fi
4432 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4433echo "${ECHO_T}$ac_cv_tls" >&6; }
4434
4435fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004436# Check whether --enable-uuidd was given.
4437if test "${enable_uuidd+set}" = set; then
4438 enableval=$enable_uuidd; if test "$enableval" = "no"
4439then
4440 echo "Not building uuidd"
4441 UUIDD_CMT="#"
4442else
4443 cat >>confdefs.h <<\_ACEOF
4444#define USE_UUIDD 1
4445_ACEOF
4446
4447 UUIDD_CMT=""
4448 echo "Building uuidd"
4449fi
4450
4451else
4452 cat >>confdefs.h <<\_ACEOF
4453#define USE_UUIDD 1
4454_ACEOF
4455
4456UUIDD_CMT=""
4457echo "Building uuidd by default"
4458
4459fi
4460
4461
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004462MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4463
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004464GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004465PACKAGE=e2fsprogs
4466VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004467VERSION=0.14.1
4468cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004469#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004470_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004471
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004472cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004473#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004474_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004475
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004476
4477
4478
4479
Theodore Ts'oe1052142006-10-21 21:46:47 -04004480{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4481echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4482set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4483if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004484 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004485else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004486 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004487SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004488all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004489 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004490_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004491# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004492case `${MAKE-make} -f conftest.make 2>/dev/null` in
4493 *@@@%%%=?*=@@@%%%*)
4494 eval ac_cv_prog_make_${ac_make}_set=yes;;
4495 *)
4496 eval ac_cv_prog_make_${ac_make}_set=no;;
4497esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004498rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004499fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004500if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4501 { echo "$as_me:$LINENO: result: yes" >&5
4502echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004503 SET_MAKE=
4504else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004505 { echo "$as_me:$LINENO: result: no" >&5
4506echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004507 SET_MAKE="MAKE=${MAKE-make}"
4508fi
4509
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004510# Find a good install program. We prefer a C program (faster),
4511# so one script is as good as another. But avoid the broken or
4512# incompatible versions:
4513# SysV /etc/install, /usr/sbin/install
4514# SunOS /usr/etc/install
4515# IRIX /sbin/install
4516# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004517# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004518# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4519# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4520# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004521# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004522# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004523{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4524echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004525if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004526if test "${ac_cv_path_install+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004528else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH
4531do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 # Account for people who put trailing slashes in PATH elements.
4535case $as_dir/ in
4536 ./ | .// | /cC/* | \
4537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4538 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4539 /usr/ucb/* ) ;;
4540 *)
4541 # OSF1 and SCO ODT 3.0 have their own names for install.
4542 # Don't use installbsd from OSF since it installs stuff as root
4543 # by default.
4544 for ac_prog in ginstall scoinst install; do
4545 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004546 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 -04004547 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004549 # AIX install. It has an incompatible calling convention.
4550 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004551 elif test $ac_prog = install &&
4552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4553 # program-specific install script used by HP pwplus--don't use.
4554 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004555 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004556 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4557 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004558 fi
4559 fi
4560 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004561 done
4562 ;;
4563esac
4564done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004565IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004566
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004567
4568fi
4569 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004570 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004571 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004572 # As a last resort, use the slow shell script. Don't cache a
4573 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004574 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004575 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004576 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004577 fi
4578fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004579{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4580echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004581
4582# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4583# It thinks the first close brace ends the variable substitution.
4584test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4585
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004586test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004587
4588test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4589
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004590
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004591 MKINSTALLDIRS=
4592 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004593 case "$ac_aux_dir" in
4594 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4595 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4596 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004597 fi
4598 if test -z "$MKINSTALLDIRS"; then
4599 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4600 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004601
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004602
4603
Theodore Ts'oe1052142006-10-21 21:46:47 -04004604 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4605echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4606 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004607if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004608 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004609else
4610 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004611fi
4612
4613 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4614echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004615
4616
4617
4618
4619
4620
4621# Prepare PATH_SEPARATOR.
4622# The user is always right.
4623if test "${PATH_SEPARATOR+set}" != set; then
4624 echo "#! /bin/sh" >conf$$.sh
4625 echo "exit 0" >>conf$$.sh
4626 chmod +x conf$$.sh
4627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4628 PATH_SEPARATOR=';'
4629 else
4630 PATH_SEPARATOR=:
4631 fi
4632 rm -f conf$$.sh
4633fi
4634
4635# Find out how to test for executable files. Don't use a zero-byte file,
4636# as systems may use methods other than mode bits to determine executability.
4637cat >conf$$.file <<_ASEOF
4638#! /bin/sh
4639exit 0
4640_ASEOF
4641chmod +x conf$$.file
4642if test -x conf$$.file >/dev/null 2>&1; then
4643 ac_executable_p="test -x"
4644else
4645 ac_executable_p="test -f"
4646fi
4647rm -f conf$$.file
4648
4649# Extract the first word of "msgfmt", so it can be a program name with args.
4650set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004653if test "${ac_cv_path_MSGFMT+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656 case "$MSGFMT" in
4657 [\\/]* | ?:[\\/]*)
4658 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4659 ;;
4660 *)
4661 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4662 for ac_dir in $PATH; do
4663 IFS="$ac_save_IFS"
4664 test -z "$ac_dir" && ac_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4667 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4668 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4669 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4670 break 2
4671 fi
4672 fi
4673 done
4674 done
4675 IFS="$ac_save_IFS"
4676 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4677 ;;
4678esac
4679fi
4680MSGFMT="$ac_cv_path_MSGFMT"
4681if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004682 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4683echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004684else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004685 { echo "$as_me:$LINENO: result: no" >&5
4686echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004687fi
4688
4689 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4690set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004693if test "${ac_cv_path_GMSGFMT+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696 case $GMSGFMT in
4697 [\\/]* | ?:[\\/]*)
4698 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4699 ;;
4700 *)
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004707 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 -05004708 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004714IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004715
4716 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4717 ;;
4718esac
4719fi
4720GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004721if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004722 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4723echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004724else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004725 { echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004727fi
4728
4729
4730
Theodore Ts'oe1052142006-10-21 21:46:47 -04004731
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004732# Prepare PATH_SEPARATOR.
4733# The user is always right.
4734if test "${PATH_SEPARATOR+set}" != set; then
4735 echo "#! /bin/sh" >conf$$.sh
4736 echo "exit 0" >>conf$$.sh
4737 chmod +x conf$$.sh
4738 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4739 PATH_SEPARATOR=';'
4740 else
4741 PATH_SEPARATOR=:
4742 fi
4743 rm -f conf$$.sh
4744fi
4745
4746# Find out how to test for executable files. Don't use a zero-byte file,
4747# as systems may use methods other than mode bits to determine executability.
4748cat >conf$$.file <<_ASEOF
4749#! /bin/sh
4750exit 0
4751_ASEOF
4752chmod +x conf$$.file
4753if test -x conf$$.file >/dev/null 2>&1; then
4754 ac_executable_p="test -x"
4755else
4756 ac_executable_p="test -f"
4757fi
4758rm -f conf$$.file
4759
4760# Extract the first word of "xgettext", so it can be a program name with args.
4761set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004764if test "${ac_cv_path_XGETTEXT+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767 case "$XGETTEXT" in
4768 [\\/]* | ?:[\\/]*)
4769 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4770 ;;
4771 *)
4772 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4773 for ac_dir in $PATH; do
4774 IFS="$ac_save_IFS"
4775 test -z "$ac_dir" && ac_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4778 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4779 (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
4780 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4781 break 2
4782 fi
4783 fi
4784 done
4785 done
4786 IFS="$ac_save_IFS"
4787 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4788 ;;
4789esac
4790fi
4791XGETTEXT="$ac_cv_path_XGETTEXT"
4792if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004793 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4794echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004795else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004796 { echo "$as_me:$LINENO: result: no" >&5
4797echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004798fi
4799
4800 rm -f messages.po
4801
4802
4803# Prepare PATH_SEPARATOR.
4804# The user is always right.
4805if test "${PATH_SEPARATOR+set}" != set; then
4806 echo "#! /bin/sh" >conf$$.sh
4807 echo "exit 0" >>conf$$.sh
4808 chmod +x conf$$.sh
4809 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4810 PATH_SEPARATOR=';'
4811 else
4812 PATH_SEPARATOR=:
4813 fi
4814 rm -f conf$$.sh
4815fi
4816
4817# Find out how to test for executable files. Don't use a zero-byte file,
4818# as systems may use methods other than mode bits to determine executability.
4819cat >conf$$.file <<_ASEOF
4820#! /bin/sh
4821exit 0
4822_ASEOF
4823chmod +x conf$$.file
4824if test -x conf$$.file >/dev/null 2>&1; then
4825 ac_executable_p="test -x"
4826else
4827 ac_executable_p="test -f"
4828fi
4829rm -f conf$$.file
4830
4831# Extract the first word of "msgmerge", so it can be a program name with args.
4832set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004835if test "${ac_cv_path_MSGMERGE+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837else
4838 case "$MSGMERGE" in
4839 [\\/]* | ?:[\\/]*)
4840 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4841 ;;
4842 *)
4843 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4844 for ac_dir in $PATH; do
4845 IFS="$ac_save_IFS"
4846 test -z "$ac_dir" && ac_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4849 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4850 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4851 break 2
4852 fi
4853 fi
4854 done
4855 done
4856 IFS="$ac_save_IFS"
4857 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4858 ;;
4859esac
4860fi
4861MSGMERGE="$ac_cv_path_MSGMERGE"
4862if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004863 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4864echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004865else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004866 { echo "$as_me:$LINENO: result: no" >&5
4867echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004868fi
4869
4870
4871 if test "$GMSGFMT" != ":"; then
4872 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4873 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4874 : ;
4875 else
4876 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004877 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4878echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004879 GMSGFMT=":"
4880 fi
4881 fi
4882
4883 if test "$XGETTEXT" != ":"; then
4884 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4885 (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
4886 : ;
4887 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004888 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4889echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004890 XGETTEXT=":"
4891 fi
4892 rm -f messages.po
4893 fi
4894
Theodore Ts'oe1052142006-10-21 21:46:47 -04004895 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004896
4897
4898if test -n "$ac_tool_prefix"; then
4899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4900set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004903if test "${ac_cv_prog_RANLIB+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004905else
4906 if test -n "$RANLIB"; then
4907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4908else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004915 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 -05004916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004921done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004922IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004923
4924fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004925fi
4926RANLIB=$ac_cv_prog_RANLIB
4927if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004928 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4929echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004930else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004931 { echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004933fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004934
Theodore Ts'oe1052142006-10-21 21:46:47 -04004935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004936fi
4937if test -z "$ac_cv_prog_RANLIB"; then
4938 ac_ct_RANLIB=$RANLIB
4939 # Extract the first word of "ranlib", so it can be a program name with args.
4940set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004943if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945else
4946 if test -n "$ac_ct_RANLIB"; then
4947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4948else
4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950for as_dir in $PATH
4951do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004955 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 -05004956 ac_cv_prog_ac_ct_RANLIB="ranlib"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4959 fi
4960done
4961done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004962IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004963
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004964fi
4965fi
4966ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4967if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004968 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4969echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004970else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004971 { echo "$as_me:$LINENO: result: no" >&5
4972echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004973fi
4974
Theodore Ts'oe1052142006-10-21 21:46:47 -04004975 if test "x$ac_ct_RANLIB" = x; then
4976 RANLIB=":"
4977 else
4978 case $cross_compiling:$ac_tool_warned in
4979yes:)
4980{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4981whose name does not start with the host triplet. If you think this
4982configuration is useful to you, please write to autoconf@gnu.org." >&5
4983echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4984whose name does not start with the host triplet. If you think this
4985configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4986ac_tool_warned=yes ;;
4987esac
4988 RANLIB=$ac_ct_RANLIB
4989 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004990else
4991 RANLIB="$ac_cv_prog_RANLIB"
4992fi
4993
4994
Theodore Ts'oe1052142006-10-21 21:46:47 -04004995 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4996echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004997if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000 ac_check_lib_save_LIBS=$LIBS
5001LIBS="-lcposix $LIBS"
5002cat >conftest.$ac_ext <<_ACEOF
5003/* confdefs.h. */
5004_ACEOF
5005cat confdefs.h >>conftest.$ac_ext
5006cat >>conftest.$ac_ext <<_ACEOF
5007/* end confdefs.h. */
5008
Theodore Ts'oe1052142006-10-21 21:46:47 -04005009/* Override any GCC internal prototype to avoid an error.
5010 Use char because int might match the return type of a GCC
5011 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005012#ifdef __cplusplus
5013extern "C"
5014#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005015char strerror ();
5016int
5017main ()
5018{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005019return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005020 ;
5021 return 0;
5022}
5023_ACEOF
5024rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005025if { (ac_try="$ac_link"
5026case "(($ac_try" in
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5029esac
5030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005032 ac_status=$?
5033 grep -v '^ *+' conftest.er1 >conftest.err
5034 rm -f conftest.er1
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005037 (exit $ac_status); } && {
5038 test -z "$ac_c_werror_flag" ||
5039 test ! -s conftest.err
5040 } && test -s conftest$ac_exeext &&
5041 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005042 ac_cv_lib_cposix_strerror=yes
5043else
5044 echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
Theodore Ts'oe1052142006-10-21 21:46:47 -04005047 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005048fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005049
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005051 conftest$ac_exeext conftest.$ac_ext
5052LIBS=$ac_check_lib_save_LIBS
5053fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005054{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5055echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005056if test $ac_cv_lib_cposix_strerror = yes; then
5057 LIBS="$LIBS -lcposix"
5058fi
5059
5060
5061
Theodore Ts'oe1052142006-10-21 21:46:47 -04005062{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5063echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005064if test "${ac_cv_c_const+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066else
5067 cat >conftest.$ac_ext <<_ACEOF
5068/* confdefs.h. */
5069_ACEOF
5070cat confdefs.h >>conftest.$ac_ext
5071cat >>conftest.$ac_ext <<_ACEOF
5072/* end confdefs.h. */
5073
5074int
5075main ()
5076{
5077/* FIXME: Include the comments suggested by Paul. */
5078#ifndef __cplusplus
5079 /* Ultrix mips cc rejects this. */
5080 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005081 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005082 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005083 char const *const *pcpcc;
5084 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005085 /* NEC SVR4.0.2 mips cc rejects this. */
5086 struct point {int x, y;};
5087 static struct point const zero = {0,0};
5088 /* AIX XL C 1.02.0.0 rejects this.
5089 It does not let you subtract one const X* pointer from another in
5090 an arm of an if-expression whose if-part is not a constant
5091 expression */
5092 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005093 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005094 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005095 ++pcpcc;
5096 ppc = (char**) pcpcc;
5097 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005098 { /* SCO 3.2v4 cc rejects this. */
5099 char *t;
5100 char const *s = 0 ? (char *) 0 : (char const *) 0;
5101
5102 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005103 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005104 }
5105 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5106 int x[] = {25, 17};
5107 const int *foo = &x[0];
5108 ++foo;
5109 }
5110 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5111 typedef const int *iptr;
5112 iptr p = 0;
5113 ++p;
5114 }
5115 { /* AIX XL C 1.02.0.0 rejects this saying
5116 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5117 struct s { int j; const int *ap[3]; };
5118 struct s *b; b->j = 5;
5119 }
5120 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5121 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005122 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005123 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005124 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005125#endif
5126
5127 ;
5128 return 0;
5129}
5130_ACEOF
5131rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005132if { (ac_try="$ac_compile"
5133case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136esac
5137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005144 (exit $ac_status); } && {
5145 test -z "$ac_c_werror_flag" ||
5146 test ! -s conftest.err
5147 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005148 ac_cv_c_const=yes
5149else
5150 echo "$as_me: failed program was:" >&5
5151sed 's/^/| /' conftest.$ac_ext >&5
5152
Theodore Ts'oe1052142006-10-21 21:46:47 -04005153 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005154fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005155
5156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005157fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005158{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5159echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005160if test $ac_cv_c_const = no; then
5161
5162cat >>confdefs.h <<\_ACEOF
5163#define const
5164_ACEOF
5165
5166fi
5167
5168
Theodore Ts'oe1052142006-10-21 21:46:47 -04005169 { echo "$as_me:$LINENO: checking for signed" >&5
5170echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005171if test "${bh_cv_c_signed+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174 cat >conftest.$ac_ext <<_ACEOF
5175/* confdefs.h. */
5176_ACEOF
5177cat confdefs.h >>conftest.$ac_ext
5178cat >>conftest.$ac_ext <<_ACEOF
5179/* end confdefs.h. */
5180
5181int
5182main ()
5183{
5184signed char x;
5185 ;
5186 return 0;
5187}
5188_ACEOF
5189rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005190if { (ac_try="$ac_compile"
5191case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194esac
5195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005197 ac_status=$?
5198 grep -v '^ *+' conftest.er1 >conftest.err
5199 rm -f conftest.er1
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005202 (exit $ac_status); } && {
5203 test -z "$ac_c_werror_flag" ||
5204 test ! -s conftest.err
5205 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005206 bh_cv_c_signed=yes
5207else
5208 echo "$as_me: failed program was:" >&5
5209sed 's/^/| /' conftest.$ac_ext >&5
5210
Theodore Ts'oe1052142006-10-21 21:46:47 -04005211 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005212fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005213
5214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005215fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005216{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5217echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005218 if test $bh_cv_c_signed = no; then
5219
5220cat >>confdefs.h <<\_ACEOF
5221#define signed
5222_ACEOF
5223
5224 fi
5225
Theodore Ts'oe1052142006-10-21 21:46:47 -04005226{ echo "$as_me:$LINENO: checking for inline" >&5
5227echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005228if test "${ac_cv_c_inline+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231 ac_cv_c_inline=no
5232for ac_kw in inline __inline__ __inline; do
5233 cat >conftest.$ac_ext <<_ACEOF
5234/* confdefs.h. */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h. */
5239#ifndef __cplusplus
5240typedef int foo_t;
5241static $ac_kw foo_t static_foo () {return 0; }
5242$ac_kw foo_t foo () {return 0; }
5243#endif
5244
5245_ACEOF
5246rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005247if { (ac_try="$ac_compile"
5248case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251esac
5252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005259 (exit $ac_status); } && {
5260 test -z "$ac_c_werror_flag" ||
5261 test ! -s conftest.err
5262 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005263 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005264else
5265 echo "$as_me: failed program was:" >&5
5266sed 's/^/| /' conftest.$ac_ext >&5
5267
Theodore Ts'oe1052142006-10-21 21:46:47 -04005268
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005269fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005270
5271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005273done
5274
5275fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005276{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5277echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005278
5279
5280case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005281 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005282 *)
5283 case $ac_cv_c_inline in
5284 no) ac_val=;;
5285 *) ac_val=$ac_cv_c_inline;;
5286 esac
5287 cat >>confdefs.h <<_ACEOF
5288#ifndef __cplusplus
5289#define inline $ac_val
5290#endif
5291_ACEOF
5292 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005293esac
5294
Theodore Ts'oe1052142006-10-21 21:46:47 -04005295{ echo "$as_me:$LINENO: checking for off_t" >&5
5296echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005297if test "${ac_cv_type_off_t+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005299else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005300 cat >conftest.$ac_ext <<_ACEOF
5301/* confdefs.h. */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h. */
5306$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005307typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005308int
5309main ()
5310{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005311if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005312 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005313if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005314 return 0;
5315 ;
5316 return 0;
5317}
5318_ACEOF
5319rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005320if { (ac_try="$ac_compile"
5321case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324esac
5325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005332 (exit $ac_status); } && {
5333 test -z "$ac_c_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005336 ac_cv_type_off_t=yes
5337else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005338 echo "$as_me: failed program was:" >&5
5339sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005340
Theodore Ts'oe1052142006-10-21 21:46:47 -04005341 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005342fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005343
5344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005345fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005346{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5347echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005348if test $ac_cv_type_off_t = yes; then
5349 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005350else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005351
5352cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005353#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005354_ACEOF
5355
5356fi
5357
Theodore Ts'oe1052142006-10-21 21:46:47 -04005358{ echo "$as_me:$LINENO: checking for size_t" >&5
5359echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005360if test "${ac_cv_type_size_t+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
5363 cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h. */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h. */
5369$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005370typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005371int
5372main ()
5373{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005374if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005375 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005376if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005377 return 0;
5378 ;
5379 return 0;
5380}
5381_ACEOF
5382rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005383if { (ac_try="$ac_compile"
5384case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387esac
5388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005395 (exit $ac_status); } && {
5396 test -z "$ac_c_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005399 ac_cv_type_size_t=yes
5400else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005401 echo "$as_me: failed program was:" >&5
5402sed 's/^/| /' conftest.$ac_ext >&5
5403
Theodore Ts'oe1052142006-10-21 21:46:47 -04005404 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005405fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005406
5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005408fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005409{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5410echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005411if test $ac_cv_type_size_t = yes; then
5412 :
5413else
5414
5415cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005416#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005417_ACEOF
5418
5419fi
5420
5421
Theodore Ts'oe1052142006-10-21 21:46:47 -04005422 { echo "$as_me:$LINENO: checking for long long" >&5
5423echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005424if test "${ac_cv_type_long_long+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426else
5427 cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433long long ll = 1LL; int i = 63;
5434int
5435main ()
5436{
5437long long llmax = (long long) -1;
5438 return ll << i | ll >> i | llmax / ll | llmax % ll;
5439 ;
5440 return 0;
5441}
5442_ACEOF
5443rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005444if { (ac_try="$ac_link"
5445case "(($ac_try" in
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5448esac
5449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005451 ac_status=$?
5452 grep -v '^ *+' conftest.er1 >conftest.err
5453 rm -f conftest.er1
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005456 (exit $ac_status); } && {
5457 test -z "$ac_c_werror_flag" ||
5458 test ! -s conftest.err
5459 } && test -s conftest$ac_exeext &&
5460 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005461 ac_cv_type_long_long=yes
5462else
5463 echo "$as_me: failed program was:" >&5
5464sed 's/^/| /' conftest.$ac_ext >&5
5465
Theodore Ts'oe1052142006-10-21 21:46:47 -04005466 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005467fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005468
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005470 conftest$ac_exeext conftest.$ac_ext
5471fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005472{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5473echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005474 if test $ac_cv_type_long_long = yes; then
5475
5476cat >>confdefs.h <<\_ACEOF
5477#define HAVE_LONG_LONG 1
5478_ACEOF
5479
5480 fi
5481
5482
Theodore Ts'oe1052142006-10-21 21:46:47 -04005483 { echo "$as_me:$LINENO: checking for long double" >&5
5484echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005485if test "${gt_cv_c_long_double+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487else
5488 if test "$GCC" = yes; then
5489 gt_cv_c_long_double=yes
5490 else
5491 cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h. */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h. */
5497
5498 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5499 long double foo = 0.0;
5500 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5501 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5502
5503int
5504main ()
5505{
5506
5507 ;
5508 return 0;
5509}
5510_ACEOF
5511rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005512if { (ac_try="$ac_compile"
5513case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516esac
5517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005528 gt_cv_c_long_double=yes
5529else
5530 echo "$as_me: failed program was:" >&5
5531sed 's/^/| /' conftest.$ac_ext >&5
5532
Theodore Ts'oe1052142006-10-21 21:46:47 -04005533 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005534fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005535
5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005537 fi
5538fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005539{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5540echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005541 if test $gt_cv_c_long_double = yes; then
5542
5543cat >>confdefs.h <<\_ACEOF
5544#define HAVE_LONG_DOUBLE 1
5545_ACEOF
5546
5547 fi
5548
5549
Theodore Ts'oe1052142006-10-21 21:46:47 -04005550 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5551echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005552if test "${gt_cv_c_wchar_t+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554else
5555 cat >conftest.$ac_ext <<_ACEOF
5556/* confdefs.h. */
5557_ACEOF
5558cat confdefs.h >>conftest.$ac_ext
5559cat >>conftest.$ac_ext <<_ACEOF
5560/* end confdefs.h. */
5561#include <stddef.h>
5562 wchar_t foo = (wchar_t)'\0';
5563int
5564main ()
5565{
5566
5567 ;
5568 return 0;
5569}
5570_ACEOF
5571rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005572if { (ac_try="$ac_compile"
5573case "(($ac_try" in
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5576esac
5577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005584 (exit $ac_status); } && {
5585 test -z "$ac_c_werror_flag" ||
5586 test ! -s conftest.err
5587 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005588 gt_cv_c_wchar_t=yes
5589else
5590 echo "$as_me: failed program was:" >&5
5591sed 's/^/| /' conftest.$ac_ext >&5
5592
Theodore Ts'oe1052142006-10-21 21:46:47 -04005593 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005594fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005595
5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005597fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005598{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5599echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005600 if test $gt_cv_c_wchar_t = yes; then
5601
5602cat >>confdefs.h <<\_ACEOF
5603#define HAVE_WCHAR_T 1
5604_ACEOF
5605
5606 fi
5607
5608
Theodore Ts'oe1052142006-10-21 21:46:47 -04005609 { echo "$as_me:$LINENO: checking for wint_t" >&5
5610echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005611if test "${gt_cv_c_wint_t+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614 cat >conftest.$ac_ext <<_ACEOF
5615/* confdefs.h. */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
5619/* end confdefs.h. */
5620#include <wchar.h>
5621 wint_t foo = (wchar_t)'\0';
5622int
5623main ()
5624{
5625
5626 ;
5627 return 0;
5628}
5629_ACEOF
5630rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005631if { (ac_try="$ac_compile"
5632case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635esac
5636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005643 (exit $ac_status); } && {
5644 test -z "$ac_c_werror_flag" ||
5645 test ! -s conftest.err
5646 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005647 gt_cv_c_wint_t=yes
5648else
5649 echo "$as_me: failed program was:" >&5
5650sed 's/^/| /' conftest.$ac_ext >&5
5651
Theodore Ts'oe1052142006-10-21 21:46:47 -04005652 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005653fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005654
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005656fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005657{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5658echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005659 if test $gt_cv_c_wint_t = yes; then
5660
5661cat >>confdefs.h <<\_ACEOF
5662#define HAVE_WINT_T 1
5663_ACEOF
5664
5665 fi
5666
5667
Theodore Ts'oe1052142006-10-21 21:46:47 -04005668 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5669echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005670if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673 cat >conftest.$ac_ext <<_ACEOF
5674/* confdefs.h. */
5675_ACEOF
5676cat confdefs.h >>conftest.$ac_ext
5677cat >>conftest.$ac_ext <<_ACEOF
5678/* end confdefs.h. */
5679#include <sys/types.h>
5680#include <inttypes.h>
5681int
5682main ()
5683{
5684uintmax_t i = (uintmax_t) -1;
5685 ;
5686 return 0;
5687}
5688_ACEOF
5689rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005690if { (ac_try="$ac_compile"
5691case "(($ac_try" in
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5694esac
5695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005702 (exit $ac_status); } && {
5703 test -z "$ac_c_werror_flag" ||
5704 test ! -s conftest.err
5705 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005706 jm_ac_cv_header_inttypes_h=yes
5707else
5708 echo "$as_me: failed program was:" >&5
5709sed 's/^/| /' conftest.$ac_ext >&5
5710
Theodore Ts'oe1052142006-10-21 21:46:47 -04005711 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005712fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005713
5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005715fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005716{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5717echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005718 if test $jm_ac_cv_header_inttypes_h = yes; then
5719
5720cat >>confdefs.h <<_ACEOF
5721#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5722_ACEOF
5723
5724 fi
5725
5726
Theodore Ts'oe1052142006-10-21 21:46:47 -04005727 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5728echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005729if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5731else
5732 cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h. */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h. */
5738#include <sys/types.h>
5739#include <stdint.h>
5740int
5741main ()
5742{
5743uintmax_t i = (uintmax_t) -1;
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005749if { (ac_try="$ac_compile"
5750case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005761 (exit $ac_status); } && {
5762 test -z "$ac_c_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005765 jm_ac_cv_header_stdint_h=yes
5766else
5767 echo "$as_me: failed program was:" >&5
5768sed 's/^/| /' conftest.$ac_ext >&5
5769
Theodore Ts'oe1052142006-10-21 21:46:47 -04005770 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005771fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005772
5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005774fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005775{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5776echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005777 if test $jm_ac_cv_header_stdint_h = yes; then
5778
5779cat >>confdefs.h <<_ACEOF
5780#define HAVE_STDINT_H_WITH_UINTMAX 1
5781_ACEOF
5782
5783 fi
5784
5785
5786
5787
Theodore Ts'oe1052142006-10-21 21:46:47 -04005788 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5789echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005790if test "${gt_cv_c_intmax_t+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792else
5793 cat >conftest.$ac_ext <<_ACEOF
5794/* confdefs.h. */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5798/* end confdefs.h. */
5799
5800#include <stddef.h>
5801#include <stdlib.h>
5802#if HAVE_STDINT_H_WITH_UINTMAX
5803#include <stdint.h>
5804#endif
5805#if HAVE_INTTYPES_H_WITH_UINTMAX
5806#include <inttypes.h>
5807#endif
5808
5809int
5810main ()
5811{
5812intmax_t x = -1;
5813 ;
5814 return 0;
5815}
5816_ACEOF
5817rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005818if { (ac_try="$ac_compile"
5819case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5822esac
5823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005830 (exit $ac_status); } && {
5831 test -z "$ac_c_werror_flag" ||
5832 test ! -s conftest.err
5833 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005834 gt_cv_c_intmax_t=yes
5835else
5836 echo "$as_me: failed program was:" >&5
5837sed 's/^/| /' conftest.$ac_ext >&5
5838
Theodore Ts'oe1052142006-10-21 21:46:47 -04005839 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005840fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005841
5842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005843fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005844{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5845echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005846 if test $gt_cv_c_intmax_t = yes; then
5847
5848cat >>confdefs.h <<\_ACEOF
5849#define HAVE_INTMAX_T 1
5850_ACEOF
5851
5852 fi
5853
5854
5855
Theodore Ts'oe1052142006-10-21 21:46:47 -04005856 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5857echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005858if test "${gt_cv_func_printf_posix+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5860else
5861
5862 if test "$cross_compiling" = yes; then
5863
5864 cat >conftest.$ac_ext <<_ACEOF
5865/* confdefs.h. */
5866_ACEOF
5867cat confdefs.h >>conftest.$ac_ext
5868cat >>conftest.$ac_ext <<_ACEOF
5869/* end confdefs.h. */
5870
5871#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5872 notposix
5873#endif
5874
5875_ACEOF
5876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5877 $EGREP "notposix" >/dev/null 2>&1; then
5878 gt_cv_func_printf_posix="guessing no"
5879else
5880 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005881fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005882rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005883
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005884
5885else
5886 cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h. */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h. */
5892
5893#include <stdio.h>
5894#include <string.h>
5895/* The string "%2$d %1$d", with dollar characters protected from the shell's
5896 dollar expansion (possibly an autoconf bug). */
5897static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5898static char buf[100];
5899int main ()
5900{
5901 sprintf (buf, format, 33, 55);
5902 return (strcmp (buf, "55 33") != 0);
5903}
5904_ACEOF
5905rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005906if { (ac_try="$ac_link"
5907case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005916 { (case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5919esac
5920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 gt_cv_func_printf_posix=yes
5926else
5927 echo "$as_me: program exited with status $ac_status" >&5
5928echo "$as_me: failed program was:" >&5
5929sed 's/^/| /' conftest.$ac_ext >&5
5930
5931( exit $ac_status )
5932gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005933fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005934rm -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 -05005935fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005936
Theodore Ts'oe1052142006-10-21 21:46:47 -04005937
5938
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005939fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005940{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5941echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005942 case $gt_cv_func_printf_posix in
5943 *yes)
5944
5945cat >>confdefs.h <<\_ACEOF
5946#define HAVE_POSIX_PRINTF 1
5947_ACEOF
5948
5949 ;;
5950 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005951
5952# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5953# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005954{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5955echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005956if test "${ac_cv_working_alloca_h+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005958else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005959 cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h. */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005965#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005966int
5967main ()
5968{
5969char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005970 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005971 ;
5972 return 0;
5973}
5974_ACEOF
5975rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005976if { (ac_try="$ac_link"
5977case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980esac
5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest$ac_exeext &&
5992 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005993 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005994else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005995 echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005997
Theodore Ts'oe1052142006-10-21 21:46:47 -04005998 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005999fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006000
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006002 conftest$ac_exeext conftest.$ac_ext
6003fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006004{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6005echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006006if test $ac_cv_working_alloca_h = yes; then
6007
6008cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006009#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006010_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006011
6012fi
6013
Theodore Ts'oe1052142006-10-21 21:46:47 -04006014{ echo "$as_me:$LINENO: checking for alloca" >&5
6015echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006016if test "${ac_cv_func_alloca_works+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006018else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006019 cat >conftest.$ac_ext <<_ACEOF
6020/* confdefs.h. */
6021_ACEOF
6022cat confdefs.h >>conftest.$ac_ext
6023cat >>conftest.$ac_ext <<_ACEOF
6024/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006025#ifdef __GNUC__
6026# define alloca __builtin_alloca
6027#else
6028# ifdef _MSC_VER
6029# include <malloc.h>
6030# define alloca _alloca
6031# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006032# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006033# include <alloca.h>
6034# else
6035# ifdef _AIX
6036 #pragma alloca
6037# else
6038# ifndef alloca /* predefined by HP cc +Olibcalls */
6039char *alloca ();
6040# endif
6041# endif
6042# endif
6043# endif
6044#endif
6045
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006046int
6047main ()
6048{
6049char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006050 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006051 ;
6052 return 0;
6053}
6054_ACEOF
6055rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006056if { (ac_try="$ac_link"
6057case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060esac
6061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006068 (exit $ac_status); } && {
6069 test -z "$ac_c_werror_flag" ||
6070 test ! -s conftest.err
6071 } && test -s conftest$ac_exeext &&
6072 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006073 ac_cv_func_alloca_works=yes
6074else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006075 echo "$as_me: failed program was:" >&5
6076sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006077
Theodore Ts'oe1052142006-10-21 21:46:47 -04006078 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006080
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006082 conftest$ac_exeext conftest.$ac_ext
6083fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006084{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6085echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006086
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006087if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006088
6089cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006090#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006091_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006092
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006093else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006094 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6095# that cause trouble. Some versions do not even contain alloca or
6096# contain a buggy version. If you still want to use their alloca,
6097# use ar to extract alloca.o from them instead of compiling alloca.c.
6098
Theodore Ts'oe1052142006-10-21 21:46:47 -04006099ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006100
6101cat >>confdefs.h <<\_ACEOF
6102#define C_ALLOCA 1
6103_ACEOF
6104
6105
Theodore Ts'oe1052142006-10-21 21:46:47 -04006106{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6107echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006108if test "${ac_cv_os_cray+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111 cat >conftest.$ac_ext <<_ACEOF
6112/* confdefs.h. */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006117#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006118webecray
6119#else
6120wenotbecray
6121#endif
6122
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006123_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006125 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006126 ac_cv_os_cray=yes
6127else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006128 ac_cv_os_cray=no
6129fi
6130rm -f conftest*
6131
6132fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006133{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6134echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006135if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006136 for ac_func in _getb67 GETB67 getb67; do
6137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006138{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6139echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6140if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006141 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006142else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006143 cat >conftest.$ac_ext <<_ACEOF
6144/* confdefs.h. */
6145_ACEOF
6146cat confdefs.h >>conftest.$ac_ext
6147cat >>conftest.$ac_ext <<_ACEOF
6148/* end confdefs.h. */
6149/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6151#define $ac_func innocuous_$ac_func
6152
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006153/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006154 which can conflict with char $ac_func (); below.
6155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6156 <limits.h> exists even on freestanding compilers. */
6157
6158#ifdef __STDC__
6159# include <limits.h>
6160#else
6161# include <assert.h>
6162#endif
6163
6164#undef $ac_func
6165
Theodore Ts'oe1052142006-10-21 21:46:47 -04006166/* Override any GCC internal prototype to avoid an error.
6167 Use char because int might match the return type of a GCC
6168 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006169#ifdef __cplusplus
6170extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006171#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006172char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006173/* The GNU C library defines this for functions which it implements
6174 to always fail with ENOSYS. Some functions are actually named
6175 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006176#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006177choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006178#endif
6179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006180int
6181main ()
6182{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006183return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006184 ;
6185 return 0;
6186}
6187_ACEOF
6188rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006189if { (ac_try="$ac_link"
6190case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193esac
6194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest$ac_exeext &&
6205 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006206 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006207else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006208 echo "$as_me: failed program was:" >&5
6209sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006210
Theodore Ts'oe1052142006-10-21 21:46:47 -04006211 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006212fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006213
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006215 conftest$ac_exeext conftest.$ac_ext
6216fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006217ac_res=`eval echo '${'$as_ac_var'}'`
6218 { echo "$as_me:$LINENO: result: $ac_res" >&5
6219echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006220if test `eval echo '${'$as_ac_var'}'` = yes; then
6221
6222cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006223#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006224_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006225
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006226 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006227fi
6228
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006229 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006230fi
6231
Theodore Ts'oe1052142006-10-21 21:46:47 -04006232{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6233echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006234if test "${ac_cv_c_stack_direction+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006236else
6237 if test "$cross_compiling" = yes; then
6238 ac_cv_c_stack_direction=0
6239else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006240 cat >conftest.$ac_ext <<_ACEOF
6241/* confdefs.h. */
6242_ACEOF
6243cat confdefs.h >>conftest.$ac_ext
6244cat >>conftest.$ac_ext <<_ACEOF
6245/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006246$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006247int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006248find_stack_direction ()
6249{
6250 static char *addr = 0;
6251 auto char dummy;
6252 if (addr == 0)
6253 {
6254 addr = &dummy;
6255 return find_stack_direction ();
6256 }
6257 else
6258 return (&dummy > addr) ? 1 : -1;
6259}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006260
6261int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006262main ()
6263{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006264 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006265}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006266_ACEOF
6267rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006268if { (ac_try="$ac_link"
6269case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6272esac
6273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275 ac_status=$?
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006278 { (case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281esac
6282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006287 ac_cv_c_stack_direction=1
6288else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006289 echo "$as_me: program exited with status $ac_status" >&5
6290echo "$as_me: failed program was:" >&5
6291sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006293( exit $ac_status )
6294ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006295fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006296rm -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 -05006297fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006298
6299
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006300fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006301{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6302echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006303
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006304cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006305#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006306_ACEOF
6307
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006308
6309fi
6310
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006311
6312
6313for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006314do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006320 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006321fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006322ac_res=`eval echo '${'$as_ac_Header'}'`
6323 { echo "$as_me:$LINENO: result: $ac_res" >&5
6324echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006325else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006326 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006327{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006329cat >conftest.$ac_ext <<_ACEOF
6330/* confdefs.h. */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h. */
6335$ac_includes_default
6336#include <$ac_header>
6337_ACEOF
6338rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006339if { (ac_try="$ac_compile"
6340case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343esac
6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006346 ac_status=$?
6347 grep -v '^ *+' conftest.er1 >conftest.err
6348 rm -f conftest.er1
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006351 (exit $ac_status); } && {
6352 test -z "$ac_c_werror_flag" ||
6353 test ! -s conftest.err
6354 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006355 ac_header_compiler=yes
6356else
6357 echo "$as_me: failed program was:" >&5
6358sed 's/^/| /' conftest.$ac_ext >&5
6359
Theodore Ts'oe1052142006-10-21 21:46:47 -04006360 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006361fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006362
6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6365echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006366
6367# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006368{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6369echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006370cat >conftest.$ac_ext <<_ACEOF
6371/* confdefs.h. */
6372_ACEOF
6373cat confdefs.h >>conftest.$ac_ext
6374cat >>conftest.$ac_ext <<_ACEOF
6375/* end confdefs.h. */
6376#include <$ac_header>
6377_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006378if { (ac_try="$ac_cpp conftest.$ac_ext"
6379case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382esac
6383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006390 (exit $ac_status); } >/dev/null && {
6391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006394 ac_header_preproc=yes
6395else
6396 echo "$as_me: failed program was:" >&5
6397sed 's/^/| /' conftest.$ac_ext >&5
6398
6399 ac_header_preproc=no
6400fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006401
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006402rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006403{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6404echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006405
6406# So? What about this header?
6407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6408 yes:no: )
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6410echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6412echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6413 ac_header_preproc=yes
6414 ;;
6415 no:yes:* )
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6417echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6419echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6421echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6423echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6425echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6427echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006428
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006429 ;;
6430esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006431{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435else
6436 eval "$as_ac_Header=\$ac_header_preproc"
6437fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006438ac_res=`eval echo '${'$as_ac_Header'}'`
6439 { echo "$as_me:$LINENO: result: $ac_res" >&5
6440echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006441
6442fi
6443if test `eval echo '${'$as_ac_Header'}'` = yes; then
6444 cat >>confdefs.h <<_ACEOF
6445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6446_ACEOF
6447
6448fi
6449
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006450done
6451
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006452
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006453for ac_func in getpagesize
6454do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006455as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006456{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6457echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6458if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006459 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006460else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006461 cat >conftest.$ac_ext <<_ACEOF
6462/* confdefs.h. */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h. */
6467/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6469#define $ac_func innocuous_$ac_func
6470
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006471/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006472 which can conflict with char $ac_func (); below.
6473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6474 <limits.h> exists even on freestanding compilers. */
6475
6476#ifdef __STDC__
6477# include <limits.h>
6478#else
6479# include <assert.h>
6480#endif
6481
6482#undef $ac_func
6483
Theodore Ts'oe1052142006-10-21 21:46:47 -04006484/* Override any GCC internal prototype to avoid an error.
6485 Use char because int might match the return type of a GCC
6486 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006487#ifdef __cplusplus
6488extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006489#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006490char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006491/* The GNU C library defines this for functions which it implements
6492 to always fail with ENOSYS. Some functions are actually named
6493 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006494#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006495choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006496#endif
6497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006498int
6499main ()
6500{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006501return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006502 ;
6503 return 0;
6504}
6505_ACEOF
6506rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006507if { (ac_try="$ac_link"
6508case "(($ac_try" in
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6511esac
6512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006514 ac_status=$?
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006519 (exit $ac_status); } && {
6520 test -z "$ac_c_werror_flag" ||
6521 test ! -s conftest.err
6522 } && test -s conftest$ac_exeext &&
6523 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006524 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006525else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006526 echo "$as_me: failed program was:" >&5
6527sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006528
Theodore Ts'oe1052142006-10-21 21:46:47 -04006529 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006530fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006531
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006533 conftest$ac_exeext conftest.$ac_ext
6534fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006535ac_res=`eval echo '${'$as_ac_var'}'`
6536 { echo "$as_me:$LINENO: result: $ac_res" >&5
6537echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006538if test `eval echo '${'$as_ac_var'}'` = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6541_ACEOF
6542
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006543fi
6544done
6545
Theodore Ts'oe1052142006-10-21 21:46:47 -04006546{ echo "$as_me:$LINENO: checking for working mmap" >&5
6547echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006548if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006550else
6551 if test "$cross_compiling" = yes; then
6552 ac_cv_func_mmap_fixed_mapped=no
6553else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006554 cat >conftest.$ac_ext <<_ACEOF
6555/* confdefs.h. */
6556_ACEOF
6557cat confdefs.h >>conftest.$ac_ext
6558cat >>conftest.$ac_ext <<_ACEOF
6559/* end confdefs.h. */
6560$ac_includes_default
6561/* malloc might have been renamed as rpl_malloc. */
6562#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006563
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006564/* Thanks to Mike Haertel and Jim Avera for this test.
6565 Here is a matrix of mmap possibilities:
6566 mmap private not fixed
6567 mmap private fixed at somewhere currently unmapped
6568 mmap private fixed at somewhere already mapped
6569 mmap shared not fixed
6570 mmap shared fixed at somewhere currently unmapped
6571 mmap shared fixed at somewhere already mapped
6572 For private mappings, we should verify that changes cannot be read()
6573 back from the file, nor mmap's back from the file at a different
6574 address. (There have been systems where private was not correctly
6575 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006576 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006577 like early versions of FreeBSD and possibly contemporary NetBSD.)
6578 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006579 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006580
6581 Grep wants private fixed already mapped.
6582 The main things grep needs to know about mmap are:
6583 * does it exist and is it safe to write into the mmap'd area
6584 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006585
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006586#include <fcntl.h>
6587#include <sys/mman.h>
6588
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006589#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006590char *malloc ();
6591#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006594#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006595/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006596# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006597# define HAVE_SYS_PARAM_H 1
6598# endif
6599
6600# ifdef _SC_PAGESIZE
6601# define getpagesize() sysconf(_SC_PAGESIZE)
6602# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006603# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006604# include <sys/param.h>
6605# ifdef EXEC_PAGESIZE
6606# define getpagesize() EXEC_PAGESIZE
6607# else /* no EXEC_PAGESIZE */
6608# ifdef NBPG
6609# define getpagesize() NBPG * CLSIZE
6610# ifndef CLSIZE
6611# define CLSIZE 1
6612# endif /* no CLSIZE */
6613# else /* no NBPG */
6614# ifdef NBPC
6615# define getpagesize() NBPC
6616# else /* no NBPC */
6617# ifdef PAGESIZE
6618# define getpagesize() PAGESIZE
6619# endif /* PAGESIZE */
6620# endif /* no NBPC */
6621# endif /* no NBPG */
6622# endif /* no EXEC_PAGESIZE */
6623# else /* no HAVE_SYS_PARAM_H */
6624# define getpagesize() 8192 /* punt totally */
6625# endif /* no HAVE_SYS_PARAM_H */
6626# endif /* no _SC_PAGESIZE */
6627
6628#endif /* no HAVE_GETPAGESIZE */
6629
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006630int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006631main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006632{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006633 char *data, *data2, *data3;
6634 int i, pagesize;
6635 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006636
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006637 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006638
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006639 /* First, make a file with some known garbage in it. */
6640 data = (char *) malloc (pagesize);
6641 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006642 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006643 for (i = 0; i < pagesize; ++i)
6644 *(data + i) = rand ();
6645 umask (0);
6646 fd = creat ("conftest.mmap", 0600);
6647 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006648 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006649 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006650 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006651 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006652
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006653 /* Next, try to mmap the file at a fixed address which already has
6654 something else allocated at it. If we can, also make sure that
6655 we see the same garbage. */
6656 fd = open ("conftest.mmap", O_RDWR);
6657 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006658 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006659 data2 = (char *) malloc (2 * pagesize);
6660 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006661 return 1;
6662 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006663 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6664 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006665 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006666 for (i = 0; i < pagesize; ++i)
6667 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006668 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006669
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006670 /* Finally, make sure that changes to the mapped area do not
6671 percolate back to the file as seen by read(). (This is a bug on
6672 some variants of i386 svr4.0.) */
6673 for (i = 0; i < pagesize; ++i)
6674 *(data2 + i) = *(data2 + i) + 1;
6675 data3 = (char *) malloc (pagesize);
6676 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006677 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006678 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006679 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006680 for (i = 0; i < pagesize; ++i)
6681 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006682 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006683 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006684 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006685}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006686_ACEOF
6687rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006688if { (ac_try="$ac_link"
6689case "(($ac_try" in
6690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691 *) ac_try_echo=$ac_try;;
6692esac
6693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6694 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006695 ac_status=$?
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006698 { (case "(($ac_try" in
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6701esac
6702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006707 ac_cv_func_mmap_fixed_mapped=yes
6708else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006709 echo "$as_me: program exited with status $ac_status" >&5
6710echo "$as_me: failed program was:" >&5
6711sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006712
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006713( exit $ac_status )
6714ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006715fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006716rm -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 -05006717fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006718
6719
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006720fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006721{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6722echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006723if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006724
6725cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006726#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006727_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006728
6729fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006730rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006731
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006732
Theodore Ts'oe1052142006-10-21 21:46:47 -04006733 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6734echo $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 -05006735if test "${ac_cv_gnu_library_2_1+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006737else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006738 cat >conftest.$ac_ext <<_ACEOF
6739/* confdefs.h. */
6740_ACEOF
6741cat confdefs.h >>conftest.$ac_ext
6742cat >>conftest.$ac_ext <<_ACEOF
6743/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006744
6745#include <features.h>
6746#ifdef __GNU_LIBRARY__
6747 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6748 Lucky GNU user
6749 #endif
6750#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006751
6752_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006755 ac_cv_gnu_library_2_1=yes
6756else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006757 ac_cv_gnu_library_2_1=no
6758fi
6759rm -f conftest*
6760
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006761
6762
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006763fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006764{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6765echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006766
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006767 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006768
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006770
6771
Theodore Ts'oe1052142006-10-21 21:46:47 -04006772 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6773echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006774if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006776else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006777
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006778 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006779
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006780 # Guess based on the CPU.
6781 case "$host_cpu" in
6782 alpha* | i3456786 | m68k | s390*)
6783 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6784 *)
6785 gt_cv_int_divbyzero_sigfpe="guessing no";;
6786 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006787
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006788else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006789 cat >conftest.$ac_ext <<_ACEOF
6790/* confdefs.h. */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006795
6796#include <stdlib.h>
6797#include <signal.h>
6798
6799static void
6800#ifdef __cplusplus
6801sigfpe_handler (int sig)
6802#else
6803sigfpe_handler (sig) int sig;
6804#endif
6805{
6806 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6807 exit (sig != SIGFPE);
6808}
6809
6810int x = 1;
6811int y = 0;
6812int z;
6813int nan;
6814
6815int main ()
6816{
6817 signal (SIGFPE, sigfpe_handler);
6818/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6819#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6820 signal (SIGTRAP, sigfpe_handler);
6821#endif
6822/* Linux/SPARC yields signal SIGILL. */
6823#if defined (__sparc__) && defined (__linux__)
6824 signal (SIGILL, sigfpe_handler);
6825#endif
6826
6827 z = x / y;
6828 nan = y / y;
6829 exit (1);
6830}
6831
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006832_ACEOF
6833rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006834if { (ac_try="$ac_link"
6835case "(($ac_try" in
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6838esac
6839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006844 { (case "(($ac_try" in
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6847esac
6848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6849 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006853 gt_cv_int_divbyzero_sigfpe=yes
6854else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006855 echo "$as_me: program exited with status $ac_status" >&5
6856echo "$as_me: failed program was:" >&5
6857sed 's/^/| /' conftest.$ac_ext >&5
6858
6859( exit $ac_status )
6860gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006861fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006862rm -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 -04006863fi
6864
Theodore Ts'oe1052142006-10-21 21:46:47 -04006865
6866
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006867fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006868{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6869echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006870 case "$gt_cv_int_divbyzero_sigfpe" in
6871 *yes) value=1;;
6872 *) value=0;;
6873 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006874
6875cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006876#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006877_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006878
6879
6880
Theodore Ts'oe1052142006-10-21 21:46:47 -04006881 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6882echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006883if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885else
6886 cat >conftest.$ac_ext <<_ACEOF
6887/* confdefs.h. */
6888_ACEOF
6889cat confdefs.h >>conftest.$ac_ext
6890cat >>conftest.$ac_ext <<_ACEOF
6891/* end confdefs.h. */
6892unsigned long long ull = 1ULL; int i = 63;
6893int
6894main ()
6895{
6896unsigned long long ullmax = (unsigned long long) -1;
6897 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6898 ;
6899 return 0;
6900}
6901_ACEOF
6902rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006903if { (ac_try="$ac_link"
6904case "(($ac_try" in
6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906 *) ac_try_echo=$ac_try;;
6907esac
6908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6909 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006910 ac_status=$?
6911 grep -v '^ *+' conftest.er1 >conftest.err
6912 rm -f conftest.er1
6913 cat conftest.err >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006915 (exit $ac_status); } && {
6916 test -z "$ac_c_werror_flag" ||
6917 test ! -s conftest.err
6918 } && test -s conftest$ac_exeext &&
6919 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006920 ac_cv_type_unsigned_long_long=yes
6921else
6922 echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5
6924
Theodore Ts'oe1052142006-10-21 21:46:47 -04006925 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006926fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006927
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006929 conftest$ac_exeext conftest.$ac_ext
6930fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006931{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6932echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006933 if test $ac_cv_type_unsigned_long_long = yes; then
6934
6935cat >>confdefs.h <<\_ACEOF
6936#define HAVE_UNSIGNED_LONG_LONG 1
6937_ACEOF
6938
6939 fi
6940
6941
6942
6943
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006944 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 -05006945
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006946 test $ac_cv_type_unsigned_long_long = yes \
6947 && ac_type='unsigned long long' \
6948 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006949
6950cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006951#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006952_ACEOF
6953
6954 else
6955
6956cat >>confdefs.h <<\_ACEOF
6957#define HAVE_UINTMAX_T 1
6958_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006959
6960 fi
6961
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006962
Theodore Ts'oe1052142006-10-21 21:46:47 -04006963 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6964echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006965if test "${gt_cv_header_inttypes_h+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006967else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006968
6969 cat >conftest.$ac_ext <<_ACEOF
6970/* confdefs.h. */
6971_ACEOF
6972cat confdefs.h >>conftest.$ac_ext
6973cat >>conftest.$ac_ext <<_ACEOF
6974/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006975#include <sys/types.h>
6976#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006977int
6978main ()
6979{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006980
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006981 ;
6982 return 0;
6983}
6984_ACEOF
6985rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006986if { (ac_try="$ac_compile"
6987case "(($ac_try" in
6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989 *) ac_try_echo=$ac_try;;
6990esac
6991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6992 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006993 ac_status=$?
6994 grep -v '^ *+' conftest.er1 >conftest.err
6995 rm -f conftest.er1
6996 cat conftest.err >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006998 (exit $ac_status); } && {
6999 test -z "$ac_c_werror_flag" ||
7000 test ! -s conftest.err
7001 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007002 gt_cv_header_inttypes_h=yes
7003else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007004 echo "$as_me: failed program was:" >&5
7005sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007006
Theodore Ts'oe1052142006-10-21 21:46:47 -04007007 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007008fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007009
7010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007011
7012fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007013{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7014echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007015 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007016
7017cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007018#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007019_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007020
7021 fi
7022
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007023
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007025 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007026 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7027echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007028if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007031
7032 cat >conftest.$ac_ext <<_ACEOF
7033/* confdefs.h. */
7034_ACEOF
7035cat confdefs.h >>conftest.$ac_ext
7036cat >>conftest.$ac_ext <<_ACEOF
7037/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007038#include <inttypes.h>
7039#ifdef PRId32
7040char *p = PRId32;
7041#endif
7042
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007043int
7044main ()
7045{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007046
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007047 ;
7048 return 0;
7049}
7050_ACEOF
7051rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007052if { (ac_try="$ac_compile"
7053case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056esac
7057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007059 ac_status=$?
7060 grep -v '^ *+' conftest.er1 >conftest.err
7061 rm -f conftest.er1
7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007064 (exit $ac_status); } && {
7065 test -z "$ac_c_werror_flag" ||
7066 test ! -s conftest.err
7067 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007068 gt_cv_inttypes_pri_broken=no
7069else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070 echo "$as_me: failed program was:" >&5
7071sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007072
Theodore Ts'oe1052142006-10-21 21:46:47 -04007073 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007074fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007075
7076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007077
7078fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007079{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7080echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007081 fi
7082 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007083
7084cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007085#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007086_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007087
7088 fi
7089
7090
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007091
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007092for ac_header in stdint.h
7093do
7094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007101ac_res=`eval echo '${'$as_ac_Header'}'`
7102 { echo "$as_me:$LINENO: result: $ac_res" >&5
7103echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007104else
7105 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007106{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007108cat >conftest.$ac_ext <<_ACEOF
7109/* confdefs.h. */
7110_ACEOF
7111cat confdefs.h >>conftest.$ac_ext
7112cat >>conftest.$ac_ext <<_ACEOF
7113/* end confdefs.h. */
7114$ac_includes_default
7115#include <$ac_header>
7116_ACEOF
7117rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007118if { (ac_try="$ac_compile"
7119case "(($ac_try" in
7120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121 *) ac_try_echo=$ac_try;;
7122esac
7123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7124 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007125 ac_status=$?
7126 grep -v '^ *+' conftest.er1 >conftest.err
7127 rm -f conftest.er1
7128 cat conftest.err >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007130 (exit $ac_status); } && {
7131 test -z "$ac_c_werror_flag" ||
7132 test ! -s conftest.err
7133 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007134 ac_header_compiler=yes
7135else
7136 echo "$as_me: failed program was:" >&5
7137sed 's/^/| /' conftest.$ac_ext >&5
7138
Theodore Ts'oe1052142006-10-21 21:46:47 -04007139 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007140fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007141
7142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7144echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007145
7146# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007147{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007149cat >conftest.$ac_ext <<_ACEOF
7150/* confdefs.h. */
7151_ACEOF
7152cat confdefs.h >>conftest.$ac_ext
7153cat >>conftest.$ac_ext <<_ACEOF
7154/* end confdefs.h. */
7155#include <$ac_header>
7156_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007157if { (ac_try="$ac_cpp conftest.$ac_ext"
7158case "(($ac_try" in
7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7161esac
7162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007164 ac_status=$?
7165 grep -v '^ *+' conftest.er1 >conftest.err
7166 rm -f conftest.er1
7167 cat conftest.err >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007169 (exit $ac_status); } >/dev/null && {
7170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7171 test ! -s conftest.err
7172 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007173 ac_header_preproc=yes
7174else
7175 echo "$as_me: failed program was:" >&5
7176sed 's/^/| /' conftest.$ac_ext >&5
7177
7178 ac_header_preproc=no
7179fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007180
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007181rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007182{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7183echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007184
7185# So? What about this header?
7186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7187 yes:no: )
7188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7191echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7192 ac_header_preproc=yes
7193 ;;
7194 no:yes:* )
7195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7200echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7202echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7204echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7206echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007207
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007208 ;;
7209esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007210{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215 eval "$as_ac_Header=\$ac_header_preproc"
7216fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007217ac_res=`eval echo '${'$as_ac_Header'}'`
7218 { echo "$as_me:$LINENO: result: $ac_res" >&5
7219echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007220
7221fi
7222if test `eval echo '${'$as_ac_Header'}'` = yes; then
7223 cat >>confdefs.h <<_ACEOF
7224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7225_ACEOF
7226
7227fi
7228
7229done
7230
Theodore Ts'oe1052142006-10-21 21:46:47 -04007231 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7232echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007233 result=
7234 cat >conftest.$ac_ext <<_ACEOF
7235/* confdefs.h. */
7236_ACEOF
7237cat confdefs.h >>conftest.$ac_ext
7238cat >>conftest.$ac_ext <<_ACEOF
7239/* end confdefs.h. */
7240
7241#include <limits.h>
7242#if HAVE_STDINT_H
7243#include <stdint.h>
7244#endif
7245#ifdef SIZE_MAX
7246Found it
7247#endif
7248
7249_ACEOF
7250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7251 $EGREP "Found it" >/dev/null 2>&1; then
7252 result=yes
7253fi
7254rm -f conftest*
7255
7256 if test -z "$result"; then
7257 if test "$cross_compiling" = yes; then
7258 # Depending upon the size, compute the lo and hi bounds.
7259cat >conftest.$ac_ext <<_ACEOF
7260/* confdefs.h. */
7261_ACEOF
7262cat confdefs.h >>conftest.$ac_ext
7263cat >>conftest.$ac_ext <<_ACEOF
7264/* end confdefs.h. */
7265#include <stddef.h>
7266int
7267main ()
7268{
7269static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7270test_array [0] = 0
7271
7272 ;
7273 return 0;
7274}
7275_ACEOF
7276rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007277if { (ac_try="$ac_compile"
7278case "(($ac_try" in
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7281esac
7282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007289 (exit $ac_status); } && {
7290 test -z "$ac_c_werror_flag" ||
7291 test ! -s conftest.err
7292 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007293 ac_lo=0 ac_mid=0
7294 while :; do
7295 cat >conftest.$ac_ext <<_ACEOF
7296/* confdefs.h. */
7297_ACEOF
7298cat confdefs.h >>conftest.$ac_ext
7299cat >>conftest.$ac_ext <<_ACEOF
7300/* end confdefs.h. */
7301#include <stddef.h>
7302int
7303main ()
7304{
7305static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7306test_array [0] = 0
7307
7308 ;
7309 return 0;
7310}
7311_ACEOF
7312rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007313if { (ac_try="$ac_compile"
7314case "(($ac_try" in
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7317esac
7318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007320 ac_status=$?
7321 grep -v '^ *+' conftest.er1 >conftest.err
7322 rm -f conftest.er1
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007325 (exit $ac_status); } && {
7326 test -z "$ac_c_werror_flag" ||
7327 test ! -s conftest.err
7328 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007329 ac_hi=$ac_mid; break
7330else
7331 echo "$as_me: failed program was:" >&5
7332sed 's/^/| /' conftest.$ac_ext >&5
7333
Theodore Ts'oe1052142006-10-21 21:46:47 -04007334 ac_lo=`expr $ac_mid + 1`
7335 if test $ac_lo -le $ac_mid; then
7336 ac_lo= ac_hi=
7337 break
7338 fi
7339 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007340fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007341
7342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007343 done
7344else
7345 echo "$as_me: failed program was:" >&5
7346sed 's/^/| /' conftest.$ac_ext >&5
7347
Theodore Ts'oe1052142006-10-21 21:46:47 -04007348 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007349/* confdefs.h. */
7350_ACEOF
7351cat confdefs.h >>conftest.$ac_ext
7352cat >>conftest.$ac_ext <<_ACEOF
7353/* end confdefs.h. */
7354#include <stddef.h>
7355int
7356main ()
7357{
7358static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7359test_array [0] = 0
7360
7361 ;
7362 return 0;
7363}
7364_ACEOF
7365rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007366if { (ac_try="$ac_compile"
7367case "(($ac_try" in
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7370esac
7371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007373 ac_status=$?
7374 grep -v '^ *+' conftest.er1 >conftest.err
7375 rm -f conftest.er1
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007378 (exit $ac_status); } && {
7379 test -z "$ac_c_werror_flag" ||
7380 test ! -s conftest.err
7381 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007382 ac_hi=-1 ac_mid=-1
7383 while :; do
7384 cat >conftest.$ac_ext <<_ACEOF
7385/* confdefs.h. */
7386_ACEOF
7387cat confdefs.h >>conftest.$ac_ext
7388cat >>conftest.$ac_ext <<_ACEOF
7389/* end confdefs.h. */
7390#include <stddef.h>
7391int
7392main ()
7393{
7394static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7395test_array [0] = 0
7396
7397 ;
7398 return 0;
7399}
7400_ACEOF
7401rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007402if { (ac_try="$ac_compile"
7403case "(($ac_try" in
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7406esac
7407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007409 ac_status=$?
7410 grep -v '^ *+' conftest.er1 >conftest.err
7411 rm -f conftest.er1
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007414 (exit $ac_status); } && {
7415 test -z "$ac_c_werror_flag" ||
7416 test ! -s conftest.err
7417 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007418 ac_lo=$ac_mid; break
7419else
7420 echo "$as_me: failed program was:" >&5
7421sed 's/^/| /' conftest.$ac_ext >&5
7422
Theodore Ts'oe1052142006-10-21 21:46:47 -04007423 ac_hi=`expr '(' $ac_mid ')' - 1`
7424 if test $ac_mid -le $ac_hi; then
7425 ac_lo= ac_hi=
7426 break
7427 fi
7428 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007429fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007430
7431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007432 done
7433else
7434 echo "$as_me: failed program was:" >&5
7435sed 's/^/| /' conftest.$ac_ext >&5
7436
Theodore Ts'oe1052142006-10-21 21:46:47 -04007437 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007438fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007439
7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007441fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007442
7443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007444# Binary search between lo and hi bounds.
7445while test "x$ac_lo" != "x$ac_hi"; do
7446 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7447 cat >conftest.$ac_ext <<_ACEOF
7448/* confdefs.h. */
7449_ACEOF
7450cat confdefs.h >>conftest.$ac_ext
7451cat >>conftest.$ac_ext <<_ACEOF
7452/* end confdefs.h. */
7453#include <stddef.h>
7454int
7455main ()
7456{
7457static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7458test_array [0] = 0
7459
7460 ;
7461 return 0;
7462}
7463_ACEOF
7464rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007465if { (ac_try="$ac_compile"
7466case "(($ac_try" in
7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7469esac
7470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007472 ac_status=$?
7473 grep -v '^ *+' conftest.er1 >conftest.err
7474 rm -f conftest.er1
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007481 ac_hi=$ac_mid
7482else
7483 echo "$as_me: failed program was:" >&5
7484sed 's/^/| /' conftest.$ac_ext >&5
7485
Theodore Ts'oe1052142006-10-21 21:46:47 -04007486 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007487fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007488
7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007490done
7491case $ac_lo in
7492?*) res_hi=$ac_lo;;
7493'') result=? ;;
7494esac
7495else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007496 cat >conftest.$ac_ext <<_ACEOF
7497/* confdefs.h. */
7498_ACEOF
7499cat confdefs.h >>conftest.$ac_ext
7500cat >>conftest.$ac_ext <<_ACEOF
7501/* end confdefs.h. */
7502#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007503static long int longval () { return ~(size_t)0 / 10; }
7504static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007505#include <stdio.h>
7506#include <stdlib.h>
7507int
7508main ()
7509{
7510
7511 FILE *f = fopen ("conftest.val", "w");
7512 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007513 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007514 if ((~(size_t)0 / 10) < 0)
7515 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007516 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007517 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007518 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007519 fprintf (f, "%ld\n", i);
7520 }
7521 else
7522 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007523 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007524 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007525 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007526 fprintf (f, "%lu\n", i);
7527 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007528 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007529
7530 ;
7531 return 0;
7532}
7533_ACEOF
7534rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007535if { (ac_try="$ac_link"
7536case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539esac
7540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007542 ac_status=$?
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007545 { (case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
7549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 res_hi=`cat conftest.val`
7555else
7556 echo "$as_me: program exited with status $ac_status" >&5
7557echo "$as_me: failed program was:" >&5
7558sed 's/^/| /' conftest.$ac_ext >&5
7559
7560( exit $ac_status )
7561result=?
7562fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007563rm -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 -05007564fi
7565rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007567 if test "$cross_compiling" = yes; then
7568 # Depending upon the size, compute the lo and hi bounds.
7569cat >conftest.$ac_ext <<_ACEOF
7570/* confdefs.h. */
7571_ACEOF
7572cat confdefs.h >>conftest.$ac_ext
7573cat >>conftest.$ac_ext <<_ACEOF
7574/* end confdefs.h. */
7575#include <stddef.h>
7576int
7577main ()
7578{
7579static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7580test_array [0] = 0
7581
7582 ;
7583 return 0;
7584}
7585_ACEOF
7586rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007587if { (ac_try="$ac_compile"
7588case "(($ac_try" in
7589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7591esac
7592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007594 ac_status=$?
7595 grep -v '^ *+' conftest.er1 >conftest.err
7596 rm -f conftest.er1
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007599 (exit $ac_status); } && {
7600 test -z "$ac_c_werror_flag" ||
7601 test ! -s conftest.err
7602 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007603 ac_lo=0 ac_mid=0
7604 while :; do
7605 cat >conftest.$ac_ext <<_ACEOF
7606/* confdefs.h. */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
7610/* end confdefs.h. */
7611#include <stddef.h>
7612int
7613main ()
7614{
7615static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7616test_array [0] = 0
7617
7618 ;
7619 return 0;
7620}
7621_ACEOF
7622rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007623if { (ac_try="$ac_compile"
7624case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7627esac
7628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007639 ac_hi=$ac_mid; break
7640else
7641 echo "$as_me: failed program was:" >&5
7642sed 's/^/| /' conftest.$ac_ext >&5
7643
Theodore Ts'oe1052142006-10-21 21:46:47 -04007644 ac_lo=`expr $ac_mid + 1`
7645 if test $ac_lo -le $ac_mid; then
7646 ac_lo= ac_hi=
7647 break
7648 fi
7649 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007650fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007651
7652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007653 done
7654else
7655 echo "$as_me: failed program was:" >&5
7656sed 's/^/| /' conftest.$ac_ext >&5
7657
Theodore Ts'oe1052142006-10-21 21:46:47 -04007658 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007659/* confdefs.h. */
7660_ACEOF
7661cat confdefs.h >>conftest.$ac_ext
7662cat >>conftest.$ac_ext <<_ACEOF
7663/* end confdefs.h. */
7664#include <stddef.h>
7665int
7666main ()
7667{
7668static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7669test_array [0] = 0
7670
7671 ;
7672 return 0;
7673}
7674_ACEOF
7675rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007676if { (ac_try="$ac_compile"
7677case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680esac
7681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007692 ac_hi=-1 ac_mid=-1
7693 while :; do
7694 cat >conftest.$ac_ext <<_ACEOF
7695/* confdefs.h. */
7696_ACEOF
7697cat confdefs.h >>conftest.$ac_ext
7698cat >>conftest.$ac_ext <<_ACEOF
7699/* end confdefs.h. */
7700#include <stddef.h>
7701int
7702main ()
7703{
7704static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7705test_array [0] = 0
7706
7707 ;
7708 return 0;
7709}
7710_ACEOF
7711rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007712if { (ac_try="$ac_compile"
7713case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7716esac
7717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007724 (exit $ac_status); } && {
7725 test -z "$ac_c_werror_flag" ||
7726 test ! -s conftest.err
7727 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007728 ac_lo=$ac_mid; break
7729else
7730 echo "$as_me: failed program was:" >&5
7731sed 's/^/| /' conftest.$ac_ext >&5
7732
Theodore Ts'oe1052142006-10-21 21:46:47 -04007733 ac_hi=`expr '(' $ac_mid ')' - 1`
7734 if test $ac_mid -le $ac_hi; then
7735 ac_lo= ac_hi=
7736 break
7737 fi
7738 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007739fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007740
7741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007742 done
7743else
7744 echo "$as_me: failed program was:" >&5
7745sed 's/^/| /' conftest.$ac_ext >&5
7746
Theodore Ts'oe1052142006-10-21 21:46:47 -04007747 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007748fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007749
7750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007751fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007752
7753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007754# Binary search between lo and hi bounds.
7755while test "x$ac_lo" != "x$ac_hi"; do
7756 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7757 cat >conftest.$ac_ext <<_ACEOF
7758/* confdefs.h. */
7759_ACEOF
7760cat confdefs.h >>conftest.$ac_ext
7761cat >>conftest.$ac_ext <<_ACEOF
7762/* end confdefs.h. */
7763#include <stddef.h>
7764int
7765main ()
7766{
7767static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7768test_array [0] = 0
7769
7770 ;
7771 return 0;
7772}
7773_ACEOF
7774rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007775if { (ac_try="$ac_compile"
7776case "(($ac_try" in
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7779esac
7780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007791 ac_hi=$ac_mid
7792else
7793 echo "$as_me: failed program was:" >&5
7794sed 's/^/| /' conftest.$ac_ext >&5
7795
Theodore Ts'oe1052142006-10-21 21:46:47 -04007796 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007797fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007798
7799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007800done
7801case $ac_lo in
7802?*) res_lo=$ac_lo;;
7803'') result=? ;;
7804esac
7805else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007806 cat >conftest.$ac_ext <<_ACEOF
7807/* confdefs.h. */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h. */
7812#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007813static long int longval () { return ~(size_t)0 % 10; }
7814static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007815#include <stdio.h>
7816#include <stdlib.h>
7817int
7818main ()
7819{
7820
7821 FILE *f = fopen ("conftest.val", "w");
7822 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007823 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007824 if ((~(size_t)0 % 10) < 0)
7825 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007826 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007827 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007828 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007829 fprintf (f, "%ld\n", i);
7830 }
7831 else
7832 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007833 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007834 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007835 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007836 fprintf (f, "%lu\n", i);
7837 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007838 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007839
7840 ;
7841 return 0;
7842}
7843_ACEOF
7844rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007845if { (ac_try="$ac_link"
7846case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849esac
7850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007855 { (case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858esac
7859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 res_lo=`cat conftest.val`
7865else
7866 echo "$as_me: program exited with status $ac_status" >&5
7867echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870( exit $ac_status )
7871result=?
7872fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007873rm -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 -05007874fi
7875rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007877 if test "$cross_compiling" = yes; then
7878 # Depending upon the size, compute the lo and hi bounds.
7879cat >conftest.$ac_ext <<_ACEOF
7880/* confdefs.h. */
7881_ACEOF
7882cat confdefs.h >>conftest.$ac_ext
7883cat >>conftest.$ac_ext <<_ACEOF
7884/* end confdefs.h. */
7885#include <stddef.h>
7886int
7887main ()
7888{
7889static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7890test_array [0] = 0
7891
7892 ;
7893 return 0;
7894}
7895_ACEOF
7896rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007897if { (ac_try="$ac_compile"
7898case "(($ac_try" in
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7901esac
7902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007913 ac_lo=0 ac_mid=0
7914 while :; do
7915 cat >conftest.$ac_ext <<_ACEOF
7916/* confdefs.h. */
7917_ACEOF
7918cat confdefs.h >>conftest.$ac_ext
7919cat >>conftest.$ac_ext <<_ACEOF
7920/* end confdefs.h. */
7921#include <stddef.h>
7922int
7923main ()
7924{
7925static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7926test_array [0] = 0
7927
7928 ;
7929 return 0;
7930}
7931_ACEOF
7932rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007933if { (ac_try="$ac_compile"
7934case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7937esac
7938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007945 (exit $ac_status); } && {
7946 test -z "$ac_c_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007949 ac_hi=$ac_mid; break
7950else
7951 echo "$as_me: failed program was:" >&5
7952sed 's/^/| /' conftest.$ac_ext >&5
7953
Theodore Ts'oe1052142006-10-21 21:46:47 -04007954 ac_lo=`expr $ac_mid + 1`
7955 if test $ac_lo -le $ac_mid; then
7956 ac_lo= ac_hi=
7957 break
7958 fi
7959 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007960fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007961
7962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007963 done
7964else
7965 echo "$as_me: failed program was:" >&5
7966sed 's/^/| /' conftest.$ac_ext >&5
7967
Theodore Ts'oe1052142006-10-21 21:46:47 -04007968 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007969/* confdefs.h. */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
7973/* end confdefs.h. */
7974#include <stddef.h>
7975int
7976main ()
7977{
7978static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7979test_array [0] = 0
7980
7981 ;
7982 return 0;
7983}
7984_ACEOF
7985rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007986if { (ac_try="$ac_compile"
7987case "(($ac_try" in
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7990esac
7991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007993 ac_status=$?
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008002 ac_hi=-1 ac_mid=-1
8003 while :; do
8004 cat >conftest.$ac_ext <<_ACEOF
8005/* confdefs.h. */
8006_ACEOF
8007cat confdefs.h >>conftest.$ac_ext
8008cat >>conftest.$ac_ext <<_ACEOF
8009/* end confdefs.h. */
8010#include <stddef.h>
8011int
8012main ()
8013{
8014static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8015test_array [0] = 0
8016
8017 ;
8018 return 0;
8019}
8020_ACEOF
8021rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008022if { (ac_try="$ac_compile"
8023case "(($ac_try" in
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8026esac
8027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008034 (exit $ac_status); } && {
8035 test -z "$ac_c_werror_flag" ||
8036 test ! -s conftest.err
8037 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008038 ac_lo=$ac_mid; break
8039else
8040 echo "$as_me: failed program was:" >&5
8041sed 's/^/| /' conftest.$ac_ext >&5
8042
Theodore Ts'oe1052142006-10-21 21:46:47 -04008043 ac_hi=`expr '(' $ac_mid ')' - 1`
8044 if test $ac_mid -le $ac_hi; then
8045 ac_lo= ac_hi=
8046 break
8047 fi
8048 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008049fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008050
8051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008052 done
8053else
8054 echo "$as_me: failed program was:" >&5
8055sed 's/^/| /' conftest.$ac_ext >&5
8056
Theodore Ts'oe1052142006-10-21 21:46:47 -04008057 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008058fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008059
8060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008061fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008062
8063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008064# Binary search between lo and hi bounds.
8065while test "x$ac_lo" != "x$ac_hi"; do
8066 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8067 cat >conftest.$ac_ext <<_ACEOF
8068/* confdefs.h. */
8069_ACEOF
8070cat confdefs.h >>conftest.$ac_ext
8071cat >>conftest.$ac_ext <<_ACEOF
8072/* end confdefs.h. */
8073#include <stddef.h>
8074int
8075main ()
8076{
8077static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8078test_array [0] = 0
8079
8080 ;
8081 return 0;
8082}
8083_ACEOF
8084rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008085if { (ac_try="$ac_compile"
8086case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089esac
8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008101 ac_hi=$ac_mid
8102else
8103 echo "$as_me: failed program was:" >&5
8104sed 's/^/| /' conftest.$ac_ext >&5
8105
Theodore Ts'oe1052142006-10-21 21:46:47 -04008106 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008107fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008108
8109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008110done
8111case $ac_lo in
8112?*) fits_in_uint=$ac_lo;;
8113'') result=? ;;
8114esac
8115else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008116 cat >conftest.$ac_ext <<_ACEOF
8117/* confdefs.h. */
8118_ACEOF
8119cat confdefs.h >>conftest.$ac_ext
8120cat >>conftest.$ac_ext <<_ACEOF
8121/* end confdefs.h. */
8122#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008123static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8124static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008125#include <stdio.h>
8126#include <stdlib.h>
8127int
8128main ()
8129{
8130
8131 FILE *f = fopen ("conftest.val", "w");
8132 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008133 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008134 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8135 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008136 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008137 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008138 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008139 fprintf (f, "%ld\n", i);
8140 }
8141 else
8142 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008143 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008144 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008145 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008146 fprintf (f, "%lu\n", i);
8147 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008148 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008149
8150 ;
8151 return 0;
8152}
8153_ACEOF
8154rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008155if { (ac_try="$ac_link"
8156case "(($ac_try" in
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8159esac
8160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008162 ac_status=$?
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008165 { (case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8168esac
8169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 fits_in_uint=`cat conftest.val`
8175else
8176 echo "$as_me: program exited with status $ac_status" >&5
8177echo "$as_me: failed program was:" >&5
8178sed 's/^/| /' conftest.$ac_ext >&5
8179
8180( exit $ac_status )
8181result=?
8182fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008183rm -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 -05008184fi
8185rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008186
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008187 if test "$fits_in_uint" = 1; then
8188 cat >conftest.$ac_ext <<_ACEOF
8189/* confdefs.h. */
8190_ACEOF
8191cat confdefs.h >>conftest.$ac_ext
8192cat >>conftest.$ac_ext <<_ACEOF
8193/* end confdefs.h. */
8194#include <stddef.h>
8195 extern size_t foo;
8196 extern unsigned long foo;
8197
8198int
8199main ()
8200{
8201
8202 ;
8203 return 0;
8204}
8205_ACEOF
8206rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008207if { (ac_try="$ac_compile"
8208case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8211esac
8212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008214 ac_status=$?
8215 grep -v '^ *+' conftest.er1 >conftest.err
8216 rm -f conftest.er1
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008219 (exit $ac_status); } && {
8220 test -z "$ac_c_werror_flag" ||
8221 test ! -s conftest.err
8222 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008223 fits_in_uint=0
8224else
8225 echo "$as_me: failed program was:" >&5
8226sed 's/^/| /' conftest.$ac_ext >&5
8227
Theodore Ts'oe1052142006-10-21 21:46:47 -04008228
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008229fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008230
8231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008232 fi
8233 if test -z "$result"; then
8234 if test "$fits_in_uint" = 1; then
8235 result="$res_hi$res_lo"U
8236 else
8237 result="$res_hi$res_lo"UL
8238 fi
8239 else
8240 result='~(size_t)0'
8241 fi
8242 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008243 { echo "$as_me:$LINENO: result: $result" >&5
8244echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008245 if test "$result" != yes; then
8246
8247cat >>confdefs.h <<_ACEOF
8248#define SIZE_MAX $result
8249_ACEOF
8250
8251 fi
8252
8253
8254
8255
8256for ac_header in stdint.h
8257do
8258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008263 echo $ECHO_N "(cached) $ECHO_C" >&6
8264fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008265ac_res=`eval echo '${'$as_ac_Header'}'`
8266 { echo "$as_me:$LINENO: result: $ac_res" >&5
8267echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008268else
8269 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008270{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8271echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008272cat >conftest.$ac_ext <<_ACEOF
8273/* confdefs.h. */
8274_ACEOF
8275cat confdefs.h >>conftest.$ac_ext
8276cat >>conftest.$ac_ext <<_ACEOF
8277/* end confdefs.h. */
8278$ac_includes_default
8279#include <$ac_header>
8280_ACEOF
8281rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008282if { (ac_try="$ac_compile"
8283case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8286esac
8287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008289 ac_status=$?
8290 grep -v '^ *+' conftest.er1 >conftest.err
8291 rm -f conftest.er1
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008294 (exit $ac_status); } && {
8295 test -z "$ac_c_werror_flag" ||
8296 test ! -s conftest.err
8297 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008298 ac_header_compiler=yes
8299else
8300 echo "$as_me: failed program was:" >&5
8301sed 's/^/| /' conftest.$ac_ext >&5
8302
Theodore Ts'oe1052142006-10-21 21:46:47 -04008303 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008304fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008305
8306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8308echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008309
8310# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008311{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008313cat >conftest.$ac_ext <<_ACEOF
8314/* confdefs.h. */
8315_ACEOF
8316cat confdefs.h >>conftest.$ac_ext
8317cat >>conftest.$ac_ext <<_ACEOF
8318/* end confdefs.h. */
8319#include <$ac_header>
8320_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008321if { (ac_try="$ac_cpp conftest.$ac_ext"
8322case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8325esac
8326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008333 (exit $ac_status); } >/dev/null && {
8334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008337 ac_header_preproc=yes
8338else
8339 echo "$as_me: failed program was:" >&5
8340sed 's/^/| /' conftest.$ac_ext >&5
8341
8342 ac_header_preproc=no
8343fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008344
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008345rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008346{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8347echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008348
8349# So? What about this header?
8350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8351 yes:no: )
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8356 ac_header_preproc=yes
8357 ;;
8358 no:yes:* )
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8362echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8366echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008371
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008372 ;;
8373esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008374{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378else
8379 eval "$as_ac_Header=\$ac_header_preproc"
8380fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008381ac_res=`eval echo '${'$as_ac_Header'}'`
8382 { echo "$as_me:$LINENO: result: $ac_res" >&5
8383echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008384
8385fi
8386if test `eval echo '${'$as_ac_Header'}'` = yes; then
8387 cat >>confdefs.h <<_ACEOF
8388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8389_ACEOF
8390
8391fi
8392
8393done
8394
8395
8396
8397 if test "X$prefix" = "XNONE"; then
8398 acl_final_prefix="$ac_default_prefix"
8399 else
8400 acl_final_prefix="$prefix"
8401 fi
8402 if test "X$exec_prefix" = "XNONE"; then
8403 acl_final_exec_prefix='${prefix}'
8404 else
8405 acl_final_exec_prefix="$exec_prefix"
8406 fi
8407 acl_save_prefix="$prefix"
8408 prefix="$acl_final_prefix"
8409 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8410 prefix="$acl_save_prefix"
8411
8412
Theodore Ts'oe1052142006-10-21 21:46:47 -04008413# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008414if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008415 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008416else
8417 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008418fi
8419
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008420# Prepare PATH_SEPARATOR.
8421# The user is always right.
8422if test "${PATH_SEPARATOR+set}" != set; then
8423 echo "#! /bin/sh" >conf$$.sh
8424 echo "exit 0" >>conf$$.sh
8425 chmod +x conf$$.sh
8426 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8427 PATH_SEPARATOR=';'
8428 else
8429 PATH_SEPARATOR=:
8430 fi
8431 rm -f conf$$.sh
8432fi
8433ac_prog=ld
8434if test "$GCC" = yes; then
8435 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008436 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8437echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008438 case $host in
8439 *-*-mingw*)
8440 # gcc leaves a trailing carriage return which upsets mingw
8441 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8442 *)
8443 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8444 esac
8445 case $ac_prog in
8446 # Accept absolute paths.
8447 [\\/]* | [A-Za-z]:[\\/]*)
8448 re_direlt='/[^/][^/]*/\.\./'
8449 # Canonicalize the path of ld
8450 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8451 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8452 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8453 done
8454 test -z "$LD" && LD="$ac_prog"
8455 ;;
8456 "")
8457 # If it fails, then pretend we aren't using GCC.
8458 ac_prog=ld
8459 ;;
8460 *)
8461 # If it is relative, then search for the first ld in PATH.
8462 with_gnu_ld=unknown
8463 ;;
8464 esac
8465elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008466 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8467echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008468else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008469 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8470echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008471fi
8472if test "${acl_cv_path_LD+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474else
8475 if test -z "$LD"; then
8476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8477 for ac_dir in $PATH; do
8478 test -z "$ac_dir" && ac_dir=.
8479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8480 acl_cv_path_LD="$ac_dir/$ac_prog"
8481 # Check to see if the program is GNU ld. I'd rather use --version,
8482 # but apparently some GNU ld's only accept -v.
8483 # Break only if it was the GNU/non-GNU ld that we prefer.
8484 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8485 *GNU* | *'with BFD'*)
8486 test "$with_gnu_ld" != no && break ;;
8487 *)
8488 test "$with_gnu_ld" != yes && break ;;
8489 esac
8490 fi
8491 done
8492 IFS="$ac_save_ifs"
8493else
8494 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8495fi
8496fi
8497
8498LD="$acl_cv_path_LD"
8499if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008500 { echo "$as_me:$LINENO: result: $LD" >&5
8501echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008502else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008503 { echo "$as_me:$LINENO: result: no" >&5
8504echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008505fi
8506test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8507echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8508 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008509{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8510echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008511if test "${acl_cv_prog_gnu_ld+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8513else
8514 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8515case `$LD -v 2>&1 </dev/null` in
8516*GNU* | *'with BFD'*)
8517 acl_cv_prog_gnu_ld=yes ;;
8518*)
8519 acl_cv_prog_gnu_ld=no ;;
8520esac
8521fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008522{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8523echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008524with_gnu_ld=$acl_cv_prog_gnu_ld
8525
8526
8527
Theodore Ts'oe1052142006-10-21 21:46:47 -04008528 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8529echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008530if test "${acl_cv_rpath+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532else
8533
8534 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8535 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8536 . ./conftest.sh
8537 rm -f ./conftest.sh
8538 acl_cv_rpath=done
8539
8540fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008541{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8542echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008543 wl="$acl_cv_wl"
8544 libext="$acl_cv_libext"
8545 shlibext="$acl_cv_shlibext"
8546 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8547 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8548 hardcode_direct="$acl_cv_hardcode_direct"
8549 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008550 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008551if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008552 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008553else
8554 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008555fi
8556
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008557
8558
8559
8560
8561
8562
8563
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008564 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008565
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008566 acl_save_prefix="$prefix"
8567 prefix="$acl_final_prefix"
8568 acl_save_exec_prefix="$exec_prefix"
8569 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008570
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008571 eval additional_includedir=\"$includedir\"
8572 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008573
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008574 exec_prefix="$acl_save_exec_prefix"
8575 prefix="$acl_save_prefix"
8576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008577
Theodore Ts'oe1052142006-10-21 21:46:47 -04008578# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008579if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008580 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008581 if test "X$withval" = "Xno"; then
8582 use_additional=no
8583 else
8584 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008585
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008586 acl_save_prefix="$prefix"
8587 prefix="$acl_final_prefix"
8588 acl_save_exec_prefix="$exec_prefix"
8589 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008590
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008591 eval additional_includedir=\"$includedir\"
8592 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008594 exec_prefix="$acl_save_exec_prefix"
8595 prefix="$acl_save_prefix"
8596
8597 else
8598 additional_includedir="$withval/include"
8599 additional_libdir="$withval/lib"
8600 fi
8601 fi
8602
Theodore Ts'oe1052142006-10-21 21:46:47 -04008603fi
8604
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008605 LIBICONV=
8606 LTLIBICONV=
8607 INCICONV=
8608 rpathdirs=
8609 ltrpathdirs=
8610 names_already_handled=
8611 names_next_round='iconv '
8612 while test -n "$names_next_round"; do
8613 names_this_round="$names_next_round"
8614 names_next_round=
8615 for name in $names_this_round; do
8616 already_handled=
8617 for n in $names_already_handled; do
8618 if test "$n" = "$name"; then
8619 already_handled=yes
8620 break
8621 fi
8622 done
8623 if test -z "$already_handled"; then
8624 names_already_handled="$names_already_handled $name"
8625 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8626 eval value=\"\$HAVE_LIB$uppername\"
8627 if test -n "$value"; then
8628 if test "$value" = yes; then
8629 eval value=\"\$LIB$uppername\"
8630 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8631 eval value=\"\$LTLIB$uppername\"
8632 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8633 else
8634 :
8635 fi
8636 else
8637 found_dir=
8638 found_la=
8639 found_so=
8640 found_a=
8641 if test $use_additional = yes; then
8642 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8643 found_dir="$additional_libdir"
8644 found_so="$additional_libdir/lib$name.$shlibext"
8645 if test -f "$additional_libdir/lib$name.la"; then
8646 found_la="$additional_libdir/lib$name.la"
8647 fi
8648 else
8649 if test -f "$additional_libdir/lib$name.$libext"; then
8650 found_dir="$additional_libdir"
8651 found_a="$additional_libdir/lib$name.$libext"
8652 if test -f "$additional_libdir/lib$name.la"; then
8653 found_la="$additional_libdir/lib$name.la"
8654 fi
8655 fi
8656 fi
8657 fi
8658 if test "X$found_dir" = "X"; then
8659 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008660
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008661 acl_save_prefix="$prefix"
8662 prefix="$acl_final_prefix"
8663 acl_save_exec_prefix="$exec_prefix"
8664 exec_prefix="$acl_final_exec_prefix"
8665 eval x=\"$x\"
8666 exec_prefix="$acl_save_exec_prefix"
8667 prefix="$acl_save_prefix"
8668
8669 case "$x" in
8670 -L*)
8671 dir=`echo "X$x" | sed -e 's/^X-L//'`
8672 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8673 found_dir="$dir"
8674 found_so="$dir/lib$name.$shlibext"
8675 if test -f "$dir/lib$name.la"; then
8676 found_la="$dir/lib$name.la"
8677 fi
8678 else
8679 if test -f "$dir/lib$name.$libext"; then
8680 found_dir="$dir"
8681 found_a="$dir/lib$name.$libext"
8682 if test -f "$dir/lib$name.la"; then
8683 found_la="$dir/lib$name.la"
8684 fi
8685 fi
8686 fi
8687 ;;
8688 esac
8689 if test "X$found_dir" != "X"; then
8690 break
8691 fi
8692 done
8693 fi
8694 if test "X$found_dir" != "X"; then
8695 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8696 if test "X$found_so" != "X"; then
8697 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8698 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8699 else
8700 haveit=
8701 for x in $ltrpathdirs; do
8702 if test "X$x" = "X$found_dir"; then
8703 haveit=yes
8704 break
8705 fi
8706 done
8707 if test -z "$haveit"; then
8708 ltrpathdirs="$ltrpathdirs $found_dir"
8709 fi
8710 if test "$hardcode_direct" = yes; then
8711 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8712 else
8713 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8714 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8715 haveit=
8716 for x in $rpathdirs; do
8717 if test "X$x" = "X$found_dir"; then
8718 haveit=yes
8719 break
8720 fi
8721 done
8722 if test -z "$haveit"; then
8723 rpathdirs="$rpathdirs $found_dir"
8724 fi
8725 else
8726 haveit=
8727 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008728
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008729 acl_save_prefix="$prefix"
8730 prefix="$acl_final_prefix"
8731 acl_save_exec_prefix="$exec_prefix"
8732 exec_prefix="$acl_final_exec_prefix"
8733 eval x=\"$x\"
8734 exec_prefix="$acl_save_exec_prefix"
8735 prefix="$acl_save_prefix"
8736
8737 if test "X$x" = "X-L$found_dir"; then
8738 haveit=yes
8739 break
8740 fi
8741 done
8742 if test -z "$haveit"; then
8743 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8744 fi
8745 if test "$hardcode_minus_L" != no; then
8746 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8747 else
8748 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8749 fi
8750 fi
8751 fi
8752 fi
8753 else
8754 if test "X$found_a" != "X"; then
8755 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8756 else
8757 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8758 fi
8759 fi
8760 additional_includedir=
8761 case "$found_dir" in
8762 */lib | */lib/)
8763 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8764 additional_includedir="$basedir/include"
8765 ;;
8766 esac
8767 if test "X$additional_includedir" != "X"; then
8768 if test "X$additional_includedir" != "X/usr/include"; then
8769 haveit=
8770 if test "X$additional_includedir" = "X/usr/local/include"; then
8771 if test -n "$GCC"; then
8772 case $host_os in
8773 linux*) haveit=yes;;
8774 esac
8775 fi
8776 fi
8777 if test -z "$haveit"; then
8778 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008779
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008780 acl_save_prefix="$prefix"
8781 prefix="$acl_final_prefix"
8782 acl_save_exec_prefix="$exec_prefix"
8783 exec_prefix="$acl_final_exec_prefix"
8784 eval x=\"$x\"
8785 exec_prefix="$acl_save_exec_prefix"
8786 prefix="$acl_save_prefix"
8787
8788 if test "X$x" = "X-I$additional_includedir"; then
8789 haveit=yes
8790 break
8791 fi
8792 done
8793 if test -z "$haveit"; then
8794 if test -d "$additional_includedir"; then
8795 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8796 fi
8797 fi
8798 fi
8799 fi
8800 fi
8801 if test -n "$found_la"; then
8802 save_libdir="$libdir"
8803 case "$found_la" in
8804 */* | *\\*) . "$found_la" ;;
8805 *) . "./$found_la" ;;
8806 esac
8807 libdir="$save_libdir"
8808 for dep in $dependency_libs; do
8809 case "$dep" in
8810 -L*)
8811 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8812 if test "X$additional_libdir" != "X/usr/lib"; then
8813 haveit=
8814 if test "X$additional_libdir" = "X/usr/local/lib"; then
8815 if test -n "$GCC"; then
8816 case $host_os in
8817 linux*) haveit=yes;;
8818 esac
8819 fi
8820 fi
8821 if test -z "$haveit"; then
8822 haveit=
8823 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008824
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008825 acl_save_prefix="$prefix"
8826 prefix="$acl_final_prefix"
8827 acl_save_exec_prefix="$exec_prefix"
8828 exec_prefix="$acl_final_exec_prefix"
8829 eval x=\"$x\"
8830 exec_prefix="$acl_save_exec_prefix"
8831 prefix="$acl_save_prefix"
8832
8833 if test "X$x" = "X-L$additional_libdir"; then
8834 haveit=yes
8835 break
8836 fi
8837 done
8838 if test -z "$haveit"; then
8839 if test -d "$additional_libdir"; then
8840 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8841 fi
8842 fi
8843 haveit=
8844 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008845
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008846 acl_save_prefix="$prefix"
8847 prefix="$acl_final_prefix"
8848 acl_save_exec_prefix="$exec_prefix"
8849 exec_prefix="$acl_final_exec_prefix"
8850 eval x=\"$x\"
8851 exec_prefix="$acl_save_exec_prefix"
8852 prefix="$acl_save_prefix"
8853
8854 if test "X$x" = "X-L$additional_libdir"; then
8855 haveit=yes
8856 break
8857 fi
8858 done
8859 if test -z "$haveit"; then
8860 if test -d "$additional_libdir"; then
8861 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8862 fi
8863 fi
8864 fi
8865 fi
8866 ;;
8867 -R*)
8868 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8869 if test "$enable_rpath" != no; then
8870 haveit=
8871 for x in $rpathdirs; do
8872 if test "X$x" = "X$dir"; then
8873 haveit=yes
8874 break
8875 fi
8876 done
8877 if test -z "$haveit"; then
8878 rpathdirs="$rpathdirs $dir"
8879 fi
8880 haveit=
8881 for x in $ltrpathdirs; do
8882 if test "X$x" = "X$dir"; then
8883 haveit=yes
8884 break
8885 fi
8886 done
8887 if test -z "$haveit"; then
8888 ltrpathdirs="$ltrpathdirs $dir"
8889 fi
8890 fi
8891 ;;
8892 -l*)
8893 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8894 ;;
8895 *.la)
8896 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8897 ;;
8898 *)
8899 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8900 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8901 ;;
8902 esac
8903 done
8904 fi
8905 else
8906 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8907 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8908 fi
8909 fi
8910 fi
8911 done
8912 done
8913 if test "X$rpathdirs" != "X"; then
8914 if test -n "$hardcode_libdir_separator"; then
8915 alldirs=
8916 for found_dir in $rpathdirs; do
8917 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8918 done
8919 acl_save_libdir="$libdir"
8920 libdir="$alldirs"
8921 eval flag=\"$hardcode_libdir_flag_spec\"
8922 libdir="$acl_save_libdir"
8923 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8924 else
8925 for found_dir in $rpathdirs; do
8926 acl_save_libdir="$libdir"
8927 libdir="$found_dir"
8928 eval flag=\"$hardcode_libdir_flag_spec\"
8929 libdir="$acl_save_libdir"
8930 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8931 done
8932 fi
8933 fi
8934 if test "X$ltrpathdirs" != "X"; then
8935 for found_dir in $ltrpathdirs; do
8936 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8937 done
8938 fi
8939
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008940
8941
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008942
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008943
8944
8945
8946
Theodore Ts'oe1052142006-10-21 21:46:47 -04008947 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8948echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008949if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008951else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008952 cat >conftest.$ac_ext <<_ACEOF
8953/* confdefs.h. */
8954_ACEOF
8955cat confdefs.h >>conftest.$ac_ext
8956cat >>conftest.$ac_ext <<_ACEOF
8957/* end confdefs.h. */
8958$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008959typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008960int
8961main ()
8962{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008963if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008964 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008965if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008966 return 0;
8967 ;
8968 return 0;
8969}
8970_ACEOF
8971rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008972if { (ac_try="$ac_compile"
8973case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976esac
8977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008984 (exit $ac_status); } && {
8985 test -z "$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008988 ac_cv_type_ptrdiff_t=yes
8989else
8990 echo "$as_me: failed program was:" >&5
8991sed 's/^/| /' conftest.$ac_ext >&5
8992
Theodore Ts'oe1052142006-10-21 21:46:47 -04008993 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008994fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008995
8996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008997fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008998{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8999echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009000if test $ac_cv_type_ptrdiff_t = yes; then
9001 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009003
9004cat >>confdefs.h <<\_ACEOF
9005#define ptrdiff_t long
9006_ACEOF
9007
9008
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009009fi
9010
9011
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009012
9013
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009014
9015
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009016
9017
9018
9019
9020
9021for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009022stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009023do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009029 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009030fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009031ac_res=`eval echo '${'$as_ac_Header'}'`
9032 { echo "$as_me:$LINENO: result: $ac_res" >&5
9033echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009034else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009035 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009036{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009038cat >conftest.$ac_ext <<_ACEOF
9039/* confdefs.h. */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
9043/* end confdefs.h. */
9044$ac_includes_default
9045#include <$ac_header>
9046_ACEOF
9047rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009048if { (ac_try="$ac_compile"
9049case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052esac
9053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009055 ac_status=$?
9056 grep -v '^ *+' conftest.er1 >conftest.err
9057 rm -f conftest.er1
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009060 (exit $ac_status); } && {
9061 test -z "$ac_c_werror_flag" ||
9062 test ! -s conftest.err
9063 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009064 ac_header_compiler=yes
9065else
9066 echo "$as_me: failed program was:" >&5
9067sed 's/^/| /' conftest.$ac_ext >&5
9068
Theodore Ts'oe1052142006-10-21 21:46:47 -04009069 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009070fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009071
9072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9074echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009075
9076# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009077{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9078echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009079cat >conftest.$ac_ext <<_ACEOF
9080/* confdefs.h. */
9081_ACEOF
9082cat confdefs.h >>conftest.$ac_ext
9083cat >>conftest.$ac_ext <<_ACEOF
9084/* end confdefs.h. */
9085#include <$ac_header>
9086_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009087if { (ac_try="$ac_cpp conftest.$ac_ext"
9088case "(($ac_try" in
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9091esac
9092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009094 ac_status=$?
9095 grep -v '^ *+' conftest.er1 >conftest.err
9096 rm -f conftest.er1
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009099 (exit $ac_status); } >/dev/null && {
9100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9101 test ! -s conftest.err
9102 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009103 ac_header_preproc=yes
9104else
9105 echo "$as_me: failed program was:" >&5
9106sed 's/^/| /' conftest.$ac_ext >&5
9107
9108 ac_header_preproc=no
9109fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009110
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009111rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009112{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9113echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009114
9115# So? What about this header?
9116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9117 yes:no: )
9118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9119echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9121echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9122 ac_header_preproc=yes
9123 ;;
9124 no:yes:* )
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9126echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9128echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9130echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9132echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9134echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9136echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009137
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009138 ;;
9139esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009140{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009143 echo $ECHO_N "(cached) $ECHO_C" >&6
9144else
9145 eval "$as_ac_Header=\$ac_header_preproc"
9146fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009147ac_res=`eval echo '${'$as_ac_Header'}'`
9148 { echo "$as_me:$LINENO: result: $ac_res" >&5
9149echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009150
9151fi
9152if test `eval echo '${'$as_ac_Header'}'` = yes; then
9153 cat >>confdefs.h <<_ACEOF
9154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9155_ACEOF
9156
9157fi
9158
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009159done
9160
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9185mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9186strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9187__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009188do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009190{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9192if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009193 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009194else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009195 cat >conftest.$ac_ext <<_ACEOF
9196/* confdefs.h. */
9197_ACEOF
9198cat confdefs.h >>conftest.$ac_ext
9199cat >>conftest.$ac_ext <<_ACEOF
9200/* end confdefs.h. */
9201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9203#define $ac_func innocuous_$ac_func
9204
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009205/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009206 which can conflict with char $ac_func (); below.
9207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9208 <limits.h> exists even on freestanding compilers. */
9209
9210#ifdef __STDC__
9211# include <limits.h>
9212#else
9213# include <assert.h>
9214#endif
9215
9216#undef $ac_func
9217
Theodore Ts'oe1052142006-10-21 21:46:47 -04009218/* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009221#ifdef __cplusplus
9222extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009223#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009224char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009225/* The GNU C library defines this for functions which it implements
9226 to always fail with ENOSYS. Some functions are actually named
9227 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009228#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009229choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009230#endif
9231
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009232int
9233main ()
9234{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009235return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009236 ;
9237 return 0;
9238}
9239_ACEOF
9240rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009241if { (ac_try="$ac_link"
9242case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245esac
9246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009253 (exit $ac_status); } && {
9254 test -z "$ac_c_werror_flag" ||
9255 test ! -s conftest.err
9256 } && test -s conftest$ac_exeext &&
9257 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009258 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009259else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009260 echo "$as_me: failed program was:" >&5
9261sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009262
Theodore Ts'oe1052142006-10-21 21:46:47 -04009263 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009264fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009265
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009267 conftest$ac_exeext conftest.$ac_ext
9268fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009269ac_res=`eval echo '${'$as_ac_var'}'`
9270 { echo "$as_me:$LINENO: result: $ac_res" >&5
9271echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009272if test `eval echo '${'$as_ac_var'}'` = yes; then
9273 cat >>confdefs.h <<_ACEOF
9274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9275_ACEOF
9276
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009277fi
9278done
9279
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009280
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009281
Theodore Ts'oe1052142006-10-21 21:46:47 -04009282 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9283echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009284if test "${ac_cv_have_decl__snprintf+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286else
9287 cat >conftest.$ac_ext <<_ACEOF
9288/* confdefs.h. */
9289_ACEOF
9290cat confdefs.h >>conftest.$ac_ext
9291cat >>conftest.$ac_ext <<_ACEOF
9292/* end confdefs.h. */
9293#include <stdio.h>
9294int
9295main ()
9296{
9297
9298#ifndef _snprintf
9299 char *p = (char *) _snprintf;
9300#endif
9301
9302 ;
9303 return 0;
9304}
9305_ACEOF
9306rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009307if { (ac_try="$ac_compile"
9308case "(($ac_try" in
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9311esac
9312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009314 ac_status=$?
9315 grep -v '^ *+' conftest.er1 >conftest.err
9316 rm -f conftest.er1
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009319 (exit $ac_status); } && {
9320 test -z "$ac_c_werror_flag" ||
9321 test ! -s conftest.err
9322 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009323 ac_cv_have_decl__snprintf=yes
9324else
9325 echo "$as_me: failed program was:" >&5
9326sed 's/^/| /' conftest.$ac_ext >&5
9327
Theodore Ts'oe1052142006-10-21 21:46:47 -04009328 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009329fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009330
9331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009332fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009333{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9334echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009335 if test $ac_cv_have_decl__snprintf = yes; then
9336 gt_value=1
9337 else
9338 gt_value=0
9339 fi
9340
9341cat >>confdefs.h <<_ACEOF
9342#define HAVE_DECL__SNPRINTF $gt_value
9343_ACEOF
9344
9345
9346
Theodore Ts'oe1052142006-10-21 21:46:47 -04009347 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9348echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009349if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351else
9352 cat >conftest.$ac_ext <<_ACEOF
9353/* confdefs.h. */
9354_ACEOF
9355cat confdefs.h >>conftest.$ac_ext
9356cat >>conftest.$ac_ext <<_ACEOF
9357/* end confdefs.h. */
9358#include <stdio.h>
9359int
9360main ()
9361{
9362
9363#ifndef _snwprintf
9364 char *p = (char *) _snwprintf;
9365#endif
9366
9367 ;
9368 return 0;
9369}
9370_ACEOF
9371rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009372if { (ac_try="$ac_compile"
9373case "(($ac_try" in
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9376esac
9377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009379 ac_status=$?
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009388 ac_cv_have_decl__snwprintf=yes
9389else
9390 echo "$as_me: failed program was:" >&5
9391sed 's/^/| /' conftest.$ac_ext >&5
9392
Theodore Ts'oe1052142006-10-21 21:46:47 -04009393 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009394fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009395
9396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009397fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009398{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9399echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009400 if test $ac_cv_have_decl__snwprintf = yes; then
9401 gt_value=1
9402 else
9403 gt_value=0
9404 fi
9405
9406cat >>confdefs.h <<_ACEOF
9407#define HAVE_DECL__SNWPRINTF $gt_value
9408_ACEOF
9409
9410
9411
9412
Theodore Ts'oe1052142006-10-21 21:46:47 -04009413 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9414echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009415if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417else
9418 cat >conftest.$ac_ext <<_ACEOF
9419/* confdefs.h. */
9420_ACEOF
9421cat confdefs.h >>conftest.$ac_ext
9422cat >>conftest.$ac_ext <<_ACEOF
9423/* end confdefs.h. */
9424#include <stdio.h>
9425int
9426main ()
9427{
9428
9429#ifndef feof_unlocked
9430 char *p = (char *) feof_unlocked;
9431#endif
9432
9433 ;
9434 return 0;
9435}
9436_ACEOF
9437rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009438if { (ac_try="$ac_compile"
9439case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442esac
9443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009445 ac_status=$?
9446 grep -v '^ *+' conftest.er1 >conftest.err
9447 rm -f conftest.er1
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009450 (exit $ac_status); } && {
9451 test -z "$ac_c_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009454 ac_cv_have_decl_feof_unlocked=yes
9455else
9456 echo "$as_me: failed program was:" >&5
9457sed 's/^/| /' conftest.$ac_ext >&5
9458
Theodore Ts'oe1052142006-10-21 21:46:47 -04009459 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009460fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009461
9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009463fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009464{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9465echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009466 if test $ac_cv_have_decl_feof_unlocked = yes; then
9467 gt_value=1
9468 else
9469 gt_value=0
9470 fi
9471
9472cat >>confdefs.h <<_ACEOF
9473#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9474_ACEOF
9475
9476
9477
Theodore Ts'oe1052142006-10-21 21:46:47 -04009478 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9479echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009480if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9482else
9483 cat >conftest.$ac_ext <<_ACEOF
9484/* confdefs.h. */
9485_ACEOF
9486cat confdefs.h >>conftest.$ac_ext
9487cat >>conftest.$ac_ext <<_ACEOF
9488/* end confdefs.h. */
9489#include <stdio.h>
9490int
9491main ()
9492{
9493
9494#ifndef fgets_unlocked
9495 char *p = (char *) fgets_unlocked;
9496#endif
9497
9498 ;
9499 return 0;
9500}
9501_ACEOF
9502rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009503if { (ac_try="$ac_compile"
9504case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9507esac
9508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009510 ac_status=$?
9511 grep -v '^ *+' conftest.er1 >conftest.err
9512 rm -f conftest.er1
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009515 (exit $ac_status); } && {
9516 test -z "$ac_c_werror_flag" ||
9517 test ! -s conftest.err
9518 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009519 ac_cv_have_decl_fgets_unlocked=yes
9520else
9521 echo "$as_me: failed program was:" >&5
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
Theodore Ts'oe1052142006-10-21 21:46:47 -04009524 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009525fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009526
9527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009528fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009529{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9530echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009531 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9532 gt_value=1
9533 else
9534 gt_value=0
9535 fi
9536
9537cat >>confdefs.h <<_ACEOF
9538#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9539_ACEOF
9540
9541
9542
Theodore Ts'oe1052142006-10-21 21:46:47 -04009543 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9544echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009545if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547else
9548 cat >conftest.$ac_ext <<_ACEOF
9549/* confdefs.h. */
9550_ACEOF
9551cat confdefs.h >>conftest.$ac_ext
9552cat >>conftest.$ac_ext <<_ACEOF
9553/* end confdefs.h. */
9554#include <stdio.h>
9555int
9556main ()
9557{
9558
9559#ifndef getc_unlocked
9560 char *p = (char *) getc_unlocked;
9561#endif
9562
9563 ;
9564 return 0;
9565}
9566_ACEOF
9567rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009568if { (ac_try="$ac_compile"
9569case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572esac
9573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009575 ac_status=$?
9576 grep -v '^ *+' conftest.er1 >conftest.err
9577 rm -f conftest.er1
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009584 ac_cv_have_decl_getc_unlocked=yes
9585else
9586 echo "$as_me: failed program was:" >&5
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
Theodore Ts'oe1052142006-10-21 21:46:47 -04009589 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009590fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009591
9592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009593fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009594{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9595echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009596 if test $ac_cv_have_decl_getc_unlocked = yes; then
9597 gt_value=1
9598 else
9599 gt_value=0
9600 fi
9601
9602cat >>confdefs.h <<_ACEOF
9603#define HAVE_DECL_GETC_UNLOCKED $gt_value
9604_ACEOF
9605
9606
9607
9608 case $gt_cv_func_printf_posix in
9609 *yes) HAVE_POSIX_PRINTF=1 ;;
9610 *) HAVE_POSIX_PRINTF=0 ;;
9611 esac
9612
9613 if test "$ac_cv_func_asprintf" = yes; then
9614 HAVE_ASPRINTF=1
9615 else
9616 HAVE_ASPRINTF=0
9617 fi
9618
9619 if test "$ac_cv_func_snprintf" = yes; then
9620 HAVE_SNPRINTF=1
9621 else
9622 HAVE_SNPRINTF=0
9623 fi
9624
9625 if test "$ac_cv_func_wprintf" = yes; then
9626 HAVE_WPRINTF=1
9627 else
9628 HAVE_WPRINTF=0
9629 fi
9630
9631
9632
9633
9634
9635
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009636
9637 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009638
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009639 for element in $INCICONV; do
9640 haveit=
9641 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009642
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009643 acl_save_prefix="$prefix"
9644 prefix="$acl_final_prefix"
9645 acl_save_exec_prefix="$exec_prefix"
9646 exec_prefix="$acl_final_exec_prefix"
9647 eval x=\"$x\"
9648 exec_prefix="$acl_save_exec_prefix"
9649 prefix="$acl_save_prefix"
9650
9651 if test "X$x" = "X$element"; then
9652 haveit=yes
9653 break
9654 fi
9655 done
9656 if test -z "$haveit"; then
9657 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9658 fi
9659 done
9660
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009661
Theodore Ts'oe1052142006-10-21 21:46:47 -04009662 { echo "$as_me:$LINENO: checking for iconv" >&5
9663echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009664if test "${am_cv_func_iconv+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009666else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009667
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009668 am_cv_func_iconv="no, consider installing GNU libiconv"
9669 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009670 cat >conftest.$ac_ext <<_ACEOF
9671/* confdefs.h. */
9672_ACEOF
9673cat confdefs.h >>conftest.$ac_ext
9674cat >>conftest.$ac_ext <<_ACEOF
9675/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009676#include <stdlib.h>
9677#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009678int
9679main ()
9680{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009681iconv_t cd = iconv_open("","");
9682 iconv(cd,NULL,NULL,NULL,NULL);
9683 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009684 ;
9685 return 0;
9686}
9687_ACEOF
9688rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009689if { (ac_try="$ac_link"
9690case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9693esac
9694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009701 (exit $ac_status); } && {
9702 test -z "$ac_c_werror_flag" ||
9703 test ! -s conftest.err
9704 } && test -s conftest$ac_exeext &&
9705 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009706 am_cv_func_iconv=yes
9707else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009708 echo "$as_me: failed program was:" >&5
9709sed 's/^/| /' conftest.$ac_ext >&5
9710
Theodore Ts'oe1052142006-10-21 21:46:47 -04009711
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009712fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009713
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009715 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009716 if test "$am_cv_func_iconv" != yes; then
9717 am_save_LIBS="$LIBS"
9718 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009719 cat >conftest.$ac_ext <<_ACEOF
9720/* confdefs.h. */
9721_ACEOF
9722cat confdefs.h >>conftest.$ac_ext
9723cat >>conftest.$ac_ext <<_ACEOF
9724/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009725#include <stdlib.h>
9726#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009727int
9728main ()
9729{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009730iconv_t cd = iconv_open("","");
9731 iconv(cd,NULL,NULL,NULL,NULL);
9732 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009733 ;
9734 return 0;
9735}
9736_ACEOF
9737rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009738if { (ac_try="$ac_link"
9739case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9742esac
9743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009750 (exit $ac_status); } && {
9751 test -z "$ac_c_werror_flag" ||
9752 test ! -s conftest.err
9753 } && test -s conftest$ac_exeext &&
9754 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009755 am_cv_lib_iconv=yes
9756 am_cv_func_iconv=yes
9757else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009758 echo "$as_me: failed program was:" >&5
9759sed 's/^/| /' conftest.$ac_ext >&5
9760
Theodore Ts'oe1052142006-10-21 21:46:47 -04009761
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009762fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009763
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009765 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009766 LIBS="$am_save_LIBS"
9767 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009768
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009769fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009770{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9771echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009772 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009773
9774cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009775#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009776_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009777
9778 fi
9779 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009780 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9781echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9782 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9783echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009784 else
9785 CPPFLAGS="$am_save_CPPFLAGS"
9786 LIBICONV=
9787 LTLIBICONV=
9788 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009789
9790
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009791
9792 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009793 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9794echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009795 if test "${am_cv_proto_iconv+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009797else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009798
9799 cat >conftest.$ac_ext <<_ACEOF
9800/* confdefs.h. */
9801_ACEOF
9802cat confdefs.h >>conftest.$ac_ext
9803cat >>conftest.$ac_ext <<_ACEOF
9804/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009805
9806#include <stdlib.h>
9807#include <iconv.h>
9808extern
9809#ifdef __cplusplus
9810"C"
9811#endif
9812#if defined(__STDC__) || defined(__cplusplus)
9813size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9814#else
9815size_t iconv();
9816#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009817
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009818int
9819main ()
9820{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009821
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009822 ;
9823 return 0;
9824}
9825_ACEOF
9826rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009827if { (ac_try="$ac_compile"
9828case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831esac
9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009839 (exit $ac_status); } && {
9840 test -z "$ac_c_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009843 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009844else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009845 echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
Theodore Ts'oe1052142006-10-21 21:46:47 -04009848 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009849fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009850
9851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009852 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 +00009853fi
9854
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009855 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009856 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009857 }$am_cv_proto_iconv" >&5
9858echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009859 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009860
9861cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009862#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009863_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009864
9865 fi
9866
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009867
Theodore Ts'oe1052142006-10-21 21:46:47 -04009868 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9869echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009870if test "${am_cv_langinfo_codeset+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009872else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009873 cat >conftest.$ac_ext <<_ACEOF
9874/* confdefs.h. */
9875_ACEOF
9876cat confdefs.h >>conftest.$ac_ext
9877cat >>conftest.$ac_ext <<_ACEOF
9878/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009879#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009880int
9881main ()
9882{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009883char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009884 ;
9885 return 0;
9886}
9887_ACEOF
9888rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009889if { (ac_try="$ac_link"
9890case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009901 (exit $ac_status); } && {
9902 test -z "$ac_c_werror_flag" ||
9903 test ! -s conftest.err
9904 } && test -s conftest$ac_exeext &&
9905 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009906 am_cv_langinfo_codeset=yes
9907else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009908 echo "$as_me: failed program was:" >&5
9909sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009910
Theodore Ts'oe1052142006-10-21 21:46:47 -04009911 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009912fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009913
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009915 conftest$ac_exeext conftest.$ac_ext
9916
9917fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009918{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9919echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009920 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009921
9922cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009923#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009924_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009925
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009926 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009927
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009928 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009929
Theodore Ts'oe1052142006-10-21 21:46:47 -04009930 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9931echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009932if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009934else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009935 cat >conftest.$ac_ext <<_ACEOF
9936/* confdefs.h. */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009941#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009942int
9943main ()
9944{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009945return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009946 ;
9947 return 0;
9948}
9949_ACEOF
9950rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009951if { (ac_try="$ac_link"
9952case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9955esac
9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009958 ac_status=$?
9959 grep -v '^ *+' conftest.er1 >conftest.err
9960 rm -f conftest.er1
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009963 (exit $ac_status); } && {
9964 test -z "$ac_c_werror_flag" ||
9965 test ! -s conftest.err
9966 } && test -s conftest$ac_exeext &&
9967 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009968 am_cv_val_LC_MESSAGES=yes
9969else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009970 echo "$as_me: failed program was:" >&5
9971sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009972
Theodore Ts'oe1052142006-10-21 21:46:47 -04009973 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009974fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009975
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009977 conftest$ac_exeext conftest.$ac_ext
9978fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009979{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9980echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009981 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009982
9983cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009984#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009985_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009986
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009987 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009988
9989 fi
9990
9991 for ac_prog in bison
9992do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009993 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009994set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04009995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009997if test "${ac_cv_prog_INTLBISON+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009999else
10000 if test -n "$INTLBISON"; then
10001 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004for as_dir in $PATH
10005do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010009 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 -050010010 ac_cv_prog_INTLBISON="$ac_prog"
10011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 break 2
10013 fi
10014done
10015done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010016IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010017
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010018fi
10019fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010020INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010021if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010022 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10023echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010024else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010025 { echo "$as_me:$LINENO: result: no" >&5
10026echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010027fi
10028
Theodore Ts'oe1052142006-10-21 21:46:47 -040010029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010030 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010031done
10032
10033 if test -z "$INTLBISON"; then
10034 ac_verc_fail=yes
10035 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010036 { echo "$as_me:$LINENO: checking version of bison" >&5
10037echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010038 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10039 case $ac_prog_version in
10040 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10041 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10042 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10043 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10044 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010045 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10046echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010047 fi
10048 if test $ac_verc_fail = yes; then
10049 INTLBISON=:
10050 fi
10051
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'o93636bd2003-07-12 02:45:05 -040010056
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010057
10058
10059
10060
10061
10062
10063
10064
10065
10066
Theodore Ts'oe1052142006-10-21 21:46:47 -040010067 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10068echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10069 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010070if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010071 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010072else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010073 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010074fi
10075
10076 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10077echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010078
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010079
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010080
10081
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010082 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010083 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010084
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010085 LIBINTL=
10086 LTLIBINTL=
10087 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010088
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010089 if test "$USE_NLS" = "yes"; then
10090 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010091
Theodore Ts'oe1052142006-10-21 21:46:47 -040010092 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10093echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010094
Theodore Ts'oe1052142006-10-21 21:46:47 -040010095# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010096if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010097 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010098else
10099 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010100fi
10101
10102 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10103echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010104
10105 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10106 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010108
10109
10110
10111
10112
Theodore Ts'oe1052142006-10-21 21:46:47 -040010113 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10114echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010115if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010117else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010118 cat >conftest.$ac_ext <<_ACEOF
10119/* confdefs.h. */
10120_ACEOF
10121cat confdefs.h >>conftest.$ac_ext
10122cat >>conftest.$ac_ext <<_ACEOF
10123/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010124#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010125extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010126extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010127int
10128main ()
10129{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010130bindtextdomain ("", "");
10131return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010132 ;
10133 return 0;
10134}
10135_ACEOF
10136rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010137if { (ac_try="$ac_link"
10138case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141esac
10142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010144 ac_status=$?
10145 grep -v '^ *+' conftest.er1 >conftest.err
10146 rm -f conftest.er1
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010149 (exit $ac_status); } && {
10150 test -z "$ac_c_werror_flag" ||
10151 test ! -s conftest.err
10152 } && test -s conftest$ac_exeext &&
10153 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010154 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010155else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010156 echo "$as_me: failed program was:" >&5
10157sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010158
Theodore Ts'oe1052142006-10-21 21:46:47 -040010159 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010160fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010161
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010163 conftest$ac_exeext conftest.$ac_ext
10164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010165{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10166echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010167
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010168 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010169
10170
10171
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010172 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010173
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010174 acl_save_prefix="$prefix"
10175 prefix="$acl_final_prefix"
10176 acl_save_exec_prefix="$exec_prefix"
10177 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010178
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010179 eval additional_includedir=\"$includedir\"
10180 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010181
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010182 exec_prefix="$acl_save_exec_prefix"
10183 prefix="$acl_save_prefix"
10184
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010185
Theodore Ts'oe1052142006-10-21 21:46:47 -040010186# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010187if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010188 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010189 if test "X$withval" = "Xno"; then
10190 use_additional=no
10191 else
10192 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010193
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010194 acl_save_prefix="$prefix"
10195 prefix="$acl_final_prefix"
10196 acl_save_exec_prefix="$exec_prefix"
10197 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010198
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010199 eval additional_includedir=\"$includedir\"
10200 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010201
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010202 exec_prefix="$acl_save_exec_prefix"
10203 prefix="$acl_save_prefix"
10204
10205 else
10206 additional_includedir="$withval/include"
10207 additional_libdir="$withval/lib"
10208 fi
10209 fi
10210
Theodore Ts'oe1052142006-10-21 21:46:47 -040010211fi
10212
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010213 LIBINTL=
10214 LTLIBINTL=
10215 INCINTL=
10216 rpathdirs=
10217 ltrpathdirs=
10218 names_already_handled=
10219 names_next_round='intl '
10220 while test -n "$names_next_round"; do
10221 names_this_round="$names_next_round"
10222 names_next_round=
10223 for name in $names_this_round; do
10224 already_handled=
10225 for n in $names_already_handled; do
10226 if test "$n" = "$name"; then
10227 already_handled=yes
10228 break
10229 fi
10230 done
10231 if test -z "$already_handled"; then
10232 names_already_handled="$names_already_handled $name"
10233 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10234 eval value=\"\$HAVE_LIB$uppername\"
10235 if test -n "$value"; then
10236 if test "$value" = yes; then
10237 eval value=\"\$LIB$uppername\"
10238 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10239 eval value=\"\$LTLIB$uppername\"
10240 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10241 else
10242 :
10243 fi
10244 else
10245 found_dir=
10246 found_la=
10247 found_so=
10248 found_a=
10249 if test $use_additional = yes; then
10250 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10251 found_dir="$additional_libdir"
10252 found_so="$additional_libdir/lib$name.$shlibext"
10253 if test -f "$additional_libdir/lib$name.la"; then
10254 found_la="$additional_libdir/lib$name.la"
10255 fi
10256 else
10257 if test -f "$additional_libdir/lib$name.$libext"; then
10258 found_dir="$additional_libdir"
10259 found_a="$additional_libdir/lib$name.$libext"
10260 if test -f "$additional_libdir/lib$name.la"; then
10261 found_la="$additional_libdir/lib$name.la"
10262 fi
10263 fi
10264 fi
10265 fi
10266 if test "X$found_dir" = "X"; then
10267 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010268
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010269 acl_save_prefix="$prefix"
10270 prefix="$acl_final_prefix"
10271 acl_save_exec_prefix="$exec_prefix"
10272 exec_prefix="$acl_final_exec_prefix"
10273 eval x=\"$x\"
10274 exec_prefix="$acl_save_exec_prefix"
10275 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010276
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010277 case "$x" in
10278 -L*)
10279 dir=`echo "X$x" | sed -e 's/^X-L//'`
10280 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10281 found_dir="$dir"
10282 found_so="$dir/lib$name.$shlibext"
10283 if test -f "$dir/lib$name.la"; then
10284 found_la="$dir/lib$name.la"
10285 fi
10286 else
10287 if test -f "$dir/lib$name.$libext"; then
10288 found_dir="$dir"
10289 found_a="$dir/lib$name.$libext"
10290 if test -f "$dir/lib$name.la"; then
10291 found_la="$dir/lib$name.la"
10292 fi
10293 fi
10294 fi
10295 ;;
10296 esac
10297 if test "X$found_dir" != "X"; then
10298 break
10299 fi
10300 done
10301 fi
10302 if test "X$found_dir" != "X"; then
10303 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10304 if test "X$found_so" != "X"; then
10305 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10306 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10307 else
10308 haveit=
10309 for x in $ltrpathdirs; do
10310 if test "X$x" = "X$found_dir"; then
10311 haveit=yes
10312 break
10313 fi
10314 done
10315 if test -z "$haveit"; then
10316 ltrpathdirs="$ltrpathdirs $found_dir"
10317 fi
10318 if test "$hardcode_direct" = yes; then
10319 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10320 else
10321 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10322 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10323 haveit=
10324 for x in $rpathdirs; do
10325 if test "X$x" = "X$found_dir"; then
10326 haveit=yes
10327 break
10328 fi
10329 done
10330 if test -z "$haveit"; then
10331 rpathdirs="$rpathdirs $found_dir"
10332 fi
10333 else
10334 haveit=
10335 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010336
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010337 acl_save_prefix="$prefix"
10338 prefix="$acl_final_prefix"
10339 acl_save_exec_prefix="$exec_prefix"
10340 exec_prefix="$acl_final_exec_prefix"
10341 eval x=\"$x\"
10342 exec_prefix="$acl_save_exec_prefix"
10343 prefix="$acl_save_prefix"
10344
10345 if test "X$x" = "X-L$found_dir"; then
10346 haveit=yes
10347 break
10348 fi
10349 done
10350 if test -z "$haveit"; then
10351 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10352 fi
10353 if test "$hardcode_minus_L" != no; then
10354 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10355 else
10356 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10357 fi
10358 fi
10359 fi
10360 fi
10361 else
10362 if test "X$found_a" != "X"; then
10363 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10364 else
10365 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10366 fi
10367 fi
10368 additional_includedir=
10369 case "$found_dir" in
10370 */lib | */lib/)
10371 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10372 additional_includedir="$basedir/include"
10373 ;;
10374 esac
10375 if test "X$additional_includedir" != "X"; then
10376 if test "X$additional_includedir" != "X/usr/include"; then
10377 haveit=
10378 if test "X$additional_includedir" = "X/usr/local/include"; then
10379 if test -n "$GCC"; then
10380 case $host_os in
10381 linux*) haveit=yes;;
10382 esac
10383 fi
10384 fi
10385 if test -z "$haveit"; then
10386 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010387
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010388 acl_save_prefix="$prefix"
10389 prefix="$acl_final_prefix"
10390 acl_save_exec_prefix="$exec_prefix"
10391 exec_prefix="$acl_final_exec_prefix"
10392 eval x=\"$x\"
10393 exec_prefix="$acl_save_exec_prefix"
10394 prefix="$acl_save_prefix"
10395
10396 if test "X$x" = "X-I$additional_includedir"; then
10397 haveit=yes
10398 break
10399 fi
10400 done
10401 if test -z "$haveit"; then
10402 if test -d "$additional_includedir"; then
10403 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10404 fi
10405 fi
10406 fi
10407 fi
10408 fi
10409 if test -n "$found_la"; then
10410 save_libdir="$libdir"
10411 case "$found_la" in
10412 */* | *\\*) . "$found_la" ;;
10413 *) . "./$found_la" ;;
10414 esac
10415 libdir="$save_libdir"
10416 for dep in $dependency_libs; do
10417 case "$dep" in
10418 -L*)
10419 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10420 if test "X$additional_libdir" != "X/usr/lib"; then
10421 haveit=
10422 if test "X$additional_libdir" = "X/usr/local/lib"; then
10423 if test -n "$GCC"; then
10424 case $host_os in
10425 linux*) haveit=yes;;
10426 esac
10427 fi
10428 fi
10429 if test -z "$haveit"; then
10430 haveit=
10431 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010432
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010433 acl_save_prefix="$prefix"
10434 prefix="$acl_final_prefix"
10435 acl_save_exec_prefix="$exec_prefix"
10436 exec_prefix="$acl_final_exec_prefix"
10437 eval x=\"$x\"
10438 exec_prefix="$acl_save_exec_prefix"
10439 prefix="$acl_save_prefix"
10440
10441 if test "X$x" = "X-L$additional_libdir"; then
10442 haveit=yes
10443 break
10444 fi
10445 done
10446 if test -z "$haveit"; then
10447 if test -d "$additional_libdir"; then
10448 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10449 fi
10450 fi
10451 haveit=
10452 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010453
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010454 acl_save_prefix="$prefix"
10455 prefix="$acl_final_prefix"
10456 acl_save_exec_prefix="$exec_prefix"
10457 exec_prefix="$acl_final_exec_prefix"
10458 eval x=\"$x\"
10459 exec_prefix="$acl_save_exec_prefix"
10460 prefix="$acl_save_prefix"
10461
10462 if test "X$x" = "X-L$additional_libdir"; then
10463 haveit=yes
10464 break
10465 fi
10466 done
10467 if test -z "$haveit"; then
10468 if test -d "$additional_libdir"; then
10469 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10470 fi
10471 fi
10472 fi
10473 fi
10474 ;;
10475 -R*)
10476 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10477 if test "$enable_rpath" != no; then
10478 haveit=
10479 for x in $rpathdirs; do
10480 if test "X$x" = "X$dir"; then
10481 haveit=yes
10482 break
10483 fi
10484 done
10485 if test -z "$haveit"; then
10486 rpathdirs="$rpathdirs $dir"
10487 fi
10488 haveit=
10489 for x in $ltrpathdirs; do
10490 if test "X$x" = "X$dir"; then
10491 haveit=yes
10492 break
10493 fi
10494 done
10495 if test -z "$haveit"; then
10496 ltrpathdirs="$ltrpathdirs $dir"
10497 fi
10498 fi
10499 ;;
10500 -l*)
10501 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10502 ;;
10503 *.la)
10504 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10505 ;;
10506 *)
10507 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10508 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10509 ;;
10510 esac
10511 done
10512 fi
10513 else
10514 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10515 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10516 fi
10517 fi
10518 fi
10519 done
10520 done
10521 if test "X$rpathdirs" != "X"; then
10522 if test -n "$hardcode_libdir_separator"; then
10523 alldirs=
10524 for found_dir in $rpathdirs; do
10525 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10526 done
10527 acl_save_libdir="$libdir"
10528 libdir="$alldirs"
10529 eval flag=\"$hardcode_libdir_flag_spec\"
10530 libdir="$acl_save_libdir"
10531 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10532 else
10533 for found_dir in $rpathdirs; do
10534 acl_save_libdir="$libdir"
10535 libdir="$found_dir"
10536 eval flag=\"$hardcode_libdir_flag_spec\"
10537 libdir="$acl_save_libdir"
10538 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10539 done
10540 fi
10541 fi
10542 if test "X$ltrpathdirs" != "X"; then
10543 for found_dir in $ltrpathdirs; do
10544 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10545 done
10546 fi
10547
Theodore Ts'oe1052142006-10-21 21:46:47 -040010548 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10549echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010550if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010552else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010553 gt_save_CPPFLAGS="$CPPFLAGS"
10554 CPPFLAGS="$CPPFLAGS $INCINTL"
10555 gt_save_LIBS="$LIBS"
10556 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010557 cat >conftest.$ac_ext <<_ACEOF
10558/* confdefs.h. */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010563#include <libintl.h>
10564extern int _nl_msg_cat_cntr;
10565extern
10566#ifdef __cplusplus
10567"C"
10568#endif
10569const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010570int
10571main ()
10572{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010573bindtextdomain ("", "");
10574return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010575 ;
10576 return 0;
10577}
10578_ACEOF
10579rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010580if { (ac_try="$ac_link"
10581case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584esac
10585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010587 ac_status=$?
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest$ac_exeext &&
10596 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010597 gt_cv_func_gnugettext1_libintl=yes
10598else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010599 echo "$as_me: failed program was:" >&5
10600sed 's/^/| /' conftest.$ac_ext >&5
10601
Theodore Ts'oe1052142006-10-21 21:46:47 -040010602 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010603fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010604
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010606 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010607 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10608 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010609 cat >conftest.$ac_ext <<_ACEOF
10610/* confdefs.h. */
10611_ACEOF
10612cat confdefs.h >>conftest.$ac_ext
10613cat >>conftest.$ac_ext <<_ACEOF
10614/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010615#include <libintl.h>
10616extern int _nl_msg_cat_cntr;
10617extern
10618#ifdef __cplusplus
10619"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010620#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010621const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010622int
10623main ()
10624{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010625bindtextdomain ("", "");
10626return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010627 ;
10628 return 0;
10629}
10630_ACEOF
10631rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010632if { (ac_try="$ac_link"
10633case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10636esac
10637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010639 ac_status=$?
10640 grep -v '^ *+' conftest.er1 >conftest.err
10641 rm -f conftest.er1
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010644 (exit $ac_status); } && {
10645 test -z "$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10647 } && test -s conftest$ac_exeext &&
10648 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010649 LIBINTL="$LIBINTL $LIBICONV"
10650 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10651 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010652
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010653else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010654 echo "$as_me: failed program was:" >&5
10655sed 's/^/| /' conftest.$ac_ext >&5
10656
Theodore Ts'oe1052142006-10-21 21:46:47 -040010657
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010658fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010659
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010661 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010662 fi
10663 CPPFLAGS="$gt_save_CPPFLAGS"
10664 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010665fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010666{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10667echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010668 fi
10669
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010670 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10671 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010672 && test "$PACKAGE" != gettext-runtime \
10673 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010674 gt_use_preinstalled_gnugettext=yes
10675 else
10676 LIBINTL=
10677 LTLIBINTL=
10678 INCINTL=
10679 fi
10680
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010681
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010682 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10683 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010684 fi
10685 fi
10686
10687 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010688 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010689 USE_INCLUDED_LIBINTL=yes
10690 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10691 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10692 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010693 fi
10694
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010695 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10696 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10697 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010698 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010699
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010700
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010701 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10702 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010703
10704cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010705#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010706_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010707
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010708 else
10709 USE_NLS=no
10710 fi
10711 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010712
Theodore Ts'oe1052142006-10-21 21:46:47 -040010713 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10714echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10715 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10716echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010717 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010718 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10719echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010720 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10721 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10722 gt_source="external libintl"
10723 else
10724 gt_source="libc"
10725 fi
10726 else
10727 gt_source="included intl directory"
10728 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010729 { echo "$as_me:$LINENO: result: $gt_source" >&5
10730echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010731 fi
10732
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010733 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010734
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010735 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10736 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010737 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10738echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10739 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10740echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010741
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010742 for element in $INCINTL; do
10743 haveit=
10744 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010746 acl_save_prefix="$prefix"
10747 prefix="$acl_final_prefix"
10748 acl_save_exec_prefix="$exec_prefix"
10749 exec_prefix="$acl_final_exec_prefix"
10750 eval x=\"$x\"
10751 exec_prefix="$acl_save_exec_prefix"
10752 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010753
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010754 if test "X$x" = "X$element"; then
10755 haveit=yes
10756 break
10757 fi
10758 done
10759 if test -z "$haveit"; then
10760 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10761 fi
10762 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010763
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010764 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010765
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010766
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010767cat >>confdefs.h <<\_ACEOF
10768#define HAVE_GETTEXT 1
10769_ACEOF
10770
10771
10772cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010773#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010774_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010775
10776 fi
10777
10778 POSUB=po
10779 fi
10780
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010781
10782 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010783 BUILD_INCLUDED_LIBINTL=yes
10784 fi
10785
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010786
10787
10788
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010789
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010790 nls_cv_header_intl=
10791 nls_cv_header_libgt=
10792
10793 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010794
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010795
10796 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010797
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010798
10799 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010800
10801
10802 if test "$USE_INCLUDED_LIBINTL" = yes; then
10803 INTLOBJS="\$(GETTOBJS)"
10804 fi
10805
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010806
10807 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010808
10809
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010810
10811 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010812
10813
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010814
10815
10816
10817
10818
Theodore Ts'oe1052142006-10-21 21:46:47 -040010819{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10820echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10821set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10822if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010823 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010824else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010825 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010826SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010827all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010828 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010829_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010830# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010831case `${MAKE-make} -f conftest.make 2>/dev/null` in
10832 *@@@%%%=?*=@@@%%%*)
10833 eval ac_cv_prog_make_${ac_make}_set=yes;;
10834 *)
10835 eval ac_cv_prog_make_${ac_make}_set=no;;
10836esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010837rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010838fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010839if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10840 { echo "$as_me:$LINENO: result: yes" >&5
10841echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010842 SET_MAKE=
10843else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010844 { echo "$as_me:$LINENO: result: no" >&5
10845echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010846 SET_MAKE="MAKE=${MAKE-make}"
10847fi
10848
10849# Extract the first word of "ln", so it can be a program name with args.
10850set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010853if test "${ac_cv_path_LN+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010855else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010856 case $LN in
10857 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010858 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10859 ;;
10860 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862for as_dir in $PATH
10863do
10864 IFS=$as_save_IFS
10865 test -z "$as_dir" && as_dir=.
10866 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010867 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 -050010868 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10870 break 2
10871 fi
10872done
10873done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010874IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010875
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010876 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10877 ;;
10878esac
10879fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010880LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010881if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010882 { echo "$as_me:$LINENO: result: $LN" >&5
10883echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010884else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010885 { echo "$as_me:$LINENO: result: no" >&5
10886echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010887fi
10888
Theodore Ts'oe1052142006-10-21 21:46:47 -040010889
10890{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10891echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010892LN_S=$as_ln_s
10893if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010894 { echo "$as_me:$LINENO: result: yes" >&5
10895echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010896else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010897 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10898echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010899fi
10900
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010901# Extract the first word of "mv", so it can be a program name with args.
10902set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010905if test "${ac_cv_path_MV+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010907else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010908 case $MV in
10909 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010910 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10911 ;;
10912 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010919 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 -050010920 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10923 fi
10924done
10925done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010926IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010927
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010928 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10929 ;;
10930esac
10931fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010932MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010933if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010934 { echo "$as_me:$LINENO: result: $MV" >&5
10935echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010936else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010937 { echo "$as_me:$LINENO: result: no" >&5
10938echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010939fi
10940
Theodore Ts'oe1052142006-10-21 21:46:47 -040010941
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010942# Extract the first word of "cp", so it can be a program name with args.
10943set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010946if test "${ac_cv_path_CP+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010948else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010949 case $CP in
10950 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010951 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10952 ;;
10953 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $PATH
10956do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010960 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 -050010961 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10964 fi
10965done
10966done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010967IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010968
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010969 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10970 ;;
10971esac
10972fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010973CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010974if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010975 { echo "$as_me:$LINENO: result: $CP" >&5
10976echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010977else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010978 { echo "$as_me:$LINENO: result: no" >&5
10979echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010980fi
10981
Theodore Ts'oe1052142006-10-21 21:46:47 -040010982
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010983# Extract the first word of "rm", so it can be a program name with args.
10984set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010987if test "${ac_cv_path_RM+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010989else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010990 case $RM in
10991 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010992 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10993 ;;
10994 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996for as_dir in $PATH
10997do
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011001 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 -050011002 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11004 break 2
11005 fi
11006done
11007done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011008IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011009
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011010 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11011 ;;
11012esac
11013fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011014RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011015if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011016 { echo "$as_me:$LINENO: result: $RM" >&5
11017echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011018else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011019 { echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011021fi
11022
Theodore Ts'oe1052142006-10-21 21:46:47 -040011023
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011024# Extract the first word of "chmod", so it can be a program name with args.
11025set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011028if test "${ac_cv_path_CHMOD+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011031 case $CHMOD in
11032 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011033 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11034 ;;
11035 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037for as_dir in $PATH
11038do
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011042 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 -050011043 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11046 fi
11047done
11048done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011049IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011050
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011051 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11052 ;;
11053esac
11054fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011055CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011056if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011057 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11058echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011059else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011060 { echo "$as_me:$LINENO: result: no" >&5
11061echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011062fi
11063
Theodore Ts'oe1052142006-10-21 21:46:47 -040011064
Theodore Ts'o32237012005-01-17 19:13:39 -050011065for ac_prog in gawk mawk nawk awk
11066do
11067 # Extract the first word of "$ac_prog", so it can be a program name with args.
11068set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011071if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011072 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011073else
Theodore Ts'o32237012005-01-17 19:13:39 -050011074 if test -n "$AWK"; then
11075 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11076else
11077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011078for as_dir in $PATH
11079do
11080 IFS=$as_save_IFS
11081 test -z "$as_dir" && as_dir=.
11082 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011083 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 -050011084 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11086 break 2
11087 fi
11088done
11089done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011090IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011091
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011092fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011093fi
11094AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011095if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011096 { echo "$as_me:$LINENO: result: $AWK" >&5
11097echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011098else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011099 { echo "$as_me:$LINENO: result: no" >&5
11100echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011101fi
11102
Theodore Ts'oe1052142006-10-21 21:46:47 -040011103
Theodore Ts'o32237012005-01-17 19:13:39 -050011104 test -n "$AWK" && break
11105done
11106
Theodore Ts'oe1052142006-10-21 21:46:47 -040011107{ echo "$as_me:$LINENO: checking for egrep" >&5
11108echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11109if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11113 then ac_cv_path_EGREP="$GREP -E"
11114 else
11115 # Extract the first word of "egrep" to use in msg output
11116if test -z "$EGREP"; then
11117set dummy egrep; ac_prog_name=$2
11118if test "${ac_cv_path_EGREP+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11120else
11121 ac_path_EGREP_found=false
11122# Loop through the user's path and test for each of PROGNAME-LIST
11123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11125do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_prog in egrep; do
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011131 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040011132 # Check for GNU ac_path_EGREP and select it if it is found.
11133 # Check for GNU $ac_path_EGREP
11134case `"$ac_path_EGREP" --version 2>&1` in
11135*GNU*)
11136 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11137*)
11138 ac_count=0
11139 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11140 while :
11141 do
11142 cat "conftest.in" "conftest.in" >"conftest.tmp"
11143 mv "conftest.tmp" "conftest.in"
11144 cp "conftest.in" "conftest.nl"
11145 echo 'EGREP' >> "conftest.nl"
11146 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11148 ac_count=`expr $ac_count + 1`
11149 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11150 # Best one so far, save it but keep looking for a better one
11151 ac_cv_path_EGREP="$ac_path_EGREP"
11152 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011153 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011154 # 10*(2^10) chars as input seems more than enough
11155 test $ac_count -gt 10 && break
11156 done
11157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11158esac
11159
11160
11161 $ac_path_EGREP_found && break 3
11162 done
11163done
11164
11165done
11166IFS=$as_save_IFS
11167
11168
Theodore Ts'o32237012005-01-17 19:13:39 -050011169fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011170
11171EGREP="$ac_cv_path_EGREP"
11172if test -z "$EGREP"; then
11173 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11174echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11175 { (exit 1); exit 1; }; }
11176fi
11177
11178else
11179 ac_cv_path_EGREP=$EGREP
11180fi
11181
11182
11183 fi
11184fi
11185{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11186echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11187 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011188
11189
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011190# Extract the first word of "sed", so it can be a program name with args.
11191set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011194if test "${ac_cv_path_SED+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011196else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011197 case $SED in
11198 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011199 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11200 ;;
11201 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203for as_dir in $PATH
11204do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011208 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 -050011209 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11212 fi
11213done
11214done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011215IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011216
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011217 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11218 ;;
11219esac
11220fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011221SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011222if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011223 { echo "$as_me:$LINENO: result: $SED" >&5
11224echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011225else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011226 { echo "$as_me:$LINENO: result: no" >&5
11227echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011228fi
11229
Theodore Ts'oe1052142006-10-21 21:46:47 -040011230
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011231# Extract the first word of "perl", so it can be a program name with args.
11232set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011235if test "${ac_cv_path_PERL+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011237else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011238 case $PERL in
11239 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011240 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11241 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011242 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244for as_dir in $PATH
11245do
11246 IFS=$as_save_IFS
11247 test -z "$as_dir" && as_dir=.
11248 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011249 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 -050011250 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11252 break 2
11253 fi
11254done
11255done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011256IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011257
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011258 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11259 ;;
11260esac
11261fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011262PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011263if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011264 { echo "$as_me:$LINENO: result: $PERL" >&5
11265echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011266else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011267 { echo "$as_me:$LINENO: result: no" >&5
11268echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011269fi
11270
Theodore Ts'oe1052142006-10-21 21:46:47 -040011271
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011272# Extract the first word of "ldconfig", so it can be a program name with args.
11273set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011276if test "${ac_cv_path_LDCONFIG+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011278else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011279 case $LDCONFIG in
11280 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011281 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11282 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011283 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285for as_dir in $PATH
11286do
11287 IFS=$as_save_IFS
11288 test -z "$as_dir" && as_dir=.
11289 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011290 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 -050011291 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11293 break 2
11294 fi
11295done
11296done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011297IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011298
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011299 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11300 ;;
11301esac
11302fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011303LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011304if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011305 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11306echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011307else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011308 { echo "$as_me:$LINENO: result: no" >&5
11309echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011310fi
11311
Theodore Ts'oe1052142006-10-21 21:46:47 -040011312
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011313if test -n "$ac_tool_prefix"; then
11314 # 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 +000011315set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011318if test "${ac_cv_prog_AR+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011320else
11321 if test -n "$AR"; then
11322 ac_cv_prog_AR="$AR" # Let the user override the test.
11323else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011330 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 -050011331 ac_cv_prog_AR="${ac_tool_prefix}ar"
11332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 break 2
11334 fi
11335done
11336done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011337IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011338
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011339fi
11340fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011341AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011342if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011343 { echo "$as_me:$LINENO: result: $AR" >&5
11344echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011345else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011346 { echo "$as_me:$LINENO: result: no" >&5
11347echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011348fi
11349
Theodore Ts'oe1052142006-10-21 21:46:47 -040011350
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011351fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011352if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011353 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011354 # Extract the first word of "ar", so it can be a program name with args.
11355set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011358if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011360else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011361 if test -n "$ac_ct_AR"; then
11362 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011363else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365for as_dir in $PATH
11366do
11367 IFS=$as_save_IFS
11368 test -z "$as_dir" && as_dir=.
11369 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011370 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 -050011371 ac_cv_prog_ac_ct_AR="ar"
11372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 break 2
11374 fi
11375done
11376done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011377IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011378
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011379fi
11380fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011381ac_ct_AR=$ac_cv_prog_ac_ct_AR
11382if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011383 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11384echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011385else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011386 { echo "$as_me:$LINENO: result: no" >&5
11387echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011388fi
11389
Theodore Ts'oe1052142006-10-21 21:46:47 -040011390 if test "x$ac_ct_AR" = x; then
11391 AR="ar"
11392 else
11393 case $cross_compiling:$ac_tool_warned in
11394yes:)
11395{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11396whose name does not start with the host triplet. If you think this
11397configuration is useful to you, please write to autoconf@gnu.org." >&5
11398echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11399whose name does not start with the host triplet. If you think this
11400configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11401ac_tool_warned=yes ;;
11402esac
11403 AR=$ac_ct_AR
11404 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011405else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011406 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011407fi
11408
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011409if test -n "$ac_tool_prefix"; then
11410 # 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 +000011411set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011414if test "${ac_cv_prog_RANLIB+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011416else
11417 if test -n "$RANLIB"; then
11418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11419else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421for as_dir in $PATH
11422do
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011426 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 -050011427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 break 2
11430 fi
11431done
11432done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011433IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011434
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011435fi
11436fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011437RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011438if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011439 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11440echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011441else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011442 { echo "$as_me:$LINENO: result: no" >&5
11443echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011444fi
11445
Theodore Ts'oe1052142006-10-21 21:46:47 -040011446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011447fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011448if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011449 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011450 # Extract the first word of "ranlib", so it can be a program name with args.
11451set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011454if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011456else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011457 if test -n "$ac_ct_RANLIB"; then
11458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011459else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461for as_dir in $PATH
11462do
11463 IFS=$as_save_IFS
11464 test -z "$as_dir" && as_dir=.
11465 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011466 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 -050011467 ac_cv_prog_ac_ct_RANLIB="ranlib"
11468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11469 break 2
11470 fi
11471done
11472done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011473IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011474
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011475fi
11476fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011477ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11478if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011479 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11480echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011481else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011482 { echo "$as_me:$LINENO: result: no" >&5
11483echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011484fi
11485
Theodore Ts'oe1052142006-10-21 21:46:47 -040011486 if test "x$ac_ct_RANLIB" = x; then
11487 RANLIB=":"
11488 else
11489 case $cross_compiling:$ac_tool_warned in
11490yes:)
11491{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11492whose name does not start with the host triplet. If you think this
11493configuration is useful to you, please write to autoconf@gnu.org." >&5
11494echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11495whose name does not start with the host triplet. If you think this
11496configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11497ac_tool_warned=yes ;;
11498esac
11499 RANLIB=$ac_ct_RANLIB
11500 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011501else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011502 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011503fi
11504
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011505if test -n "$ac_tool_prefix"; then
11506 # 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 +000011507set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011510if test "${ac_cv_prog_STRIP+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011512else
11513 if test -n "$STRIP"; then
11514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11515else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011522 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 -050011523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11525 break 2
11526 fi
11527done
11528done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011529IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011530
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011531fi
11532fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011533STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011534if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011535 { echo "$as_me:$LINENO: result: $STRIP" >&5
11536echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011537else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011538 { echo "$as_me:$LINENO: result: no" >&5
11539echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011540fi
11541
Theodore Ts'oe1052142006-10-21 21:46:47 -040011542
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011543fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011544if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011545 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011546 # Extract the first word of "strip", so it can be a program name with args.
11547set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011550if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011552else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011553 if test -n "$ac_ct_STRIP"; then
11554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011555else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557for as_dir in $PATH
11558do
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011562 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 -050011563 ac_cv_prog_ac_ct_STRIP="strip"
11564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 break 2
11566 fi
11567done
11568done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011569IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011570
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011571fi
11572fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011573ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11574if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011575 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11576echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011577else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011578 { echo "$as_me:$LINENO: result: no" >&5
11579echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011580fi
11581
Theodore Ts'oe1052142006-10-21 21:46:47 -040011582 if test "x$ac_ct_STRIP" = x; then
11583 STRIP=":"
11584 else
11585 case $cross_compiling:$ac_tool_warned in
11586yes:)
11587{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11588whose name does not start with the host triplet. If you think this
11589configuration is useful to you, please write to autoconf@gnu.org." >&5
11590echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11591whose name does not start with the host triplet. If you think this
11592configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11593ac_tool_warned=yes ;;
11594esac
11595 STRIP=$ac_ct_STRIP
11596 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011597else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011598 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011599fi
11600
Manish Katiyar7321d942008-04-14 17:20:03 +053011601# Extract the first word of "makeinfo", so it can be a program name with args.
11602set dummy makeinfo; ac_word=$2
11603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11605if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11607else
11608 if test -n "$MAKEINFO"; then
11609 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11610else
11611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11612for as_dir in $PATH
11613do
11614 IFS=$as_save_IFS
11615 test -z "$as_dir" && as_dir=.
11616 for ac_exec_ext in '' $ac_executable_extensions; do
11617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11618 ac_cv_prog_MAKEINFO="makeinfo"
11619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11620 break 2
11621 fi
11622done
11623done
11624IFS=$as_save_IFS
11625
11626fi
11627fi
11628MAKEINFO=$ac_cv_prog_MAKEINFO
11629if test -n "$MAKEINFO"; then
11630 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11631echo "${ECHO_T}$MAKEINFO" >&6; }
11632else
11633 { echo "$as_me:$LINENO: result: no" >&5
11634echo "${ECHO_T}no" >&6; }
11635fi
11636
11637
11638if test "_$MAKEINFO" = "_"; then
11639 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11640else
11641 case "$MAKEINFO" in
11642 */missing.*)
11643 { echo "$as_me:$LINENO: WARNING:
11644*** Makeinfo is missing. Info documentation will not be built." >&5
11645echo "$as_me: WARNING:
11646*** Makeinfo is missing. Info documentation will not be built." >&2;}
11647 ;;
11648 *)
11649 ;;
11650 esac
11651fi
11652
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011653# Find a good install program. We prefer a C program (faster),
11654# so one script is as good as another. But avoid the broken or
11655# incompatible versions:
11656# SysV /etc/install, /usr/sbin/install
11657# SunOS /usr/etc/install
11658# IRIX /sbin/install
11659# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011660# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011661# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011662# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11663# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011664# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011665# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011666{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11667echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011668if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011669if test "${ac_cv_path_install+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011671else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673for as_dir in $PATH
11674do
11675 IFS=$as_save_IFS
11676 test -z "$as_dir" && as_dir=.
11677 # Account for people who put trailing slashes in PATH elements.
11678case $as_dir/ in
11679 ./ | .// | /cC/* | \
11680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11681 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11682 /usr/ucb/* ) ;;
11683 *)
11684 # OSF1 and SCO ODT 3.0 have their own names for install.
11685 # Don't use installbsd from OSF since it installs stuff as root
11686 # by default.
11687 for ac_prog in ginstall scoinst install; do
11688 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011689 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 +000011690 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011692 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011693 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011694 elif test $ac_prog = install &&
11695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11696 # program-specific install script used by HP pwplus--don't use.
11697 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011698 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011699 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11700 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011701 fi
11702 fi
11703 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011704 done
11705 ;;
11706esac
11707done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011708IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011709
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011710
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011711fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011712 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011713 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011714 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011715 # As a last resort, use the slow shell script. Don't cache a
11716 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011717 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011718 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011719 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011720 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011721fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011722{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11723echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011724
11725# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11726# It thinks the first close brace ends the variable substitution.
11727test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11728
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011729test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011730
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011731test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11732
Theodore Ts'o6c133521999-07-03 20:37:03 +000011733# See if we need a separate native compiler.
11734if test $cross_compiling = no; then
11735 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011736
Theodore Ts'o6c133521999-07-03 20:37:03 +000011737else
11738 for ac_prog in gcc cc
11739do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011740 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011741set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011744if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011746else
11747 if test -n "$BUILD_CC"; then
11748 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11749else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011752do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011753 IFS=$as_save_IFS
11754 test -z "$as_dir" && as_dir=.
11755 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011756 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 -050011757 ac_cv_prog_BUILD_CC="$ac_prog"
11758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11759 break 2
11760 fi
11761done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011762done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011763IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011764
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011765fi
11766fi
11767BUILD_CC=$ac_cv_prog_BUILD_CC
11768if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011769 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11770echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011771else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011772 { echo "$as_me:$LINENO: result: no" >&5
11773echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011774fi
11775
Theodore Ts'oe1052142006-10-21 21:46:47 -040011776
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011777 test -n "$BUILD_CC" && break
11778done
11779
11780fi
11781
Theodore Ts'o740837d2007-12-16 17:21:38 -050011782
11783
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011784
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
11811
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011812
Theodore Ts'o106ad962007-04-04 21:26:37 -040011813
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011814
11815
11816for 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 -050011817do
11818as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011823 echo $ECHO_N "(cached) $ECHO_C" >&6
11824fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011825ac_res=`eval echo '${'$as_ac_Header'}'`
11826 { echo "$as_me:$LINENO: result: $ac_res" >&5
11827echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011828else
11829 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011830{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11831echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011832cat >conftest.$ac_ext <<_ACEOF
11833/* confdefs.h. */
11834_ACEOF
11835cat confdefs.h >>conftest.$ac_ext
11836cat >>conftest.$ac_ext <<_ACEOF
11837/* end confdefs.h. */
11838$ac_includes_default
11839#include <$ac_header>
11840_ACEOF
11841rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011842if { (ac_try="$ac_compile"
11843case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846esac
11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011854 (exit $ac_status); } && {
11855 test -z "$ac_c_werror_flag" ||
11856 test ! -s conftest.err
11857 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011858 ac_header_compiler=yes
11859else
11860 echo "$as_me: failed program was:" >&5
11861sed 's/^/| /' conftest.$ac_ext >&5
11862
Theodore Ts'oe1052142006-10-21 21:46:47 -040011863 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011864fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011865
11866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11868echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011869
11870# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011871{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11872echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011873cat >conftest.$ac_ext <<_ACEOF
11874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
11879#include <$ac_header>
11880_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011881if { (ac_try="$ac_cpp conftest.$ac_ext"
11882case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011893 (exit $ac_status); } >/dev/null && {
11894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11895 test ! -s conftest.err
11896 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011897 ac_header_preproc=yes
11898else
11899 echo "$as_me: failed program was:" >&5
11900sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_header_preproc=no
11903fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011904
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011905rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011906{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11907echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011908
11909# So? What about this header?
11910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11911 yes:no: )
11912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11913echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11915echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11916 ac_header_preproc=yes
11917 ;;
11918 no:yes:* )
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11924echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11926echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11930echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011931
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011932 ;;
11933esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011934{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938else
11939 eval "$as_ac_Header=\$ac_header_preproc"
11940fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011941ac_res=`eval echo '${'$as_ac_Header'}'`
11942 { echo "$as_me:$LINENO: result: $ac_res" >&5
11943echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011944
11945fi
11946if test `eval echo '${'$as_ac_Header'}'` = yes; then
11947 cat >>confdefs.h <<_ACEOF
11948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11949_ACEOF
11950
11951fi
11952
11953done
11954
11955
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011956
11957for ac_header in sys/disk.h sys/mount.h
11958do
11959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011960{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011963 echo $ECHO_N "(cached) $ECHO_C" >&6
11964else
11965 cat >conftest.$ac_ext <<_ACEOF
11966/* confdefs.h. */
11967_ACEOF
11968cat confdefs.h >>conftest.$ac_ext
11969cat >>conftest.$ac_ext <<_ACEOF
11970/* end confdefs.h. */
11971
11972#if HAVE_SYS_QUEUE_H
11973#include <sys/queue.h>
11974#endif
11975
11976
11977#include <$ac_header>
11978_ACEOF
11979rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011980if { (ac_try="$ac_compile"
11981case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984esac
11985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011992 (exit $ac_status); } && {
11993 test -z "$ac_c_werror_flag" ||
11994 test ! -s conftest.err
11995 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011996 eval "$as_ac_Header=yes"
11997else
11998 echo "$as_me: failed program was:" >&5
11999sed 's/^/| /' conftest.$ac_ext >&5
12000
Theodore Ts'oe1052142006-10-21 21:46:47 -040012001 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012002fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012003
12004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012005fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012006ac_res=`eval echo '${'$as_ac_Header'}'`
12007 { echo "$as_me:$LINENO: result: $ac_res" >&5
12008echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012009if test `eval echo '${'$as_ac_Header'}'` = yes; then
12010 cat >>confdefs.h <<_ACEOF
12011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12012_ACEOF
12013
12014fi
12015
12016done
12017
12018
12019for ac_header in net/if.h
12020do
12021as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012022{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
12027 cat >conftest.$ac_ext <<_ACEOF
12028/* confdefs.h. */
12029_ACEOF
12030cat confdefs.h >>conftest.$ac_ext
12031cat >>conftest.$ac_ext <<_ACEOF
12032/* end confdefs.h. */
12033
12034#if HAVE_SYS_TYPES_H
12035#include <sys/types.h>
12036#endif
12037#if HAVE_SYS_SOCKET
12038#include <sys/socket.h>
12039#endif
12040
12041
12042#include <$ac_header>
12043_ACEOF
12044rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012045if { (ac_try="$ac_compile"
12046case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12049esac
12050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012052 ac_status=$?
12053 grep -v '^ *+' conftest.er1 >conftest.err
12054 rm -f conftest.er1
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012057 (exit $ac_status); } && {
12058 test -z "$ac_c_werror_flag" ||
12059 test ! -s conftest.err
12060 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012061 eval "$as_ac_Header=yes"
12062else
12063 echo "$as_me: failed program was:" >&5
12064sed 's/^/| /' conftest.$ac_ext >&5
12065
Theodore Ts'oe1052142006-10-21 21:46:47 -040012066 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012067fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012068
12069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012070fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012071ac_res=`eval echo '${'$as_ac_Header'}'`
12072 { echo "$as_me:$LINENO: result: $ac_res" >&5
12073echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012074if test `eval echo '${'$as_ac_Header'}'` = yes; then
12075 cat >>confdefs.h <<_ACEOF
12076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12077_ACEOF
12078
12079fi
12080
12081done
12082
12083
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012084for ac_func in vprintf
12085do
12086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012087{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12089if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091else
12092 cat >conftest.$ac_ext <<_ACEOF
12093/* confdefs.h. */
12094_ACEOF
12095cat confdefs.h >>conftest.$ac_ext
12096cat >>conftest.$ac_ext <<_ACEOF
12097/* end confdefs.h. */
12098/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12100#define $ac_func innocuous_$ac_func
12101
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012102/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012103 which can conflict with char $ac_func (); below.
12104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12105 <limits.h> exists even on freestanding compilers. */
12106
12107#ifdef __STDC__
12108# include <limits.h>
12109#else
12110# include <assert.h>
12111#endif
12112
12113#undef $ac_func
12114
Theodore Ts'oe1052142006-10-21 21:46:47 -040012115/* Override any GCC internal prototype to avoid an error.
12116 Use char because int might match the return type of a GCC
12117 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012118#ifdef __cplusplus
12119extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012120#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012121char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012122/* The GNU C library defines this for functions which it implements
12123 to always fail with ENOSYS. Some functions are actually named
12124 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012125#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012126choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012127#endif
12128
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012129int
12130main ()
12131{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012132return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012133 ;
12134 return 0;
12135}
12136_ACEOF
12137rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012138if { (ac_try="$ac_link"
12139case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012145 ac_status=$?
12146 grep -v '^ *+' conftest.er1 >conftest.err
12147 rm -f conftest.er1
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012150 (exit $ac_status); } && {
12151 test -z "$ac_c_werror_flag" ||
12152 test ! -s conftest.err
12153 } && test -s conftest$ac_exeext &&
12154 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012155 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012156else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012157 echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012159
Theodore Ts'oe1052142006-10-21 21:46:47 -040012160 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012161fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012162
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012164 conftest$ac_exeext conftest.$ac_ext
12165fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012166ac_res=`eval echo '${'$as_ac_var'}'`
12167 { echo "$as_me:$LINENO: result: $ac_res" >&5
12168echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012169if test `eval echo '${'$as_ac_var'}'` = yes; then
12170 cat >>confdefs.h <<_ACEOF
12171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12172_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012173
Theodore Ts'oe1052142006-10-21 21:46:47 -040012174{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12175echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012176if test "${ac_cv_func__doprnt+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012178else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012179 cat >conftest.$ac_ext <<_ACEOF
12180/* confdefs.h. */
12181_ACEOF
12182cat confdefs.h >>conftest.$ac_ext
12183cat >>conftest.$ac_ext <<_ACEOF
12184/* end confdefs.h. */
12185/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12187#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012188
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012189/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012190 which can conflict with char _doprnt (); below.
12191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12192 <limits.h> exists even on freestanding compilers. */
12193
12194#ifdef __STDC__
12195# include <limits.h>
12196#else
12197# include <assert.h>
12198#endif
12199
12200#undef _doprnt
12201
Theodore Ts'oe1052142006-10-21 21:46:47 -040012202/* Override any GCC internal prototype to avoid an error.
12203 Use char because int might match the return type of a GCC
12204 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012205#ifdef __cplusplus
12206extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012207#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012208char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012209/* The GNU C library defines this for functions which it implements
12210 to always fail with ENOSYS. Some functions are actually named
12211 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012212#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012213choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012214#endif
12215
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012216int
12217main ()
12218{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012219return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012220 ;
12221 return 0;
12222}
12223_ACEOF
12224rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012225if { (ac_try="$ac_link"
12226case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229esac
12230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest$ac_exeext &&
12241 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012242 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012243else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012244 echo "$as_me: failed program was:" >&5
12245sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012246
Theodore Ts'oe1052142006-10-21 21:46:47 -040012247 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012248fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012249
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012251 conftest$ac_exeext conftest.$ac_ext
12252fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012253{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12254echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012255if test $ac_cv_func__doprnt = yes; then
12256
12257cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012258#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012259_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012260
12261fi
12262
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012263fi
12264done
12265
12266
Theodore Ts'oe1052142006-10-21 21:46:47 -040012267{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12268echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012269if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012270 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012271else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012272 cat >conftest.$ac_ext <<_ACEOF
12273/* confdefs.h. */
12274_ACEOF
12275cat confdefs.h >>conftest.$ac_ext
12276cat >>conftest.$ac_ext <<_ACEOF
12277/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012278#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012279
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012280int
12281main ()
12282{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012283static struct dirent ac_aggr;
12284if (ac_aggr.d_reclen)
12285return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012286 ;
12287 return 0;
12288}
12289_ACEOF
12290rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012291if { (ac_try="$ac_compile"
12292case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12295esac
12296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012303 (exit $ac_status); } && {
12304 test -z "$ac_c_werror_flag" ||
12305 test ! -s conftest.err
12306 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012307 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012308else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012309 echo "$as_me: failed program was:" >&5
12310sed 's/^/| /' conftest.$ac_ext >&5
12311
Theodore Ts'oe1052142006-10-21 21:46:47 -040012312 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012313/* confdefs.h. */
12314_ACEOF
12315cat confdefs.h >>conftest.$ac_ext
12316cat >>conftest.$ac_ext <<_ACEOF
12317/* end confdefs.h. */
12318#include <dirent.h>
12319
12320int
12321main ()
12322{
12323static struct dirent ac_aggr;
12324if (sizeof ac_aggr.d_reclen)
12325return 0;
12326 ;
12327 return 0;
12328}
12329_ACEOF
12330rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012331if { (ac_try="$ac_compile"
12332case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12335esac
12336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012347 ac_cv_member_struct_dirent_d_reclen=yes
12348else
12349 echo "$as_me: failed program was:" >&5
12350sed 's/^/| /' conftest.$ac_ext >&5
12351
Theodore Ts'oe1052142006-10-21 21:46:47 -040012352 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012353fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012354
12355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012356fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012357
12358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012359fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012360{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12361echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012362if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12363 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012364#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012365_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012366
12367fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012368
Theodore Ts'oe1052142006-10-21 21:46:47 -040012369{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12370echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012371if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012372 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012373else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012374 cat >conftest.$ac_ext <<_ACEOF
12375/* confdefs.h. */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012380#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012381
Theodore Ts'oe1052142006-10-21 21:46:47 -040012382typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012383int
12384main ()
12385{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012386if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012387 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012388if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012389 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012390 ;
12391 return 0;
12392}
12393_ACEOF
12394rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012395if { (ac_try="$ac_compile"
12396case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399esac
12400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012407 (exit $ac_status); } && {
12408 test -z "$ac_c_werror_flag" ||
12409 test ! -s conftest.err
12410 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012411 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012412else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
Theodore Ts'oe1052142006-10-21 21:46:47 -040012416 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012418
12419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012420fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012421{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12422echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012423if test $ac_cv_type_ssize_t = yes; then
12424 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012425#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012426_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012427
12428fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012429
Theodore Ts'oe1052142006-10-21 21:46:47 -040012430{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12431echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012432if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012433 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012434else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012435 cat >conftest.$ac_ext <<_ACEOF
12436/* confdefs.h. */
12437_ACEOF
12438cat confdefs.h >>conftest.$ac_ext
12439cat >>conftest.$ac_ext <<_ACEOF
12440/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012441#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012442
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012443int
12444main ()
12445{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012446#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012447 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012448#endif
12449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012450 ;
12451 return 0;
12452}
12453_ACEOF
12454rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012455if { (ac_try="$ac_compile"
12456case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12459esac
12460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012462 ac_status=$?
12463 grep -v '^ *+' conftest.er1 >conftest.err
12464 rm -f conftest.er1
12465 cat conftest.err >&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012467 (exit $ac_status); } && {
12468 test -z "$ac_c_werror_flag" ||
12469 test ! -s conftest.err
12470 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012471 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012472else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012473 echo "$as_me: failed program was:" >&5
12474sed 's/^/| /' conftest.$ac_ext >&5
12475
Theodore Ts'oe1052142006-10-21 21:46:47 -040012476 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012477fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012478
12479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012480fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012481{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12482echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012483if test $ac_cv_have_decl_llseek = yes; then
12484 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012485#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012486_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012487
12488fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012489
Theodore Ts'oe1052142006-10-21 21:46:47 -040012490{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12491echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012492if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012493 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012494else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012495 cat >conftest.$ac_ext <<_ACEOF
12496/* confdefs.h. */
12497_ACEOF
12498cat confdefs.h >>conftest.$ac_ext
12499cat >>conftest.$ac_ext <<_ACEOF
12500/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012501#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012502 #define _LARGEFILE64_SOURCE
12503 #include <unistd.h>
12504
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012505int
12506main ()
12507{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012508#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012509 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012510#endif
12511
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012512 ;
12513 return 0;
12514}
12515_ACEOF
12516rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012517if { (ac_try="$ac_compile"
12518case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12521esac
12522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012524 ac_status=$?
12525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012529 (exit $ac_status); } && {
12530 test -z "$ac_c_werror_flag" ||
12531 test ! -s conftest.err
12532 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012533 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012534else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012535 echo "$as_me: failed program was:" >&5
12536sed 's/^/| /' conftest.$ac_ext >&5
12537
Theodore Ts'oe1052142006-10-21 21:46:47 -040012538 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012539fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012540
12541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012542fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012543{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12544echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012545if test $ac_cv_have_decl_lseek64 = yes; then
12546 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012547#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012548_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012549
12550fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012551
Theodore Ts'oe1052142006-10-21 21:46:47 -040012552{ echo "$as_me:$LINENO: checking for short" >&5
12553echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012554if test "${ac_cv_type_short+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12556else
12557 cat >conftest.$ac_ext <<_ACEOF
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h. */
12563$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012564typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012565int
12566main ()
12567{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012568if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012569 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012570if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012571 return 0;
12572 ;
12573 return 0;
12574}
12575_ACEOF
12576rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012577if { (ac_try="$ac_compile"
12578case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12581esac
12582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012584 ac_status=$?
12585 grep -v '^ *+' conftest.er1 >conftest.err
12586 rm -f conftest.er1
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012589 (exit $ac_status); } && {
12590 test -z "$ac_c_werror_flag" ||
12591 test ! -s conftest.err
12592 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012593 ac_cv_type_short=yes
12594else
12595 echo "$as_me: failed program was:" >&5
12596sed 's/^/| /' conftest.$ac_ext >&5
12597
Theodore Ts'oe1052142006-10-21 21:46:47 -040012598 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012599fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012600
Theodore Ts'oe1052142006-10-21 21:46:47 -040012601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12602fi
12603{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12604echo "${ECHO_T}$ac_cv_type_short" >&6; }
12605
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012606# The cast to long int works around a bug in the HP C Compiler
12607# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12608# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12609# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012610{ echo "$as_me:$LINENO: checking size of short" >&5
12611echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012612if test "${ac_cv_sizeof_short+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012615 if test "$cross_compiling" = yes; then
12616 # Depending upon the size, compute the lo and hi bounds.
12617cat >conftest.$ac_ext <<_ACEOF
12618/* confdefs.h. */
12619_ACEOF
12620cat confdefs.h >>conftest.$ac_ext
12621cat >>conftest.$ac_ext <<_ACEOF
12622/* end confdefs.h. */
12623$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012624 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012625int
12626main ()
12627{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012628static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012629test_array [0] = 0
12630
12631 ;
12632 return 0;
12633}
12634_ACEOF
12635rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012636if { (ac_try="$ac_compile"
12637case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640esac
12641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012648 (exit $ac_status); } && {
12649 test -z "$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12651 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012652 ac_lo=0 ac_mid=0
12653 while :; do
12654 cat >conftest.$ac_ext <<_ACEOF
12655/* confdefs.h. */
12656_ACEOF
12657cat confdefs.h >>conftest.$ac_ext
12658cat >>conftest.$ac_ext <<_ACEOF
12659/* end confdefs.h. */
12660$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012661 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012662int
12663main ()
12664{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012665static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012666test_array [0] = 0
12667
12668 ;
12669 return 0;
12670}
12671_ACEOF
12672rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012673if { (ac_try="$ac_compile"
12674case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677esac
12678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012680 ac_status=$?
12681 grep -v '^ *+' conftest.er1 >conftest.err
12682 rm -f conftest.er1
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012685 (exit $ac_status); } && {
12686 test -z "$ac_c_werror_flag" ||
12687 test ! -s conftest.err
12688 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012689 ac_hi=$ac_mid; break
12690else
12691 echo "$as_me: failed program was:" >&5
12692sed 's/^/| /' conftest.$ac_ext >&5
12693
Theodore Ts'oe1052142006-10-21 21:46:47 -040012694 ac_lo=`expr $ac_mid + 1`
12695 if test $ac_lo -le $ac_mid; then
12696 ac_lo= ac_hi=
12697 break
12698 fi
12699 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012700fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012701
12702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012703 done
12704else
12705 echo "$as_me: failed program was:" >&5
12706sed 's/^/| /' conftest.$ac_ext >&5
12707
Theodore Ts'oe1052142006-10-21 21:46:47 -040012708 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012709/* confdefs.h. */
12710_ACEOF
12711cat confdefs.h >>conftest.$ac_ext
12712cat >>conftest.$ac_ext <<_ACEOF
12713/* end confdefs.h. */
12714$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012715 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012716int
12717main ()
12718{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012719static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012720test_array [0] = 0
12721
12722 ;
12723 return 0;
12724}
12725_ACEOF
12726rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012727if { (ac_try="$ac_compile"
12728case "(($ac_try" in
12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12731esac
12732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012739 (exit $ac_status); } && {
12740 test -z "$ac_c_werror_flag" ||
12741 test ! -s conftest.err
12742 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012743 ac_hi=-1 ac_mid=-1
12744 while :; do
12745 cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
12751$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012752 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012753int
12754main ()
12755{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012756static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012757test_array [0] = 0
12758
12759 ;
12760 return 0;
12761}
12762_ACEOF
12763rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012764if { (ac_try="$ac_compile"
12765case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12768esac
12769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012771 ac_status=$?
12772 grep -v '^ *+' conftest.er1 >conftest.err
12773 rm -f conftest.er1
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012776 (exit $ac_status); } && {
12777 test -z "$ac_c_werror_flag" ||
12778 test ! -s conftest.err
12779 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012780 ac_lo=$ac_mid; break
12781else
12782 echo "$as_me: failed program was:" >&5
12783sed 's/^/| /' conftest.$ac_ext >&5
12784
Theodore Ts'oe1052142006-10-21 21:46:47 -040012785 ac_hi=`expr '(' $ac_mid ')' - 1`
12786 if test $ac_mid -le $ac_hi; then
12787 ac_lo= ac_hi=
12788 break
12789 fi
12790 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012791fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012792
12793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012794 done
12795else
12796 echo "$as_me: failed program was:" >&5
12797sed 's/^/| /' conftest.$ac_ext >&5
12798
Theodore Ts'oe1052142006-10-21 21:46:47 -040012799 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012800fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012801
12802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012803fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012804
12805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012806# Binary search between lo and hi bounds.
12807while test "x$ac_lo" != "x$ac_hi"; do
12808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12809 cat >conftest.$ac_ext <<_ACEOF
12810/* confdefs.h. */
12811_ACEOF
12812cat confdefs.h >>conftest.$ac_ext
12813cat >>conftest.$ac_ext <<_ACEOF
12814/* end confdefs.h. */
12815$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012816 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012817int
12818main ()
12819{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012820static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012821test_array [0] = 0
12822
12823 ;
12824 return 0;
12825}
12826_ACEOF
12827rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012828if { (ac_try="$ac_compile"
12829case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12832esac
12833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012840 (exit $ac_status); } && {
12841 test -z "$ac_c_werror_flag" ||
12842 test ! -s conftest.err
12843 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012844 ac_hi=$ac_mid
12845else
12846 echo "$as_me: failed program was:" >&5
12847sed 's/^/| /' conftest.$ac_ext >&5
12848
Theodore Ts'oe1052142006-10-21 21:46:47 -040012849 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012850fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012851
12852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012853done
12854case $ac_lo in
12855?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012856'') if test "$ac_cv_type_short" = yes; then
12857 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012858See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012859echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012860See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012861 { (exit 77); exit 77; }; }
12862 else
12863 ac_cv_sizeof_short=0
12864 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012865esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012866else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012867 cat >conftest.$ac_ext <<_ACEOF
12868/* confdefs.h. */
12869_ACEOF
12870cat confdefs.h >>conftest.$ac_ext
12871cat >>conftest.$ac_ext <<_ACEOF
12872/* end confdefs.h. */
12873$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012874 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012875static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12876static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012877#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012878#include <stdlib.h>
12879int
12880main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012881{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012882
12883 FILE *f = fopen ("conftest.val", "w");
12884 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012885 return 1;
12886 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012887 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012888 long int i = longval ();
12889 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12890 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012891 fprintf (f, "%ld\n", i);
12892 }
12893 else
12894 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012895 unsigned long int i = ulongval ();
12896 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12897 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012898 fprintf (f, "%lu\n", i);
12899 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012900 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012901
12902 ;
12903 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012904}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012905_ACEOF
12906rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012907if { (ac_try="$ac_link"
12908case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12911esac
12912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012917 { (case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12920esac
12921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012923 ac_status=$?
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
12926 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012927else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012928 echo "$as_me: program exited with status $ac_status" >&5
12929echo "$as_me: failed program was:" >&5
12930sed 's/^/| /' conftest.$ac_ext >&5
12931
12932( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012933if test "$ac_cv_type_short" = yes; then
12934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012935See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012936echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012937See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012938 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012939 else
12940 ac_cv_sizeof_short=0
12941 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012942fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012943rm -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 -050012944fi
12945rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012946fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012947{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12948echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012949
12950
12951
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012952cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012953#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012954_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012955
12956
Theodore Ts'oe1052142006-10-21 21:46:47 -040012957{ echo "$as_me:$LINENO: checking for int" >&5
12958echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012959if test "${ac_cv_type_int+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961else
12962 cat >conftest.$ac_ext <<_ACEOF
12963/* confdefs.h. */
12964_ACEOF
12965cat confdefs.h >>conftest.$ac_ext
12966cat >>conftest.$ac_ext <<_ACEOF
12967/* end confdefs.h. */
12968$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012969typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012970int
12971main ()
12972{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012973if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012974 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012975if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012976 return 0;
12977 ;
12978 return 0;
12979}
12980_ACEOF
12981rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012982if { (ac_try="$ac_compile"
12983case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12986esac
12987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012989 ac_status=$?
12990 grep -v '^ *+' conftest.er1 >conftest.err
12991 rm -f conftest.er1
12992 cat conftest.err >&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012994 (exit $ac_status); } && {
12995 test -z "$ac_c_werror_flag" ||
12996 test ! -s conftest.err
12997 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012998 ac_cv_type_int=yes
12999else
13000 echo "$as_me: failed program was:" >&5
13001sed 's/^/| /' conftest.$ac_ext >&5
13002
Theodore Ts'oe1052142006-10-21 21:46:47 -040013003 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013004fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013005
Theodore Ts'oe1052142006-10-21 21:46:47 -040013006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13007fi
13008{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13009echo "${ECHO_T}$ac_cv_type_int" >&6; }
13010
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013011# The cast to long int works around a bug in the HP C Compiler
13012# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13013# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13014# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013015{ echo "$as_me:$LINENO: checking size of int" >&5
13016echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013017if test "${ac_cv_sizeof_int+set}" = set; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13019else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013020 if test "$cross_compiling" = yes; then
13021 # Depending upon the size, compute the lo and hi bounds.
13022cat >conftest.$ac_ext <<_ACEOF
13023/* confdefs.h. */
13024_ACEOF
13025cat confdefs.h >>conftest.$ac_ext
13026cat >>conftest.$ac_ext <<_ACEOF
13027/* end confdefs.h. */
13028$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013029 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013030int
13031main ()
13032{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013033static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013034test_array [0] = 0
13035
13036 ;
13037 return 0;
13038}
13039_ACEOF
13040rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013041if { (ac_try="$ac_compile"
13042case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13045esac
13046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013048 ac_status=$?
13049 grep -v '^ *+' conftest.er1 >conftest.err
13050 rm -f conftest.er1
13051 cat conftest.err >&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013053 (exit $ac_status); } && {
13054 test -z "$ac_c_werror_flag" ||
13055 test ! -s conftest.err
13056 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013057 ac_lo=0 ac_mid=0
13058 while :; do
13059 cat >conftest.$ac_ext <<_ACEOF
13060/* confdefs.h. */
13061_ACEOF
13062cat confdefs.h >>conftest.$ac_ext
13063cat >>conftest.$ac_ext <<_ACEOF
13064/* end confdefs.h. */
13065$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013066 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013067int
13068main ()
13069{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013070static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013071test_array [0] = 0
13072
13073 ;
13074 return 0;
13075}
13076_ACEOF
13077rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013078if { (ac_try="$ac_compile"
13079case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082esac
13083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013085 ac_status=$?
13086 grep -v '^ *+' conftest.er1 >conftest.err
13087 rm -f conftest.er1
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013090 (exit $ac_status); } && {
13091 test -z "$ac_c_werror_flag" ||
13092 test ! -s conftest.err
13093 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013094 ac_hi=$ac_mid; break
13095else
13096 echo "$as_me: failed program was:" >&5
13097sed 's/^/| /' conftest.$ac_ext >&5
13098
Theodore Ts'oe1052142006-10-21 21:46:47 -040013099 ac_lo=`expr $ac_mid + 1`
13100 if test $ac_lo -le $ac_mid; then
13101 ac_lo= ac_hi=
13102 break
13103 fi
13104 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013105fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013106
13107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013108 done
13109else
13110 echo "$as_me: failed program was:" >&5
13111sed 's/^/| /' conftest.$ac_ext >&5
13112
Theodore Ts'oe1052142006-10-21 21:46:47 -040013113 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013114/* confdefs.h. */
13115_ACEOF
13116cat confdefs.h >>conftest.$ac_ext
13117cat >>conftest.$ac_ext <<_ACEOF
13118/* end confdefs.h. */
13119$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013120 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013121int
13122main ()
13123{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013124static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013125test_array [0] = 0
13126
13127 ;
13128 return 0;
13129}
13130_ACEOF
13131rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013132if { (ac_try="$ac_compile"
13133case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13136esac
13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013144 (exit $ac_status); } && {
13145 test -z "$ac_c_werror_flag" ||
13146 test ! -s conftest.err
13147 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013148 ac_hi=-1 ac_mid=-1
13149 while :; do
13150 cat >conftest.$ac_ext <<_ACEOF
13151/* confdefs.h. */
13152_ACEOF
13153cat confdefs.h >>conftest.$ac_ext
13154cat >>conftest.$ac_ext <<_ACEOF
13155/* end confdefs.h. */
13156$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013157 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013158int
13159main ()
13160{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013161static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013162test_array [0] = 0
13163
13164 ;
13165 return 0;
13166}
13167_ACEOF
13168rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013169if { (ac_try="$ac_compile"
13170case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13173esac
13174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013176 ac_status=$?
13177 grep -v '^ *+' conftest.er1 >conftest.err
13178 rm -f conftest.er1
13179 cat conftest.err >&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013181 (exit $ac_status); } && {
13182 test -z "$ac_c_werror_flag" ||
13183 test ! -s conftest.err
13184 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013185 ac_lo=$ac_mid; break
13186else
13187 echo "$as_me: failed program was:" >&5
13188sed 's/^/| /' conftest.$ac_ext >&5
13189
Theodore Ts'oe1052142006-10-21 21:46:47 -040013190 ac_hi=`expr '(' $ac_mid ')' - 1`
13191 if test $ac_mid -le $ac_hi; then
13192 ac_lo= ac_hi=
13193 break
13194 fi
13195 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013196fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013197
13198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013199 done
13200else
13201 echo "$as_me: failed program was:" >&5
13202sed 's/^/| /' conftest.$ac_ext >&5
13203
Theodore Ts'oe1052142006-10-21 21:46:47 -040013204 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013205fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013206
13207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013208fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013209
13210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013211# Binary search between lo and hi bounds.
13212while test "x$ac_lo" != "x$ac_hi"; do
13213 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13214 cat >conftest.$ac_ext <<_ACEOF
13215/* confdefs.h. */
13216_ACEOF
13217cat confdefs.h >>conftest.$ac_ext
13218cat >>conftest.$ac_ext <<_ACEOF
13219/* end confdefs.h. */
13220$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013221 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013222int
13223main ()
13224{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013225static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013226test_array [0] = 0
13227
13228 ;
13229 return 0;
13230}
13231_ACEOF
13232rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013233if { (ac_try="$ac_compile"
13234case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13237esac
13238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013245 (exit $ac_status); } && {
13246 test -z "$ac_c_werror_flag" ||
13247 test ! -s conftest.err
13248 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013249 ac_hi=$ac_mid
13250else
13251 echo "$as_me: failed program was:" >&5
13252sed 's/^/| /' conftest.$ac_ext >&5
13253
Theodore Ts'oe1052142006-10-21 21:46:47 -040013254 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013255fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013256
13257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013258done
13259case $ac_lo in
13260?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013261'') if test "$ac_cv_type_int" = yes; then
13262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013263See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013264echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013265See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013266 { (exit 77); exit 77; }; }
13267 else
13268 ac_cv_sizeof_int=0
13269 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013270esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013271else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013272 cat >conftest.$ac_ext <<_ACEOF
13273/* confdefs.h. */
13274_ACEOF
13275cat confdefs.h >>conftest.$ac_ext
13276cat >>conftest.$ac_ext <<_ACEOF
13277/* end confdefs.h. */
13278$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013279 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013280static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13281static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013282#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013283#include <stdlib.h>
13284int
13285main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013286{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013287
13288 FILE *f = fopen ("conftest.val", "w");
13289 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013290 return 1;
13291 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013292 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013293 long int i = longval ();
13294 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13295 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013296 fprintf (f, "%ld\n", i);
13297 }
13298 else
13299 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013300 unsigned long int i = ulongval ();
13301 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13302 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013303 fprintf (f, "%lu\n", i);
13304 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013305 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013306
13307 ;
13308 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013309}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013310_ACEOF
13311rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013312if { (ac_try="$ac_link"
13313case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13316esac
13317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013322 { (case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13325esac
13326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013332else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013333 echo "$as_me: program exited with status $ac_status" >&5
13334echo "$as_me: failed program was:" >&5
13335sed 's/^/| /' conftest.$ac_ext >&5
13336
13337( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013338if test "$ac_cv_type_int" = yes; then
13339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013340See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013341echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013342See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013343 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013344 else
13345 ac_cv_sizeof_int=0
13346 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013347fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013348rm -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 -050013349fi
13350rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013351fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013352{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13353echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013354
13355
13356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013357cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013358#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013359_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013360
13361
Theodore Ts'oe1052142006-10-21 21:46:47 -040013362{ echo "$as_me:$LINENO: checking for long" >&5
13363echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013364if test "${ac_cv_type_long+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366else
13367 cat >conftest.$ac_ext <<_ACEOF
13368/* confdefs.h. */
13369_ACEOF
13370cat confdefs.h >>conftest.$ac_ext
13371cat >>conftest.$ac_ext <<_ACEOF
13372/* end confdefs.h. */
13373$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013374typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013375int
13376main ()
13377{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013378if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013379 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013380if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013381 return 0;
13382 ;
13383 return 0;
13384}
13385_ACEOF
13386rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013387if { (ac_try="$ac_compile"
13388case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013394 ac_status=$?
13395 grep -v '^ *+' conftest.er1 >conftest.err
13396 rm -f conftest.er1
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013399 (exit $ac_status); } && {
13400 test -z "$ac_c_werror_flag" ||
13401 test ! -s conftest.err
13402 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013403 ac_cv_type_long=yes
13404else
13405 echo "$as_me: failed program was:" >&5
13406sed 's/^/| /' conftest.$ac_ext >&5
13407
Theodore Ts'oe1052142006-10-21 21:46:47 -040013408 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013409fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013410
Theodore Ts'oe1052142006-10-21 21:46:47 -040013411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13412fi
13413{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13414echo "${ECHO_T}$ac_cv_type_long" >&6; }
13415
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013416# The cast to long int works around a bug in the HP C Compiler
13417# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13418# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13419# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013420{ echo "$as_me:$LINENO: checking size of long" >&5
13421echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013422if test "${ac_cv_sizeof_long+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13424else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013425 if test "$cross_compiling" = yes; then
13426 # Depending upon the size, compute the lo and hi bounds.
13427cat >conftest.$ac_ext <<_ACEOF
13428/* confdefs.h. */
13429_ACEOF
13430cat confdefs.h >>conftest.$ac_ext
13431cat >>conftest.$ac_ext <<_ACEOF
13432/* end confdefs.h. */
13433$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013434 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013435int
13436main ()
13437{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013438static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013439test_array [0] = 0
13440
13441 ;
13442 return 0;
13443}
13444_ACEOF
13445rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013446if { (ac_try="$ac_compile"
13447case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13450esac
13451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013453 ac_status=$?
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013458 (exit $ac_status); } && {
13459 test -z "$ac_c_werror_flag" ||
13460 test ! -s conftest.err
13461 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013462 ac_lo=0 ac_mid=0
13463 while :; do
13464 cat >conftest.$ac_ext <<_ACEOF
13465/* confdefs.h. */
13466_ACEOF
13467cat confdefs.h >>conftest.$ac_ext
13468cat >>conftest.$ac_ext <<_ACEOF
13469/* end confdefs.h. */
13470$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013471 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013472int
13473main ()
13474{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013475static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013476test_array [0] = 0
13477
13478 ;
13479 return 0;
13480}
13481_ACEOF
13482rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013483if { (ac_try="$ac_compile"
13484case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13487esac
13488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013490 ac_status=$?
13491 grep -v '^ *+' conftest.er1 >conftest.err
13492 rm -f conftest.er1
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013495 (exit $ac_status); } && {
13496 test -z "$ac_c_werror_flag" ||
13497 test ! -s conftest.err
13498 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013499 ac_hi=$ac_mid; break
13500else
13501 echo "$as_me: failed program was:" >&5
13502sed 's/^/| /' conftest.$ac_ext >&5
13503
Theodore Ts'oe1052142006-10-21 21:46:47 -040013504 ac_lo=`expr $ac_mid + 1`
13505 if test $ac_lo -le $ac_mid; then
13506 ac_lo= ac_hi=
13507 break
13508 fi
13509 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013511
13512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013513 done
13514else
13515 echo "$as_me: failed program was:" >&5
13516sed 's/^/| /' conftest.$ac_ext >&5
13517
Theodore Ts'oe1052142006-10-21 21:46:47 -040013518 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013519/* confdefs.h. */
13520_ACEOF
13521cat confdefs.h >>conftest.$ac_ext
13522cat >>conftest.$ac_ext <<_ACEOF
13523/* end confdefs.h. */
13524$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013525 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013526int
13527main ()
13528{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013529static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013530test_array [0] = 0
13531
13532 ;
13533 return 0;
13534}
13535_ACEOF
13536rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013537if { (ac_try="$ac_compile"
13538case "(($ac_try" in
13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540 *) ac_try_echo=$ac_try;;
13541esac
13542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013544 ac_status=$?
13545 grep -v '^ *+' conftest.er1 >conftest.err
13546 rm -f conftest.er1
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013549 (exit $ac_status); } && {
13550 test -z "$ac_c_werror_flag" ||
13551 test ! -s conftest.err
13552 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013553 ac_hi=-1 ac_mid=-1
13554 while :; do
13555 cat >conftest.$ac_ext <<_ACEOF
13556/* confdefs.h. */
13557_ACEOF
13558cat confdefs.h >>conftest.$ac_ext
13559cat >>conftest.$ac_ext <<_ACEOF
13560/* end confdefs.h. */
13561$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013562 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013563int
13564main ()
13565{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013566static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013567test_array [0] = 0
13568
13569 ;
13570 return 0;
13571}
13572_ACEOF
13573rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013574if { (ac_try="$ac_compile"
13575case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578esac
13579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013581 ac_status=$?
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013586 (exit $ac_status); } && {
13587 test -z "$ac_c_werror_flag" ||
13588 test ! -s conftest.err
13589 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013590 ac_lo=$ac_mid; break
13591else
13592 echo "$as_me: failed program was:" >&5
13593sed 's/^/| /' conftest.$ac_ext >&5
13594
Theodore Ts'oe1052142006-10-21 21:46:47 -040013595 ac_hi=`expr '(' $ac_mid ')' - 1`
13596 if test $ac_mid -le $ac_hi; then
13597 ac_lo= ac_hi=
13598 break
13599 fi
13600 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013601fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013602
13603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013604 done
13605else
13606 echo "$as_me: failed program was:" >&5
13607sed 's/^/| /' conftest.$ac_ext >&5
13608
Theodore Ts'oe1052142006-10-21 21:46:47 -040013609 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013611
13612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013613fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013614
13615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013616# Binary search between lo and hi bounds.
13617while test "x$ac_lo" != "x$ac_hi"; do
13618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13619 cat >conftest.$ac_ext <<_ACEOF
13620/* confdefs.h. */
13621_ACEOF
13622cat confdefs.h >>conftest.$ac_ext
13623cat >>conftest.$ac_ext <<_ACEOF
13624/* end confdefs.h. */
13625$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013626 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013627int
13628main ()
13629{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013630static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013631test_array [0] = 0
13632
13633 ;
13634 return 0;
13635}
13636_ACEOF
13637rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013638if { (ac_try="$ac_compile"
13639case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13642esac
13643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013650 (exit $ac_status); } && {
13651 test -z "$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013654 ac_hi=$ac_mid
13655else
13656 echo "$as_me: failed program was:" >&5
13657sed 's/^/| /' conftest.$ac_ext >&5
13658
Theodore Ts'oe1052142006-10-21 21:46:47 -040013659 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013660fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013661
13662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013663done
13664case $ac_lo in
13665?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013666'') if test "$ac_cv_type_long" = yes; then
13667 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013668See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013669echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013670See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013671 { (exit 77); exit 77; }; }
13672 else
13673 ac_cv_sizeof_long=0
13674 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013675esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013676else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013677 cat >conftest.$ac_ext <<_ACEOF
13678/* confdefs.h. */
13679_ACEOF
13680cat confdefs.h >>conftest.$ac_ext
13681cat >>conftest.$ac_ext <<_ACEOF
13682/* end confdefs.h. */
13683$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013684 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013685static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13686static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013687#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013688#include <stdlib.h>
13689int
13690main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013691{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013692
13693 FILE *f = fopen ("conftest.val", "w");
13694 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013695 return 1;
13696 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013697 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013698 long int i = longval ();
13699 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13700 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013701 fprintf (f, "%ld\n", i);
13702 }
13703 else
13704 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013705 unsigned long int i = ulongval ();
13706 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13707 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013708 fprintf (f, "%lu\n", i);
13709 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013710 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013711
13712 ;
13713 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013714}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013715_ACEOF
13716rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013717if { (ac_try="$ac_link"
13718case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13721esac
13722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730esac
13731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013737else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013738 echo "$as_me: program exited with status $ac_status" >&5
13739echo "$as_me: failed program was:" >&5
13740sed 's/^/| /' conftest.$ac_ext >&5
13741
13742( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013743if test "$ac_cv_type_long" = yes; then
13744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013745See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013746echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013747See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013748 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013749 else
13750 ac_cv_sizeof_long=0
13751 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013752fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013753rm -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 -050013754fi
13755rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013756fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013757{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13758echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013759
13760
13761
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013762cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013763#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013764_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013765
13766
Theodore Ts'oe1052142006-10-21 21:46:47 -040013767{ echo "$as_me:$LINENO: checking for long long" >&5
13768echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013769if test "${ac_cv_type_long_long+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771else
13772 cat >conftest.$ac_ext <<_ACEOF
13773/* confdefs.h. */
13774_ACEOF
13775cat confdefs.h >>conftest.$ac_ext
13776cat >>conftest.$ac_ext <<_ACEOF
13777/* end confdefs.h. */
13778$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013779typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013780int
13781main ()
13782{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013783if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013784 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013785if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013786 return 0;
13787 ;
13788 return 0;
13789}
13790_ACEOF
13791rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013792if { (ac_try="$ac_compile"
13793case "(($ac_try" in
13794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13795 *) ac_try_echo=$ac_try;;
13796esac
13797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013799 ac_status=$?
13800 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -f conftest.er1
13802 cat conftest.err >&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013804 (exit $ac_status); } && {
13805 test -z "$ac_c_werror_flag" ||
13806 test ! -s conftest.err
13807 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013808 ac_cv_type_long_long=yes
13809else
13810 echo "$as_me: failed program was:" >&5
13811sed 's/^/| /' conftest.$ac_ext >&5
13812
Theodore Ts'oe1052142006-10-21 21:46:47 -040013813 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013814fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013815
Theodore Ts'oe1052142006-10-21 21:46:47 -040013816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13817fi
13818{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13819echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13820
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013821# The cast to long int works around a bug in the HP C Compiler
13822# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13823# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13824# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013825{ echo "$as_me:$LINENO: checking size of long long" >&5
13826echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013827if test "${ac_cv_sizeof_long_long+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13829else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013830 if test "$cross_compiling" = yes; then
13831 # Depending upon the size, compute the lo and hi bounds.
13832cat >conftest.$ac_ext <<_ACEOF
13833/* confdefs.h. */
13834_ACEOF
13835cat confdefs.h >>conftest.$ac_ext
13836cat >>conftest.$ac_ext <<_ACEOF
13837/* end confdefs.h. */
13838$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013839 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013840int
13841main ()
13842{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013843static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013844test_array [0] = 0
13845
13846 ;
13847 return 0;
13848}
13849_ACEOF
13850rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013851if { (ac_try="$ac_compile"
13852case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855esac
13856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013858 ac_status=$?
13859 grep -v '^ *+' conftest.er1 >conftest.err
13860 rm -f conftest.er1
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013863 (exit $ac_status); } && {
13864 test -z "$ac_c_werror_flag" ||
13865 test ! -s conftest.err
13866 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013867 ac_lo=0 ac_mid=0
13868 while :; do
13869 cat >conftest.$ac_ext <<_ACEOF
13870/* confdefs.h. */
13871_ACEOF
13872cat confdefs.h >>conftest.$ac_ext
13873cat >>conftest.$ac_ext <<_ACEOF
13874/* end confdefs.h. */
13875$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013876 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013877int
13878main ()
13879{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013880static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013881test_array [0] = 0
13882
13883 ;
13884 return 0;
13885}
13886_ACEOF
13887rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013888if { (ac_try="$ac_compile"
13889case "(($ac_try" in
13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13892esac
13893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013895 ac_status=$?
13896 grep -v '^ *+' conftest.er1 >conftest.err
13897 rm -f conftest.er1
13898 cat conftest.err >&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013900 (exit $ac_status); } && {
13901 test -z "$ac_c_werror_flag" ||
13902 test ! -s conftest.err
13903 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013904 ac_hi=$ac_mid; break
13905else
13906 echo "$as_me: failed program was:" >&5
13907sed 's/^/| /' conftest.$ac_ext >&5
13908
Theodore Ts'oe1052142006-10-21 21:46:47 -040013909 ac_lo=`expr $ac_mid + 1`
13910 if test $ac_lo -le $ac_mid; then
13911 ac_lo= ac_hi=
13912 break
13913 fi
13914 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013915fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013916
13917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013918 done
13919else
13920 echo "$as_me: failed program was:" >&5
13921sed 's/^/| /' conftest.$ac_ext >&5
13922
Theodore Ts'oe1052142006-10-21 21:46:47 -040013923 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013924/* confdefs.h. */
13925_ACEOF
13926cat confdefs.h >>conftest.$ac_ext
13927cat >>conftest.$ac_ext <<_ACEOF
13928/* end confdefs.h. */
13929$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013930 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013931int
13932main ()
13933{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013934static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013935test_array [0] = 0
13936
13937 ;
13938 return 0;
13939}
13940_ACEOF
13941rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013942if { (ac_try="$ac_compile"
13943case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13946esac
13947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013949 ac_status=$?
13950 grep -v '^ *+' conftest.er1 >conftest.err
13951 rm -f conftest.er1
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013954 (exit $ac_status); } && {
13955 test -z "$ac_c_werror_flag" ||
13956 test ! -s conftest.err
13957 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013958 ac_hi=-1 ac_mid=-1
13959 while :; do
13960 cat >conftest.$ac_ext <<_ACEOF
13961/* confdefs.h. */
13962_ACEOF
13963cat confdefs.h >>conftest.$ac_ext
13964cat >>conftest.$ac_ext <<_ACEOF
13965/* end confdefs.h. */
13966$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013967 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013968int
13969main ()
13970{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013971static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013972test_array [0] = 0
13973
13974 ;
13975 return 0;
13976}
13977_ACEOF
13978rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013979if { (ac_try="$ac_compile"
13980case "(($ac_try" in
13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982 *) ac_try_echo=$ac_try;;
13983esac
13984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013986 ac_status=$?
13987 grep -v '^ *+' conftest.er1 >conftest.err
13988 rm -f conftest.er1
13989 cat conftest.err >&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013991 (exit $ac_status); } && {
13992 test -z "$ac_c_werror_flag" ||
13993 test ! -s conftest.err
13994 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013995 ac_lo=$ac_mid; break
13996else
13997 echo "$as_me: failed program was:" >&5
13998sed 's/^/| /' conftest.$ac_ext >&5
13999
Theodore Ts'oe1052142006-10-21 21:46:47 -040014000 ac_hi=`expr '(' $ac_mid ')' - 1`
14001 if test $ac_mid -le $ac_hi; then
14002 ac_lo= ac_hi=
14003 break
14004 fi
14005 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014006fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014007
14008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014009 done
14010else
14011 echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
14013
Theodore Ts'oe1052142006-10-21 21:46:47 -040014014 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014015fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014016
14017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014018fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014019
14020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014021# Binary search between lo and hi bounds.
14022while test "x$ac_lo" != "x$ac_hi"; do
14023 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14024 cat >conftest.$ac_ext <<_ACEOF
14025/* confdefs.h. */
14026_ACEOF
14027cat confdefs.h >>conftest.$ac_ext
14028cat >>conftest.$ac_ext <<_ACEOF
14029/* end confdefs.h. */
14030$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014031 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014032int
14033main ()
14034{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014035static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014036test_array [0] = 0
14037
14038 ;
14039 return 0;
14040}
14041_ACEOF
14042rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014043if { (ac_try="$ac_compile"
14044case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14047esac
14048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014050 ac_status=$?
14051 grep -v '^ *+' conftest.er1 >conftest.err
14052 rm -f conftest.er1
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014055 (exit $ac_status); } && {
14056 test -z "$ac_c_werror_flag" ||
14057 test ! -s conftest.err
14058 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014059 ac_hi=$ac_mid
14060else
14061 echo "$as_me: failed program was:" >&5
14062sed 's/^/| /' conftest.$ac_ext >&5
14063
Theodore Ts'oe1052142006-10-21 21:46:47 -040014064 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014065fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014066
14067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014068done
14069case $ac_lo in
14070?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014071'') if test "$ac_cv_type_long_long" = yes; then
14072 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014073See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014074echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014075See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014076 { (exit 77); exit 77; }; }
14077 else
14078 ac_cv_sizeof_long_long=0
14079 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014080esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014081else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014082 cat >conftest.$ac_ext <<_ACEOF
14083/* confdefs.h. */
14084_ACEOF
14085cat confdefs.h >>conftest.$ac_ext
14086cat >>conftest.$ac_ext <<_ACEOF
14087/* end confdefs.h. */
14088$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014089 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014090static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14091static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014092#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014093#include <stdlib.h>
14094int
14095main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014096{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014097
14098 FILE *f = fopen ("conftest.val", "w");
14099 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014100 return 1;
14101 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014102 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014103 long int i = longval ();
14104 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14105 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014106 fprintf (f, "%ld\n", i);
14107 }
14108 else
14109 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014110 unsigned long int i = ulongval ();
14111 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14112 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014113 fprintf (f, "%lu\n", i);
14114 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014115 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014116
14117 ;
14118 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014119}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014120_ACEOF
14121rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014122if { (ac_try="$ac_link"
14123case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14126esac
14127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014132 { (case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14135esac
14136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014142else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014143 echo "$as_me: program exited with status $ac_status" >&5
14144echo "$as_me: failed program was:" >&5
14145sed 's/^/| /' conftest.$ac_ext >&5
14146
14147( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014148if test "$ac_cv_type_long_long" = yes; then
14149 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014150See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014151echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014152See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014153 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014154 else
14155 ac_cv_sizeof_long_long=0
14156 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014157fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014158rm -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 -050014159fi
14160rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014161fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014162{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14163echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014164
14165
14166
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014167cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014168#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014169_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014170
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014171
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014172SIZEOF_SHORT=$ac_cv_sizeof_short
14173SIZEOF_INT=$ac_cv_sizeof_int
14174SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014175SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14176
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014177
14178
14179
Theodore Ts'oe1052142006-10-21 21:46:47 -040014180{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14181echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014182if test "${ac_cv_c_bigendian+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014184else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014185 # See if sys/param.h defines the BYTE_ORDER macro.
14186cat >conftest.$ac_ext <<_ACEOF
14187/* confdefs.h. */
14188_ACEOF
14189cat confdefs.h >>conftest.$ac_ext
14190cat >>conftest.$ac_ext <<_ACEOF
14191/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014192#include <sys/types.h>
14193#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014194
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014195int
14196main ()
14197{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014198#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14199 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014200 bogus endian macros
14201#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014202
14203 ;
14204 return 0;
14205}
14206_ACEOF
14207rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014208if { (ac_try="$ac_compile"
14209case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14212esac
14213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014220 (exit $ac_status); } && {
14221 test -z "$ac_c_werror_flag" ||
14222 test ! -s conftest.err
14223 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014224 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014225cat >conftest.$ac_ext <<_ACEOF
14226/* confdefs.h. */
14227_ACEOF
14228cat confdefs.h >>conftest.$ac_ext
14229cat >>conftest.$ac_ext <<_ACEOF
14230/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014231#include <sys/types.h>
14232#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014234int
14235main ()
14236{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014237#if BYTE_ORDER != BIG_ENDIAN
14238 not big endian
14239#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014240
14241 ;
14242 return 0;
14243}
14244_ACEOF
14245rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014246if { (ac_try="$ac_compile"
14247case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14250esac
14251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014253 ac_status=$?
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014258 (exit $ac_status); } && {
14259 test -z "$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14261 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014262 ac_cv_c_bigendian=yes
14263else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014264 echo "$as_me: failed program was:" >&5
14265sed 's/^/| /' conftest.$ac_ext >&5
14266
Theodore Ts'oe1052142006-10-21 21:46:47 -040014267 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014268fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014269
14270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014271else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014272 echo "$as_me: failed program was:" >&5
14273sed 's/^/| /' conftest.$ac_ext >&5
14274
Theodore Ts'oe1052142006-10-21 21:46:47 -040014275 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014276if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014277 # try to guess the endianness by grepping values into an object file
14278 ac_cv_c_bigendian=unknown
14279 cat >conftest.$ac_ext <<_ACEOF
14280/* confdefs.h. */
14281_ACEOF
14282cat confdefs.h >>conftest.$ac_ext
14283cat >>conftest.$ac_ext <<_ACEOF
14284/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014285short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14286short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014287void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014288short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14289short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014290void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14291int
14292main ()
14293{
14294 _ascii (); _ebcdic ();
14295 ;
14296 return 0;
14297}
14298_ACEOF
14299rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014300if { (ac_try="$ac_compile"
14301case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14304esac
14305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014307 ac_status=$?
14308 grep -v '^ *+' conftest.er1 >conftest.err
14309 rm -f conftest.er1
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014312 (exit $ac_status); } && {
14313 test -z "$ac_c_werror_flag" ||
14314 test ! -s conftest.err
14315 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014316 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14317 ac_cv_c_bigendian=yes
14318fi
14319if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14320 if test "$ac_cv_c_bigendian" = unknown; then
14321 ac_cv_c_bigendian=no
14322 else
14323 # finding both strings is unlikely to happen, but who knows?
14324 ac_cv_c_bigendian=unknown
14325 fi
14326fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014327else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014328 echo "$as_me: failed program was:" >&5
14329sed 's/^/| /' conftest.$ac_ext >&5
14330
Theodore Ts'oe1052142006-10-21 21:46:47 -040014331
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014332fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014333
14334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014335else
14336 cat >conftest.$ac_ext <<_ACEOF
14337/* confdefs.h. */
14338_ACEOF
14339cat confdefs.h >>conftest.$ac_ext
14340cat >>conftest.$ac_ext <<_ACEOF
14341/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014342$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014343int
14344main ()
14345{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014346
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014347 /* Are we little or big endian? From Harbison&Steele. */
14348 union
14349 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014350 long int l;
14351 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014352 } u;
14353 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014354 return u.c[sizeof (long int) - 1] == 1;
14355
14356 ;
14357 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014358}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014359_ACEOF
14360rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014361if { (ac_try="$ac_link"
14362case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14365esac
14366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374esac
14375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014380 ac_cv_c_bigendian=no
14381else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014382 echo "$as_me: program exited with status $ac_status" >&5
14383echo "$as_me: failed program was:" >&5
14384sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014385
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014386( exit $ac_status )
14387ac_cv_c_bigendian=yes
14388fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014389rm -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 -040014390fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014391
14392
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014393fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014394
14395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014396fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014397{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14398echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014399case $ac_cv_c_bigendian in
14400 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014401
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014402cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014403#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014404_ACEOF
14405 ;;
14406 no)
14407 ;;
14408 *)
14409 { { echo "$as_me:$LINENO: error: unknown endianness
14410presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14411echo "$as_me: error: unknown endianness
14412presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14413 { (exit 1); exit 1; }; } ;;
14414esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014415
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014416BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014417ASM_TYPES_HEADER=./asm_types.h
14418
Theodore Ts'o488c75a2008-06-07 08:55:21 -040014419echo "/* These defines are needed for the public ext2fs.h header file */" \
14420 > public_config.h
14421if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14422 uniq tmp_config.$$ >> public_config.h
14423else
14424 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14425fi
14426if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14427 uniq tmp_config.$$ >> public_config.h
14428else
14429 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14430fi
14431rm -f tmp_config.$$
14432PUBLIC_CONFIG_HEADER=./public_config.h
14433
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014434
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014435for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014436do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014442 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014443fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014444ac_res=`eval echo '${'$as_ac_Header'}'`
14445 { echo "$as_me:$LINENO: result: $ac_res" >&5
14446echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014447else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014448 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014449{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14450echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014451cat >conftest.$ac_ext <<_ACEOF
14452/* confdefs.h. */
14453_ACEOF
14454cat confdefs.h >>conftest.$ac_ext
14455cat >>conftest.$ac_ext <<_ACEOF
14456/* end confdefs.h. */
14457$ac_includes_default
14458#include <$ac_header>
14459_ACEOF
14460rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014461if { (ac_try="$ac_compile"
14462case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14465esac
14466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014468 ac_status=$?
14469 grep -v '^ *+' conftest.er1 >conftest.err
14470 rm -f conftest.er1
14471 cat conftest.err >&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014473 (exit $ac_status); } && {
14474 test -z "$ac_c_werror_flag" ||
14475 test ! -s conftest.err
14476 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014477 ac_header_compiler=yes
14478else
14479 echo "$as_me: failed program was:" >&5
14480sed 's/^/| /' conftest.$ac_ext >&5
14481
Theodore Ts'oe1052142006-10-21 21:46:47 -040014482 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014483fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014484
14485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14487echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014488
14489# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014490{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014492cat >conftest.$ac_ext <<_ACEOF
14493/* confdefs.h. */
14494_ACEOF
14495cat confdefs.h >>conftest.$ac_ext
14496cat >>conftest.$ac_ext <<_ACEOF
14497/* end confdefs.h. */
14498#include <$ac_header>
14499_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014500if { (ac_try="$ac_cpp conftest.$ac_ext"
14501case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14504esac
14505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014507 ac_status=$?
14508 grep -v '^ *+' conftest.er1 >conftest.err
14509 rm -f conftest.er1
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014512 (exit $ac_status); } >/dev/null && {
14513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14515 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014516 ac_header_preproc=yes
14517else
14518 echo "$as_me: failed program was:" >&5
14519sed 's/^/| /' conftest.$ac_ext >&5
14520
14521 ac_header_preproc=no
14522fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014524rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014525{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14526echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014527
14528# So? What about this header?
14529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14530 yes:no: )
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14535 ac_header_preproc=yes
14536 ;;
14537 no:yes:* )
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14541echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14545echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014551 ;;
14552esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014553{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014556 echo $ECHO_N "(cached) $ECHO_C" >&6
14557else
14558 eval "$as_ac_Header=\$ac_header_preproc"
14559fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014560ac_res=`eval echo '${'$as_ac_Header'}'`
14561 { echo "$as_me:$LINENO: result: $ac_res" >&5
14562echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014563
14564fi
14565if test `eval echo '${'$as_ac_Header'}'` = yes; then
14566 cat >>confdefs.h <<_ACEOF
14567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14568_ACEOF
14569
14570fi
14571
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014572done
14573
Theodore Ts'oe1052142006-10-21 21:46:47 -040014574{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14575echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014576if test "${ac_cv_type_intptr_t+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014578else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014579 cat >conftest.$ac_ext <<_ACEOF
14580/* confdefs.h. */
14581_ACEOF
14582cat confdefs.h >>conftest.$ac_ext
14583cat >>conftest.$ac_ext <<_ACEOF
14584/* end confdefs.h. */
14585$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014586typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014587int
14588main ()
14589{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014590if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014591 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014592if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014593 return 0;
14594 ;
14595 return 0;
14596}
14597_ACEOF
14598rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014599if { (ac_try="$ac_compile"
14600case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14603esac
14604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014606 ac_status=$?
14607 grep -v '^ *+' conftest.er1 >conftest.err
14608 rm -f conftest.er1
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014611 (exit $ac_status); } && {
14612 test -z "$ac_c_werror_flag" ||
14613 test ! -s conftest.err
14614 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014615 ac_cv_type_intptr_t=yes
14616else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014617 echo "$as_me: failed program was:" >&5
14618sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014619
Theodore Ts'oe1052142006-10-21 21:46:47 -040014620 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014621fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014622
14623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014624fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014625{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14626echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014627if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014628
14629cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014630#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014631_ACEOF
14632
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014634fi
14635
Theodore Ts'oe1052142006-10-21 21:46:47 -040014636{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14637echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014638if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14640else
14641 cat >conftest.$ac_ext <<_ACEOF
14642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014647#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014648int
14649main ()
14650{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014651struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014652 ;
14653 return 0;
14654}
14655_ACEOF
14656rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014657if { (ac_try="$ac_compile"
14658case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14661esac
14662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014664 ac_status=$?
14665 grep -v '^ *+' conftest.er1 >conftest.err
14666 rm -f conftest.er1
14667 cat conftest.err >&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014669 (exit $ac_status); } && {
14670 test -z "$ac_c_werror_flag" ||
14671 test ! -s conftest.err
14672 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014673 e2fsprogs_cv_struct_st_flags=yes
14674else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014675 echo "$as_me: failed program was:" >&5
14676sed 's/^/| /' conftest.$ac_ext >&5
14677
Theodore Ts'oe1052142006-10-21 21:46:47 -040014678 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014679fi
14680
Theodore Ts'oe1052142006-10-21 21:46:47 -040014681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682fi
14683
14684{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14685echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014686if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014687 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14688echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014689 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014691else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014692 cat >conftest.$ac_ext <<_ACEOF
14693/* confdefs.h. */
14694_ACEOF
14695cat confdefs.h >>conftest.$ac_ext
14696cat >>conftest.$ac_ext <<_ACEOF
14697/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014698#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014699int
14700main ()
14701{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014702struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014703 ;
14704 return 0;
14705}
14706_ACEOF
14707rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014708if { (ac_try="$ac_compile"
14709case "(($ac_try" in
14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711 *) ac_try_echo=$ac_try;;
14712esac
14713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014715 ac_status=$?
14716 grep -v '^ *+' conftest.er1 >conftest.err
14717 rm -f conftest.er1
14718 cat conftest.err >&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014720 (exit $ac_status); } && {
14721 test -z "$ac_c_werror_flag" ||
14722 test ! -s conftest.err
14723 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014724 e2fsprogs_cv_struct_st_flags_immut=yes
14725else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014726 echo "$as_me: failed program was:" >&5
14727sed 's/^/| /' conftest.$ac_ext >&5
14728
Theodore Ts'oe1052142006-10-21 21:46:47 -040014729 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014730fi
14731
Theodore Ts'oe1052142006-10-21 21:46:47 -040014732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14733fi
14734
14735 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14736echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014737 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014738 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014739#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014740_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014741
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014742 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014743fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014744{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14745echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014746if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014747 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014748else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014749 cat >conftest.$ac_ext <<_ACEOF
14750/* confdefs.h. */
14751_ACEOF
14752cat confdefs.h >>conftest.$ac_ext
14753cat >>conftest.$ac_ext <<_ACEOF
14754/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014755#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014756 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014757
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014758int
14759main ()
14760{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014761static struct sockaddr ac_aggr;
14762if (ac_aggr.sa_len)
14763return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014764 ;
14765 return 0;
14766}
14767_ACEOF
14768rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014769if { (ac_try="$ac_compile"
14770case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14773esac
14774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014781 (exit $ac_status); } && {
14782 test -z "$ac_c_werror_flag" ||
14783 test ! -s conftest.err
14784 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014785 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014786else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014787 echo "$as_me: failed program was:" >&5
14788sed 's/^/| /' conftest.$ac_ext >&5
14789
Theodore Ts'oe1052142006-10-21 21:46:47 -040014790 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014791/* confdefs.h. */
14792_ACEOF
14793cat confdefs.h >>conftest.$ac_ext
14794cat >>conftest.$ac_ext <<_ACEOF
14795/* end confdefs.h. */
14796#include <sys/types.h>
14797 #include <sys/socket.h>
14798
14799int
14800main ()
14801{
14802static struct sockaddr ac_aggr;
14803if (sizeof ac_aggr.sa_len)
14804return 0;
14805 ;
14806 return 0;
14807}
14808_ACEOF
14809rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014810if { (ac_try="$ac_compile"
14811case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814esac
14815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014826 ac_cv_member_struct_sockaddr_sa_len=yes
14827else
14828 echo "$as_me: failed program was:" >&5
14829sed 's/^/| /' conftest.$ac_ext >&5
14830
Theodore Ts'oe1052142006-10-21 21:46:47 -040014831 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014832fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014833
14834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014835fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014836
14837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014838fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014839{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14840echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014841if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014842
14843cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014844#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014845_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014846
14847fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014867
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014868
14869
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014870
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014871
Theodore Ts'o106ad962007-04-04 21:26:37 -040014872
14873
14874
Theodore Ts'o740837d2007-12-16 17:21:38 -050014875
14876
Theodore Ts'o261cd392008-01-21 13:45:00 -050014877
14878for 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 +000014879do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014881{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14883if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014884 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014885else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014886 cat >conftest.$ac_ext <<_ACEOF
14887/* confdefs.h. */
14888_ACEOF
14889cat confdefs.h >>conftest.$ac_ext
14890cat >>conftest.$ac_ext <<_ACEOF
14891/* end confdefs.h. */
14892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14894#define $ac_func innocuous_$ac_func
14895
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014896/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014897 which can conflict with char $ac_func (); below.
14898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14899 <limits.h> exists even on freestanding compilers. */
14900
14901#ifdef __STDC__
14902# include <limits.h>
14903#else
14904# include <assert.h>
14905#endif
14906
14907#undef $ac_func
14908
Theodore Ts'oe1052142006-10-21 21:46:47 -040014909/* Override any GCC internal prototype to avoid an error.
14910 Use char because int might match the return type of a GCC
14911 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014912#ifdef __cplusplus
14913extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014914#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014915char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014916/* The GNU C library defines this for functions which it implements
14917 to always fail with ENOSYS. Some functions are actually named
14918 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014919#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014920choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014921#endif
14922
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014923int
14924main ()
14925{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014926return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014927 ;
14928 return 0;
14929}
14930_ACEOF
14931rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014932if { (ac_try="$ac_link"
14933case "(($ac_try" in
14934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935 *) ac_try_echo=$ac_try;;
14936esac
14937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014939 ac_status=$?
14940 grep -v '^ *+' conftest.er1 >conftest.err
14941 rm -f conftest.er1
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014944 (exit $ac_status); } && {
14945 test -z "$ac_c_werror_flag" ||
14946 test ! -s conftest.err
14947 } && test -s conftest$ac_exeext &&
14948 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014949 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014950else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014951 echo "$as_me: failed program was:" >&5
14952sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014953
Theodore Ts'oe1052142006-10-21 21:46:47 -040014954 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014955fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014956
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014958 conftest$ac_exeext conftest.$ac_ext
14959fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014960ac_res=`eval echo '${'$as_ac_var'}'`
14961 { echo "$as_me:$LINENO: result: $ac_res" >&5
14962echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014963if test `eval echo '${'$as_ac_var'}'` = yes; then
14964 cat >>confdefs.h <<_ACEOF
14965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14966_ACEOF
14967
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014968fi
14969done
14970
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014971SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014972{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14973echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014974if test "${ac_cv_lib_socket_socket+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014976else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014977 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014978LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014979cat >conftest.$ac_ext <<_ACEOF
14980/* confdefs.h. */
14981_ACEOF
14982cat confdefs.h >>conftest.$ac_ext
14983cat >>conftest.$ac_ext <<_ACEOF
14984/* end confdefs.h. */
14985
Theodore Ts'oe1052142006-10-21 21:46:47 -040014986/* Override any GCC internal prototype to avoid an error.
14987 Use char because int might match the return type of a GCC
14988 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014989#ifdef __cplusplus
14990extern "C"
14991#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014992char socket ();
14993int
14994main ()
14995{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014996return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014997 ;
14998 return 0;
14999}
15000_ACEOF
15001rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015002if { (ac_try="$ac_link"
15003case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15006esac
15007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015009 ac_status=$?
15010 grep -v '^ *+' conftest.er1 >conftest.err
15011 rm -f conftest.er1
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015014 (exit $ac_status); } && {
15015 test -z "$ac_c_werror_flag" ||
15016 test ! -s conftest.err
15017 } && test -s conftest$ac_exeext &&
15018 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015019 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015020else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015021 echo "$as_me: failed program was:" >&5
15022sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015023
Theodore Ts'oe1052142006-10-21 21:46:47 -040015024 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015025fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015026
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015028 conftest$ac_exeext conftest.$ac_ext
15029LIBS=$ac_check_lib_save_LIBS
15030fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015031{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15032echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015033if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015034 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015035fi
15036
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015037
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015038DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015039{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15040echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015041if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015043else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015044 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015045LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015046cat >conftest.$ac_ext <<_ACEOF
15047/* confdefs.h. */
15048_ACEOF
15049cat confdefs.h >>conftest.$ac_ext
15050cat >>conftest.$ac_ext <<_ACEOF
15051/* end confdefs.h. */
15052
Theodore Ts'oe1052142006-10-21 21:46:47 -040015053/* Override any GCC internal prototype to avoid an error.
15054 Use char because int might match the return type of a GCC
15055 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015056#ifdef __cplusplus
15057extern "C"
15058#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015059char dlopen ();
15060int
15061main ()
15062{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015063return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015064 ;
15065 return 0;
15066}
15067_ACEOF
15068rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015069if { (ac_try="$ac_link"
15070case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15073esac
15074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015076 ac_status=$?
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015081 (exit $ac_status); } && {
15082 test -z "$ac_c_werror_flag" ||
15083 test ! -s conftest.err
15084 } && test -s conftest$ac_exeext &&
15085 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015086 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015087else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015088 echo "$as_me: failed program was:" >&5
15089sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015090
Theodore Ts'oe1052142006-10-21 21:46:47 -040015091 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015092fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015093
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015095 conftest$ac_exeext conftest.$ac_ext
15096LIBS=$ac_check_lib_save_LIBS
15097fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015098{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15099echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015100if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015101 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015102cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015103#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015104_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015105
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015106fi
15107
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015108
Theodore Ts'oe1052142006-10-21 21:46:47 -040015109{ echo "$as_me:$LINENO: checking for optreset" >&5
15110echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015111if test "${ac_cv_have_optreset+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015113else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015114 cat >conftest.$ac_ext <<_ACEOF
15115/* confdefs.h. */
15116_ACEOF
15117cat confdefs.h >>conftest.$ac_ext
15118cat >>conftest.$ac_ext <<_ACEOF
15119/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015120#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015121
15122_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015124 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015125 ac_cv_have_optreset=yes
15126else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015127 ac_cv_have_optreset=no
15128fi
15129rm -f conftest*
15130
15131fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015132{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15133echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015134if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015135 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015136#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015137_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015138
15139fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015140{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15141echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015142if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015143 UNI_DIFF_OPTS=-u
15144else
15145 UNI_DIFF_OPTS=-c
15146fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015147{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15148echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015149
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015150case "$host_os" in
15151linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015152 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015153#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015154_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015155
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015156 ;;
15157esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015158LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015159CYGWIN_CMT="#"
15160UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015161case "$host_os" in
15162linux*)
15163 LINUX_CMT=
15164 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015165cygwin)
15166 CYGWIN_CMT=
15167 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015168 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015169esac
15170
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015171
15172
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015173case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015174linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015175 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15176 root_prefix="";
15177 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015178 fi
15179 ;;
15180esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015181case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015182linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015183 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015184 prefix="/usr";
15185 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040015186 if test "$mandir" = '${prefix}/man' ; then
15187 echo "...and mandir defaults to /usr/share/man"
15188 mandir=/usr/share/man
15189 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015190 fi
15191;;
15192esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015193if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015194 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015195 root_prefix="$ac_default_prefix"
15196 else
15197 root_prefix="$prefix"
15198 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015199 root_bindir=$bindir
15200 root_sbindir=$sbindir
15201 root_libdir=$libdir
15202 root_sysconfdir=$sysconfdir
15203else
15204 root_bindir='${root_prefix}/bin'
15205 root_sbindir='${root_prefix}/sbin'
15206 root_libdir='${root_prefix}/lib'
15207 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015208fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015209if test "$bindir" != '${exec_prefix}/bin'; then
15210 root_bindir=$bindir
15211 echo "Setting root_bindir to $root_bindir"
15212fi
15213if test "$sbindir" != '${exec_prefix}/sbin'; then
15214 root_sbindir=$sbindir
15215 echo "Setting root_sbindir to $root_sbindir"
15216fi
15217if test "$libdir" != '${exec_prefix}/lib'; then
15218 root_libdir=$libdir
15219 echo "Setting root_libdir to $root_libdir"
15220fi
15221if test "$sysconfdir" != '${prefix}/etc'; then
15222 root_sysconfdir=$sysconfdir
15223 echo "Setting root_sysconfdir to $root_sysconfdir"
15224fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015225
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015226
15227
15228
15229
Theodore Ts'oe1052142006-10-21 21:46:47 -040015230{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15231echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015232if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015234else
15235 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015236cat >conftest.$ac_ext <<_ACEOF
15237/* confdefs.h. */
15238_ACEOF
15239cat confdefs.h >>conftest.$ac_ext
15240cat >>conftest.$ac_ext <<_ACEOF
15241/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015242#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015243int
15244main ()
15245{
Theodore Ts'oae851481997-04-29 18:13:24 +000015246fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015247 ;
15248 return 0;
15249}
15250_ACEOF
15251rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015252if { (ac_try="$ac_link"
15253case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15256esac
15257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015259 ac_status=$?
15260 grep -v '^ *+' conftest.er1 >conftest.err
15261 rm -f conftest.er1
15262 cat conftest.err >&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015264 (exit $ac_status); } && {
15265 test -z "$ac_c_werror_flag" ||
15266 test ! -s conftest.err
15267 } && test -s conftest$ac_exeext &&
15268 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015269 ac_cv_e2fsprogs_use_static=yes
15270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015271 echo "$as_me: failed program was:" >&5
15272sed 's/^/| /' conftest.$ac_ext >&5
15273
Theodore Ts'oe1052142006-10-21 21:46:47 -040015274 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015275fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015276
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015278 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015279LDFLAGS=$SAVE_LDFLAGS
15280fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015281
Theodore Ts'odefde781999-01-04 07:39:19 +000015282case "$host_os" in
15283solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015284 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015285;;
15286esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015287{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15288echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015289LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015290if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015291 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015292fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015293
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015294case "$host_os" in
15295darwin*)
15296 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015297 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015298#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015299_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015300
15301 ;;
15302esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015303SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15304ET_DIR=`cd ${srcdir}/lib/et; pwd`
15305
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015306
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015307if test "$cross_compiling" = yes ; then
15308 DO_TEST_SUITE=
15309else
15310 DO_TEST_SUITE=check
15311fi
15312
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015313INTL_FLAGS=
15314if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15315 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15316fi
15317
Theodore Ts'odd947da2005-11-09 18:37:07 -040015318if test $cross_compiling = no; then
15319 BUILD_CFLAGS="$CFLAGS"
15320 BUILD_LDFLAGS="$LDFLAGS"
15321else
15322 BUILD_CFLAGS=
15323 BUILD_LDFLAGS=
15324fi
15325
15326
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015327test -d lib || mkdir lib
15328test -d include || mkdir include
15329test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015330test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015331for i in MCONFIG Makefile e2fsprogs.spec \
15332 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015333 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15334 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015335 lib/uuid/Makefile lib/uuid/uuid_types.h \
15336 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015337 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15338 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015339 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015340 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15341 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15342 if test -d `dirname ${srcdir}/$i` ; then
15343 outlist="$outlist $i"
15344 fi
15345done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015346ac_config_files="$ac_config_files $outlist"
15347
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015348cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015349# This file is a shell script that caches the results of configure
15350# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015351# scripts and configure runs, see configure's option --config-cache.
15352# It is not useful on other systems. If it contains results you don't
15353# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015354#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015355# config.status only pays attention to the cache file if you give it
15356# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015357#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015358# `ac_cv_env_foo' variables (set or unset) will be overridden when
15359# loading this file, other *unset* `ac_cv_foo' will be assigned the
15360# following values.
15361
15362_ACEOF
15363
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015364# The following way of writing the cache mishandles newlines in values,
15365# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015366# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015367# Ultrix sh set writes to stderr and can't be redirected directly,
15368# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015369(
15370 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15371 eval ac_val=\$$ac_var
15372 case $ac_val in #(
15373 *${as_nl}*)
15374 case $ac_var in #(
15375 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15376echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15377 esac
15378 case $ac_var in #(
15379 _ | IFS | as_nl) ;; #(
15380 *) $as_unset $ac_var ;;
15381 esac ;;
15382 esac
15383 done
15384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015385 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015386 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15387 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015388 # `set' does not quote correctly, so add quotes (double-quote
15389 # substitution turns \\\\ into \\, and sed turns \\ into \).
15390 sed -n \
15391 "s/'/'\\\\''/g;
15392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015393 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015394 *)
15395 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015397 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015398 esac |
15399 sort
15400) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015401 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015402 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015403 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015404 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015405 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15406 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015407 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15408 :end' >>confcache
15409if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15410 if test -w "$cache_file"; then
15411 test "x$cache_file" != "x/dev/null" &&
15412 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15413echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015414 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015415 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015416 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15417echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015418 fi
15419fi
15420rm -f confcache
15421
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015422test "x$prefix" = xNONE && prefix=$ac_default_prefix
15423# Let make expand exec_prefix.
15424test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15425
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015426# Transform confdefs.h into DEFS.
15427# Protect against shell expansion while executing Makefile rules.
15428# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015429#
15430# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015431# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015432# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015433ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015434t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015435:clear
15436s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015437t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015438s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015439t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015440b any
15441:quote
15442s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15443s/\[/\\&/g
15444s/\]/\\&/g
15445s/\$/$$/g
15446H
15447:any
15448${
15449 g
15450 s/^\n//
15451 s/\n/ /g
15452 p
15453}
15454'
15455DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015456
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015457
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015458ac_libobjs=
15459ac_ltlibobjs=
15460for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15461 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015462 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15463 ac_i=`echo "$ac_i" | sed "$ac_script"`
15464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15465 # will be set to the directory where LIBOBJS objects are built.
15466 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15467 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015468done
15469LIBOBJS=$ac_libobjs
15470
15471LTLIBOBJS=$ac_ltlibobjs
15472
15473
15474
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015475: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015476ac_clean_files_save=$ac_clean_files
15477ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15478{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15479echo "$as_me: creating $CONFIG_STATUS" >&6;}
15480cat >$CONFIG_STATUS <<_ACEOF
15481#! $SHELL
15482# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015483# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015484# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015485# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015486
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015487debug=false
15488ac_cs_recheck=false
15489ac_cs_silent=false
15490SHELL=\${CONFIG_SHELL-$SHELL}
15491_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015493cat >>$CONFIG_STATUS <<\_ACEOF
15494## --------------------- ##
15495## M4sh Initialization. ##
15496## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015497
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015498# Be more Bourne compatible
15499DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015500if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15501 emulate sh
15502 NULLCMD=:
15503 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15504 # is contrary to our usage. Disable this feature.
15505 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015506 setopt NO_GLOB_SUBST
15507else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015508 case `(set -o) 2>/dev/null` in
15509 *posix*) set -o posix ;;
15510esac
15511
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015512fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015513
15514
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015515
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015516
Theodore Ts'oe1052142006-10-21 21:46:47 -040015517# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015518# Avoid depending upon Character Ranges.
15519as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15520as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15521as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15522as_cr_digits='0123456789'
15523as_cr_alnum=$as_cr_Letters$as_cr_digits
15524
15525# The user is always right.
15526if test "${PATH_SEPARATOR+set}" != set; then
15527 echo "#! /bin/sh" >conf$$.sh
15528 echo "exit 0" >>conf$$.sh
15529 chmod +x conf$$.sh
15530 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15531 PATH_SEPARATOR=';'
15532 else
15533 PATH_SEPARATOR=:
15534 fi
15535 rm -f conf$$.sh
15536fi
15537
Theodore Ts'oe1052142006-10-21 21:46:47 -040015538# Support unset when possible.
15539if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15540 as_unset=unset
15541else
15542 as_unset=false
15543fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015544
Theodore Ts'oe1052142006-10-21 21:46:47 -040015545
15546# IFS
15547# We need space, tab and new line, in precisely that order. Quoting is
15548# there to prevent editors from complaining about space-tab.
15549# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15550# splitting by setting IFS to empty value.)
15551as_nl='
15552'
15553IFS=" "" $as_nl"
15554
15555# Find who we are. Look in the path if we contain no directory separator.
15556case $0 in
15557 *[\\/]* ) as_myself=$0 ;;
15558 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015559for as_dir in $PATH
15560do
15561 IFS=$as_save_IFS
15562 test -z "$as_dir" && as_dir=.
15563 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15564done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015565IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015566
Theodore Ts'oe1052142006-10-21 21:46:47 -040015567 ;;
15568esac
15569# We did not find ourselves, most probably we were run as `sh COMMAND'
15570# in which case we are not to be found in the path.
15571if test "x$as_myself" = x; then
15572 as_myself=$0
15573fi
15574if test ! -f "$as_myself"; then
15575 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15576 { (exit 1); exit 1; }
15577fi
15578
15579# Work around bugs in pre-3.0 UWIN ksh.
15580for as_var in ENV MAIL MAILPATH
15581do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15582done
15583PS1='$ '
15584PS2='> '
15585PS4='+ '
15586
15587# NLS nuisances.
15588for as_var in \
15589 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15590 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15591 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015592do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015593 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15594 eval $as_var=C; export $as_var
15595 else
15596 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15597 fi
15598done
15599
15600# Required to use basename.
15601if expr a : '\(a\)' >/dev/null 2>&1 &&
15602 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15603 as_expr=expr
15604else
15605 as_expr=false
15606fi
15607
15608if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15609 as_basename=basename
15610else
15611 as_basename=false
15612fi
15613
15614
15615# Name of the executable.
15616as_me=`$as_basename -- "$0" ||
15617$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15618 X"$0" : 'X\(//\)$' \| \
15619 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15620echo X/"$0" |
15621 sed '/^.*\/\([^/][^/]*\)\/*$/{
15622 s//\1/
15623 q
15624 }
15625 /^X\/\(\/\/\)$/{
15626 s//\1/
15627 q
15628 }
15629 /^X\/\(\/\).*/{
15630 s//\1/
15631 q
15632 }
15633 s/.*/./; q'`
15634
15635# CDPATH.
15636$as_unset CDPATH
15637
15638
15639
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015640 as_lineno_1=$LINENO
15641 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015642 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015643 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015644
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015645 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15646 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015647 # line-number line after each line using $LINENO; the second 'sed'
15648 # does the real work. The second script uses 'N' to pair each
15649 # line-number line with the line containing $LINENO, and appends
15650 # trailing '-' during substitution so that $LINENO is not a special
15651 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015652 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015653 # scripts with optimization help from Paolo Bonzini. Blame Lee
15654 # E. McMahon (1931-1989) for sed's syntax. :-)
15655 sed -n '
15656 p
15657 /[$]LINENO/=
15658 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015659 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015660 s/[$]LINENO.*/&-/
15661 t lineno
15662 b
15663 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015664 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015665 :loop
15666 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015667 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015668 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015669 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015670 chmod +x "$as_me.lineno" ||
15671 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015672 { (exit 1); exit 1; }; }
15673
15674 # Don't try to exec as it changes $[0], causing all sort of problems
15675 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015676 # original and so on. Autoconf is especially sensitive to this).
15677 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015678 # Exit status is that of the last command.
15679 exit
15680}
15681
15682
Theodore Ts'oe1052142006-10-21 21:46:47 -040015683if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15684 as_dirname=dirname
15685else
15686 as_dirname=false
15687fi
15688
15689ECHO_C= ECHO_N= ECHO_T=
15690case `echo -n x` in
15691-n*)
15692 case `echo 'x\c'` in
15693 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15694 *) ECHO_C='\c';;
15695 esac;;
15696*)
15697 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015698esac
15699
Theodore Ts'oe1052142006-10-21 21:46:47 -040015700if expr a : '\(a\)' >/dev/null 2>&1 &&
15701 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015702 as_expr=expr
15703else
15704 as_expr=false
15705fi
15706
15707rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015708if test -d conf$$.dir; then
15709 rm -f conf$$.dir/conf$$.file
15710else
15711 rm -f conf$$.dir
15712 mkdir conf$$.dir
15713fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015714echo >conf$$.file
15715if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015716 as_ln_s='ln -s'
15717 # ... but there are two gotchas:
15718 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15719 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15720 # In both cases, we have to default to `cp -p'.
15721 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015722 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015723elif ln conf$$.file conf$$ 2>/dev/null; then
15724 as_ln_s=ln
15725else
15726 as_ln_s='cp -p'
15727fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015728rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15729rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015730
15731if mkdir -p . 2>/dev/null; then
15732 as_mkdir_p=:
15733else
15734 test -d ./-p && rmdir ./-p
15735 as_mkdir_p=false
15736fi
15737
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015738if test -x / >/dev/null 2>&1; then
15739 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015740else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015741 if ls -dL / >/dev/null 2>&1; then
15742 as_ls_L_option=L
15743 else
15744 as_ls_L_option=
15745 fi
15746 as_test_x='
15747 eval sh -c '\''
15748 if test -d "$1"; then
15749 test -d "$1/.";
15750 else
15751 case $1 in
15752 -*)set "./$1";;
15753 esac;
15754 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15755 ???[sx]*):;;*)false;;esac;fi
15756 '\'' sh
15757 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015758fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015759as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015760
15761# Sed expression to map a string onto a valid CPP name.
15762as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15763
15764# Sed expression to map a string onto a valid variable name.
15765as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15766
15767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015768exec 6>&1
15769
Theodore Ts'oe1052142006-10-21 21:46:47 -040015770# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015771# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015772# values after options handling.
15773ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015774This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015775generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015776
15777 CONFIG_FILES = $CONFIG_FILES
15778 CONFIG_HEADERS = $CONFIG_HEADERS
15779 CONFIG_LINKS = $CONFIG_LINKS
15780 CONFIG_COMMANDS = $CONFIG_COMMANDS
15781 $ $0 $@
15782
Theodore Ts'oe1052142006-10-21 21:46:47 -040015783on `(hostname || uname -n) 2>/dev/null | sed 1q`
15784"
15785
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015786_ACEOF
15787
Theodore Ts'oe1052142006-10-21 21:46:47 -040015788cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015789# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015790config_files="$ac_config_files"
15791config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015792
Theodore Ts'oe1052142006-10-21 21:46:47 -040015793_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015794
15795cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015796ac_cs_usage="\
15797\`$as_me' instantiates files from templates according to the
15798current configuration.
15799
15800Usage: $0 [OPTIONS] [FILE]...
15801
15802 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015803 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015804 -q, --quiet do not print progress messages
15805 -d, --debug don't remove temporary files
15806 --recheck update $as_me by reconfiguring in the same conditions
15807 --file=FILE[:TEMPLATE]
15808 instantiate the configuration file FILE
15809
15810Configuration files:
15811$config_files
15812
15813Configuration commands:
15814$config_commands
15815
15816Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015817
Theodore Ts'oe1052142006-10-21 21:46:47 -040015818_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015819cat >>$CONFIG_STATUS <<_ACEOF
15820ac_cs_version="\\
15821config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015822configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015823 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015824
Theodore Ts'oe1052142006-10-21 21:46:47 -040015825Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015826This config.status script is free software; the Free Software Foundation
15827gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015828
15829ac_pwd='$ac_pwd'
15830srcdir='$srcdir'
15831INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015832_ACEOF
15833
15834cat >>$CONFIG_STATUS <<\_ACEOF
15835# If no file are specified by the user, then we need to provide default
15836# value. By we need to know if files were specified by the user.
15837ac_need_defaults=:
15838while test $# != 0
15839do
15840 case $1 in
15841 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015844 ac_shift=:
15845 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015846 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015847 ac_option=$1
15848 ac_optarg=$2
15849 ac_shift=shift
15850 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015851 esac
15852
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015853 case $ac_option in
15854 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15856 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15858 echo "$ac_cs_version"; exit ;;
15859 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015860 debug=: ;;
15861 --file | --fil | --fi | --f )
15862 $ac_shift
15863 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15864 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015865 --he | --h | --help | --hel | -h )
15866 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15868 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15869 ac_cs_silent=: ;;
15870
15871 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015872 -*) { echo "$as_me: error: unrecognized option: $1
15873Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015874 { (exit 1); exit 1; }; } ;;
15875
Theodore Ts'oe1052142006-10-21 21:46:47 -040015876 *) ac_config_targets="$ac_config_targets $1"
15877 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015878
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015879 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015880 shift
15881done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015882
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015883ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015884
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015885if $ac_cs_silent; then
15886 exec 6>/dev/null
15887 ac_configure_extra_args="$ac_configure_extra_args --silent"
15888fi
15889
15890_ACEOF
15891cat >>$CONFIG_STATUS <<_ACEOF
15892if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015893 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15894 CONFIG_SHELL=$SHELL
15895 export CONFIG_SHELL
15896 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015897fi
15898
15899_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015900cat >>$CONFIG_STATUS <<\_ACEOF
15901exec 5>>config.log
15902{
15903 echo
15904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15905## Running $as_me. ##
15906_ASBOX
15907 echo "$ac_log"
15908} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015909
Theodore Ts'oe1052142006-10-21 21:46:47 -040015910_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015911cat >>$CONFIG_STATUS <<_ACEOF
15912#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015913# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015914#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015915# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015916 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015917 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015918 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015919 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15920 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015921
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015922
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015923_ACEOF
15924
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015925cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015926
15927# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015928for ac_config_target in $ac_config_targets
15929do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015930 case $ac_config_target in
15931 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15932 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015934 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15935echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15936 { (exit 1); exit 1; }; };;
15937 esac
15938done
15939
Theodore Ts'oe1052142006-10-21 21:46:47 -040015940
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015941# If the user did not use the arguments to specify the items to instantiate,
15942# then the envvar interface is used. Set only those that are not.
15943# We use the long form for the default assignment because of an extremely
15944# bizarre bug on SunOS 4.1.3.
15945if $ac_need_defaults; then
15946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15947 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15948fi
15949
15950# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015951# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015952# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015953# Hook for its removal unless debugging.
15954# Note that there is a small window in which the directory will not be cleaned:
15955# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015956$debug ||
15957{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015958 tmp=
15959 trap 'exit_status=$?
15960 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15961' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015962 trap '{ (exit 1); exit 1; }' 1 2 13 15
15963}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015964# Create a (secure) tmp directory for tmp files.
15965
15966{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015968 test -n "$tmp" && test -d "$tmp"
15969} ||
15970{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015971 tmp=./conf$$-$RANDOM
15972 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015973} ||
15974{
15975 echo "$me: cannot create a temporary directory in ." >&2
15976 { (exit 1); exit 1; }
15977}
15978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015979#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015980# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015981#
15982
15983# No need to generate the scripts if there are no CONFIG_FILES.
15984# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015985if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015986
15987_ACEOF
15988
Theodore Ts'oe1052142006-10-21 21:46:47 -040015989# Create sed commands to just substitute file output variables.
15990
15991# Remaining file output variables are in a fragment that also has non-file
15992# output varibles.
15993
15994
15995
15996ac_delim='%!_!# '
15997for ac_last_try in false false false false false :; do
15998 cat >conf$$subs.sed <<_ACEOF
15999SHELL!$SHELL$ac_delim
16000PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16001PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16002PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16003PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16004PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16005PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16006exec_prefix!$exec_prefix$ac_delim
16007prefix!$prefix$ac_delim
16008program_transform_name!$program_transform_name$ac_delim
16009bindir!$bindir$ac_delim
16010sbindir!$sbindir$ac_delim
16011libexecdir!$libexecdir$ac_delim
16012datarootdir!$datarootdir$ac_delim
16013datadir!$datadir$ac_delim
16014sysconfdir!$sysconfdir$ac_delim
16015sharedstatedir!$sharedstatedir$ac_delim
16016localstatedir!$localstatedir$ac_delim
16017includedir!$includedir$ac_delim
16018oldincludedir!$oldincludedir$ac_delim
16019docdir!$docdir$ac_delim
16020infodir!$infodir$ac_delim
16021htmldir!$htmldir$ac_delim
16022dvidir!$dvidir$ac_delim
16023pdfdir!$pdfdir$ac_delim
16024psdir!$psdir$ac_delim
16025libdir!$libdir$ac_delim
16026localedir!$localedir$ac_delim
16027mandir!$mandir$ac_delim
16028DEFS!$DEFS$ac_delim
16029ECHO_C!$ECHO_C$ac_delim
16030ECHO_N!$ECHO_N$ac_delim
16031ECHO_T!$ECHO_T$ac_delim
16032LIBS!$LIBS$ac_delim
16033build_alias!$build_alias$ac_delim
16034host_alias!$host_alias$ac_delim
16035target_alias!$target_alias$ac_delim
16036E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16037E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16038E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16039E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016040E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016041build!$build$ac_delim
16042build_cpu!$build_cpu$ac_delim
16043build_vendor!$build_vendor$ac_delim
16044build_os!$build_os$ac_delim
16045host!$host$ac_delim
16046host_cpu!$host_cpu$ac_delim
16047host_vendor!$host_vendor$ac_delim
16048host_os!$host_os$ac_delim
16049CC!$CC$ac_delim
16050CFLAGS!$CFLAGS$ac_delim
16051LDFLAGS!$LDFLAGS$ac_delim
16052CPPFLAGS!$CPPFLAGS$ac_delim
16053ac_ct_CC!$ac_ct_CC$ac_delim
16054EXEEXT!$EXEEXT$ac_delim
16055OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016056CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016057LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016058GREP!$GREP$ac_delim
16059EGREP!$EGREP$ac_delim
16060LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16061MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16062HTREE_CMT!$HTREE_CMT$ac_delim
16063ELF_CMT!$ELF_CMT$ac_delim
16064BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16065PROFILE_CMT!$PROFILE_CMT$ac_delim
16066CHECKER_CMT!$CHECKER_CMT$ac_delim
16067LIB_EXT!$LIB_EXT$ac_delim
16068STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16069PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016070DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16071IMAGER_CMT!$IMAGER_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016072_ACEOF
16073
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016074 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 -040016075 break
16076 elif $ac_last_try; then
16077 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16078echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16079 { (exit 1); exit 1; }; }
16080 else
16081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016082 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016083done
16084
16085ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16086if test -n "$ac_eof"; then
16087 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16088 ac_eof=`expr $ac_eof + 1`
16089fi
16090
16091cat >>$CONFIG_STATUS <<_ACEOF
16092cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16093/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16094/^[ ]*@MCONFIG@[ ]*$/{
16095r $MCONFIG
16096d
16097}
16098/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16099r $MAKEFILE_ELF
16100d
16101}
16102/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16103r $MAKEFILE_BSDLIB
16104d
16105}
16106/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16107r $MAKEFILE_PROFILE
16108d
16109}
16110/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16111r $MAKEFILE_CHECKER
16112d
16113}
16114/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16115r $MAKEFILE_LIBRARY
16116d
16117}
16118/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16119r $ASM_TYPES_HEADER
16120d
16121}
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016122/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16123r $PUBLIC_CONFIG_HEADER
16124d
16125}
Theodore Ts'oe1052142006-10-21 21:46:47 -040016126_ACEOF
16127sed '
16128s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16129s/^/s,@/; s/!/@,|#_!!_#|/
16130:n
16131t n
16132s/'"$ac_delim"'$/,g/; t
16133s/$/\\/; p
16134N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16135' >>$CONFIG_STATUS <conf$$subs.sed
16136rm -f conf$$subs.sed
16137cat >>$CONFIG_STATUS <<_ACEOF
16138CEOF$ac_eof
16139_ACEOF
16140
16141
16142ac_delim='%!_!# '
16143for ac_last_try in false false false false false :; do
16144 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016145RESIZER_CMT!$RESIZER_CMT$ac_delim
16146FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016147FSCK_MAN!$FSCK_MAN$ac_delim
16148E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16149E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016150PKG_CONFIG!$PKG_CONFIG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016151DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16152DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16153DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16154STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016155STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016156UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016157GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16158PACKAGE!$PACKAGE$ac_delim
16159VERSION!$VERSION$ac_delim
16160SET_MAKE!$SET_MAKE$ac_delim
16161INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16162INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16163INSTALL_DATA!$INSTALL_DATA$ac_delim
16164MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16165USE_NLS!$USE_NLS$ac_delim
16166MSGFMT!$MSGFMT$ac_delim
16167GMSGFMT!$GMSGFMT$ac_delim
16168XGETTEXT!$XGETTEXT$ac_delim
16169MSGMERGE!$MSGMERGE$ac_delim
16170RANLIB!$RANLIB$ac_delim
16171ALLOCA!$ALLOCA$ac_delim
16172GLIBC21!$GLIBC21$ac_delim
16173HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16174HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16175HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16176HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16177LIBICONV!$LIBICONV$ac_delim
16178LTLIBICONV!$LTLIBICONV$ac_delim
16179INTLBISON!$INTLBISON$ac_delim
16180BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16181USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16182CATOBJEXT!$CATOBJEXT$ac_delim
16183DATADIRNAME!$DATADIRNAME$ac_delim
16184INSTOBJEXT!$INSTOBJEXT$ac_delim
16185GENCAT!$GENCAT$ac_delim
16186INTLOBJS!$INTLOBJS$ac_delim
16187INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16188INTLLIBS!$INTLLIBS$ac_delim
16189LIBINTL!$LIBINTL$ac_delim
16190LTLIBINTL!$LTLIBINTL$ac_delim
16191POSUB!$POSUB$ac_delim
16192BINARY_TYPE!$BINARY_TYPE$ac_delim
16193LN!$LN$ac_delim
16194LN_S!$LN_S$ac_delim
16195MV!$MV$ac_delim
16196CP!$CP$ac_delim
16197RM!$RM$ac_delim
16198CHMOD!$CHMOD$ac_delim
16199AWK!$AWK$ac_delim
16200SED!$SED$ac_delim
16201PERL!$PERL$ac_delim
16202LDCONFIG!$LDCONFIG$ac_delim
16203AR!$AR$ac_delim
16204STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016205MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016206BUILD_CC!$BUILD_CC$ac_delim
16207SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16208SIZEOF_INT!$SIZEOF_INT$ac_delim
16209SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16210SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16211SOCKET_LIB!$SOCKET_LIB$ac_delim
16212DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16213UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16214LINUX_CMT!$LINUX_CMT$ac_delim
16215CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16216UNIX_CMT!$UNIX_CMT$ac_delim
16217root_prefix!$root_prefix$ac_delim
16218root_bindir!$root_bindir$ac_delim
16219root_sbindir!$root_sbindir$ac_delim
16220root_libdir!$root_libdir$ac_delim
16221root_sysconfdir!$root_sysconfdir$ac_delim
16222LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16223SS_DIR!$SS_DIR$ac_delim
16224ET_DIR!$ET_DIR$ac_delim
16225DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16226INTL_FLAGS!$INTL_FLAGS$ac_delim
16227BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16228BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16229LIBOBJS!$LIBOBJS$ac_delim
16230LTLIBOBJS!$LTLIBOBJS$ac_delim
16231_ACEOF
16232
Theodore Ts'odc9345a2008-06-07 10:08:48 -040016233 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 -040016234 break
16235 elif $ac_last_try; then
16236 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16237echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16238 { (exit 1); exit 1; }; }
16239 else
16240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16241 fi
16242done
16243
16244ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16245if test -n "$ac_eof"; then
16246 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16247 ac_eof=`expr $ac_eof + 1`
16248fi
16249
16250cat >>$CONFIG_STATUS <<_ACEOF
16251cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16252/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16253_ACEOF
16254sed '
16255s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16256s/^/s,@/; s/!/@,|#_!!_#|/
16257:n
16258t n
16259s/'"$ac_delim"'$/,g/; t
16260s/$/\\/; p
16261N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16262' >>$CONFIG_STATUS <conf$$subs.sed
16263rm -f conf$$subs.sed
16264cat >>$CONFIG_STATUS <<_ACEOF
16265:end
16266s/|#_!!_#|//g
16267CEOF$ac_eof
16268_ACEOF
16269
16270
16271# VPATH may cause trouble with some makes, so we remove $(srcdir),
16272# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16273# trailing colons and then remove the whole line if VPATH becomes empty
16274# (actually we leave an empty line to preserve line numbers).
16275if test "x$srcdir" = x.; then
16276 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16277s/:*\$(srcdir):*/:/
16278s/:*\${srcdir}:*/:/
16279s/:*@srcdir@:*/:/
16280s/^\([^=]*=[ ]*\):*/\1/
16281s/:*$//
16282s/^[^=]*=[ ]*$//
16283}'
16284fi
16285
16286cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016287fi # test -n "$CONFIG_FILES"
16288
Theodore Ts'oe1052142006-10-21 21:46:47 -040016289
16290for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16291do
16292 case $ac_tag in
16293 :[FHLC]) ac_mode=$ac_tag; continue;;
16294 esac
16295 case $ac_mode$ac_tag in
16296 :[FHL]*:*);;
16297 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16298echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16299 { (exit 1); exit 1; }; };;
16300 :[FH]-) ac_tag=-:-;;
16301 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16302 esac
16303 ac_save_IFS=$IFS
16304 IFS=:
16305 set x $ac_tag
16306 IFS=$ac_save_IFS
16307 shift
16308 ac_file=$1
16309 shift
16310
16311 case $ac_mode in
16312 :L) ac_source=$1;;
16313 :[FH])
16314 ac_file_inputs=
16315 for ac_f
16316 do
16317 case $ac_f in
16318 -) ac_f="$tmp/stdin";;
16319 *) # Look for the file first in the build tree, then in the source tree
16320 # (if the path is not absolute). The absolute path cannot be DOS-style,
16321 # because $ac_f cannot contain `:'.
16322 test -f "$ac_f" ||
16323 case $ac_f in
16324 [\\/$]*) false;;
16325 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16326 esac ||
16327 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16328echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16329 { (exit 1); exit 1; }; };;
16330 esac
16331 ac_file_inputs="$ac_file_inputs $ac_f"
16332 done
16333
16334 # Let's still pretend it is `configure' which instantiates (i.e., don't
16335 # use $as_me), people would be surprised to read:
16336 # /* config.h. Generated by config.status. */
16337 configure_input="Generated from "`IFS=:
16338 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16339 if test x"$ac_file" != x-; then
16340 configure_input="$ac_file. $configure_input"
16341 { echo "$as_me:$LINENO: creating $ac_file" >&5
16342echo "$as_me: creating $ac_file" >&6;}
16343 fi
16344
16345 case $ac_tag in
16346 *:-:* | *:-) cat >"$tmp/stdin";;
16347 esac
16348 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016349 esac
16350
Theodore Ts'oe1052142006-10-21 21:46:47 -040016351 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016352$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16353 X"$ac_file" : 'X\(//\)[^/]' \| \
16354 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016356echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16358 s//\1/
16359 q
16360 }
16361 /^X\(\/\/\)[^/].*/{
16362 s//\1/
16363 q
16364 }
16365 /^X\(\/\/\)$/{
16366 s//\1/
16367 q
16368 }
16369 /^X\(\/\).*/{
16370 s//\1/
16371 q
16372 }
16373 s/.*/./; q'`
16374 { as_dir="$ac_dir"
16375 case $as_dir in #(
16376 -*) as_dir=./$as_dir;;
16377 esac
16378 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016379 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016380 while :; do
16381 case $as_dir in #(
16382 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16383 *) as_qdir=$as_dir;;
16384 esac
16385 as_dirs="'$as_qdir' $as_dirs"
16386 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016387$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16388 X"$as_dir" : 'X\(//\)[^/]' \| \
16389 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016390 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016391echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16393 s//\1/
16394 q
16395 }
16396 /^X\(\/\/\)[^/].*/{
16397 s//\1/
16398 q
16399 }
16400 /^X\(\/\/\)$/{
16401 s//\1/
16402 q
16403 }
16404 /^X\(\/\).*/{
16405 s//\1/
16406 q
16407 }
16408 s/.*/./; q'`
16409 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016410 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016411 test -z "$as_dirs" || eval "mkdir $as_dirs"
16412 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16413echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016414 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016415 ac_builddir=.
16416
Theodore Ts'oe1052142006-10-21 21:46:47 -040016417case "$ac_dir" in
16418.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16419*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016420 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016421 # A ".." for each directory in $ac_dir_suffix.
16422 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16423 case $ac_top_builddir_sub in
16424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16426 esac ;;
16427esac
16428ac_abs_top_builddir=$ac_pwd
16429ac_abs_builddir=$ac_pwd$ac_dir_suffix
16430# for backward compatibility:
16431ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016432
16433case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016434 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016435 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016436 ac_top_srcdir=$ac_top_builddir_sub
16437 ac_abs_top_srcdir=$ac_pwd ;;
16438 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016439 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016440 ac_top_srcdir=$srcdir
16441 ac_abs_top_srcdir=$srcdir ;;
16442 *) # Relative name.
16443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16444 ac_top_srcdir=$ac_top_build_prefix$srcdir
16445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016446esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016447ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016448
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016449
Theodore Ts'oe1052142006-10-21 21:46:47 -040016450 case $ac_mode in
16451 :F)
16452 #
16453 # CONFIG_FILE
16454 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016455
16456 case $INSTALL in
16457 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016458 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016459 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016460_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016461
16462cat >>$CONFIG_STATUS <<\_ACEOF
16463# If the template does not know about datarootdir, expand it.
16464# FIXME: This hack should be removed a few years after 2.60.
16465ac_datarootdir_hack=; ac_datarootdir_seen=
16466
16467case `sed -n '/datarootdir/ {
16468 p
16469 q
16470}
16471/@datadir@/p
16472/@docdir@/p
16473/@infodir@/p
16474/@localedir@/p
16475/@mandir@/p
16476' $ac_file_inputs` in
16477*datarootdir*) ac_datarootdir_seen=yes;;
16478*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16479 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16480echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16481_ACEOF
16482cat >>$CONFIG_STATUS <<_ACEOF
16483 ac_datarootdir_hack='
16484 s&@datadir@&$datadir&g
16485 s&@docdir@&$docdir&g
16486 s&@infodir@&$infodir&g
16487 s&@localedir@&$localedir&g
16488 s&@mandir@&$mandir&g
16489 s&\\\${datarootdir}&$datarootdir&g' ;;
16490esac
16491_ACEOF
16492
16493# Neutralize VPATH when `$srcdir' = `.'.
16494# Shell code in configure.ac might set extrasub.
16495# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016496cat >>$CONFIG_STATUS <<_ACEOF
16497 sed "$ac_vpsub
16498$extrasub
16499_ACEOF
16500cat >>$CONFIG_STATUS <<\_ACEOF
16501:t
16502/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016503s&@configure_input@&$configure_input&;t t
16504s&@top_builddir@&$ac_top_builddir_sub&;t t
16505s&@srcdir@&$ac_srcdir&;t t
16506s&@abs_srcdir@&$ac_abs_srcdir&;t t
16507s&@top_srcdir@&$ac_top_srcdir&;t t
16508s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16509s&@builddir@&$ac_builddir&;t t
16510s&@abs_builddir@&$ac_abs_builddir&;t t
16511s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16512s&@INSTALL@&$ac_INSTALL&;t t
16513$ac_datarootdir_hack
16514" $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 -050016515
Theodore Ts'oe1052142006-10-21 21:46:47 -040016516test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16517 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16519 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16520which seems to be undefined. Please make sure it is defined." >&5
16521echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16522which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016523
Theodore Ts'oe1052142006-10-21 21:46:47 -040016524 rm -f "$tmp/stdin"
16525 case $ac_file in
16526 -) cat "$tmp/out"; rm -f "$tmp/out";;
16527 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16528 esac
16529 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016530
16531
Theodore Ts'oe1052142006-10-21 21:46:47 -040016532 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16533echo "$as_me: executing $ac_file commands" >&6;}
16534 ;;
16535 esac
16536
16537
16538 case $ac_file$ac_mode in
16539 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016540 for ac_file in $CONFIG_FILES; do
16541 # Support "outfile[:infile[:infile...]]"
16542 case "$ac_file" in
16543 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016544 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016545 # PO directories have a Makefile.in generated from Makefile.in.in.
16546 case "$ac_file" in */Makefile.in)
16547 # Adjust a relative srcdir.
16548 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16549 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16550 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16551 # In autoconf-2.13 it is called $ac_given_srcdir.
16552 # In autoconf-2.50 it is called $srcdir.
16553 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16554 case "$ac_given_srcdir" in
16555 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16556 /*) top_srcdir="$ac_given_srcdir" ;;
16557 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16558 esac
16559 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16560 rm -f "$ac_dir/POTFILES"
16561 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16562 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 -050016563 POMAKEFILEDEPS="POTFILES.in"
16564 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016565 # on $ac_dir but don't depend on user-specified configuration
16566 # parameters.
16567 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16568 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016569 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016570 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16571 fi
16572 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16573 # Hide the ALL_LINGUAS assigment from automake.
16574 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016575 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16576 else
16577 # The set of available languages was given in configure.in.
16578 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016579 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016580 # Compute POFILES
16581 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16582 # Compute UPDATEPOFILES
16583 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16584 # Compute DUMMYPOFILES
16585 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16586 # Compute GMOFILES
16587 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016588 case "$ac_given_srcdir" in
16589 .) srcdirpre= ;;
16590 *) srcdirpre='$(srcdir)/' ;;
16591 esac
16592 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016593 UPDATEPOFILES=
16594 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016595 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016596 for lang in $ALL_LINGUAS; do
16597 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016598 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16599 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016600 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016601 done
16602 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16603 # environment variable.
16604 INST_LINGUAS=
16605 if test -n "$ALL_LINGUAS"; then
16606 for presentlang in $ALL_LINGUAS; do
16607 useit=no
16608 if test "%UNSET%" != "$LINGUAS"; then
16609 desiredlanguages="$LINGUAS"
16610 else
16611 desiredlanguages="$ALL_LINGUAS"
16612 fi
16613 for desiredlang in $desiredlanguages; do
16614 # Use the presentlang catalog if desiredlang is
16615 # a. equal to presentlang, or
16616 # b. a variant of presentlang (because in this case,
16617 # presentlang can be used as a fallback for messages
16618 # which are not translated in the desiredlang catalog).
16619 case "$desiredlang" in
16620 "$presentlang"*) useit=yes;;
16621 esac
16622 done
16623 if test $useit = yes; then
16624 INST_LINGUAS="$INST_LINGUAS $presentlang"
16625 fi
16626 done
16627 fi
16628 CATALOGS=
16629 if test -n "$INST_LINGUAS"; then
16630 for lang in $INST_LINGUAS; do
16631 CATALOGS="$CATALOGS $lang.gmo"
16632 done
16633 fi
16634 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016635 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 -040016636 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16637 if test -f "$f"; then
16638 case "$f" in
16639 *.orig | *.bak | *~) ;;
16640 *) cat "$f" >> "$ac_dir/Makefile" ;;
16641 esac
16642 fi
16643 done
16644 fi
16645 ;;
16646 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016647 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016648
Theodore Ts'oe1052142006-10-21 21:46:47 -040016649 esac
16650done # for ac_tag
16651
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016652
16653{ (exit 0); exit 0; }
16654_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016655chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016656ac_clean_files=$ac_clean_files_save
16657
16658
16659# configure is writing to config.log, and then calls config.status.
16660# config.status does its own redirection, appending to config.log.
16661# Unfortunately, on DOS this fails, as config.log is still kept open
16662# by configure, so config.status won't be able to write to it; its
16663# output is simply discarded. So we exec the FD to /dev/null,
16664# effectively closing config.log, so it can be properly (re)opened and
16665# appended to by config.status. When coming back to configure, we
16666# need to make the FD available again.
16667if test "$no_create" != yes; then
16668 ac_cs_success=:
16669 ac_config_status_args=
16670 test "$silent" = yes &&
16671 ac_config_status_args="$ac_config_status_args --quiet"
16672 exec 5>/dev/null
16673 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16674 exec 5>>config.log
16675 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16676 # would make configure fail if this is the last instruction.
16677 $ac_cs_success || { (exit 1); exit 1; }
16678fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016679
Theodore Ts'oee683a12005-02-05 15:53:56 -050016680if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16681