blob: 12d6a9f4a8896c84b6055282fce4bc9296b9a75c [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'o57aa50d2009-11-26 10:38:04 -05003# Generated by GNU Autoconf 2.64.
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,
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018 emulate sh
19 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040023 setopt NO_GLOB_SUBST
24else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040030esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032
33
Scott James Remnant39fd3d42009-05-14 13:03:25 +010034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010048 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050058 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010059 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050090case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040091 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050093for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040099IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500100
Theodore Ts'oe1052142006-10-21 21:46:47 -0400101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500110 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400111fi
112
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400130
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
Theodore Ts'oe1052142006-10-21 21:46:47 -0400373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400391
Theodore Ts'oe1052142006-10-21 21:46:47 -0400392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100396$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400417
418
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500428 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500433 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500436 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500438 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400439 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500446 # Exit status is that of the last command.
447 exit
448}
449
Theodore Ts'oe1052142006-10-21 21:46:47 -0400450ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500451case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400452-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500453 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400458 esac;;
459*)
460 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500461esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500462
463rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100468 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400469fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500482 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100483 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484else
485 as_ln_s='cp -p'
486fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500489
490if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500491 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400499else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100508 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400509 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500510 case $1 in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100511 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400512 esac;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400517fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400518as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
Theodore Ts'oe1052142006-10-21 21:46:47 -0400527exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534#
535# Initializations.
536#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000537ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400538ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500539ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400540LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500545
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500552PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500553
554ac_unique_file="version.h"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400558#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559# include <sys/types.h>
560#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400561#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# include <sys/stat.h>
563#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400564#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565# include <stdlib.h>
566# include <stddef.h>
567#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400568# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500569# include <stdlib.h>
570# endif
571#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500574# include <memory.h>
575# endif
576# include <string.h>
577#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400578#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500579# include <strings.h>
580#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400581#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500582# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400583#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400584#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400585# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500586#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400587#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500588# include <unistd.h>
589#endif"
590
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100591ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400592LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100593BUILD_LDFLAGS
594BUILD_CFLAGS
595INTL_FLAGS
596DO_TEST_SUITE
597ET_DIR
598SS_DIR
599LDFLAG_STATIC
600root_sysconfdir
601root_libdir
602root_sbindir
603root_bindir
604root_prefix
605UNIX_CMT
606CYGWIN_CMT
607LINUX_CMT
608UNI_DIFF_OPTS
609SEM_INIT_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100610SOCKET_LIB
611SIZEOF_LONG_LONG
612SIZEOF_LONG
613SIZEOF_INT
614SIZEOF_SHORT
615BUILD_CC
616MAKEINFO
617STRIP
618AR
619LDCONFIG
620PERL
621SED
622AWK
623CHMOD
624RM
625CP
626MV
627LN_S
628LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400629ifNotGNUmake
630ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100631BINARY_TYPE
632POSUB
633LTLIBINTL
634LIBINTL
635INTLLIBS
636INTL_LIBTOOL_SUFFIX_PREFIX
637INTLOBJS
638GENCAT
639INSTOBJEXT
640DATADIRNAME
641CATOBJEXT
642USE_INCLUDED_LIBINTL
643BUILD_INCLUDED_LIBINTL
644INTLBISON
645LTLIBICONV
646LIBICONV
647HAVE_WPRINTF
648HAVE_SNPRINTF
649HAVE_ASPRINTF
650HAVE_POSIX_PRINTF
651GLIBC21
652ALLOCA
653RANLIB
654MSGMERGE
655XGETTEXT
656GMSGFMT
657MSGFMT
658USE_NLS
659MKINSTALLDIRS
660INSTALL_DATA
661INSTALL_SCRIPT
662INSTALL_PROGRAM
663SET_MAKE
664VERSION
665PACKAGE
666GETTEXT_PACKAGE
667UUIDD_CMT
668E2INITRD_MAN
669E2INITRD_PROG
670FSCK_MAN
671FSCK_PROG
672RESIZER_CMT
673IMAGER_CMT
674DEBUGFS_CMT
675BLKID_CMT
676DEPPROFILED_LIBBLKID
677PROFILED_LIBBLKID
678DEPSTATIC_LIBBLKID
679STATIC_LIBBLKID
680DEPLIBBLKID
681LIBBLKID
682UUID_CMT
683DEPPROFILED_LIBUUID
684PROFILED_LIBUUID
685DEPSTATIC_LIBUUID
686STATIC_LIBUUID
687DEPLIBUUID
688LIBUUID
689PKG_CONFIG
690TEST_IO_CMT
691PRIVATE_LIBS_CMT
692LDFLAG_DYNAMIC
693PROFILED_LIB_EXT
694STATIC_LIB_EXT
695LIB_EXT
696CHECKER_CMT
697PROFILE_CMT
698BSDLIB_CMT
699ELF_CMT
700HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400701Q
702E
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100703MAINTAINER_CMT
704LINUX_INCLUDE
705EGREP
706GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100707CPP
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500708DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100709OBJEXT
710EXEEXT
711ac_ct_CC
712CPPFLAGS
713LDFLAGS
714CFLAGS
715CC
716host_os
717host_vendor
718host_cpu
719host
720build_os
721build_vendor
722build_cpu
723build
724E2FSPROGS_PKGVER
725E2FSPROGS_VERSION
726E2FSPROGS_DAY
727E2FSPROGS_MONTH
728E2FSPROGS_YEAR
729target_alias
730host_alias
731build_alias
732LIBS
733ECHO_T
734ECHO_N
735ECHO_C
736DEFS
737mandir
738localedir
739libdir
740psdir
741pdfdir
742dvidir
743htmldir
744infodir
745docdir
746oldincludedir
747includedir
748localstatedir
749sharedstatedir
750sysconfdir
751datadir
752datarootdir
753libexecdir
754sbindir
755bindir
756program_transform_name
757prefix
758exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500759PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100760PACKAGE_BUGREPORT
761PACKAGE_STRING
762PACKAGE_VERSION
763PACKAGE_TARNAME
764PACKAGE_NAME
765PATH_SEPARATOR
766SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400767ac_subst_files='MCONFIG
768MAKEFILE_ELF
769MAKEFILE_BSDLIB
770MAKEFILE_PROFILE
771MAKEFILE_CHECKER
772MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400773ASM_TYPES_HEADER
774PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100775ac_user_opts='
776enable_option_checking
777with_diet_libc
778with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100779with_ccopts
780with_ldopts
781with_root_prefix
782enable_maintainer_mode
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400783enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100784enable_compression
785enable_htree
786enable_elf_shlibs
787enable_bsd_shlibs
788enable_profile
789enable_checker
790enable_jbd_debug
791enable_blkid_debug
792enable_testio_debug
793enable_libuuid
794enable_libblkid
795enable_debugfs
796enable_imager
797enable_resizer
798enable_fsck
799enable_e2initrd_helper
800enable_tls
801enable_uuidd
802enable_nls
803with_gnu_ld
804enable_rpath
805with_libiconv_prefix
806with_included_gettext
807with_libintl_prefix
808'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400809 ac_precious_vars='build_alias
810host_alias
811target_alias
812CC
813CFLAGS
814LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400815LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400816CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400817CPP
818PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400819
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000820
821# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500822ac_init_help=
823ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100824ac_unrecognized_opts=
825ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000826# The variables have the same names as the options, with
827# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500828cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000829exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000830no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000839verbose=
840x_includes=NONE
841x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400848# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000857includedir='${prefix}/include'
858oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400859docdir='${datarootdir}/doc/${PACKAGE}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000868
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000869ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400870ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000871for ac_option
872do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400875 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000876 ac_prev=
877 continue
878 fi
879
Theodore Ts'oe1052142006-10-21 21:46:47 -0400880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
Theodore Ts'oe1052142006-10-21 21:46:47 -0400887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000890
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500894 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000895
896 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500897 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500899 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000910
Theodore Ts'oe1052142006-10-21 21:46:47 -0400911 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000912 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500914 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000915
Theodore Ts'oe1052142006-10-21 21:46:47 -0400916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000923 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000925 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500927 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932"enable_$ac_useropt"
933"*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400938
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
943
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000948
949 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000951 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500953 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958"enable_$ac_useropt"
959"*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000964
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500972 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000973
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
977
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000984
985 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500986 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000987 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500988 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000989
Theodore Ts'oe1052142006-10-21 21:46:47 -0400990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
995
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001001 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001002
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001006 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001007
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001011 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001012
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001018 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001019
Theodore Ts'oe1052142006-10-21 21:46:47 -04001020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1024
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001025 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001026 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001030 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001031
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001035 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001036
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1040
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001042 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001043 no_create=yes ;;
1044
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1048
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001056 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001057
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001061 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001068 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001069
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001075 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001076
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001092 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001093
Theodore Ts'oe1052142006-10-21 21:46:47 -04001094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1098
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1103
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1107
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 ac_prev=sbindir ;;
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001112 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001113
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1117 | --sha | --sh)
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001123 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001124
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001125 -site | --site | --sit)
1126 ac_prev=site ;;
1127 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001128 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001129
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 ac_prev=srcdir ;;
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001133 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001134
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001140 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001141
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001142 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001143 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001145 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001146
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 verbose=yes ;;
1149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001152
1153 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001155 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001157 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162"with_$ac_useropt"
1163"*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001168
1169 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001171 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001173 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178"with_$ac_useropt"
1179"*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001184
1185 --x)
1186 # Obsolete; use --with-x.
1187 with_x=yes ;;
1188
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001194 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001195
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001201 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001202
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001203 -*) as_fn_error "unrecognized option: \`$ac_option'
1204Try \`$0 --help' for more information."
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001205 ;;
1206
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001207 *=*)
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001210 case $ac_envvar in #(
1211 '' | [0-9]* | *[!_$as_cr_alnum]* )
1212 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1213 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001214 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001215 export $ac_envvar ;;
1216
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001217 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001218 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001222 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001223 ;;
1224
1225 esac
1226done
1227
1228if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001230 as_fn_error "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001231fi
1232
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001233if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1235 no) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001236 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238 esac
1239fi
1240
1241# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001242for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001246do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001247 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001248 # Remove trailing slashes.
1249 case $ac_val in
1250 */ )
1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\$ac_val;;
1253 esac
1254 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001255 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001258 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001259 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001260done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001262# There might be people who depend on the old broken behavior: `$host'
1263# used to hold the argument of --host etc.
1264# FIXME: To remove some day.
1265build=$build_alias
1266host=$host_alias
1267target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001268
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001269# FIXME: To remove some day.
1270if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001273 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001274 If a cross compiler is detected then cross compile mode will be used." >&2
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001285
Theodore Ts'oe1052142006-10-21 21:46:47 -04001286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001289 as_fn_error "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001291 as_fn_error "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001292
1293
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001297 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001321 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001322 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001323 srcdir=..
1324 fi
1325else
1326 ac_srcdir_defaulted=no
1327fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001328if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001330 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001331fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001335 pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001352
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360\`configure' configures this package to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001380Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001382 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001384 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001413_ACEOF
1414
1415 cat <<\_ACEOF
1416
1417System types:
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420_ACEOF
1421fi
1422
1423if test -n "$ac_init_help"; then
1424
1425 cat <<\_ACEOF
1426
1427Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001428 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001431 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'oc13351f2009-07-02 00:11:17 -04001432 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001433 --enable-compression enable EXPERIMENTAL compression support
1434 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001435 --enable-elf-shlibs select ELF shared libraries
1436 --enable-bsd-shlibs select BSD shared libraries
1437 --enable-profile build profiling libraries
1438 --enable-checker build checker libraries
1439 --enable-jbd-debug enable journal debugging
1440 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001441 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001442 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001443 --disable-libblkid do not build private blkid library
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001444 --disable-debugfs disable support of debugfs program
1445 --disable-imager disable support of e2image program
1446 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001447 --enable-fsck build fsck wrapper program
1448 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001449 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001450 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001451 --disable-nls do not use Native Language Support
1452 --disable-rpath do not hardcode runtime library paths
1453
1454Optional Packages:
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001457 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001458 --with-cc no longer supported, use CC= instead
1459 --with-ccopts no longer supported, use CFLAGS= instead
1460 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001461 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1462 --with-gnu-ld assume the C compiler uses GNU ld default=no
1463 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1464 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1465 --with-included-gettext use the GNU gettext library included here
1466 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1467 --without-libintl-prefix don't search for libintl in includedir and libdir
1468
1469Some influential environment variables:
1470 CC C compiler command
1471 CFLAGS C compiler flags
1472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001474 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001475 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1476 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001477 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001478 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001479
1480Use these variables to override the choices made by `configure' or to help
1481it to find libraries and programs with nonstandard names/locations.
1482
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001483Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001484_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001485ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001486fi
1487
1488if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001494 ac_builddir=.
1495
Theodore Ts'oe1052142006-10-21 21:46:47 -04001496case "$ac_dir" in
1497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001500 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506esac
1507ac_abs_top_builddir=$ac_pwd
1508ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509# for backward compatibility:
1510ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001511
1512case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001513 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001514 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001518 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001525esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001527
Theodore Ts'oe1052142006-10-21 21:46:47 -04001528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001536 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001540 done
1541fi
1542
Theodore Ts'oe1052142006-10-21 21:46:47 -04001543test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001544if $ac_init_version; then
1545 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001546configure
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001547generated by GNU Autoconf 2.64
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001548
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001549Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001550This configure script is free software; the Free Software Foundation
1551gives unlimited permission to copy, distribute and modify it.
1552_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001553 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001554fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001555
1556## ------------------------ ##
1557## Autoconf initialization. ##
1558## ------------------------ ##
1559
1560# ac_fn_c_try_compile LINENO
1561# --------------------------
1562# Try to compile conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_c_try_compile ()
1564{
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587else
1588 $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592fi
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 return $ac_retval
1595
1596} # ac_fn_c_try_compile
1597
1598# ac_fn_c_try_link LINENO
1599# -----------------------
1600# Try to link conftest.$ac_ext, and return whether this succeeded.
1601ac_fn_c_try_link ()
1602{
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1606case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609esac
1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611$as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 $as_test_x conftest$ac_exeext
1626 }; then :
1627 ac_retval=0
1628else
1629 $as_echo "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1
1633fi
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 return $ac_retval
1641
1642} # ac_fn_c_try_link
1643
1644# ac_fn_c_try_cpp LINENO
1645# ----------------------
1646# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_cpp ()
1648{
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if { { ac_try="$ac_cpp conftest.$ac_ext"
1651case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } >/dev/null && {
1666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 }; then :
1669 ac_retval=0
1670else
1671 $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675fi
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 return $ac_retval
1678
1679} # ac_fn_c_try_cpp
1680
1681# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1682# -------------------------------------------------------
1683# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1684# the include files in INCLUDES and setting the cache variable VAR
1685# accordingly.
1686ac_fn_c_check_header_mongrel ()
1687{
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691$as_echo_n "checking for $2... " >&6; }
1692if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1693 $as_echo_n "(cached) " >&6
1694fi
1695eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697$as_echo "$ac_res" >&6; }
1698else
1699 # Is the header compilable?
1700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1701$as_echo_n "checking $2 usability... " >&6; }
1702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703/* end confdefs.h. */
1704$4
1705#include <$2>
1706_ACEOF
1707if ac_fn_c_try_compile "$LINENO"; then :
1708 ac_header_compiler=yes
1709else
1710 ac_header_compiler=no
1711fi
1712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1714$as_echo "$ac_header_compiler" >&6; }
1715
1716# Is the header present?
1717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1718$as_echo_n "checking $2 presence... " >&6; }
1719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h. */
1721#include <$2>
1722_ACEOF
1723if ac_fn_c_try_cpp "$LINENO"; then :
1724 ac_header_preproc=yes
1725else
1726 ac_header_preproc=no
1727fi
1728rm -f conftest.err conftest.$ac_ext
1729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1730$as_echo "$ac_header_preproc" >&6; }
1731
1732# So? What about this header?
1733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1734 yes:no: )
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1736$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1738$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1739 ;;
1740 no:yes:* )
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1742$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1744$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1746$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1748$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751 ;;
1752esac
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754$as_echo_n "checking for $2... " >&6; }
1755if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756 $as_echo_n "(cached) " >&6
1757else
1758 eval "$3=\$ac_header_compiler"
1759fi
1760eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763fi
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765
1766} # ac_fn_c_check_header_mongrel
1767
1768# ac_fn_c_try_run LINENO
1769# ----------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771# that executables *can* be run.
1772ac_fn_c_try_run ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>&5
1783 ac_status=$?
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786 { { case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_try") 2>&5
1793 ac_status=$?
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; }; }; then :
1796 ac_retval=0
1797else
1798 $as_echo "$as_me: program exited with status $ac_status" >&5
1799 $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=$ac_status
1803fi
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 return $ac_retval
1807
1808} # ac_fn_c_try_run
1809
1810# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1811# -------------------------------------------------------
1812# Tests whether HEADER exists and can be compiled using the include files in
1813# INCLUDES, setting the cache variable VAR accordingly.
1814ac_fn_c_check_header_compile ()
1815{
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
1819if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1820 $as_echo_n "(cached) " >&6
1821else
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h. */
1824$4
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"; then :
1828 eval "$3=yes"
1829else
1830 eval "$3=no"
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833fi
1834eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836$as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838
1839} # ac_fn_c_check_header_compile
1840
1841# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1842# -------------------------------------------
1843# Tests whether TYPE exists after having included INCLUDES, setting cache
1844# variable VAR accordingly.
1845ac_fn_c_check_type ()
1846{
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849$as_echo_n "checking for $2... " >&6; }
1850if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1851 $as_echo_n "(cached) " >&6
1852else
1853 eval "$3=no"
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h. */
1856$4
1857int
1858main ()
1859{
1860if (sizeof ($2))
1861 return 0;
1862 ;
1863 return 0;
1864}
1865_ACEOF
1866if ac_fn_c_try_compile "$LINENO"; then :
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h. */
1869$4
1870int
1871main ()
1872{
1873if (sizeof (($2)))
1874 return 0;
1875 ;
1876 return 0;
1877}
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880
1881else
1882 eval "$3=yes"
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885fi
1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887fi
1888eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890$as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892
1893} # ac_fn_c_check_type
1894
1895# ac_fn_c_check_func LINENO FUNC VAR
1896# ----------------------------------
1897# Tests whether FUNC exists, setting the cache variable VAR accordingly
1898ac_fn_c_check_func ()
1899{
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902$as_echo_n "checking for $2... " >&6; }
1903if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 $as_echo_n "(cached) " >&6
1905else
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h. */
1908/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1910#define $2 innocuous_$2
1911
1912/* System header to define __stub macros and hopefully few prototypes,
1913 which can conflict with char $2 (); below.
1914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1915 <limits.h> exists even on freestanding compilers. */
1916
1917#ifdef __STDC__
1918# include <limits.h>
1919#else
1920# include <assert.h>
1921#endif
1922
1923#undef $2
1924
1925/* Override any GCC internal prototype to avoid an error.
1926 Use char because int might match the return type of a GCC
1927 builtin and then its argument prototype would still apply. */
1928#ifdef __cplusplus
1929extern "C"
1930#endif
1931char $2 ();
1932/* The GNU C library defines this for functions which it implements
1933 to always fail with ENOSYS. Some functions are actually named
1934 something starting with __ and the normal name is an alias. */
1935#if defined __stub_$2 || defined __stub___$2
1936choke me
1937#endif
1938
1939int
1940main ()
1941{
1942return $2 ();
1943 ;
1944 return 0;
1945}
1946_ACEOF
1947if ac_fn_c_try_link "$LINENO"; then :
1948 eval "$3=yes"
1949else
1950 eval "$3=no"
1951fi
1952rm -f core conftest.err conftest.$ac_objext \
1953 conftest$ac_exeext conftest.$ac_ext
1954fi
1955eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957$as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959
1960} # ac_fn_c_check_func
1961
1962# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1963# --------------------------------------------
1964# Tries to find the compile-time value of EXPR in a program that includes
1965# INCLUDES, setting VAR accordingly. Returns whether the value could be
1966# computed
1967ac_fn_c_compute_int ()
1968{
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 if test "$cross_compiling" = yes; then
1971 # Depending upon the size, compute the lo and hi bounds.
1972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h. */
1974$4
1975int
1976main ()
1977{
1978static int test_array [1 - 2 * !(($2) >= 0)];
1979test_array [0] = 0
1980
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986 ac_lo=0 ac_mid=0
1987 while :; do
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h. */
1990$4
1991int
1992main ()
1993{
1994static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1995test_array [0] = 0
1996
1997 ;
1998 return 0;
1999}
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_hi=$ac_mid; break
2003else
2004 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2005 if test $ac_lo -le $ac_mid; then
2006 ac_lo= ac_hi=
2007 break
2008 fi
2009 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2010fi
2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 done
2013else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016$4
2017int
2018main ()
2019{
2020static int test_array [1 - 2 * !(($2) < 0)];
2021test_array [0] = 0
2022
2023 ;
2024 return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_hi=-1 ac_mid=-1
2029 while :; do
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */
2032$4
2033int
2034main ()
2035{
2036static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2037test_array [0] = 0
2038
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_lo=$ac_mid; break
2045else
2046 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2047 if test $ac_mid -le $ac_hi; then
2048 ac_lo= ac_hi=
2049 break
2050 fi
2051 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 done
2055else
2056 ac_lo= ac_hi=
2057fi
2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059fi
2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061# Binary search between lo and hi bounds.
2062while test "x$ac_lo" != "x$ac_hi"; do
2063 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066$4
2067int
2068main ()
2069{
2070static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2071test_array [0] = 0
2072
2073 ;
2074 return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078 ac_hi=$ac_mid
2079else
2080 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2081fi
2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083done
2084case $ac_lo in #((
2085?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2086'') ac_retval=1 ;;
2087esac
2088 else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h. */
2091$4
2092static long int longval () { return $2; }
2093static unsigned long int ulongval () { return $2; }
2094#include <stdio.h>
2095#include <stdlib.h>
2096int
2097main ()
2098{
2099
2100 FILE *f = fopen ("conftest.val", "w");
2101 if (! f)
2102 return 1;
2103 if (($2) < 0)
2104 {
2105 long int i = longval ();
2106 if (i != ($2))
2107 return 1;
2108 fprintf (f, "%ld", i);
2109 }
2110 else
2111 {
2112 unsigned long int i = ulongval ();
2113 if (i != ($2))
2114 return 1;
2115 fprintf (f, "%lu", i);
2116 }
2117 /* Do not output a trailing newline, as this causes \r\n confusion
2118 on some platforms. */
2119 return ferror (f) || fclose (f) != 0;
2120
2121 ;
2122 return 0;
2123}
2124_ACEOF
2125if ac_fn_c_try_run "$LINENO"; then :
2126 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2127else
2128 ac_retval=1
2129fi
2130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2131 conftest.$ac_objext conftest.beam conftest.$ac_ext
2132rm -f conftest.val
2133
2134 fi
2135 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2136 return $ac_retval
2137
2138} # ac_fn_c_compute_int
2139
2140# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2141# ----------------------------------------------------
2142# Tries to find if the field MEMBER exists in type AGGR, after including
2143# INCLUDES, setting cache variable VAR accordingly.
2144ac_fn_c_check_member ()
2145{
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2148$as_echo_n "checking for $2.$3... " >&6; }
2149if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2150 $as_echo_n "(cached) " >&6
2151else
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h. */
2154$5
2155int
2156main ()
2157{
2158static $2 ac_aggr;
2159if (ac_aggr.$3)
2160return 0;
2161 ;
2162 return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166 eval "$4=yes"
2167else
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h. */
2170$5
2171int
2172main ()
2173{
2174static $2 ac_aggr;
2175if (sizeof ac_aggr.$3)
2176return 0;
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182 eval "$4=yes"
2183else
2184 eval "$4=no"
2185fi
2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187fi
2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189fi
2190eval ac_res=\$$4
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192$as_echo "$ac_res" >&6; }
2193 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2194
2195} # ac_fn_c_check_member
2196
2197# ac_fn_c_check_decl LINENO SYMBOL VAR
2198# ------------------------------------
2199# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2200ac_fn_c_check_decl ()
2201{
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2204$as_echo_n "checking whether $2 is declared... " >&6; }
2205if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 $as_echo_n "(cached) " >&6
2207else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209/* end confdefs.h. */
2210$4
2211int
2212main ()
2213{
2214#ifndef $2
2215 (void) $2;
2216#endif
2217
2218 ;
2219 return 0;
2220}
2221_ACEOF
2222if ac_fn_c_try_compile "$LINENO"; then :
2223 eval "$3=yes"
2224else
2225 eval "$3=no"
2226fi
2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228fi
2229eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231$as_echo "$ac_res" >&6; }
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2233
2234} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002235cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002236This file contains any messages produced by compilers while
2237running configure, to aid debugging if configure makes a mistake.
2238
2239It was created by $as_me, which was
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002240generated by GNU Autoconf 2.64. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002241
2242 $ $0 $@
2243
2244_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002245exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002246{
2247cat <<_ASUNAME
2248## --------- ##
2249## Platform. ##
2250## --------- ##
2251
2252hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2253uname -m = `(uname -m) 2>/dev/null || echo unknown`
2254uname -r = `(uname -r) 2>/dev/null || echo unknown`
2255uname -s = `(uname -s) 2>/dev/null || echo unknown`
2256uname -v = `(uname -v) 2>/dev/null || echo unknown`
2257
2258/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2259/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2260
2261/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2262/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2263/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002264/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002265/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2266/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2267/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2268
2269_ASUNAME
2270
2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272for as_dir in $PATH
2273do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002276 $as_echo "PATH: $as_dir"
2277 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002278IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002279
2280} >&5
2281
2282cat >&5 <<_ACEOF
2283
2284
2285## ----------- ##
2286## Core tests. ##
2287## ----------- ##
2288
2289_ACEOF
2290
2291
2292# Keep a trace of the command line.
2293# Strip out --no-create and --no-recursion so they do not pile up.
2294# Strip out --silent because we don't want to record it for future runs.
2295# Also quote any args containing shell meta-characters.
2296# Make two passes to allow for proper duplicate-argument suppression.
2297ac_configure_args=
2298ac_configure_args0=
2299ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002300ac_must_keep_next=false
2301for ac_pass in 1 2
2302do
2303 for ac_arg
2304 do
2305 case $ac_arg in
2306 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2308 | -silent | --silent | --silen | --sile | --sil)
2309 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002310 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002311 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002312 esac
2313 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002314 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002315 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002316 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002317 if test $ac_must_keep_next = true; then
2318 ac_must_keep_next=false # Got value, back to normal.
2319 else
2320 case $ac_arg in
2321 *=* | --config-cache | -C | -disable-* | --disable-* \
2322 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2323 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2324 | -with-* | --with-* | -without-* | --without-* | --x)
2325 case "$ac_configure_args0 " in
2326 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2327 esac
2328 ;;
2329 -* ) ac_must_keep_next=true ;;
2330 esac
2331 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002332 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002333 ;;
2334 esac
2335 done
2336done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002337{ ac_configure_args0=; unset ac_configure_args0;}
2338{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002339
2340# When interrupted or exit'd, cleanup temporary files, and complete
2341# config.log. We remove comments because anyway the quotes in there
2342# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002343# WARNING: Use '\'' to represent an apostrophe within the trap.
2344# 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 -05002345trap 'exit_status=$?
2346 # Save into config.log some information that might help in debugging.
2347 {
2348 echo
2349
2350 cat <<\_ASBOX
2351## ---------------- ##
2352## Cache variables. ##
2353## ---------------- ##
2354_ASBOX
2355 echo
2356 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002357(
2358 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2359 eval ac_val=\$$ac_var
2360 case $ac_val in #(
2361 *${as_nl}*)
2362 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002364$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002365 esac
2366 case $ac_var in #(
2367 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002369 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002370 esac ;;
2371 esac
2372 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002373 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002374 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2375 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002376 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002377 "s/'\''/'\''\\\\'\'''\''/g;
2378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2379 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002380 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002382 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002383 esac |
2384 sort
2385)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002386 echo
2387
2388 cat <<\_ASBOX
2389## ----------------- ##
2390## Output variables. ##
2391## ----------------- ##
2392_ASBOX
2393 echo
2394 for ac_var in $ac_subst_vars
2395 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002396 eval ac_val=\$$ac_var
2397 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002398 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002399 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002400 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002401 done | sort
2402 echo
2403
2404 if test -n "$ac_subst_files"; then
2405 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04002406## ------------------- ##
2407## File substitutions. ##
2408## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002409_ASBOX
2410 echo
2411 for ac_var in $ac_subst_files
2412 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002413 eval ac_val=\$$ac_var
2414 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002415 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002416 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002417 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002418 done | sort
2419 echo
2420 fi
2421
2422 if test -s confdefs.h; then
2423 cat <<\_ASBOX
2424## ----------- ##
2425## confdefs.h. ##
2426## ----------- ##
2427_ASBOX
2428 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002429 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002430 echo
2431 fi
2432 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002433 $as_echo "$as_me: caught signal $ac_signal"
2434 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002435 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002436 rm -f core *.core core.conftest.* &&
2437 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002438 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002439' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002440for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002441 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002442done
2443ac_signal=0
2444
2445# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002446rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002447
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002448$as_echo "/* confdefs.h */" > confdefs.h
2449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002450# Predefined preprocessor variables.
2451
2452cat >>confdefs.h <<_ACEOF
2453#define PACKAGE_NAME "$PACKAGE_NAME"
2454_ACEOF
2455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002456cat >>confdefs.h <<_ACEOF
2457#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2458_ACEOF
2459
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460cat >>confdefs.h <<_ACEOF
2461#define PACKAGE_VERSION "$PACKAGE_VERSION"
2462_ACEOF
2463
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002464cat >>confdefs.h <<_ACEOF
2465#define PACKAGE_STRING "$PACKAGE_STRING"
2466_ACEOF
2467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2470_ACEOF
2471
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_URL "$PACKAGE_URL"
2474_ACEOF
2475
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002476
2477# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002478# Prefer an explicitly selected file to automatically selected ones.
2479ac_site_file1=NONE
2480ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002481if test -n "$CONFIG_SITE"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002482 ac_site_file1=$CONFIG_SITE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002483elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002484 ac_site_file1=$prefix/share/config.site
2485 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002486else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002487 ac_site_file1=$ac_default_prefix/share/config.site
2488 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002489fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002490for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002491do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002492 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002493 if test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002494 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002495$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002496 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002497 . "$ac_site_file"
2498 fi
2499done
2500
2501if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002502 # Some versions of bash will fail to source /dev/null (special
2503 # files actually), so we avoid doing that.
2504 if test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002506$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002507 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002508 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2509 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510 esac
2511 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002512else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002514$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002515 >$cache_file
2516fi
2517
2518# Check that the precious variables saved in the cache have kept the same
2519# value.
2520ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002521for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002522 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2523 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002524 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2525 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002526 case $ac_old_set,$ac_new_set in
2527 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002529$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002530 ac_cache_corrupted=: ;;
2531 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002533$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002534 ac_cache_corrupted=: ;;
2535 ,);;
2536 *)
2537 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002538 # differences in whitespace do not lead to failure.
2539 ac_old_val_w=`echo x $ac_old_val`
2540 ac_new_val_w=`echo x $ac_new_val`
2541 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002543$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2544 ac_cache_corrupted=:
2545 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002546 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002547$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2548 eval $ac_var=\$ac_old_val
2549 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002550 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002551$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002552 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002553$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002554 fi;;
2555 esac
2556 # Pass precious variables to config.status.
2557 if test "$ac_new_set" = set; then
2558 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002559 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002560 *) ac_arg=$ac_var=$ac_new_val ;;
2561 esac
2562 case " $ac_configure_args " in
2563 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002564 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002565 esac
2566 fi
2567done
2568if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002572$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002573 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002574fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002575## -------------------- ##
2576## Main body of script. ##
2577## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002578
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002579ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002580ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002585
2586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002587ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002588for ac_dir in config "$srcdir"/config; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002589 for ac_t in install-sh install.sh shtool; do
2590 if test -f "$ac_dir/$ac_t"; then
2591 ac_aux_dir=$ac_dir
2592 ac_install_sh="$ac_aux_dir/$ac_t -c"
2593 break 2
2594 fi
2595 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002596done
2597if test -z "$ac_aux_dir"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002598 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002599fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002600
2601# These three variables are undocumented and unsupported,
2602# and are intended to be withdrawn in a future Autoconf release.
2603# They can cause serious problems if a builder's source tree is in a directory
2604# whose full name contains unusual characters.
2605ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2606ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2607ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2608
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002609
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002610MCONFIG=./MCONFIG
2611
Theodore Ts'o74becf31997-04-26 14:37:06 +00002612BINARY_TYPE=bin
2613E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2614 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2615DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2616 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002617E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002618MONTH=`echo $DATE | awk -F- '{print $2}'`
2619YEAR=`echo $DATE | awk -F- '{print $3}'`
2620
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002621if expr $YEAR ">" 1900 > /dev/null ; then
2622 E2FSPROGS_YEAR=$YEAR
2623elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002624 E2FSPROGS_YEAR=19$YEAR
2625else
2626 E2FSPROGS_YEAR=20$YEAR
2627fi
2628
2629case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002630Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2631Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2632Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2633Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2634May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2635Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2636Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2637Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2638Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2639Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2640Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2641Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002642*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002643$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002644esac
2645
Andreas Dilger927566a2006-11-12 19:41:25 -05002646base_ver=`echo $E2FSPROGS_VERSION | \
2647 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002648
2649date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2650
2651case $E2FSPROGS_VERSION in
2652*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002653 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002654 ;;
2655*)
2656 E2FSPROGS_PKGVER="$base_ver"
2657 ;;
2658esac
2659
2660unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002662$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002664$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002665
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002666
2667
2668
Andreas Dilger927566a2006-11-12 19:41:25 -05002669
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002670# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002671$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002672 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002673
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002675$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002676if test "${ac_cv_build+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002677 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002678else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002679 ac_build_alias=$build_alias
2680test "x$ac_build_alias" = x &&
2681 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2682test "x$ac_build_alias" = x &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002683 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002684ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002685 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002686
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002687fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002689$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002690case $ac_cv_build in
2691*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002692*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002693esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002694build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002695ac_save_IFS=$IFS; IFS='-'
2696set x $ac_cv_build
2697shift
2698build_cpu=$1
2699build_vendor=$2
2700shift; shift
2701# Remember, the first character of IFS is used to create $*,
2702# except with old shells:
2703build_os=$*
2704IFS=$ac_save_IFS
2705case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002706
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002707
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002709$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002710if test "${ac_cv_host+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002711 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002712else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002713 if test "x$host_alias" = x; then
2714 ac_cv_host=$ac_cv_build
2715else
2716 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002717 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002718fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002719
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002720fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002722$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002723case $ac_cv_host in
2724*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002725*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002726esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002727host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002728ac_save_IFS=$IFS; IFS='-'
2729set x $ac_cv_host
2730shift
2731host_cpu=$1
2732host_vendor=$2
2733shift; shift
2734# Remember, the first character of IFS is used to create $*,
2735# except with old shells:
2736host_os=$*
2737IFS=$ac_save_IFS
2738case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002739
2740
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002741DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002742ac_ext=c
2743ac_cpp='$CPP $CPPFLAGS'
2744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002751$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002752if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002753 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002754else
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2757else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002763 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002764 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 -05002765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002767 break 2
2768 fi
2769done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002770 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002771IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002772
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002773fi
2774fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002775CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002776if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002778$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002779else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002781$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002782fi
2783
Theodore Ts'oe1052142006-10-21 21:46:47 -04002784
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002785fi
2786if test -z "$ac_cv_prog_CC"; then
2787 ac_ct_CC=$CC
2788 # Extract the first word of "gcc", so it can be a program name with args.
2789set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002791$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002793 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002794else
2795 if test -n "$ac_ct_CC"; then
2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002803 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002804 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 -05002805 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002807 break 2
2808 fi
2809done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002810 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002811IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002812
2813fi
2814fi
2815ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002818$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002819else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002821$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002822fi
2823
Theodore Ts'oe1052142006-10-21 21:46:47 -04002824 if test "x$ac_ct_CC" = x; then
2825 CC=""
2826 else
2827 case $cross_compiling:$ac_tool_warned in
2828yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002831ac_tool_warned=yes ;;
2832esac
2833 CC=$ac_ct_CC
2834 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002835else
2836 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002837fi
2838
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002839if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002840 if test -n "$ac_tool_prefix"; then
2841 # 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 -05002842set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002844$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002845if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002846 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002847else
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2850else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002856 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002857 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 -05002858 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002860 break 2
2861 fi
2862done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002863 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002864IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002871$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002872else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002874$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002875fi
2876
Theodore Ts'oe1052142006-10-21 21:46:47 -04002877
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002878 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002879fi
2880if test -z "$CC"; then
2881 # Extract the first word of "cc", so it can be a program name with args.
2882set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002884$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002885if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002886 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002887else
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2890else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002891 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002897 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002898 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 -05002899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2900 ac_prog_rejected=yes
2901 continue
2902 fi
2903 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002905 break 2
2906 fi
2907done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002908 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002909IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002910
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002911if test $ac_prog_rejected = yes; then
2912 # We found a bogon in the path, so make sure we never use it.
2913 set dummy $ac_cv_prog_CC
2914 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002915 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002916 # We chose a different compiler from the bogus one.
2917 # However, it has the same basename, so the bogon will be chosen
2918 # first if we set CC to just the basename; use the full file name.
2919 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002921 fi
2922fi
2923fi
2924fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002925CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002926if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002928$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002929else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002931$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002932fi
2933
Theodore Ts'oe1052142006-10-21 21:46:47 -04002934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002935fi
2936if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002938 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002939 do
2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002943$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002944if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002945 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002946else
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2949else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002955 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002956 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 -05002957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002959 break 2
2960 fi
2961done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002962 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002963IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002964
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002965fi
2966fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002967CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002968if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002970$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002971else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002973$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002974fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002975
Theodore Ts'oe1052142006-10-21 21:46:47 -04002976
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002977 test -n "$CC" && break
2978 done
2979fi
2980if test -z "$CC"; then
2981 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002982 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002983do
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002987$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002988if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002989 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002990else
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002999 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003000 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 -05003001 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003003 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003004 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003005done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003006 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003007IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008
3009fi
3010fi
3011ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003014$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003015else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003017$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003018fi
3019
Theodore Ts'oe1052142006-10-21 21:46:47 -04003020
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021 test -n "$ac_ct_CC" && break
3022done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003023
Theodore Ts'oe1052142006-10-21 21:46:47 -04003024 if test "x$ac_ct_CC" = x; then
3025 CC=""
3026 else
3027 case $cross_compiling:$ac_tool_warned in
3028yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003031ac_tool_warned=yes ;;
3032esac
3033 CC=$ac_ct_CC
3034 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003036
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003037fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003038
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003039
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003040test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003042as_fn_error "no acceptable C compiler found in \$PATH
3043See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003044
3045# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003047set X $ac_compile
3048ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003049for ac_option in --version -v -V -qversion; do
3050 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003051case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056$as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003058 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003059 if test -s conftest.err; then
3060 sed '10a\
3061... rest of stderr output deleted ...
3062 10q' conftest.err >conftest.er1
3063 cat conftest.er1 >&5
3064 rm -f conftest.er1 conftest.err
3065 fi
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }
3068done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003069
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071/* end confdefs.h. */
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003072#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003073int
3074main ()
3075{
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003076FILE *f = fopen ("conftest.out", "w");
3077 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083ac_clean_files_save=$ac_clean_files
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003084ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003085# Try to create an executable without -o first, disregard a.out.
3086# It will help us diagnose broken compilers, and finding out an intuition
3087# of exeext.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003089$as_echo_n "checking for C compiler default output file name... " >&6; }
3090ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091
3092# The possible output files:
3093ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3094
Theodore Ts'oe1052142006-10-21 21:46:47 -04003095ac_rmfiles=
3096for ac_file in $ac_files
3097do
3098 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101 esac
3102done
3103rm -f $ac_rmfiles
3104
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003105if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003106case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003112 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003113 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118# in a Makefile. We should not override ac_cv_exeext if it was cached,
3119# so that the user can short-circuit this test for compilers unknown to
3120# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003121for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003122do
3123 test -f "$ac_file" || continue
3124 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003126 ;;
3127 [ab].out )
3128 # We found the default executable, but exeext='' is most
3129 # certainly right.
3130 break;;
3131 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003133 then :; else
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 fi
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3140 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003141 break;;
3142 * )
3143 break;;
3144 esac
3145done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003146test "$ac_cv_exeext" = no && ac_cv_exeext=
3147
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003148else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003149 ac_file=''
3150fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003152$as_echo "$ac_file" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003153if test -z "$ac_file"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003154 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003155sed 's/^/| /' conftest.$ac_ext >&5
3156
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003157{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003159{ as_fn_set_status 77
3160as_fn_error "C compiler cannot create executables
3161See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003162fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003163ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003164
Theodore Ts'oe1052142006-10-21 21:46:47 -04003165# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003166# the compiler is broken, or we cross compile.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003168$as_echo_n "checking whether the C compiler works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003169# If not cross compiling, check that we can run a simple program.
3170if test "$cross_compiling" != yes; then
3171 if { ac_try='./$ac_file'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003172 { { case "(($ac_try" in
Theodore Ts'oe1052142006-10-21 21:46:47 -04003173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003178 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003179 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003182 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003183 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003184 if test "$cross_compiling" = maybe; then
3185 cross_compiling=yes
3186 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003189as_fn_error "cannot run C compiled programs.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003190If you meant to cross compile, use \`--host'.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003191See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003192 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003193 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003194fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003196$as_echo "yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003197
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003198rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003199ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04003200# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003201# the compiler is broken, or we cross compile.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003203$as_echo_n "checking whether we are cross compiling... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003205$as_echo "$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003206
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003208$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003209if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003210case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003216 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003217 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222# work properly (i.e., refer to `conftest.exe'), while it won't with
3223# `rm'.
3224for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3226 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003229 break;;
3230 * ) break;;
3231 esac
3232done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003233else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003236as_fn_error "cannot compute suffix of executables: cannot compile and link
3237See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003238fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003239rm -f conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003241$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003242
3243rm -f conftest.$ac_ext
3244EXEEXT=$ac_cv_exeext
3245ac_exeext=$EXEEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003247$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003248if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003249 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003250else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003252/* end confdefs.h. */
3253
3254int
3255main ()
3256{
3257
3258 ;
3259 return 0;
3260}
3261_ACEOF
3262rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003263if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003270 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003271 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003274 for ac_file in conftest.o conftest.obj conftest.*; do
3275 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003276 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279 break;;
3280 esac
3281done
3282else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003283 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003284sed 's/^/| /' conftest.$ac_ext >&5
3285
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003286{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003288as_fn_error "cannot compute suffix of object files: cannot compile
3289See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003290fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003291rm -f conftest.$ac_cv_objext conftest.$ac_ext
3292fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003294$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003295OBJEXT=$ac_cv_objext
3296ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003298$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003299if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003300 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003301else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003303/* end confdefs.h. */
3304
3305int
3306main ()
3307{
3308#ifndef __GNUC__
3309 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003310#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003312 ;
3313 return 0;
3314}
3315_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003316if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003317 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003318else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003319 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003320fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003322ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003323
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003324fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003326$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3327if test $ac_compiler_gnu = yes; then
3328 GCC=yes
3329else
3330 GCC=
3331fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003332ac_test_CFLAGS=${CFLAGS+set}
3333ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003335$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003336if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003337 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003338else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003339 ac_save_c_werror_flag=$ac_c_werror_flag
3340 ac_c_werror_flag=yes
3341 ac_cv_prog_cc_g=no
3342 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003344/* end confdefs.h. */
3345
3346int
3347main ()
3348{
3349
3350 ;
3351 return 0;
3352}
3353_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003354if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003355 ac_cv_prog_cc_g=yes
3356else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003357 CFLAGS=""
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003359/* end confdefs.h. */
3360
3361int
3362main ()
3363{
3364
3365 ;
3366 return 0;
3367}
3368_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003369if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003370
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003371else
3372 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003373 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003375/* end confdefs.h. */
3376
3377int
3378main ()
3379{
3380
3381 ;
3382 return 0;
3383}
3384_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003385if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003386 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003387fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003389fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_c_werror_flag=$ac_save_c_werror_flag
3394fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003396$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003397if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003398 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003399elif test $ac_cv_prog_cc_g = yes; then
3400 if test "$GCC" = yes; then
3401 CFLAGS="-g -O2"
3402 else
3403 CFLAGS="-g"
3404 fi
3405else
3406 if test "$GCC" = yes; then
3407 CFLAGS="-O2"
3408 else
3409 CFLAGS=
3410 fi
3411fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003413$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003414if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003415 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003416else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003417 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003418ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003420/* end confdefs.h. */
3421#include <stdarg.h>
3422#include <stdio.h>
3423#include <sys/types.h>
3424#include <sys/stat.h>
3425/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3426struct buf { int x; };
3427FILE * (*rcsopen) (struct buf *, struct stat *, int);
3428static char *e (p, i)
3429 char **p;
3430 int i;
3431{
3432 return p[i];
3433}
3434static char *f (char * (*g) (char **, int), char **p, ...)
3435{
3436 char *s;
3437 va_list v;
3438 va_start (v,p);
3439 s = g (p, va_arg (v,int));
3440 va_end (v);
3441 return s;
3442}
3443
3444/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3445 function prototypes and stuff, but not '\xHH' hex character constants.
3446 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003447 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3449 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003450 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003451int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3452
Theodore Ts'oe1052142006-10-21 21:46:47 -04003453/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3454 inside strings and character constants. */
3455#define FOO(x) 'x'
3456int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3457
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003458int test (int i, double x);
3459struct s1 {int (*f) (int a);};
3460struct s2 {int (*f) (double a);};
3461int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3462int argc;
3463char **argv;
3464int
3465main ()
3466{
3467return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3468 ;
3469 return 0;
3470}
3471_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003472for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3473 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003474do
3475 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003476 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003477 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003478fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003479rm -f core conftest.err conftest.$ac_objext
3480 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003481done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003482rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003483CC=$ac_save_CC
3484
3485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003486# AC_CACHE_VAL
3487case "x$ac_cv_prog_cc_c89" in
3488 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003490$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003491 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003493$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003494 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003495 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003497$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003498esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003499if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003500
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003501fi
3502
3503ac_ext=c
3504ac_cpp='$CPP $CPPFLAGS'
3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3511$as_echo_n "checking for dlopen in -ldl... " >&6; }
3512if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514else
3515 ac_check_lib_save_LIBS=$LIBS
3516LIBS="-ldl $LIBS"
3517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h. */
3519
3520/* Override any GCC internal prototype to avoid an error.
3521 Use char because int might match the return type of a GCC
3522 builtin and then its argument prototype would still apply. */
3523#ifdef __cplusplus
3524extern "C"
3525#endif
3526char dlopen ();
3527int
3528main ()
3529{
3530return dlopen ();
3531 ;
3532 return 0;
3533}
3534_ACEOF
3535if ac_fn_c_try_link "$LINENO"; then :
3536 ac_cv_lib_dl_dlopen=yes
3537else
3538 ac_cv_lib_dl_dlopen=no
3539fi
3540rm -f core conftest.err conftest.$ac_objext \
3541 conftest$ac_exeext conftest.$ac_ext
3542LIBS=$ac_check_lib_save_LIBS
3543fi
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3545$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3546if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3547 DLOPEN_LIB=-ldl
3548$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3549
3550fi
3551
3552
3553WITH_DIET_LIBC=
3554
3555# Check whether --with-diet-libc was given.
3556if test "${with_diet_libc+set}" = set; then :
3557 withval=$with_diet_libc; CC="diet cc -nostdinc"
3558WITH_DIET_LIBC=yes
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3560$as_echo "CC=$CC" >&6; }
3561fi
3562
3563# Check whether --with-cc was given.
3564if test "${with_cc+set}" = set; then :
3565 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3566fi
3567
3568
3569# Check whether --with-ccopts was given.
3570if test "${with_ccopts+set}" = set; then :
3571 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3572fi
3573
3574
3575# Check whether --with-ldopts was given.
3576if test "${with_ldopts+set}" = set; then :
3577 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3578fi
3579
3580ac_ext=c
3581ac_cpp='$CPP $CPPFLAGS'
3582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3587set dummy ${ac_tool_prefix}gcc; ac_word=$2
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589$as_echo_n "checking for $ac_word... " >&6; }
3590if test "${ac_cv_prog_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3592else
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC="$CC" # Let the user override the test.
3595else
3596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597for as_dir in $PATH
3598do
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3606 fi
3607done
3608 done
3609IFS=$as_save_IFS
3610
3611fi
3612fi
3613CC=$ac_cv_prog_CC
3614if test -n "$CC"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616$as_echo "$CC" >&6; }
3617else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619$as_echo "no" >&6; }
3620fi
3621
3622
3623fi
3624if test -z "$ac_cv_prog_CC"; then
3625 ac_ct_CC=$CC
3626 # Extract the first word of "gcc", so it can be a program name with args.
3627set dummy gcc; ac_word=$2
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629$as_echo_n "checking for $ac_word... " >&6; }
3630if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632else
3633 if test -n "$ac_ct_CC"; then
3634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3635else
3636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_ac_ct_CC="gcc"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647done
3648 done
3649IFS=$as_save_IFS
3650
3651fi
3652fi
3653ac_ct_CC=$ac_cv_prog_ac_ct_CC
3654if test -n "$ac_ct_CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3656$as_echo "$ac_ct_CC" >&6; }
3657else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659$as_echo "no" >&6; }
3660fi
3661
3662 if test "x$ac_ct_CC" = x; then
3663 CC=""
3664 else
3665 case $cross_compiling:$ac_tool_warned in
3666yes:)
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3669ac_tool_warned=yes ;;
3670esac
3671 CC=$ac_ct_CC
3672 fi
3673else
3674 CC="$ac_cv_prog_CC"
3675fi
3676
3677if test -z "$CC"; then
3678 if test -n "$ac_tool_prefix"; then
3679 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3680set dummy ${ac_tool_prefix}cc; ac_word=$2
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682$as_echo_n "checking for $ac_word... " >&6; }
3683if test "${ac_cv_prog_CC+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3685else
3686 if test -n "$CC"; then
3687 ac_cv_prog_CC="$CC" # Let the user override the test.
3688else
3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH
3691do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_CC="${ac_tool_prefix}cc"
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 break 2
3699 fi
3700done
3701 done
3702IFS=$as_save_IFS
3703
3704fi
3705fi
3706CC=$ac_cv_prog_CC
3707if test -n "$CC"; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3709$as_echo "$CC" >&6; }
3710else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712$as_echo "no" >&6; }
3713fi
3714
3715
3716 fi
3717fi
3718if test -z "$CC"; then
3719 # Extract the first word of "cc", so it can be a program name with args.
3720set dummy cc; ac_word=$2
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722$as_echo_n "checking for $ac_word... " >&6; }
3723if test "${ac_cv_prog_CC+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3725else
3726 if test -n "$CC"; then
3727 ac_cv_prog_CC="$CC" # Let the user override the test.
3728else
3729 ac_prog_rejected=no
3730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731for as_dir in $PATH
3732do
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3738 ac_prog_rejected=yes
3739 continue
3740 fi
3741 ac_cv_prog_CC="cc"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745done
3746 done
3747IFS=$as_save_IFS
3748
3749if test $ac_prog_rejected = yes; then
3750 # We found a bogon in the path, so make sure we never use it.
3751 set dummy $ac_cv_prog_CC
3752 shift
3753 if test $# != 0; then
3754 # We chose a different compiler from the bogus one.
3755 # However, it has the same basename, so the bogon will be chosen
3756 # first if we set CC to just the basename; use the full file name.
3757 shift
3758 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3759 fi
3760fi
3761fi
3762fi
3763CC=$ac_cv_prog_CC
3764if test -n "$CC"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3766$as_echo "$CC" >&6; }
3767else
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769$as_echo "no" >&6; }
3770fi
3771
3772
3773fi
3774if test -z "$CC"; then
3775 if test -n "$ac_tool_prefix"; then
3776 for ac_prog in cl.exe
3777 do
3778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3779set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781$as_echo_n "checking for $ac_word... " >&6; }
3782if test "${ac_cv_prog_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3784else
3785 if test -n "$CC"; then
3786 ac_cv_prog_CC="$CC" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3798 fi
3799done
3800 done
3801IFS=$as_save_IFS
3802
3803fi
3804fi
3805CC=$ac_cv_prog_CC
3806if test -n "$CC"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808$as_echo "$CC" >&6; }
3809else
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811$as_echo "no" >&6; }
3812fi
3813
3814
3815 test -n "$CC" && break
3816 done
3817fi
3818if test -z "$CC"; then
3819 ac_ct_CC=$CC
3820 for ac_prog in cl.exe
3821do
3822 # Extract the first word of "$ac_prog", so it can be a program name with args.
3823set dummy $ac_prog; ac_word=$2
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825$as_echo_n "checking for $ac_word... " >&6; }
3826if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3827 $as_echo_n "(cached) " >&6
3828else
3829 if test -n "$ac_ct_CC"; then
3830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3831else
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839 ac_cv_prog_ac_ct_CC="$ac_prog"
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843done
3844 done
3845IFS=$as_save_IFS
3846
3847fi
3848fi
3849ac_ct_CC=$ac_cv_prog_ac_ct_CC
3850if test -n "$ac_ct_CC"; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3852$as_echo "$ac_ct_CC" >&6; }
3853else
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
3856fi
3857
3858
3859 test -n "$ac_ct_CC" && break
3860done
3861
3862 if test "x$ac_ct_CC" = x; then
3863 CC=""
3864 else
3865 case $cross_compiling:$ac_tool_warned in
3866yes:)
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3869ac_tool_warned=yes ;;
3870esac
3871 CC=$ac_ct_CC
3872 fi
3873fi
3874
3875fi
3876
3877
3878test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880as_fn_error "no acceptable C compiler found in \$PATH
3881See \`config.log' for more details." "$LINENO" 5; }
3882
3883# Provide some information about the compiler.
3884$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3885set X $ac_compile
3886ac_compiler=$2
3887for ac_option in --version -v -V -qversion; do
3888 { { ac_try="$ac_compiler $ac_option >&5"
3889case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894$as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3896 ac_status=$?
3897 if test -s conftest.err; then
3898 sed '10a\
3899... rest of stderr output deleted ...
3900 10q' conftest.err >conftest.er1
3901 cat conftest.er1 >&5
3902 rm -f conftest.er1 conftest.err
3903 fi
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }
3906done
3907
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3909$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3910if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3912else
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914/* end confdefs.h. */
3915
3916int
3917main ()
3918{
3919#ifndef __GNUC__
3920 choke me
3921#endif
3922
3923 ;
3924 return 0;
3925}
3926_ACEOF
3927if ac_fn_c_try_compile "$LINENO"; then :
3928 ac_compiler_gnu=yes
3929else
3930 ac_compiler_gnu=no
3931fi
3932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933ac_cv_c_compiler_gnu=$ac_compiler_gnu
3934
3935fi
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3937$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3938if test $ac_compiler_gnu = yes; then
3939 GCC=yes
3940else
3941 GCC=
3942fi
3943ac_test_CFLAGS=${CFLAGS+set}
3944ac_save_CFLAGS=$CFLAGS
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3946$as_echo_n "checking whether $CC accepts -g... " >&6; }
3947if test "${ac_cv_prog_cc_g+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3949else
3950 ac_save_c_werror_flag=$ac_c_werror_flag
3951 ac_c_werror_flag=yes
3952 ac_cv_prog_cc_g=no
3953 CFLAGS="-g"
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955/* end confdefs.h. */
3956
3957int
3958main ()
3959{
3960
3961 ;
3962 return 0;
3963}
3964_ACEOF
3965if ac_fn_c_try_compile "$LINENO"; then :
3966 ac_cv_prog_cc_g=yes
3967else
3968 CFLAGS=""
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970/* end confdefs.h. */
3971
3972int
3973main ()
3974{
3975
3976 ;
3977 return 0;
3978}
3979_ACEOF
3980if ac_fn_c_try_compile "$LINENO"; then :
3981
3982else
3983 ac_c_werror_flag=$ac_save_c_werror_flag
3984 CFLAGS="-g"
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h. */
3987
3988int
3989main ()
3990{
3991
3992 ;
3993 return 0;
3994}
3995_ACEOF
3996if ac_fn_c_try_compile "$LINENO"; then :
3997 ac_cv_prog_cc_g=yes
3998fi
3999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000fi
4001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002fi
4003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 ac_c_werror_flag=$ac_save_c_werror_flag
4005fi
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4007$as_echo "$ac_cv_prog_cc_g" >&6; }
4008if test "$ac_test_CFLAGS" = set; then
4009 CFLAGS=$ac_save_CFLAGS
4010elif test $ac_cv_prog_cc_g = yes; then
4011 if test "$GCC" = yes; then
4012 CFLAGS="-g -O2"
4013 else
4014 CFLAGS="-g"
4015 fi
4016else
4017 if test "$GCC" = yes; then
4018 CFLAGS="-O2"
4019 else
4020 CFLAGS=
4021 fi
4022fi
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4024$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4025if test "${ac_cv_prog_cc_c89+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4027else
4028 ac_cv_prog_cc_c89=no
4029ac_save_CC=$CC
4030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h. */
4032#include <stdarg.h>
4033#include <stdio.h>
4034#include <sys/types.h>
4035#include <sys/stat.h>
4036/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4037struct buf { int x; };
4038FILE * (*rcsopen) (struct buf *, struct stat *, int);
4039static char *e (p, i)
4040 char **p;
4041 int i;
4042{
4043 return p[i];
4044}
4045static char *f (char * (*g) (char **, int), char **p, ...)
4046{
4047 char *s;
4048 va_list v;
4049 va_start (v,p);
4050 s = g (p, va_arg (v,int));
4051 va_end (v);
4052 return s;
4053}
4054
4055/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4056 function prototypes and stuff, but not '\xHH' hex character constants.
4057 These don't provoke an error unfortunately, instead are silently treated
4058 as 'x'. The following induces an error, until -std is added to get
4059 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4060 array size at least. It's necessary to write '\x00'==0 to get something
4061 that's true only with -std. */
4062int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4063
4064/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4065 inside strings and character constants. */
4066#define FOO(x) 'x'
4067int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4068
4069int test (int i, double x);
4070struct s1 {int (*f) (int a);};
4071struct s2 {int (*f) (double a);};
4072int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4073int argc;
4074char **argv;
4075int
4076main ()
4077{
4078return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4079 ;
4080 return 0;
4081}
4082_ACEOF
4083for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4084 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4085do
4086 CC="$ac_save_CC $ac_arg"
4087 if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_cv_prog_cc_c89=$ac_arg
4089fi
4090rm -f core conftest.err conftest.$ac_objext
4091 test "x$ac_cv_prog_cc_c89" != "xno" && break
4092done
4093rm -f conftest.$ac_ext
4094CC=$ac_save_CC
4095
4096fi
4097# AC_CACHE_VAL
4098case "x$ac_cv_prog_cc_c89" in
4099 x)
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4101$as_echo "none needed" >&6; } ;;
4102 xno)
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4104$as_echo "unsupported" >&6; } ;;
4105 *)
4106 CC="$CC $ac_cv_prog_cc_c89"
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4108$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4109esac
4110if test "x$ac_cv_prog_cc_c89" != xno; then :
4111
4112fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004113
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004114ac_ext=c
4115ac_cpp='$CPP $CPPFLAGS'
4116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004120ac_ext=c
4121ac_cpp='$CPP $CPPFLAGS'
4122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004126$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004127# On Suns, sometimes $CPP names a directory.
4128if test -n "$CPP" && test -d "$CPP"; then
4129 CPP=
4130fi
4131if test -z "$CPP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004132 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004133 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004134else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004135 # Double quotes because CPP needs to be expanded
4136 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4137 do
4138 ac_preproc_ok=false
4139for ac_c_preproc_warn_flag in '' yes
4140do
4141 # Use a header file that comes with gcc, so configuring glibc
4142 # with a fresh cross-compiler works.
4143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004145 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004146 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004148/* end confdefs.h. */
4149#ifdef __STDC__
4150# include <limits.h>
4151#else
4152# include <assert.h>
4153#endif
4154 Syntax error
4155_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004156if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004157
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004158else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004159 # Broken: fails on valid input.
4160continue
4161fi
4162rm -f conftest.err conftest.$ac_ext
4163
Theodore Ts'oe1052142006-10-21 21:46:47 -04004164 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004165 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004167/* end confdefs.h. */
4168#include <ac_nonexistent.h>
4169_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004170if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004171 # Broken: success on invalid input.
4172continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004173else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004174 # Passes both tests.
4175ac_preproc_ok=:
4176break
4177fi
4178rm -f conftest.err conftest.$ac_ext
4179
4180done
4181# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004183if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004184 break
4185fi
4186
4187 done
4188 ac_cv_prog_CPP=$CPP
4189
4190fi
4191 CPP=$ac_cv_prog_CPP
4192else
4193 ac_cv_prog_CPP=$CPP
4194fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004196$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004197ac_preproc_ok=false
4198for ac_c_preproc_warn_flag in '' yes
4199do
4200 # Use a header file that comes with gcc, so configuring glibc
4201 # with a fresh cross-compiler works.
4202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203 # <limits.h> exists even on freestanding compilers.
4204 # On the NeXT, cc -E runs the code through the compiler's parser,
4205 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004207/* end confdefs.h. */
4208#ifdef __STDC__
4209# include <limits.h>
4210#else
4211# include <assert.h>
4212#endif
4213 Syntax error
4214_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004215if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004216
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004217else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004218 # Broken: fails on valid input.
4219continue
4220fi
4221rm -f conftest.err conftest.$ac_ext
4222
Theodore Ts'oe1052142006-10-21 21:46:47 -04004223 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004224 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004226/* end confdefs.h. */
4227#include <ac_nonexistent.h>
4228_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004229if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004230 # Broken: success on invalid input.
4231continue
4232else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004233 # Passes both tests.
4234ac_preproc_ok=:
4235break
4236fi
4237rm -f conftest.err conftest.$ac_ext
4238
4239done
4240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4241rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004242if $ac_preproc_ok; then :
4243
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004244else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004247as_fn_error "C preprocessor \"$CPP\" fails sanity check
4248See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004249fi
4250
4251ac_ext=c
4252ac_cpp='$CPP $CPPFLAGS'
4253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004259$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004260if test "${ac_cv_path_GREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004261 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004262else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004263 if test -z "$GREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004264 ac_path_GREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004265 # Loop through the user's path and test for each of PROGNAME-LIST
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04004267for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004271 for ac_prog in grep ggrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4274 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4275# Check for GNU ac_path_GREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004276 # Check for GNU $ac_path_GREP
4277case `"$ac_path_GREP" --version 2>&1` in
4278*GNU*)
4279 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4280*)
4281 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004282 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004283 while :
4284 do
4285 cat "conftest.in" "conftest.in" >"conftest.tmp"
4286 mv "conftest.tmp" "conftest.in"
4287 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004288 $as_echo 'GREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004289 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004291 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04004292 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4293 # Best one so far, save it but keep looking for a better one
4294 ac_cv_path_GREP="$ac_path_GREP"
4295 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004296 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004297 # 10*(2^10) chars as input seems more than enough
4298 test $ac_count -gt 10 && break
4299 done
4300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301esac
4302
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004303 $ac_path_GREP_found && break 3
4304 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004305 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004306 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004307IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004308 if test -z "$ac_cv_path_GREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004309 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004310 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004311else
4312 ac_cv_path_GREP=$GREP
4313fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004314
Theodore Ts'oe1052142006-10-21 21:46:47 -04004315fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004317$as_echo "$ac_cv_path_GREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04004318 GREP="$ac_cv_path_GREP"
4319
4320
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004322$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004323if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004324 $as_echo_n "(cached) " >&6
Theodore Ts'oe1052142006-10-21 21:46:47 -04004325else
4326 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4327 then ac_cv_path_EGREP="$GREP -E"
4328 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004329 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004330 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004331 # Loop through the user's path and test for each of PROGNAME-LIST
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04004333for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4334do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004337 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4340 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4341# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004342 # Check for GNU $ac_path_EGREP
4343case `"$ac_path_EGREP" --version 2>&1` in
4344*GNU*)
4345 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4346*)
4347 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004348 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004349 while :
4350 do
4351 cat "conftest.in" "conftest.in" >"conftest.tmp"
4352 mv "conftest.tmp" "conftest.in"
4353 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004354 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004355 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004357 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04004358 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4359 # Best one so far, save it but keep looking for a better one
4360 ac_cv_path_EGREP="$ac_path_EGREP"
4361 ac_path_EGREP_max=$ac_count
4362 fi
4363 # 10*(2^10) chars as input seems more than enough
4364 test $ac_count -gt 10 && break
4365 done
4366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4367esac
4368
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004369 $ac_path_EGREP_found && break 3
4370 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004371 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004372 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004373IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004374 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004375 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004376 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004377else
4378 ac_cv_path_EGREP=$EGREP
4379fi
4380
Theodore Ts'oe1052142006-10-21 21:46:47 -04004381 fi
4382fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004384$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04004385 EGREP="$ac_cv_path_EGREP"
4386
4387
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004389$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004390if test "${ac_cv_header_stdc+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004391 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004392else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004394/* end confdefs.h. */
4395#include <stdlib.h>
4396#include <stdarg.h>
4397#include <string.h>
4398#include <float.h>
4399
4400int
4401main ()
4402{
4403
4404 ;
4405 return 0;
4406}
4407_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004408if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004409 ac_cv_header_stdc=yes
4410else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004411 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004412fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004414
4415if test $ac_cv_header_stdc = yes; then
4416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004418/* end confdefs.h. */
4419#include <string.h>
4420
4421_ACEOF
4422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004423 $EGREP "memchr" >/dev/null 2>&1; then :
4424
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004425else
4426 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004427fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004428rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004429
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004430fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004431
4432if test $ac_cv_header_stdc = yes; then
4433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004435/* end confdefs.h. */
4436#include <stdlib.h>
4437
4438_ACEOF
4439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004440 $EGREP "free" >/dev/null 2>&1; then :
4441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004442else
4443 ac_cv_header_stdc=no
4444fi
4445rm -f conftest*
4446
4447fi
4448
4449if test $ac_cv_header_stdc = yes; then
4450 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004451 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004452 :
4453else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004455/* end confdefs.h. */
4456#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04004457#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004458#if ((' ' & 0x0FF) == 0x020)
4459# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461#else
4462# define ISLOWER(c) \
4463 (('a' <= (c) && (c) <= 'i') \
4464 || ('j' <= (c) && (c) <= 'r') \
4465 || ('s' <= (c) && (c) <= 'z'))
4466# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4467#endif
4468
4469#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470int
4471main ()
4472{
4473 int i;
4474 for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i))
4476 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04004477 return 2;
4478 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004479}
4480_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004481if ac_fn_c_try_run "$LINENO"; then :
4482
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004483else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004484 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004485fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4487 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004488fi
4489
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004490fi
4491fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004493$as_echo "$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004494if test $ac_cv_header_stdc = yes; then
4495
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004496$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004497
4498fi
4499
4500# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004501for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4502 inttypes.h stdint.h unistd.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004503do :
4504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4505ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4506"
4507eval as_val=\$$as_ac_Header
4508 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004509 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004510#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004511_ACEOF
4512
4513fi
4514
4515done
4516
4517
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004518ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4519if test "x$ac_cv_header_linux_fs_h" = x""yes; then :
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004520 linux_headers=yes
4521else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004522 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004523fi
4524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004525
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00004526if test "$linux_headers" != yes; then
4527 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004528fi
4529
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004531$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004532if test "$GCC" = yes
4533then
4534 case "$host_cpu" in
4535 alpha) addcflags="-mieee" ;;
4536 esac
4537fi
4538if test "x$addcflags" != x
4539then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004541$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004542 CFLAGS="$addcflags $CFLAGS"
4543else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004545$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004546fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004547LIB_EXT=.a
4548STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004549PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004550
Theodore Ts'oe1052142006-10-21 21:46:47 -04004551# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004552if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004553 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004554else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004555 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004556fi
4557# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004558if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004559 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004560then
4561 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004563$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004564else
4565 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004567$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004568fi
4569
4570else
4571 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004573$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004574
Theodore Ts'oe1052142006-10-21 21:46:47 -04004575fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004576
Theodore Ts'oe1052142006-10-21 21:46:47 -04004577
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004578# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004579if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004580 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4581then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004583$as_echo "Disabling verbose make commands" >&6; }
4584 E=@echo
4585 Q=@
4586else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004588$as_echo "Enabling verbose make commands" >&6; }
4589 E=@\\#
4590 Q=
4591fi
4592
4593else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004595$as_echo "Disabling verbose make commands" >&6; }
4596E=@echo
4597Q=@
4598
4599fi
4600
4601
4602
Theodore Ts'oe1052142006-10-21 21:46:47 -04004603# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004604if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004605 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004606then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004608$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004609else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004610 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004611
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004613$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004615$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004616fi
4617
4618else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004620$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004621
Theodore Ts'oe1052142006-10-21 21:46:47 -04004622fi
4623
4624# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004625if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004626 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004627then
4628 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004630$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004631else
4632 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004633 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004634
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004636$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004637fi
4638
4639else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004640 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004641$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004642
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004644$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004645
Theodore Ts'oe1052142006-10-21 21:46:47 -04004646fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004647
Theodore Ts'oe1052142006-10-21 21:46:47 -04004648
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004649E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004650LDFLAG_DYNAMIC=
4651PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004652# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004653if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004654 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004655then
4656 ELF_CMT=#
4657 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004659$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004660else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004661 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004662 ELF_CMT=
4663 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004664 case "$host_os" in
4665 solaris2.*)
4666 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4667 ;;
4668 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004669 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004670 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004671 PRIVATE_LIBS_CMT=#
4672 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004674$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004675fi
4676
4677else
4678 MAKEFILE_ELF=/dev/null
4679ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004681$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004682
Theodore Ts'oe1052142006-10-21 21:46:47 -04004683fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004684
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004685
Theodore Ts'oe1052142006-10-21 21:46:47 -04004686
4687# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004688if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004689 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004690then
4691 BSDLIB_CMT=#
4692 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004694$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004695else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004696 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004697 BSDLIB_CMT=
4698 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004699 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004700 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004701 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004702 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4703 LIB_EXT=.dylib
4704 ;;
4705 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004707$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004708fi
4709
4710else
4711 MAKEFILE_BSDLIB=/dev/null
4712BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004714$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004715
Theodore Ts'oe1052142006-10-21 21:46:47 -04004716fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004717
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004718
Theodore Ts'oe1052142006-10-21 21:46:47 -04004719
4720# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004721if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004722 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004723then
4724 PROFILE_CMT=#
4725 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004727$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004728else
4729 PROFILE_CMT=
4730 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4731 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004733$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004734fi
4735
4736else
4737 PROFILE_CMT=#
4738MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004740$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004741
Theodore Ts'oe1052142006-10-21 21:46:47 -04004742fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004743
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004744
Theodore Ts'oe1052142006-10-21 21:46:47 -04004745
4746# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004747if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004748 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004749then
4750 CHECKER_CMT=#
4751 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004753$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004754else
4755 CHECKER_CMT=
4756 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004758$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004759fi
4760
4761else
4762 CHECKER_CMT=#
4763MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004765$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004766
Theodore Ts'oe1052142006-10-21 21:46:47 -04004767fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004768
4769
4770
4771
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004772
Theodore Ts'oe1052142006-10-21 21:46:47 -04004773
Theodore Ts'o55da9872008-09-02 23:12:38 -04004774
4775
Theodore Ts'oe1052142006-10-21 21:46:47 -04004776# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004777if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004778 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004779then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004781$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004782else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004783 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004784
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004786$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004787fi
4788
4789else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004791$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004792
Theodore Ts'oe1052142006-10-21 21:46:47 -04004793fi
4794
4795# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004796if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004797 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004798then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004800$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004801else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004802 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004803
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004805$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004806fi
4807
4808else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004810$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004811
Theodore Ts'oe1052142006-10-21 21:46:47 -04004812fi
4813
4814# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004815if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004816 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004817then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004819$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004820 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004821else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004822 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004823 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004824
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004826$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004827fi
4828
4829else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004831$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004832$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004833
4834TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004835
Theodore Ts'oe1052142006-10-21 21:46:47 -04004836fi
4837
Theodore Ts'oaf773652008-09-01 11:27:27 -04004838
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004839
4840
4841if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4842 if test -n "$ac_tool_prefix"; then
4843 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4844set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004846$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004847if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004848 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004849else
4850 case $PKG_CONFIG in
4851 [\\/]* | ?:[\\/]*)
4852 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4853 ;;
4854 *)
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004860 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004864 break 2
4865 fi
4866done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004867 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004868IFS=$as_save_IFS
4869
4870 ;;
4871esac
4872fi
4873PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4874if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004876$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004877else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004879$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004880fi
4881
4882
4883fi
4884if test -z "$ac_cv_path_PKG_CONFIG"; then
4885 ac_pt_PKG_CONFIG=$PKG_CONFIG
4886 # Extract the first word of "pkg-config", so it can be a program name with args.
4887set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004889$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004890if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004891 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004892else
4893 case $ac_pt_PKG_CONFIG in
4894 [\\/]* | ?:[\\/]*)
4895 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4896 ;;
4897 *)
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004903 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004907 break 2
4908 fi
4909done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004910 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004911IFS=$as_save_IFS
4912
4913 ;;
4914esac
4915fi
4916ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4917if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004919$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004920else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004922$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004923fi
4924
4925 if test "x$ac_pt_PKG_CONFIG" = x; then
4926 PKG_CONFIG=""
4927 else
4928 case $cross_compiling:$ac_tool_warned in
4929yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004932ac_tool_warned=yes ;;
4933esac
4934 PKG_CONFIG=$ac_pt_PKG_CONFIG
4935 fi
4936else
4937 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4938fi
4939
4940fi
4941if test -n "$PKG_CONFIG"; then
4942 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004944$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004945 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004947$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004948 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004950$as_echo "no" >&6; }
4951 PKG_CONFIG=""
4952 fi
4953
4954fi
4955LIBUUID=
4956DEPLIBUUID=
4957STATIC_LIBUUID=
4958DEPSTATIC_LIBUUID=
4959PROFILED_LIBUUID=
4960DEPPROFILED_LIBUUID=
4961UUID_CMT=
4962# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004963if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004964 enableval=$enable_libuuid; if test "$enableval" = "no"
4965then
4966 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004967 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004968 fi
4969
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004971$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004972if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004973 $as_echo_n "(cached) " >&6
4974else
4975 ac_check_lib_save_LIBS=$LIBS
4976LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004978/* end confdefs.h. */
4979
4980/* Override any GCC internal prototype to avoid an error.
4981 Use char because int might match the return type of a GCC
4982 builtin and then its argument prototype would still apply. */
4983#ifdef __cplusplus
4984extern "C"
4985#endif
4986char uuid_generate ();
4987int
4988main ()
4989{
4990return uuid_generate ();
4991 ;
4992 return 0;
4993}
4994_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004995if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004996 ac_cv_lib_uuid_uuid_generate=yes
4997else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004998 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004999fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005000rm -f core conftest.err conftest.$ac_objext \
5001 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005002LIBS=$ac_check_lib_save_LIBS
5003fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005005$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005006if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005007 LIBUUID=`$PKG_CONFIG --libs uuid`;
5008 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5009else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005010 as_fn_error "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005011fi
5012
5013 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005015$as_echo "Disabling private uuid library" >&6; }
5016else
5017 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5018 DEPLIBUUID=$LIBUUID
5019 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5020 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5021 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5022 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005024$as_echo "Enabling private uuid library" >&6; }
5025fi
5026
5027else
5028 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5029DEPLIBUUID=$LIBUUID
5030STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5031DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5032PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5033DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005035$as_echo "Enabling private uuid library by default" >&6; }
5036
5037fi
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5049 if test -n "$ac_tool_prefix"; then
5050 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5051set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005053$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005054if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005055 $as_echo_n "(cached) " >&6
5056else
5057 case $PKG_CONFIG in
5058 [\\/]* | ?:[\\/]*)
5059 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5060 ;;
5061 *)
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063for as_dir in $PATH
5064do
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005067 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005071 break 2
5072 fi
5073done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005074 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005075IFS=$as_save_IFS
5076
5077 ;;
5078esac
5079fi
5080PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5081if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005083$as_echo "$PKG_CONFIG" >&6; }
5084else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005086$as_echo "no" >&6; }
5087fi
5088
5089
5090fi
5091if test -z "$ac_cv_path_PKG_CONFIG"; then
5092 ac_pt_PKG_CONFIG=$PKG_CONFIG
5093 # Extract the first word of "pkg-config", so it can be a program name with args.
5094set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005096$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005097if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005098 $as_echo_n "(cached) " >&6
5099else
5100 case $ac_pt_PKG_CONFIG in
5101 [\\/]* | ?:[\\/]*)
5102 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5103 ;;
5104 *)
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106for as_dir in $PATH
5107do
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005110 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005114 break 2
5115 fi
5116done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005117 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005118IFS=$as_save_IFS
5119
5120 ;;
5121esac
5122fi
5123ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5124if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005126$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5127else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005129$as_echo "no" >&6; }
5130fi
5131
5132 if test "x$ac_pt_PKG_CONFIG" = x; then
5133 PKG_CONFIG=""
5134 else
5135 case $cross_compiling:$ac_tool_warned in
5136yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5139ac_tool_warned=yes ;;
5140esac
5141 PKG_CONFIG=$ac_pt_PKG_CONFIG
5142 fi
5143else
5144 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5145fi
5146
5147fi
5148if test -n "$PKG_CONFIG"; then
5149 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005151$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5152 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005154$as_echo "yes" >&6; }
5155 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005157$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005158 PKG_CONFIG=""
5159 fi
5160
5161fi
5162LIBBLKID=
5163DEPLIBBLKID=
5164STATIC_LIBBLKID=
5165DEPSTATIC_LIBBLKID=
5166PROFILED_LIBBLKID=
5167DEPPROFILED_LIBBLKID=
5168BLKID_CMT=
5169# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005170if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005171 enableval=$enable_libblkid; if test "$enableval" = "no"
5172then
5173 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005174 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005175 fi
5176
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005178$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005179if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005180 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005181else
5182 ac_check_lib_save_LIBS=$LIBS
5183LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005185/* end confdefs.h. */
5186
5187/* Override any GCC internal prototype to avoid an error.
5188 Use char because int might match the return type of a GCC
5189 builtin and then its argument prototype would still apply. */
5190#ifdef __cplusplus
5191extern "C"
5192#endif
5193char blkid_get_cache ();
5194int
5195main ()
5196{
5197return blkid_get_cache ();
5198 ;
5199 return 0;
5200}
5201_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005202if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005203 ac_cv_lib_blkid_blkid_get_cache=yes
5204else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005205 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005206fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005207rm -f core conftest.err conftest.$ac_objext \
5208 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005209LIBS=$ac_check_lib_save_LIBS
5210fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005212$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005213if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005214 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5215 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5216else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005217 as_fn_error "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005218fi
5219
5220 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005222$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005223else
5224 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5225 DEPLIBBLKID=$LIBBLKID
5226 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5227 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5228 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5229 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005230 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005231
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005233$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005234fi
5235
5236else
5237 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5238DEPLIBBLKID=$LIBBLKID
5239STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5240DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5241PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5242DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005243$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005244
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005246$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005247
5248fi
5249
5250
5251
5252
5253
5254
5255
5256
Theodore Ts'oe1052142006-10-21 21:46:47 -04005257# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005258if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005259 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005260then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005262$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005263 DEBUGFS_CMT="#"
5264else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005265 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005267$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005268fi
5269
5270else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005272$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005273DEBUGFS_CMT=
5274
Theodore Ts'oe1052142006-10-21 21:46:47 -04005275fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005276
Theodore Ts'oe1052142006-10-21 21:46:47 -04005277
5278# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005279if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005280 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005281then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005283$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005284 IMAGER_CMT="#"
5285else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005286 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005288$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005289fi
5290
5291else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005293$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005294IMAGER_CMT=
5295
Theodore Ts'oe1052142006-10-21 21:46:47 -04005296fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005297
Theodore Ts'oe1052142006-10-21 21:46:47 -04005298
5299# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005300if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005301 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005302then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005304$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005305 RESIZER_CMT="#"
5306else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005307 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005309$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005310fi
5311
5312else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005314$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005315RESIZER_CMT=
5316
Theodore Ts'oe1052142006-10-21 21:46:47 -04005317fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005318
Theodore Ts'oe1052142006-10-21 21:46:47 -04005319
Theodore Ts'oe1052142006-10-21 21:46:47 -04005320# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005321if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005322 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005323then
5324 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005326$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005327else
5328 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005330$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005331fi
5332
5333else
5334 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005335 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005336 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005338$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005339 ;;
5340 *)
5341 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005343$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005344esac
5345
Theodore Ts'oe1052142006-10-21 21:46:47 -04005346fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005347
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005348
Theodore Ts'oe1052142006-10-21 21:46:47 -04005349
5350# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005351if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005352 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005353then
5354 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005356$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005357else
5358 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005360$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005361fi
5362
5363else
5364 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005366$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005367
Theodore Ts'oe1052142006-10-21 21:46:47 -04005368fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005369
5370
Theodore Ts'oe1052142006-10-21 21:46:47 -04005371
Theodore Ts'o32493942007-12-31 10:45:01 -05005372# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005373if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005374 enableval=$enable_tls; if test "$enableval" = "no"
5375then
5376 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005378$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005379else
5380 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005382$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005383fi
5384
5385else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005386 if test -n "$WITH_DIET_LIBC"
5387then
5388 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005390$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005391else
5392 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005394$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005395fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005396
5397fi
5398
5399if test "$try_tls" = "yes"
5400then
5401
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005403$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005404 if test "${ac_cv_tls+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005405 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005406else
5407
5408 ax_tls_keywords="__thread __declspec(thread) none"
5409 for ax_tls_keyword in $ax_tls_keywords; do
5410 case $ax_tls_keyword in
5411 none) ac_cv_tls=none ; break ;;
5412 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005414/* end confdefs.h. */
5415#include <stdlib.h>
5416 static void
5417 foo(void) {
5418 static $ax_tls_keyword int bar;
5419 exit(1);
5420 }
5421int
5422main ()
5423{
5424
5425 ;
5426 return 0;
5427}
5428_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005429if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005430 ac_cv_tls=$ax_tls_keyword ; break
5431else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005432 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005433
5434fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436 esac
5437 done
5438
5439fi
5440
5441
5442 if test "$ac_cv_tls" != "none"; then
5443
5444cat >>confdefs.h <<_ACEOF
5445#define TLS $ac_cv_tls
5446_ACEOF
5447
5448 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005450$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005451
5452fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005453# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005454if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005455 enableval=$enable_uuidd; if test "$enableval" = "no"
5456then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005458$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005459 UUIDD_CMT="#"
5460else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005461 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005462
5463 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005465$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005466fi
5467
5468else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005469 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005470
5471UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005473$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005474
5475fi
5476
5477
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005478MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005480GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005481PACKAGE=e2fsprogs
5482VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005483VERSION=0.14.1
5484cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005485#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005486_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005487
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005488cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005489#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005490_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005491
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005492
5493
5494
5495
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005497$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5498set x ${MAKE-make}
5499ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005500if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005501 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005502else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005503 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005504SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005505all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005506 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005507_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005508# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005509case `${MAKE-make} -f conftest.make 2>/dev/null` in
5510 *@@@%%%=?*=@@@%%%*)
5511 eval ac_cv_prog_make_${ac_make}_set=yes;;
5512 *)
5513 eval ac_cv_prog_make_${ac_make}_set=no;;
5514esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005515rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005516fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005517if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005519$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005520 SET_MAKE=
5521else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005523$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005524 SET_MAKE="MAKE=${MAKE-make}"
5525fi
5526
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005527# Find a good install program. We prefer a C program (faster),
5528# so one script is as good as another. But avoid the broken or
5529# incompatible versions:
5530# SysV /etc/install, /usr/sbin/install
5531# SunOS /usr/etc/install
5532# IRIX /sbin/install
5533# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005534# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005535# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5536# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5537# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005538# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005539# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005540# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005542$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005543if test -z "$INSTALL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005544if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005545 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005546else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005552 # Account for people who put trailing slashes in PATH elements.
5553case $as_dir/ in #((
5554 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005556 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005557 /usr/ucb/* ) ;;
5558 *)
5559 # OSF1 and SCO ODT 3.0 have their own names for install.
5560 # Don't use installbsd from OSF since it installs stuff as root
5561 # by default.
5562 for ac_prog in ginstall scoinst install; do
5563 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005564 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 -04005565 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005567 # AIX install. It has an incompatible calling convention.
5568 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005569 elif test $ac_prog = install &&
5570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5571 # program-specific install script used by HP pwplus--don't use.
5572 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005573 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005574 rm -rf conftest.one conftest.two conftest.dir
5575 echo one > conftest.one
5576 echo two > conftest.two
5577 mkdir conftest.dir
5578 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5579 test -s conftest.one && test -s conftest.two &&
5580 test -s conftest.dir/conftest.one &&
5581 test -s conftest.dir/conftest.two
5582 then
5583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5584 break 3
5585 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005586 fi
5587 fi
5588 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005589 done
5590 ;;
5591esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005592
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005593 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005594IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005595
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005596rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005597
5598fi
5599 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005600 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005601 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005602 # As a last resort, use the slow shell script. Don't cache a
5603 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005604 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005605 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005606 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005607 fi
5608fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005610$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005611
5612# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5613# It thinks the first close brace ends the variable substitution.
5614test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005616test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005617
5618test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5619
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005620
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005621 MKINSTALLDIRS=
5622 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005623 case "$ac_aux_dir" in
5624 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5625 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5626 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005627 fi
5628 if test -z "$MKINSTALLDIRS"; then
5629 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5630 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005631
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005632
5633
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005635$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005636 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005637if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005638 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005639else
5640 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005641fi
5642
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005644$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005645
5646
5647
5648
5649
5650
5651# Prepare PATH_SEPARATOR.
5652# The user is always right.
5653if test "${PATH_SEPARATOR+set}" != set; then
5654 echo "#! /bin/sh" >conf$$.sh
5655 echo "exit 0" >>conf$$.sh
5656 chmod +x conf$$.sh
5657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5658 PATH_SEPARATOR=';'
5659 else
5660 PATH_SEPARATOR=:
5661 fi
5662 rm -f conf$$.sh
5663fi
5664
5665# Find out how to test for executable files. Don't use a zero-byte file,
5666# as systems may use methods other than mode bits to determine executability.
5667cat >conf$$.file <<_ASEOF
5668#! /bin/sh
5669exit 0
5670_ASEOF
5671chmod +x conf$$.file
5672if test -x conf$$.file >/dev/null 2>&1; then
5673 ac_executable_p="test -x"
5674else
5675 ac_executable_p="test -f"
5676fi
5677rm -f conf$$.file
5678
5679# Extract the first word of "msgfmt", so it can be a program name with args.
5680set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005682$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005683if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005684 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005685else
5686 case "$MSGFMT" in
5687 [\\/]* | ?:[\\/]*)
5688 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5689 ;;
5690 *)
5691 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5692 for ac_dir in $PATH; do
5693 IFS="$ac_save_IFS"
5694 test -z "$ac_dir" && ac_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5697 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5698 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5699 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5700 break 2
5701 fi
5702 fi
5703 done
5704 done
5705 IFS="$ac_save_IFS"
5706 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5707 ;;
5708esac
5709fi
5710MSGFMT="$ac_cv_path_MSGFMT"
5711if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005713$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005714else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005716$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005717fi
5718
5719 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5720set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005722$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005723if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005724 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005725else
5726 case $GMSGFMT in
5727 [\\/]* | ?:[\\/]*)
5728 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5729 ;;
5730 *)
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005736 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005737 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 -05005738 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005740 break 2
5741 fi
5742done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005743 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005744IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005745
5746 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5747 ;;
5748esac
5749fi
5750GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005751if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005753$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005754else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005756$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005757fi
5758
5759
5760
Theodore Ts'oe1052142006-10-21 21:46:47 -04005761
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005762# Prepare PATH_SEPARATOR.
5763# The user is always right.
5764if test "${PATH_SEPARATOR+set}" != set; then
5765 echo "#! /bin/sh" >conf$$.sh
5766 echo "exit 0" >>conf$$.sh
5767 chmod +x conf$$.sh
5768 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5769 PATH_SEPARATOR=';'
5770 else
5771 PATH_SEPARATOR=:
5772 fi
5773 rm -f conf$$.sh
5774fi
5775
5776# Find out how to test for executable files. Don't use a zero-byte file,
5777# as systems may use methods other than mode bits to determine executability.
5778cat >conf$$.file <<_ASEOF
5779#! /bin/sh
5780exit 0
5781_ASEOF
5782chmod +x conf$$.file
5783if test -x conf$$.file >/dev/null 2>&1; then
5784 ac_executable_p="test -x"
5785else
5786 ac_executable_p="test -f"
5787fi
5788rm -f conf$$.file
5789
5790# Extract the first word of "xgettext", so it can be a program name with args.
5791set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005793$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005794if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005795 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005796else
5797 case "$XGETTEXT" in
5798 [\\/]* | ?:[\\/]*)
5799 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5800 ;;
5801 *)
5802 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5803 for ac_dir in $PATH; do
5804 IFS="$ac_save_IFS"
5805 test -z "$ac_dir" && ac_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5808 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5809 (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
5810 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5811 break 2
5812 fi
5813 fi
5814 done
5815 done
5816 IFS="$ac_save_IFS"
5817 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5818 ;;
5819esac
5820fi
5821XGETTEXT="$ac_cv_path_XGETTEXT"
5822if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005824$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005825else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005827$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005828fi
5829
5830 rm -f messages.po
5831
5832
5833# Prepare PATH_SEPARATOR.
5834# The user is always right.
5835if test "${PATH_SEPARATOR+set}" != set; then
5836 echo "#! /bin/sh" >conf$$.sh
5837 echo "exit 0" >>conf$$.sh
5838 chmod +x conf$$.sh
5839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5840 PATH_SEPARATOR=';'
5841 else
5842 PATH_SEPARATOR=:
5843 fi
5844 rm -f conf$$.sh
5845fi
5846
5847# Find out how to test for executable files. Don't use a zero-byte file,
5848# as systems may use methods other than mode bits to determine executability.
5849cat >conf$$.file <<_ASEOF
5850#! /bin/sh
5851exit 0
5852_ASEOF
5853chmod +x conf$$.file
5854if test -x conf$$.file >/dev/null 2>&1; then
5855 ac_executable_p="test -x"
5856else
5857 ac_executable_p="test -f"
5858fi
5859rm -f conf$$.file
5860
5861# Extract the first word of "msgmerge", so it can be a program name with args.
5862set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005864$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005865if test "${ac_cv_path_MSGMERGE+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005866 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005867else
5868 case "$MSGMERGE" in
5869 [\\/]* | ?:[\\/]*)
5870 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5871 ;;
5872 *)
5873 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5874 for ac_dir in $PATH; do
5875 IFS="$ac_save_IFS"
5876 test -z "$ac_dir" && ac_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5879 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5880 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5881 break 2
5882 fi
5883 fi
5884 done
5885 done
5886 IFS="$ac_save_IFS"
5887 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5888 ;;
5889esac
5890fi
5891MSGMERGE="$ac_cv_path_MSGMERGE"
5892if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005894$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005895else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005897$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005898fi
5899
5900
5901 if test "$GMSGFMT" != ":"; then
5902 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5903 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5904 : ;
5905 else
5906 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005908$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005909 GMSGFMT=":"
5910 fi
5911 fi
5912
5913 if test "$XGETTEXT" != ":"; then
5914 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5915 (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
5916 : ;
5917 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005919$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005920 XGETTEXT=":"
5921 fi
5922 rm -f messages.po
5923 fi
5924
Theodore Ts'oe1052142006-10-21 21:46:47 -04005925 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005926
5927
5928if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5930set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005932$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005933if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005934 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005935else
5936 if test -n "$RANLIB"; then
5937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5938else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005944 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005945 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 -05005946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005948 break 2
5949 fi
5950done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005951 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005952IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005953
5954fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005955fi
5956RANLIB=$ac_cv_prog_RANLIB
5957if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005959$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005960else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005962$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005963fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005964
Theodore Ts'oe1052142006-10-21 21:46:47 -04005965
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005966fi
5967if test -z "$ac_cv_prog_RANLIB"; then
5968 ac_ct_RANLIB=$RANLIB
5969 # Extract the first word of "ranlib", so it can be a program name with args.
5970set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005972$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005973if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005974 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005975else
5976 if test -n "$ac_ct_RANLIB"; then
5977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5978else
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005984 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005985 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 -05005986 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005988 break 2
5989 fi
5990done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005991 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005992IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005993
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005994fi
5995fi
5996ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5997if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005999$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006000else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006002$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006003fi
6004
Theodore Ts'oe1052142006-10-21 21:46:47 -04006005 if test "x$ac_ct_RANLIB" = x; then
6006 RANLIB=":"
6007 else
6008 case $cross_compiling:$ac_tool_warned in
6009yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006012ac_tool_warned=yes ;;
6013esac
6014 RANLIB=$ac_ct_RANLIB
6015 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006016else
6017 RANLIB="$ac_cv_prog_RANLIB"
6018fi
6019
6020
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006022$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006023if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006024 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006025else
6026 ac_check_lib_save_LIBS=$LIBS
6027LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006029/* end confdefs.h. */
6030
Theodore Ts'oe1052142006-10-21 21:46:47 -04006031/* Override any GCC internal prototype to avoid an error.
6032 Use char because int might match the return type of a GCC
6033 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006034#ifdef __cplusplus
6035extern "C"
6036#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006037char strerror ();
6038int
6039main ()
6040{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006041return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006042 ;
6043 return 0;
6044}
6045_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006046if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006047 ac_cv_lib_cposix_strerror=yes
6048else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006049 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006050fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006051rm -f core conftest.err conftest.$ac_objext \
6052 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006053LIBS=$ac_check_lib_save_LIBS
6054fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006056$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006057if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006058 LIBS="$LIBS -lcposix"
6059fi
6060
6061
6062
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006064$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006065if test "${ac_cv_c_const+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006066 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006067else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006069/* end confdefs.h. */
6070
6071int
6072main ()
6073{
6074/* FIXME: Include the comments suggested by Paul. */
6075#ifndef __cplusplus
6076 /* Ultrix mips cc rejects this. */
6077 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006078 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006080 char const *const *pcpcc;
6081 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006082 /* NEC SVR4.0.2 mips cc rejects this. */
6083 struct point {int x, y;};
6084 static struct point const zero = {0,0};
6085 /* AIX XL C 1.02.0.0 rejects this.
6086 It does not let you subtract one const X* pointer from another in
6087 an arm of an if-expression whose if-part is not a constant
6088 expression */
6089 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006090 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006091 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006092 ++pcpcc;
6093 ppc = (char**) pcpcc;
6094 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006095 { /* SCO 3.2v4 cc rejects this. */
6096 char *t;
6097 char const *s = 0 ? (char *) 0 : (char const *) 0;
6098
6099 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006100 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006101 }
6102 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6103 int x[] = {25, 17};
6104 const int *foo = &x[0];
6105 ++foo;
6106 }
6107 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6108 typedef const int *iptr;
6109 iptr p = 0;
6110 ++p;
6111 }
6112 { /* AIX XL C 1.02.0.0 rejects this saying
6113 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6114 struct s { int j; const int *ap[3]; };
6115 struct s *b; b->j = 5;
6116 }
6117 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6118 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006119 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006120 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006121 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006122#endif
6123
6124 ;
6125 return 0;
6126}
6127_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006128if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006129 ac_cv_c_const=yes
6130else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006131 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006132fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006134fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006136$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006137if test $ac_cv_c_const = no; then
6138
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006139$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006140
6141fi
6142
6143
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006145$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006146if test "${bh_cv_c_signed+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006147 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006148else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006150/* end confdefs.h. */
6151
6152int
6153main ()
6154{
6155signed char x;
6156 ;
6157 return 0;
6158}
6159_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006160if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006161 bh_cv_c_signed=yes
6162else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006163 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006166fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006168$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006169 if test $bh_cv_c_signed = no; then
6170
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006171$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006172
6173 fi
6174
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006176$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006177if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006178 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006179else
6180 ac_cv_c_inline=no
6181for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006183/* end confdefs.h. */
6184#ifndef __cplusplus
6185typedef int foo_t;
6186static $ac_kw foo_t static_foo () {return 0; }
6187$ac_kw foo_t foo () {return 0; }
6188#endif
6189
6190_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006191if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006192 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006193fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006196done
6197
6198fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006200$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006201
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006202case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006203 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006204 *)
6205 case $ac_cv_c_inline in
6206 no) ac_val=;;
6207 *) ac_val=$ac_cv_c_inline;;
6208 esac
6209 cat >>confdefs.h <<_ACEOF
6210#ifndef __cplusplus
6211#define inline $ac_val
6212#endif
6213_ACEOF
6214 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006215esac
6216
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006217ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6218if test "x$ac_cv_type_off_t" = x""yes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006219
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006220else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006221
6222cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006223#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006224_ACEOF
6225
6226fi
6227
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006228ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6229if test "x$ac_cv_type_size_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006231else
6232
6233cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006234#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006235_ACEOF
6236
6237fi
6238
6239
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006241$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006242if test "${ac_cv_type_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006243 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006244else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006246/* end confdefs.h. */
6247long long ll = 1LL; int i = 63;
6248int
6249main ()
6250{
6251long long llmax = (long long) -1;
6252 return ll << i | ll >> i | llmax / ll | llmax % ll;
6253 ;
6254 return 0;
6255}
6256_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006257if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006258 ac_cv_type_long_long=yes
6259else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006260 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006261fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006262rm -f core conftest.err conftest.$ac_objext \
6263 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006264fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006266$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006267 if test $ac_cv_type_long_long = yes; then
6268
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006269$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006270
6271 fi
6272
6273
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006275$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006276if test "${gt_cv_c_long_double+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006277 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006278else
6279 if test "$GCC" = yes; then
6280 gt_cv_c_long_double=yes
6281 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006283/* end confdefs.h. */
6284
6285 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6286 long double foo = 0.0;
6287 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6288 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6289
6290int
6291main ()
6292{
6293
6294 ;
6295 return 0;
6296}
6297_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006298if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006299 gt_cv_c_long_double=yes
6300else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006301 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006302fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006304 fi
6305fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006307$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006308 if test $gt_cv_c_long_double = yes; then
6309
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006310$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006311
6312 fi
6313
6314
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006316$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006317if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006318 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006319else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006321/* end confdefs.h. */
6322#include <stddef.h>
6323 wchar_t foo = (wchar_t)'\0';
6324int
6325main ()
6326{
6327
6328 ;
6329 return 0;
6330}
6331_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006332if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006333 gt_cv_c_wchar_t=yes
6334else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006335 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006336fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006338fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006340$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006341 if test $gt_cv_c_wchar_t = yes; then
6342
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006343$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006344
6345 fi
6346
6347
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006349$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006350if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006351 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006352else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006354/* end confdefs.h. */
6355#include <wchar.h>
6356 wint_t foo = (wchar_t)'\0';
6357int
6358main ()
6359{
6360
6361 ;
6362 return 0;
6363}
6364_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006365if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006366 gt_cv_c_wint_t=yes
6367else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006368 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006369fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006371fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006373$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006374 if test $gt_cv_c_wint_t = yes; then
6375
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006376$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006377
6378 fi
6379
6380
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006382$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006383if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006384 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006385else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006387/* end confdefs.h. */
6388#include <sys/types.h>
6389#include <inttypes.h>
6390int
6391main ()
6392{
6393uintmax_t i = (uintmax_t) -1;
6394 ;
6395 return 0;
6396}
6397_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006398if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006399 jm_ac_cv_header_inttypes_h=yes
6400else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006401 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006402fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006404fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006406$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006407 if test $jm_ac_cv_header_inttypes_h = yes; then
6408
6409cat >>confdefs.h <<_ACEOF
6410#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6411_ACEOF
6412
6413 fi
6414
6415
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006417$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006418if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006419 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006420else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006422/* end confdefs.h. */
6423#include <sys/types.h>
6424#include <stdint.h>
6425int
6426main ()
6427{
6428uintmax_t i = (uintmax_t) -1;
6429 ;
6430 return 0;
6431}
6432_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006433if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006434 jm_ac_cv_header_stdint_h=yes
6435else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006436 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006437fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006439fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006441$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006442 if test $jm_ac_cv_header_stdint_h = yes; then
6443
6444cat >>confdefs.h <<_ACEOF
6445#define HAVE_STDINT_H_WITH_UINTMAX 1
6446_ACEOF
6447
6448 fi
6449
6450
6451
6452
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006454$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006455if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006456 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006457else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006459/* end confdefs.h. */
6460
6461#include <stddef.h>
6462#include <stdlib.h>
6463#if HAVE_STDINT_H_WITH_UINTMAX
6464#include <stdint.h>
6465#endif
6466#if HAVE_INTTYPES_H_WITH_UINTMAX
6467#include <inttypes.h>
6468#endif
6469
6470int
6471main ()
6472{
6473intmax_t x = -1;
6474 ;
6475 return 0;
6476}
6477_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006478if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006479 gt_cv_c_intmax_t=yes
6480else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006481 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006482fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006484fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006486$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006487 if test $gt_cv_c_intmax_t = yes; then
6488
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006489$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006490
6491 fi
6492
6493
6494
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006496$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006497if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006498 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006499else
6500
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006501 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006502
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006504/* end confdefs.h. */
6505
6506#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6507 notposix
6508#endif
6509
6510_ACEOF
6511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006512 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006513 gt_cv_func_printf_posix="guessing no"
6514else
6515 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006516fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006517rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006519
6520else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006522/* end confdefs.h. */
6523
6524#include <stdio.h>
6525#include <string.h>
6526/* The string "%2$d %1$d", with dollar characters protected from the shell's
6527 dollar expansion (possibly an autoconf bug). */
6528static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6529static char buf[100];
6530int main ()
6531{
6532 sprintf (buf, format, 33, 55);
6533 return (strcmp (buf, "55 33") != 0);
6534}
6535_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006536if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006537 gt_cv_func_printf_posix=yes
6538else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006539 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006540fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6542 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006543fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006544
Theodore Ts'oe1052142006-10-21 21:46:47 -04006545
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006546fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006548$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006549 case $gt_cv_func_printf_posix in
6550 *yes)
6551
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006552$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006553
6554 ;;
6555 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006556
6557# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6558# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006560$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006561if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006562 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006563else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006565/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006566#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006567int
6568main ()
6569{
6570char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006571 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006572 ;
6573 return 0;
6574}
6575_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006576if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006577 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006578else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006579 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006580fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006581rm -f core conftest.err conftest.$ac_objext \
6582 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006583fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006585$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006586if test $ac_cv_working_alloca_h = yes; then
6587
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006588$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006589
6590fi
6591
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006593$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006594if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006595 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006596else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006598/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006599#ifdef __GNUC__
6600# define alloca __builtin_alloca
6601#else
6602# ifdef _MSC_VER
6603# include <malloc.h>
6604# define alloca _alloca
6605# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006606# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006607# include <alloca.h>
6608# else
6609# ifdef _AIX
6610 #pragma alloca
6611# else
6612# ifndef alloca /* predefined by HP cc +Olibcalls */
6613char *alloca ();
6614# endif
6615# endif
6616# endif
6617# endif
6618#endif
6619
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006620int
6621main ()
6622{
6623char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006624 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006625 ;
6626 return 0;
6627}
6628_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006629if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006630 ac_cv_func_alloca_works=yes
6631else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006632 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006633fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006634rm -f core conftest.err conftest.$ac_objext \
6635 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006638$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006639
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006640if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006641
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006642$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006643
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006644else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006645 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6646# that cause trouble. Some versions do not even contain alloca or
6647# contain a buggy version. If you still want to use their alloca,
6648# use ar to extract alloca.o from them instead of compiling alloca.c.
6649
Theodore Ts'oe1052142006-10-21 21:46:47 -04006650ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006651
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006652$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006653
6654
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006656$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006657if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006658 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006659else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006662#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006663webecray
6664#else
6665wenotbecray
6666#endif
6667
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006670 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006671 ac_cv_os_cray=yes
6672else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006673 ac_cv_os_cray=no
6674fi
6675rm -f conftest*
6676
6677fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006679$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006680if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006681 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006682 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006683ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6684eval as_val=\$$as_ac_var
6685 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006686
6687cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006688#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006689_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006690
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006691 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006692fi
6693
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006694 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006695fi
6696
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006698$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006699if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006700 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006701else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006702 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006703 ac_cv_c_stack_direction=0
6704else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006706/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006707$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006708int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006709find_stack_direction ()
6710{
6711 static char *addr = 0;
6712 auto char dummy;
6713 if (addr == 0)
6714 {
6715 addr = &dummy;
6716 return find_stack_direction ();
6717 }
6718 else
6719 return (&dummy > addr) ? 1 : -1;
6720}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006721
6722int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006723main ()
6724{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006725 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006726}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006727_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006728if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006729 ac_cv_c_stack_direction=1
6730else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006731 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006732fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6734 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006735fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006736
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006737fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006739$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006741#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006742_ACEOF
6743
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006744
6745fi
6746
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006747for ac_header in stdlib.h unistd.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006748do :
6749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6750ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6751eval as_val=\$$as_ac_Header
6752 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006753 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006754#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006755_ACEOF
6756
6757fi
6758
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006759done
6760
6761for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006762do :
6763 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6764if test "x$ac_cv_func_getpagesize" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006765 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006766#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006767_ACEOF
6768
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006769fi
6770done
6771
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006773$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006774if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006775 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006776else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006777 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006778 ac_cv_func_mmap_fixed_mapped=no
6779else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781/* end confdefs.h. */
6782$ac_includes_default
6783/* malloc might have been renamed as rpl_malloc. */
6784#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006785
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006786/* Thanks to Mike Haertel and Jim Avera for this test.
6787 Here is a matrix of mmap possibilities:
6788 mmap private not fixed
6789 mmap private fixed at somewhere currently unmapped
6790 mmap private fixed at somewhere already mapped
6791 mmap shared not fixed
6792 mmap shared fixed at somewhere currently unmapped
6793 mmap shared fixed at somewhere already mapped
6794 For private mappings, we should verify that changes cannot be read()
6795 back from the file, nor mmap's back from the file at a different
6796 address. (There have been systems where private was not correctly
6797 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006798 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006799 like early versions of FreeBSD and possibly contemporary NetBSD.)
6800 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006801 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006802
6803 Grep wants private fixed already mapped.
6804 The main things grep needs to know about mmap are:
6805 * does it exist and is it safe to write into the mmap'd area
6806 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006807
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006808#include <fcntl.h>
6809#include <sys/mman.h>
6810
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006811#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006812char *malloc ();
6813#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006814
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006816#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006817/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006818# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006819# define HAVE_SYS_PARAM_H 1
6820# endif
6821
6822# ifdef _SC_PAGESIZE
6823# define getpagesize() sysconf(_SC_PAGESIZE)
6824# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006825# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006826# include <sys/param.h>
6827# ifdef EXEC_PAGESIZE
6828# define getpagesize() EXEC_PAGESIZE
6829# else /* no EXEC_PAGESIZE */
6830# ifdef NBPG
6831# define getpagesize() NBPG * CLSIZE
6832# ifndef CLSIZE
6833# define CLSIZE 1
6834# endif /* no CLSIZE */
6835# else /* no NBPG */
6836# ifdef NBPC
6837# define getpagesize() NBPC
6838# else /* no NBPC */
6839# ifdef PAGESIZE
6840# define getpagesize() PAGESIZE
6841# endif /* PAGESIZE */
6842# endif /* no NBPC */
6843# endif /* no NBPG */
6844# endif /* no EXEC_PAGESIZE */
6845# else /* no HAVE_SYS_PARAM_H */
6846# define getpagesize() 8192 /* punt totally */
6847# endif /* no HAVE_SYS_PARAM_H */
6848# endif /* no _SC_PAGESIZE */
6849
6850#endif /* no HAVE_GETPAGESIZE */
6851
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006852int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006854{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006855 char *data, *data2, *data3;
6856 int i, pagesize;
6857 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006858
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006859 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006860
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006861 /* First, make a file with some known garbage in it. */
6862 data = (char *) malloc (pagesize);
6863 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006864 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006865 for (i = 0; i < pagesize; ++i)
6866 *(data + i) = rand ();
6867 umask (0);
6868 fd = creat ("conftest.mmap", 0600);
6869 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006870 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006871 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006872 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006873 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006874
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006875 /* Next, try to mmap the file at a fixed address which already has
6876 something else allocated at it. If we can, also make sure that
6877 we see the same garbage. */
6878 fd = open ("conftest.mmap", O_RDWR);
6879 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006880 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006881 data2 = (char *) malloc (2 * pagesize);
6882 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006883 return 1;
6884 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006885 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6886 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006887 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006888 for (i = 0; i < pagesize; ++i)
6889 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006890 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006891
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006892 /* Finally, make sure that changes to the mapped area do not
6893 percolate back to the file as seen by read(). (This is a bug on
6894 some variants of i386 svr4.0.) */
6895 for (i = 0; i < pagesize; ++i)
6896 *(data2 + i) = *(data2 + i) + 1;
6897 data3 = (char *) malloc (pagesize);
6898 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006899 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006901 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006902 for (i = 0; i < pagesize; ++i)
6903 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006904 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006905 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006906 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006907}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006908_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006909if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006910 ac_cv_func_mmap_fixed_mapped=yes
6911else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006912 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006913fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6915 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006916fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006917
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006920$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006921if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006922
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006923$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006924
6925fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006926rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006927
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006928
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006930$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006931if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006932 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006933else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006935/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006936
6937#include <features.h>
6938#ifdef __GNU_LIBRARY__
6939 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6940 Lucky GNU user
6941 #endif
6942#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943
6944_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006946 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006947 ac_cv_gnu_library_2_1=yes
6948else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006949 ac_cv_gnu_library_2_1=no
6950fi
6951rm -f conftest*
6952
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006953
6954
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006955fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006957$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006958
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006959 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006960
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006961
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006962
6963
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006965$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006966if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006967 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006968else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006969
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006970 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006971
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006972 # Guess based on the CPU.
6973 case "$host_cpu" in
6974 alpha* | i3456786 | m68k | s390*)
6975 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6976 *)
6977 gt_cv_int_divbyzero_sigfpe="guessing no";;
6978 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006980else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006982/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006983
6984#include <stdlib.h>
6985#include <signal.h>
6986
6987static void
6988#ifdef __cplusplus
6989sigfpe_handler (int sig)
6990#else
6991sigfpe_handler (sig) int sig;
6992#endif
6993{
6994 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6995 exit (sig != SIGFPE);
6996}
6997
6998int x = 1;
6999int y = 0;
7000int z;
7001int nan;
7002
7003int main ()
7004{
7005 signal (SIGFPE, sigfpe_handler);
7006/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7007#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7008 signal (SIGTRAP, sigfpe_handler);
7009#endif
7010/* Linux/SPARC yields signal SIGILL. */
7011#if defined (__sparc__) && defined (__linux__)
7012 signal (SIGILL, sigfpe_handler);
7013#endif
7014
7015 z = x / y;
7016 nan = y / y;
7017 exit (1);
7018}
7019
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007020_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007021if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007022 gt_cv_int_divbyzero_sigfpe=yes
7023else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007024 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007025fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7027 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007028fi
7029
Theodore Ts'oe1052142006-10-21 21:46:47 -04007030
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007031fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007033$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007034 case "$gt_cv_int_divbyzero_sigfpe" in
7035 *yes) value=1;;
7036 *) value=0;;
7037 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007038
7039cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007040#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007041_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007042
7043
7044
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007046$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007047if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007048 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007049else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051/* end confdefs.h. */
7052unsigned long long ull = 1ULL; int i = 63;
7053int
7054main ()
7055{
7056unsigned long long ullmax = (unsigned long long) -1;
7057 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7058 ;
7059 return 0;
7060}
7061_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007062if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007063 ac_cv_type_unsigned_long_long=yes
7064else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007065 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007066fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007067rm -f core conftest.err conftest.$ac_objext \
7068 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007069fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007071$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007072 if test $ac_cv_type_unsigned_long_long = yes; then
7073
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007074$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007075
7076 fi
7077
7078
7079
7080
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007081 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 -05007082
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007083 test $ac_cv_type_unsigned_long_long = yes \
7084 && ac_type='unsigned long long' \
7085 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007086
7087cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007088#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089_ACEOF
7090
7091 else
7092
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007093$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007094
7095 fi
7096
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007097
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007099$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007100if test "${gt_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007101 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007102else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007103
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007105/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007106#include <sys/types.h>
7107#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007108int
7109main ()
7110{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007111
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007112 ;
7113 return 0;
7114}
7115_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007116if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007117 gt_cv_header_inttypes_h=yes
7118else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007119 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007122
7123fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007125$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007126 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007127
7128cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007129#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007130_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007131
7132 fi
7133
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007134
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007135
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007136 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007138$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007139if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007140 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007142
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007144/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007145#include <inttypes.h>
7146#ifdef PRId32
7147char *p = PRId32;
7148#endif
7149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007150int
7151main ()
7152{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007154 ;
7155 return 0;
7156}
7157_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007158if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007159 gt_cv_inttypes_pri_broken=no
7160else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007161 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007162fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007164
7165fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007167$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007168 fi
7169 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007170
7171cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007172#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007173_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007174
7175 fi
7176
7177
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007178 for ac_header in stdint.h
7179do :
7180 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7181if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007182 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007183#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007184_ACEOF
7185
7186fi
7187
7188done
7189
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007191$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007192 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007194/* end confdefs.h. */
7195
7196#include <limits.h>
7197#if HAVE_STDINT_H
7198#include <stdint.h>
7199#endif
7200#ifdef SIZE_MAX
7201Found it
7202#endif
7203
7204_ACEOF
7205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007206 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007207 result=yes
7208fi
7209rm -f conftest*
7210
7211 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007212 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007213
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007214else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007215 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007216fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007217
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007218
7219 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7220
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007221else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007222 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007223fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007224
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007225
7226 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007228else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007229 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007230fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007231
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007233 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007235/* end confdefs.h. */
7236#include <stddef.h>
7237 extern size_t foo;
7238 extern unsigned long foo;
7239
7240int
7241main ()
7242{
7243
7244 ;
7245 return 0;
7246}
7247_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007248if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007249 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007250fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007252 fi
7253 if test -z "$result"; then
7254 if test "$fits_in_uint" = 1; then
7255 result="$res_hi$res_lo"U
7256 else
7257 result="$res_hi$res_lo"UL
7258 fi
7259 else
7260 result='~(size_t)0'
7261 fi
7262 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007264$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007265 if test "$result" != yes; then
7266
7267cat >>confdefs.h <<_ACEOF
7268#define SIZE_MAX $result
7269_ACEOF
7270
7271 fi
7272
7273
7274
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007275 for ac_header in stdint.h
7276do :
7277 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7278if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007279 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007280#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007281_ACEOF
7282
7283fi
7284
7285done
7286
7287
7288
7289 if test "X$prefix" = "XNONE"; then
7290 acl_final_prefix="$ac_default_prefix"
7291 else
7292 acl_final_prefix="$prefix"
7293 fi
7294 if test "X$exec_prefix" = "XNONE"; then
7295 acl_final_exec_prefix='${prefix}'
7296 else
7297 acl_final_exec_prefix="$exec_prefix"
7298 fi
7299 acl_save_prefix="$prefix"
7300 prefix="$acl_final_prefix"
7301 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7302 prefix="$acl_save_prefix"
7303
7304
Theodore Ts'oe1052142006-10-21 21:46:47 -04007305# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007306if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007307 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007308else
7309 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007310fi
7311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007312# Prepare PATH_SEPARATOR.
7313# The user is always right.
7314if test "${PATH_SEPARATOR+set}" != set; then
7315 echo "#! /bin/sh" >conf$$.sh
7316 echo "exit 0" >>conf$$.sh
7317 chmod +x conf$$.sh
7318 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7319 PATH_SEPARATOR=';'
7320 else
7321 PATH_SEPARATOR=:
7322 fi
7323 rm -f conf$$.sh
7324fi
7325ac_prog=ld
7326if test "$GCC" = yes; then
7327 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007329$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007330 case $host in
7331 *-*-mingw*)
7332 # gcc leaves a trailing carriage return which upsets mingw
7333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7334 *)
7335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7336 esac
7337 case $ac_prog in
7338 # Accept absolute paths.
7339 [\\/]* | [A-Za-z]:[\\/]*)
7340 re_direlt='/[^/][^/]*/\.\./'
7341 # Canonicalize the path of ld
7342 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7343 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7344 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7345 done
7346 test -z "$LD" && LD="$ac_prog"
7347 ;;
7348 "")
7349 # If it fails, then pretend we aren't using GCC.
7350 ac_prog=ld
7351 ;;
7352 *)
7353 # If it is relative, then search for the first ld in PATH.
7354 with_gnu_ld=unknown
7355 ;;
7356 esac
7357elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007359$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007360else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007362$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007363fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007364if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007365 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007366else
7367 if test -z "$LD"; then
7368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7369 for ac_dir in $PATH; do
7370 test -z "$ac_dir" && ac_dir=.
7371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7372 acl_cv_path_LD="$ac_dir/$ac_prog"
7373 # Check to see if the program is GNU ld. I'd rather use --version,
7374 # but apparently some GNU ld's only accept -v.
7375 # Break only if it was the GNU/non-GNU ld that we prefer.
7376 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7377 *GNU* | *'with BFD'*)
7378 test "$with_gnu_ld" != no && break ;;
7379 *)
7380 test "$with_gnu_ld" != yes && break ;;
7381 esac
7382 fi
7383 done
7384 IFS="$ac_save_ifs"
7385else
7386 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7387fi
7388fi
7389
7390LD="$acl_cv_path_LD"
7391if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007393$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007394else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007396$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007397fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007398test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007400$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007401if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007402 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007403else
7404 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7405case `$LD -v 2>&1 </dev/null` in
7406*GNU* | *'with BFD'*)
7407 acl_cv_prog_gnu_ld=yes ;;
7408*)
7409 acl_cv_prog_gnu_ld=no ;;
7410esac
7411fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007413$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007414with_gnu_ld=$acl_cv_prog_gnu_ld
7415
7416
7417
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007419$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007420if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007421 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007422else
7423
7424 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7425 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7426 . ./conftest.sh
7427 rm -f ./conftest.sh
7428 acl_cv_rpath=done
7429
7430fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007432$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007433 wl="$acl_cv_wl"
7434 libext="$acl_cv_libext"
7435 shlibext="$acl_cv_shlibext"
7436 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7437 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7438 hardcode_direct="$acl_cv_hardcode_direct"
7439 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007440 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007441if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007442 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007443else
7444 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007445fi
7446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007447
7448
7449
7450
7451
7452
7453
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007454 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007455
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007456 acl_save_prefix="$prefix"
7457 prefix="$acl_final_prefix"
7458 acl_save_exec_prefix="$exec_prefix"
7459 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007460
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007461 eval additional_includedir=\"$includedir\"
7462 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007463
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007464 exec_prefix="$acl_save_exec_prefix"
7465 prefix="$acl_save_prefix"
7466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007467
Theodore Ts'oe1052142006-10-21 21:46:47 -04007468# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007469if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007470 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007471 if test "X$withval" = "Xno"; then
7472 use_additional=no
7473 else
7474 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007475
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007476 acl_save_prefix="$prefix"
7477 prefix="$acl_final_prefix"
7478 acl_save_exec_prefix="$exec_prefix"
7479 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007480
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007481 eval additional_includedir=\"$includedir\"
7482 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007483
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007484 exec_prefix="$acl_save_exec_prefix"
7485 prefix="$acl_save_prefix"
7486
7487 else
7488 additional_includedir="$withval/include"
7489 additional_libdir="$withval/lib"
7490 fi
7491 fi
7492
Theodore Ts'oe1052142006-10-21 21:46:47 -04007493fi
7494
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007495 LIBICONV=
7496 LTLIBICONV=
7497 INCICONV=
7498 rpathdirs=
7499 ltrpathdirs=
7500 names_already_handled=
7501 names_next_round='iconv '
7502 while test -n "$names_next_round"; do
7503 names_this_round="$names_next_round"
7504 names_next_round=
7505 for name in $names_this_round; do
7506 already_handled=
7507 for n in $names_already_handled; do
7508 if test "$n" = "$name"; then
7509 already_handled=yes
7510 break
7511 fi
7512 done
7513 if test -z "$already_handled"; then
7514 names_already_handled="$names_already_handled $name"
7515 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7516 eval value=\"\$HAVE_LIB$uppername\"
7517 if test -n "$value"; then
7518 if test "$value" = yes; then
7519 eval value=\"\$LIB$uppername\"
7520 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7521 eval value=\"\$LTLIB$uppername\"
7522 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7523 else
7524 :
7525 fi
7526 else
7527 found_dir=
7528 found_la=
7529 found_so=
7530 found_a=
7531 if test $use_additional = yes; then
7532 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7533 found_dir="$additional_libdir"
7534 found_so="$additional_libdir/lib$name.$shlibext"
7535 if test -f "$additional_libdir/lib$name.la"; then
7536 found_la="$additional_libdir/lib$name.la"
7537 fi
7538 else
7539 if test -f "$additional_libdir/lib$name.$libext"; then
7540 found_dir="$additional_libdir"
7541 found_a="$additional_libdir/lib$name.$libext"
7542 if test -f "$additional_libdir/lib$name.la"; then
7543 found_la="$additional_libdir/lib$name.la"
7544 fi
7545 fi
7546 fi
7547 fi
7548 if test "X$found_dir" = "X"; then
7549 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007550
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007551 acl_save_prefix="$prefix"
7552 prefix="$acl_final_prefix"
7553 acl_save_exec_prefix="$exec_prefix"
7554 exec_prefix="$acl_final_exec_prefix"
7555 eval x=\"$x\"
7556 exec_prefix="$acl_save_exec_prefix"
7557 prefix="$acl_save_prefix"
7558
7559 case "$x" in
7560 -L*)
7561 dir=`echo "X$x" | sed -e 's/^X-L//'`
7562 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7563 found_dir="$dir"
7564 found_so="$dir/lib$name.$shlibext"
7565 if test -f "$dir/lib$name.la"; then
7566 found_la="$dir/lib$name.la"
7567 fi
7568 else
7569 if test -f "$dir/lib$name.$libext"; then
7570 found_dir="$dir"
7571 found_a="$dir/lib$name.$libext"
7572 if test -f "$dir/lib$name.la"; then
7573 found_la="$dir/lib$name.la"
7574 fi
7575 fi
7576 fi
7577 ;;
7578 esac
7579 if test "X$found_dir" != "X"; then
7580 break
7581 fi
7582 done
7583 fi
7584 if test "X$found_dir" != "X"; then
7585 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7586 if test "X$found_so" != "X"; then
7587 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7588 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7589 else
7590 haveit=
7591 for x in $ltrpathdirs; do
7592 if test "X$x" = "X$found_dir"; then
7593 haveit=yes
7594 break
7595 fi
7596 done
7597 if test -z "$haveit"; then
7598 ltrpathdirs="$ltrpathdirs $found_dir"
7599 fi
7600 if test "$hardcode_direct" = yes; then
7601 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7602 else
7603 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7604 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7605 haveit=
7606 for x in $rpathdirs; do
7607 if test "X$x" = "X$found_dir"; then
7608 haveit=yes
7609 break
7610 fi
7611 done
7612 if test -z "$haveit"; then
7613 rpathdirs="$rpathdirs $found_dir"
7614 fi
7615 else
7616 haveit=
7617 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007618
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007619 acl_save_prefix="$prefix"
7620 prefix="$acl_final_prefix"
7621 acl_save_exec_prefix="$exec_prefix"
7622 exec_prefix="$acl_final_exec_prefix"
7623 eval x=\"$x\"
7624 exec_prefix="$acl_save_exec_prefix"
7625 prefix="$acl_save_prefix"
7626
7627 if test "X$x" = "X-L$found_dir"; then
7628 haveit=yes
7629 break
7630 fi
7631 done
7632 if test -z "$haveit"; then
7633 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7634 fi
7635 if test "$hardcode_minus_L" != no; then
7636 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7637 else
7638 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7639 fi
7640 fi
7641 fi
7642 fi
7643 else
7644 if test "X$found_a" != "X"; then
7645 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7646 else
7647 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7648 fi
7649 fi
7650 additional_includedir=
7651 case "$found_dir" in
7652 */lib | */lib/)
7653 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7654 additional_includedir="$basedir/include"
7655 ;;
7656 esac
7657 if test "X$additional_includedir" != "X"; then
7658 if test "X$additional_includedir" != "X/usr/include"; then
7659 haveit=
7660 if test "X$additional_includedir" = "X/usr/local/include"; then
7661 if test -n "$GCC"; then
7662 case $host_os in
7663 linux*) haveit=yes;;
7664 esac
7665 fi
7666 fi
7667 if test -z "$haveit"; then
7668 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007669
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007670 acl_save_prefix="$prefix"
7671 prefix="$acl_final_prefix"
7672 acl_save_exec_prefix="$exec_prefix"
7673 exec_prefix="$acl_final_exec_prefix"
7674 eval x=\"$x\"
7675 exec_prefix="$acl_save_exec_prefix"
7676 prefix="$acl_save_prefix"
7677
7678 if test "X$x" = "X-I$additional_includedir"; then
7679 haveit=yes
7680 break
7681 fi
7682 done
7683 if test -z "$haveit"; then
7684 if test -d "$additional_includedir"; then
7685 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7686 fi
7687 fi
7688 fi
7689 fi
7690 fi
7691 if test -n "$found_la"; then
7692 save_libdir="$libdir"
7693 case "$found_la" in
7694 */* | *\\*) . "$found_la" ;;
7695 *) . "./$found_la" ;;
7696 esac
7697 libdir="$save_libdir"
7698 for dep in $dependency_libs; do
7699 case "$dep" in
7700 -L*)
7701 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7702 if test "X$additional_libdir" != "X/usr/lib"; then
7703 haveit=
7704 if test "X$additional_libdir" = "X/usr/local/lib"; then
7705 if test -n "$GCC"; then
7706 case $host_os in
7707 linux*) haveit=yes;;
7708 esac
7709 fi
7710 fi
7711 if test -z "$haveit"; then
7712 haveit=
7713 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007714
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007715 acl_save_prefix="$prefix"
7716 prefix="$acl_final_prefix"
7717 acl_save_exec_prefix="$exec_prefix"
7718 exec_prefix="$acl_final_exec_prefix"
7719 eval x=\"$x\"
7720 exec_prefix="$acl_save_exec_prefix"
7721 prefix="$acl_save_prefix"
7722
7723 if test "X$x" = "X-L$additional_libdir"; then
7724 haveit=yes
7725 break
7726 fi
7727 done
7728 if test -z "$haveit"; then
7729 if test -d "$additional_libdir"; then
7730 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7731 fi
7732 fi
7733 haveit=
7734 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007735
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007736 acl_save_prefix="$prefix"
7737 prefix="$acl_final_prefix"
7738 acl_save_exec_prefix="$exec_prefix"
7739 exec_prefix="$acl_final_exec_prefix"
7740 eval x=\"$x\"
7741 exec_prefix="$acl_save_exec_prefix"
7742 prefix="$acl_save_prefix"
7743
7744 if test "X$x" = "X-L$additional_libdir"; then
7745 haveit=yes
7746 break
7747 fi
7748 done
7749 if test -z "$haveit"; then
7750 if test -d "$additional_libdir"; then
7751 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7752 fi
7753 fi
7754 fi
7755 fi
7756 ;;
7757 -R*)
7758 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7759 if test "$enable_rpath" != no; then
7760 haveit=
7761 for x in $rpathdirs; do
7762 if test "X$x" = "X$dir"; then
7763 haveit=yes
7764 break
7765 fi
7766 done
7767 if test -z "$haveit"; then
7768 rpathdirs="$rpathdirs $dir"
7769 fi
7770 haveit=
7771 for x in $ltrpathdirs; do
7772 if test "X$x" = "X$dir"; then
7773 haveit=yes
7774 break
7775 fi
7776 done
7777 if test -z "$haveit"; then
7778 ltrpathdirs="$ltrpathdirs $dir"
7779 fi
7780 fi
7781 ;;
7782 -l*)
7783 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7784 ;;
7785 *.la)
7786 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7787 ;;
7788 *)
7789 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7790 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7791 ;;
7792 esac
7793 done
7794 fi
7795 else
7796 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7797 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7798 fi
7799 fi
7800 fi
7801 done
7802 done
7803 if test "X$rpathdirs" != "X"; then
7804 if test -n "$hardcode_libdir_separator"; then
7805 alldirs=
7806 for found_dir in $rpathdirs; do
7807 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7808 done
7809 acl_save_libdir="$libdir"
7810 libdir="$alldirs"
7811 eval flag=\"$hardcode_libdir_flag_spec\"
7812 libdir="$acl_save_libdir"
7813 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7814 else
7815 for found_dir in $rpathdirs; do
7816 acl_save_libdir="$libdir"
7817 libdir="$found_dir"
7818 eval flag=\"$hardcode_libdir_flag_spec\"
7819 libdir="$acl_save_libdir"
7820 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7821 done
7822 fi
7823 fi
7824 if test "X$ltrpathdirs" != "X"; then
7825 for found_dir in $ltrpathdirs; do
7826 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7827 done
7828 fi
7829
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007830
7831
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007832
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007833
7834
7835
7836
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007837 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7838if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007839
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007840else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007841
7842$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007843
7844
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007845fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007846
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007847 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007848stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007849do :
7850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7851ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7852eval as_val=\$$as_ac_Header
7853 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007854 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007856_ACEOF
7857
7858fi
7859
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007860done
7861
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007862 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007863mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7864strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7865__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007866do :
7867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7868ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7869eval as_val=\$$as_ac_var
7870 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007871 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007872#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007873_ACEOF
7874
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007875fi
7876done
7877
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007878
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007879
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007881$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007882if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007883 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007884else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007886/* end confdefs.h. */
7887#include <stdio.h>
7888int
7889main ()
7890{
7891
7892#ifndef _snprintf
7893 char *p = (char *) _snprintf;
7894#endif
7895
7896 ;
7897 return 0;
7898}
7899_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007900if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007901 ac_cv_have_decl__snprintf=yes
7902else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007903 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007904fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007906fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007908$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007909 if test $ac_cv_have_decl__snprintf = yes; then
7910 gt_value=1
7911 else
7912 gt_value=0
7913 fi
7914
7915cat >>confdefs.h <<_ACEOF
7916#define HAVE_DECL__SNPRINTF $gt_value
7917_ACEOF
7918
7919
7920
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007922$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007923if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007924 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007925else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007927/* end confdefs.h. */
7928#include <stdio.h>
7929int
7930main ()
7931{
7932
7933#ifndef _snwprintf
7934 char *p = (char *) _snwprintf;
7935#endif
7936
7937 ;
7938 return 0;
7939}
7940_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007941if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007942 ac_cv_have_decl__snwprintf=yes
7943else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007944 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007945fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007947fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007949$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007950 if test $ac_cv_have_decl__snwprintf = yes; then
7951 gt_value=1
7952 else
7953 gt_value=0
7954 fi
7955
7956cat >>confdefs.h <<_ACEOF
7957#define HAVE_DECL__SNWPRINTF $gt_value
7958_ACEOF
7959
7960
7961
7962
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007964$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007965if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007966 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007967else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007969/* end confdefs.h. */
7970#include <stdio.h>
7971int
7972main ()
7973{
7974
7975#ifndef feof_unlocked
7976 char *p = (char *) feof_unlocked;
7977#endif
7978
7979 ;
7980 return 0;
7981}
7982_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007983if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007984 ac_cv_have_decl_feof_unlocked=yes
7985else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007986 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007987fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007989fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007991$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007992 if test $ac_cv_have_decl_feof_unlocked = yes; then
7993 gt_value=1
7994 else
7995 gt_value=0
7996 fi
7997
7998cat >>confdefs.h <<_ACEOF
7999#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8000_ACEOF
8001
8002
8003
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008005$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008006if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008007 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008008else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008010/* end confdefs.h. */
8011#include <stdio.h>
8012int
8013main ()
8014{
8015
8016#ifndef fgets_unlocked
8017 char *p = (char *) fgets_unlocked;
8018#endif
8019
8020 ;
8021 return 0;
8022}
8023_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008024if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008025 ac_cv_have_decl_fgets_unlocked=yes
8026else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008027 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008028fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008030fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008032$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008033 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8034 gt_value=1
8035 else
8036 gt_value=0
8037 fi
8038
8039cat >>confdefs.h <<_ACEOF
8040#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8041_ACEOF
8042
8043
8044
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008046$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008047if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008048 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008049else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008051/* end confdefs.h. */
8052#include <stdio.h>
8053int
8054main ()
8055{
8056
8057#ifndef getc_unlocked
8058 char *p = (char *) getc_unlocked;
8059#endif
8060
8061 ;
8062 return 0;
8063}
8064_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008065if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008066 ac_cv_have_decl_getc_unlocked=yes
8067else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008068 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008069fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008071fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008073$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008074 if test $ac_cv_have_decl_getc_unlocked = yes; then
8075 gt_value=1
8076 else
8077 gt_value=0
8078 fi
8079
8080cat >>confdefs.h <<_ACEOF
8081#define HAVE_DECL_GETC_UNLOCKED $gt_value
8082_ACEOF
8083
8084
8085
8086 case $gt_cv_func_printf_posix in
8087 *yes) HAVE_POSIX_PRINTF=1 ;;
8088 *) HAVE_POSIX_PRINTF=0 ;;
8089 esac
8090
8091 if test "$ac_cv_func_asprintf" = yes; then
8092 HAVE_ASPRINTF=1
8093 else
8094 HAVE_ASPRINTF=0
8095 fi
8096
8097 if test "$ac_cv_func_snprintf" = yes; then
8098 HAVE_SNPRINTF=1
8099 else
8100 HAVE_SNPRINTF=0
8101 fi
8102
8103 if test "$ac_cv_func_wprintf" = yes; then
8104 HAVE_WPRINTF=1
8105 else
8106 HAVE_WPRINTF=0
8107 fi
8108
8109
8110
8111
8112
8113
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008114
8115 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008116
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008117 for element in $INCICONV; do
8118 haveit=
8119 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008120
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008121 acl_save_prefix="$prefix"
8122 prefix="$acl_final_prefix"
8123 acl_save_exec_prefix="$exec_prefix"
8124 exec_prefix="$acl_final_exec_prefix"
8125 eval x=\"$x\"
8126 exec_prefix="$acl_save_exec_prefix"
8127 prefix="$acl_save_prefix"
8128
8129 if test "X$x" = "X$element"; then
8130 haveit=yes
8131 break
8132 fi
8133 done
8134 if test -z "$haveit"; then
8135 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8136 fi
8137 done
8138
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008139
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008141$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008142if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008143 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008144else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008145
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008146 am_cv_func_iconv="no, consider installing GNU libiconv"
8147 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008149/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008150#include <stdlib.h>
8151#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008152int
8153main ()
8154{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008155iconv_t cd = iconv_open("","");
8156 iconv(cd,NULL,NULL,NULL,NULL);
8157 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008158 ;
8159 return 0;
8160}
8161_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008162if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008163 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008164fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008165rm -f core conftest.err conftest.$ac_objext \
8166 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008167 if test "$am_cv_func_iconv" != yes; then
8168 am_save_LIBS="$LIBS"
8169 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008171/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008172#include <stdlib.h>
8173#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008174int
8175main ()
8176{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008177iconv_t cd = iconv_open("","");
8178 iconv(cd,NULL,NULL,NULL,NULL);
8179 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008180 ;
8181 return 0;
8182}
8183_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008184if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008185 am_cv_lib_iconv=yes
8186 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008187fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008188rm -f core conftest.err conftest.$ac_objext \
8189 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008190 LIBS="$am_save_LIBS"
8191 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008193fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008195$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008196 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008197
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008198$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008199
8200 fi
8201 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008203$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008205$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008206 else
8207 CPPFLAGS="$am_save_CPPFLAGS"
8208 LIBICONV=
8209 LTLIBICONV=
8210 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008211
8212
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008213
8214 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008216$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008217 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008218 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008219else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008220
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008222/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008223
8224#include <stdlib.h>
8225#include <iconv.h>
8226extern
8227#ifdef __cplusplus
8228"C"
8229#endif
8230#if defined(__STDC__) || defined(__cplusplus)
8231size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8232#else
8233size_t iconv();
8234#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008236int
8237main ()
8238{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008239
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008240 ;
8241 return 0;
8242}
8243_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008244if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008245 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008246else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008247 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008248fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008250 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 +00008251fi
8252
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008253 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008255 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008256$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008257 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008258
8259cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008260#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008261_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008262
8263 fi
8264
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008265
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008267$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008268if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008269 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008270else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008272/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008273#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008274int
8275main ()
8276{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008277char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008278 ;
8279 return 0;
8280}
8281_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008282if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008283 am_cv_langinfo_codeset=yes
8284else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008285 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008286fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008287rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008289
8290fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008292$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008293 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008294
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008295$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008296
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008297 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008298
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008299 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008300
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008302$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008303if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008304 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008305else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008307/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008308#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008309int
8310main ()
8311{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008312return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008313 ;
8314 return 0;
8315}
8316_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008317if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008318 am_cv_val_LC_MESSAGES=yes
8319else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008320 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008321fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008322rm -f core conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008324fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008326$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008327 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008328
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008329$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008330
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008331 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008332
8333 fi
8334
8335 for ac_prog in bison
8336do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008337 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008338set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008340$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008341if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008342 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008343else
8344 if test -n "$INTLBISON"; then
8345 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8346else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348for as_dir in $PATH
8349do
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008352 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008353 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 -05008354 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008356 break 2
8357 fi
8358done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008359 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008360IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008361
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008362fi
8363fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008364INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008365if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008367$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008368else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008370$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008371fi
8372
Theodore Ts'oe1052142006-10-21 21:46:47 -04008373
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008374 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008375done
8376
8377 if test -z "$INTLBISON"; then
8378 ac_verc_fail=yes
8379 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008381$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008382 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8383 case $ac_prog_version in
8384 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8385 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8386 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8387 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8388 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008390$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008391 fi
8392 if test $ac_verc_fail = yes; then
8393 INTLBISON=:
8394 fi
8395
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008396
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008397
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008398
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008399
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008400
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008401
8402
8403
8404
8405
8406
8407
8408
8409
8410
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008412$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008413 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008414if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008415 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008416else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008417 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008418fi
8419
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008421$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008422
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008423
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008424
8425
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008426 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008427 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008428
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008429 LIBINTL=
8430 LTLIBINTL=
8431 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008432
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008433 if test "$USE_NLS" = "yes"; then
8434 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008435
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008437$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008438
Theodore Ts'oe1052142006-10-21 21:46:47 -04008439# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008440if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008441 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008442else
8443 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008444fi
8445
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008447$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008448
8449 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8450 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008451
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008452
8453
8454
8455
8456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008458$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008459if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008460 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008461else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008463/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008464#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008465extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008466extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008467int
8468main ()
8469{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008470bindtextdomain ("", "");
8471return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008472 ;
8473 return 0;
8474}
8475_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008476if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008477 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008478else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008479 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008480fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008481rm -f core conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008483fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008485$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008486
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008487 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008488
8489
8490
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008491 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008492
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008493 acl_save_prefix="$prefix"
8494 prefix="$acl_final_prefix"
8495 acl_save_exec_prefix="$exec_prefix"
8496 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008497
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008498 eval additional_includedir=\"$includedir\"
8499 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008500
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008501 exec_prefix="$acl_save_exec_prefix"
8502 prefix="$acl_save_prefix"
8503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008504
Theodore Ts'oe1052142006-10-21 21:46:47 -04008505# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008506if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008507 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008508 if test "X$withval" = "Xno"; then
8509 use_additional=no
8510 else
8511 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008512
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008513 acl_save_prefix="$prefix"
8514 prefix="$acl_final_prefix"
8515 acl_save_exec_prefix="$exec_prefix"
8516 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008517
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008518 eval additional_includedir=\"$includedir\"
8519 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008520
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008521 exec_prefix="$acl_save_exec_prefix"
8522 prefix="$acl_save_prefix"
8523
8524 else
8525 additional_includedir="$withval/include"
8526 additional_libdir="$withval/lib"
8527 fi
8528 fi
8529
Theodore Ts'oe1052142006-10-21 21:46:47 -04008530fi
8531
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008532 LIBINTL=
8533 LTLIBINTL=
8534 INCINTL=
8535 rpathdirs=
8536 ltrpathdirs=
8537 names_already_handled=
8538 names_next_round='intl '
8539 while test -n "$names_next_round"; do
8540 names_this_round="$names_next_round"
8541 names_next_round=
8542 for name in $names_this_round; do
8543 already_handled=
8544 for n in $names_already_handled; do
8545 if test "$n" = "$name"; then
8546 already_handled=yes
8547 break
8548 fi
8549 done
8550 if test -z "$already_handled"; then
8551 names_already_handled="$names_already_handled $name"
8552 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8553 eval value=\"\$HAVE_LIB$uppername\"
8554 if test -n "$value"; then
8555 if test "$value" = yes; then
8556 eval value=\"\$LIB$uppername\"
8557 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8558 eval value=\"\$LTLIB$uppername\"
8559 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8560 else
8561 :
8562 fi
8563 else
8564 found_dir=
8565 found_la=
8566 found_so=
8567 found_a=
8568 if test $use_additional = yes; then
8569 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8570 found_dir="$additional_libdir"
8571 found_so="$additional_libdir/lib$name.$shlibext"
8572 if test -f "$additional_libdir/lib$name.la"; then
8573 found_la="$additional_libdir/lib$name.la"
8574 fi
8575 else
8576 if test -f "$additional_libdir/lib$name.$libext"; then
8577 found_dir="$additional_libdir"
8578 found_a="$additional_libdir/lib$name.$libext"
8579 if test -f "$additional_libdir/lib$name.la"; then
8580 found_la="$additional_libdir/lib$name.la"
8581 fi
8582 fi
8583 fi
8584 fi
8585 if test "X$found_dir" = "X"; then
8586 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008587
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008588 acl_save_prefix="$prefix"
8589 prefix="$acl_final_prefix"
8590 acl_save_exec_prefix="$exec_prefix"
8591 exec_prefix="$acl_final_exec_prefix"
8592 eval x=\"$x\"
8593 exec_prefix="$acl_save_exec_prefix"
8594 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008595
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008596 case "$x" in
8597 -L*)
8598 dir=`echo "X$x" | sed -e 's/^X-L//'`
8599 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8600 found_dir="$dir"
8601 found_so="$dir/lib$name.$shlibext"
8602 if test -f "$dir/lib$name.la"; then
8603 found_la="$dir/lib$name.la"
8604 fi
8605 else
8606 if test -f "$dir/lib$name.$libext"; then
8607 found_dir="$dir"
8608 found_a="$dir/lib$name.$libext"
8609 if test -f "$dir/lib$name.la"; then
8610 found_la="$dir/lib$name.la"
8611 fi
8612 fi
8613 fi
8614 ;;
8615 esac
8616 if test "X$found_dir" != "X"; then
8617 break
8618 fi
8619 done
8620 fi
8621 if test "X$found_dir" != "X"; then
8622 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8623 if test "X$found_so" != "X"; then
8624 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8625 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8626 else
8627 haveit=
8628 for x in $ltrpathdirs; do
8629 if test "X$x" = "X$found_dir"; then
8630 haveit=yes
8631 break
8632 fi
8633 done
8634 if test -z "$haveit"; then
8635 ltrpathdirs="$ltrpathdirs $found_dir"
8636 fi
8637 if test "$hardcode_direct" = yes; then
8638 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8639 else
8640 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8641 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8642 haveit=
8643 for x in $rpathdirs; do
8644 if test "X$x" = "X$found_dir"; then
8645 haveit=yes
8646 break
8647 fi
8648 done
8649 if test -z "$haveit"; then
8650 rpathdirs="$rpathdirs $found_dir"
8651 fi
8652 else
8653 haveit=
8654 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008655
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008656 acl_save_prefix="$prefix"
8657 prefix="$acl_final_prefix"
8658 acl_save_exec_prefix="$exec_prefix"
8659 exec_prefix="$acl_final_exec_prefix"
8660 eval x=\"$x\"
8661 exec_prefix="$acl_save_exec_prefix"
8662 prefix="$acl_save_prefix"
8663
8664 if test "X$x" = "X-L$found_dir"; then
8665 haveit=yes
8666 break
8667 fi
8668 done
8669 if test -z "$haveit"; then
8670 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8671 fi
8672 if test "$hardcode_minus_L" != no; then
8673 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8674 else
8675 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8676 fi
8677 fi
8678 fi
8679 fi
8680 else
8681 if test "X$found_a" != "X"; then
8682 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8683 else
8684 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8685 fi
8686 fi
8687 additional_includedir=
8688 case "$found_dir" in
8689 */lib | */lib/)
8690 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8691 additional_includedir="$basedir/include"
8692 ;;
8693 esac
8694 if test "X$additional_includedir" != "X"; then
8695 if test "X$additional_includedir" != "X/usr/include"; then
8696 haveit=
8697 if test "X$additional_includedir" = "X/usr/local/include"; then
8698 if test -n "$GCC"; then
8699 case $host_os in
8700 linux*) haveit=yes;;
8701 esac
8702 fi
8703 fi
8704 if test -z "$haveit"; then
8705 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008706
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008707 acl_save_prefix="$prefix"
8708 prefix="$acl_final_prefix"
8709 acl_save_exec_prefix="$exec_prefix"
8710 exec_prefix="$acl_final_exec_prefix"
8711 eval x=\"$x\"
8712 exec_prefix="$acl_save_exec_prefix"
8713 prefix="$acl_save_prefix"
8714
8715 if test "X$x" = "X-I$additional_includedir"; then
8716 haveit=yes
8717 break
8718 fi
8719 done
8720 if test -z "$haveit"; then
8721 if test -d "$additional_includedir"; then
8722 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8723 fi
8724 fi
8725 fi
8726 fi
8727 fi
8728 if test -n "$found_la"; then
8729 save_libdir="$libdir"
8730 case "$found_la" in
8731 */* | *\\*) . "$found_la" ;;
8732 *) . "./$found_la" ;;
8733 esac
8734 libdir="$save_libdir"
8735 for dep in $dependency_libs; do
8736 case "$dep" in
8737 -L*)
8738 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8739 if test "X$additional_libdir" != "X/usr/lib"; then
8740 haveit=
8741 if test "X$additional_libdir" = "X/usr/local/lib"; then
8742 if test -n "$GCC"; then
8743 case $host_os in
8744 linux*) haveit=yes;;
8745 esac
8746 fi
8747 fi
8748 if test -z "$haveit"; then
8749 haveit=
8750 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008751
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008752 acl_save_prefix="$prefix"
8753 prefix="$acl_final_prefix"
8754 acl_save_exec_prefix="$exec_prefix"
8755 exec_prefix="$acl_final_exec_prefix"
8756 eval x=\"$x\"
8757 exec_prefix="$acl_save_exec_prefix"
8758 prefix="$acl_save_prefix"
8759
8760 if test "X$x" = "X-L$additional_libdir"; then
8761 haveit=yes
8762 break
8763 fi
8764 done
8765 if test -z "$haveit"; then
8766 if test -d "$additional_libdir"; then
8767 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8768 fi
8769 fi
8770 haveit=
8771 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008772
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008773 acl_save_prefix="$prefix"
8774 prefix="$acl_final_prefix"
8775 acl_save_exec_prefix="$exec_prefix"
8776 exec_prefix="$acl_final_exec_prefix"
8777 eval x=\"$x\"
8778 exec_prefix="$acl_save_exec_prefix"
8779 prefix="$acl_save_prefix"
8780
8781 if test "X$x" = "X-L$additional_libdir"; then
8782 haveit=yes
8783 break
8784 fi
8785 done
8786 if test -z "$haveit"; then
8787 if test -d "$additional_libdir"; then
8788 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8789 fi
8790 fi
8791 fi
8792 fi
8793 ;;
8794 -R*)
8795 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8796 if test "$enable_rpath" != no; then
8797 haveit=
8798 for x in $rpathdirs; do
8799 if test "X$x" = "X$dir"; then
8800 haveit=yes
8801 break
8802 fi
8803 done
8804 if test -z "$haveit"; then
8805 rpathdirs="$rpathdirs $dir"
8806 fi
8807 haveit=
8808 for x in $ltrpathdirs; do
8809 if test "X$x" = "X$dir"; then
8810 haveit=yes
8811 break
8812 fi
8813 done
8814 if test -z "$haveit"; then
8815 ltrpathdirs="$ltrpathdirs $dir"
8816 fi
8817 fi
8818 ;;
8819 -l*)
8820 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8821 ;;
8822 *.la)
8823 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8824 ;;
8825 *)
8826 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8827 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8828 ;;
8829 esac
8830 done
8831 fi
8832 else
8833 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8834 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8835 fi
8836 fi
8837 fi
8838 done
8839 done
8840 if test "X$rpathdirs" != "X"; then
8841 if test -n "$hardcode_libdir_separator"; then
8842 alldirs=
8843 for found_dir in $rpathdirs; do
8844 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8845 done
8846 acl_save_libdir="$libdir"
8847 libdir="$alldirs"
8848 eval flag=\"$hardcode_libdir_flag_spec\"
8849 libdir="$acl_save_libdir"
8850 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8851 else
8852 for found_dir in $rpathdirs; do
8853 acl_save_libdir="$libdir"
8854 libdir="$found_dir"
8855 eval flag=\"$hardcode_libdir_flag_spec\"
8856 libdir="$acl_save_libdir"
8857 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8858 done
8859 fi
8860 fi
8861 if test "X$ltrpathdirs" != "X"; then
8862 for found_dir in $ltrpathdirs; do
8863 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8864 done
8865 fi
8866
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008868$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008869if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008870 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008871else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008872 gt_save_CPPFLAGS="$CPPFLAGS"
8873 CPPFLAGS="$CPPFLAGS $INCINTL"
8874 gt_save_LIBS="$LIBS"
8875 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008877/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05008878#include <libintl.h>
8879extern int _nl_msg_cat_cntr;
8880extern
8881#ifdef __cplusplus
8882"C"
8883#endif
8884const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008885int
8886main ()
8887{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05008888bindtextdomain ("", "");
8889return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008890 ;
8891 return 0;
8892}
8893_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008894if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05008895 gt_cv_func_gnugettext1_libintl=yes
8896else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008897 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05008898fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008899rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05008901 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
8902 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008904/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008905#include <libintl.h>
8906extern int _nl_msg_cat_cntr;
8907extern
8908#ifdef __cplusplus
8909"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008910#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008911const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008912int
8913main ()
8914{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008915bindtextdomain ("", "");
8916return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008917 ;
8918 return 0;
8919}
8920_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008921if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008922 LIBINTL="$LIBINTL $LIBICONV"
8923 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8924 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008925
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008926fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008927rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008929 fi
8930 CPPFLAGS="$gt_save_CPPFLAGS"
8931 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008932fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008934$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008935 fi
8936
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008937 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8938 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008939 && test "$PACKAGE" != gettext-runtime \
8940 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008941 gt_use_preinstalled_gnugettext=yes
8942 else
8943 LIBINTL=
8944 LTLIBINTL=
8945 INCINTL=
8946 fi
8947
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008948
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008949 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8950 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008951 fi
8952 fi
8953
8954 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008955 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008956 USE_INCLUDED_LIBINTL=yes
8957 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
8958 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
8959 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008960 fi
8961
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008962 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8963 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8964 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008965 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008966
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008967
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008968 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8969 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008970
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008971$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008972
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008973 else
8974 USE_NLS=no
8975 fi
8976 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008977
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008979$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008981$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008982 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008984$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008985 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8986 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8987 gt_source="external libintl"
8988 else
8989 gt_source="libc"
8990 fi
8991 else
8992 gt_source="included intl directory"
8993 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008995$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008996 fi
8997
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008998 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008999
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009000 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9001 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009003$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009005$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009006
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009007 for element in $INCINTL; do
9008 haveit=
9009 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009010
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009011 acl_save_prefix="$prefix"
9012 prefix="$acl_final_prefix"
9013 acl_save_exec_prefix="$exec_prefix"
9014 exec_prefix="$acl_final_exec_prefix"
9015 eval x=\"$x\"
9016 exec_prefix="$acl_save_exec_prefix"
9017 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009018
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009019 if test "X$x" = "X$element"; then
9020 haveit=yes
9021 break
9022 fi
9023 done
9024 if test -z "$haveit"; then
9025 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9026 fi
9027 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009028
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009029 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009030
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009031
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009032$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009033
9034
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009035$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009036
9037 fi
9038
9039 POSUB=po
9040 fi
9041
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009042
9043 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009044 BUILD_INCLUDED_LIBINTL=yes
9045 fi
9046
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009047
9048
9049
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009050
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009051 nls_cv_header_intl=
9052 nls_cv_header_libgt=
9053
9054 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009055
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009056
9057 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009058
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009059
9060 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009061
9062
9063 if test "$USE_INCLUDED_LIBINTL" = yes; then
9064 INTLOBJS="\$(GETTOBJS)"
9065 fi
9066
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009067
9068 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009069
9070
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009071
9072 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009073
9074
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009075
9076
9077
9078
9079
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009081$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9082set x ${MAKE-make}
9083ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009084if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009085 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009086else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009087 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009088SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009089all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009090 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009091_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009092# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009093case `${MAKE-make} -f conftest.make 2>/dev/null` in
9094 *@@@%%%=?*=@@@%%%*)
9095 eval ac_cv_prog_make_${ac_make}_set=yes;;
9096 *)
9097 eval ac_cv_prog_make_${ac_make}_set=no;;
9098esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009099rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009100fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009101if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009103$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009104 SET_MAKE=
9105else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009107$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009108 SET_MAKE="MAKE=${MAKE-make}"
9109fi
9110
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009112$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009113if test "${_cv_gnu_make_command+set}" = set; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009114 $as_echo_n "(cached) " >&6
9115else
9116 _cv_gnu_make_command='' ;
9117 for a in "$MAKE" make gmake gnumake ; do
9118 if test -z "$a" ; then continue ; fi ;
9119 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9120 _cv_gnu_make_command=$a ;
9121 break;
9122 fi
9123 done ;
9124
9125fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009127$as_echo "$_cv_gnu_make_command" >&6; } ;
9128 if test "x$_cv_gnu_make_command" != "x" ; then
9129 ifGNUmake='' ;
9130 ifNotGNUmake='#' ;
9131 else
9132 ifGNUmake='#' ;
9133 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009135$as_echo "\"Not found\"" >&6; };
9136 fi
9137
9138
9139
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009140# Extract the first word of "ln", so it can be a program name with args.
9141set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009143$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009144if test "${ac_cv_path_LN+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009145 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009146else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009147 case $LN in
9148 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009149 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9150 ;;
9151 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153for as_dir in $PATH
9154do
9155 IFS=$as_save_IFS
9156 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009157 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009158 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 -05009159 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009161 break 2
9162 fi
9163done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009164 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009165IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009166
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009167 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9168 ;;
9169esac
9170fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009171LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009172if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009174$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009175else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009177$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009178fi
9179
Theodore Ts'oe1052142006-10-21 21:46:47 -04009180
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009182$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009183LN_S=$as_ln_s
9184if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009186$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009187else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009189$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009190fi
9191
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009192# Extract the first word of "mv", so it can be a program name with args.
9193set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009195$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009196if test "${ac_cv_path_MV+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009197 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009198else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009199 case $MV in
9200 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009201 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9202 ;;
9203 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205for as_dir in $PATH
9206do
9207 IFS=$as_save_IFS
9208 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009209 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009210 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 -05009211 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009213 break 2
9214 fi
9215done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009216 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009217IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009218
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009219 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9220 ;;
9221esac
9222fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009223MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009224if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009226$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009227else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009229$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009230fi
9231
Theodore Ts'oe1052142006-10-21 21:46:47 -04009232
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009233# Extract the first word of "cp", so it can be a program name with args.
9234set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009236$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009237if test "${ac_cv_path_CP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009238 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009239else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009240 case $CP in
9241 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009242 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9243 ;;
9244 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246for as_dir in $PATH
9247do
9248 IFS=$as_save_IFS
9249 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009250 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009251 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 -05009252 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009254 break 2
9255 fi
9256done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009257 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009258IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009259
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009260 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9261 ;;
9262esac
9263fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009264CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009265if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009267$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009268else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009270$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009271fi
9272
Theodore Ts'oe1052142006-10-21 21:46:47 -04009273
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009274# Extract the first word of "rm", so it can be a program name with args.
9275set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009277$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009278if test "${ac_cv_path_RM+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009279 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009280else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009281 case $RM in
9282 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009283 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9284 ;;
9285 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287for as_dir in $PATH
9288do
9289 IFS=$as_save_IFS
9290 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009291 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009292 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 -05009293 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009295 break 2
9296 fi
9297done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009298 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009299IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009300
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009301 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9302 ;;
9303esac
9304fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009305RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009306if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009308$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009309else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009311$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009312fi
9313
Theodore Ts'oe1052142006-10-21 21:46:47 -04009314
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009315# Extract the first word of "chmod", so it can be a program name with args.
9316set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009318$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009319if test "${ac_cv_path_CHMOD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009320 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009321else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009322 case $CHMOD in
9323 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009324 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9325 ;;
9326 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328for as_dir in $PATH
9329do
9330 IFS=$as_save_IFS
9331 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009332 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009333 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 -05009334 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009336 break 2
9337 fi
9338done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009339 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009340IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009341
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009342 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9343 ;;
9344esac
9345fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009346CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009347if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009349$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009350else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009352$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009353fi
9354
Theodore Ts'oe1052142006-10-21 21:46:47 -04009355
Theodore Ts'o32237012005-01-17 19:13:39 -05009356for ac_prog in gawk mawk nawk awk
9357do
9358 # Extract the first word of "$ac_prog", so it can be a program name with args.
9359set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009361$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009362if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009363 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009364else
Theodore Ts'o32237012005-01-17 19:13:39 -05009365 if test -n "$AWK"; then
9366 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9367else
9368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009369for as_dir in $PATH
9370do
9371 IFS=$as_save_IFS
9372 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009373 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009374 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 -05009375 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009377 break 2
9378 fi
9379done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009380 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009381IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009382
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009383fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009384fi
9385AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009386if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009388$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009389else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009391$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009392fi
9393
Theodore Ts'oe1052142006-10-21 21:46:47 -04009394
Theodore Ts'o32237012005-01-17 19:13:39 -05009395 test -n "$AWK" && break
9396done
9397
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009399$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009400if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009401 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009402else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009403 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9404 then ac_cv_path_EGREP="$GREP -E"
9405 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009406 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009407 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009408 # Loop through the user's path and test for each of PROGNAME-LIST
9409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009410for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9411do
9412 IFS=$as_save_IFS
9413 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009414 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9417 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9418# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009419 # Check for GNU $ac_path_EGREP
9420case `"$ac_path_EGREP" --version 2>&1` in
9421*GNU*)
9422 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9423*)
9424 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009425 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009426 while :
9427 do
9428 cat "conftest.in" "conftest.in" >"conftest.tmp"
9429 mv "conftest.tmp" "conftest.in"
9430 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009431 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009432 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9433 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009434 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009435 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9436 # Best one so far, save it but keep looking for a better one
9437 ac_cv_path_EGREP="$ac_path_EGREP"
9438 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009439 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009440 # 10*(2^10) chars as input seems more than enough
9441 test $ac_count -gt 10 && break
9442 done
9443 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9444esac
9445
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009446 $ac_path_EGREP_found && break 3
9447 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009448 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009449 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009450IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009451 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009452 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009453 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009454else
9455 ac_cv_path_EGREP=$EGREP
9456fi
9457
Theodore Ts'oe1052142006-10-21 21:46:47 -04009458 fi
9459fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009461$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009462 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009463
9464
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009465# Extract the first word of "sed", so it can be a program name with args.
9466set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009468$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009469if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009470 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009471else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009472 case $SED in
9473 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009474 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9475 ;;
9476 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478for as_dir in $PATH
9479do
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009482 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009483 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 -05009484 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009486 break 2
9487 fi
9488done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009489 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009490IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009491
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009492 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9493 ;;
9494esac
9495fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009496SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009497if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009499$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009500else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009502$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009503fi
9504
Theodore Ts'oe1052142006-10-21 21:46:47 -04009505
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009506# Extract the first word of "perl", so it can be a program name with args.
9507set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009509$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009510if test "${ac_cv_path_PERL+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009511 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009512else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009513 case $PERL in
9514 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009515 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9516 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009517 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519for as_dir in $PATH
9520do
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009523 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009524 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 -05009525 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009527 break 2
9528 fi
9529done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009530 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009531IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009532
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009533 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9534 ;;
9535esac
9536fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009537PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009538if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009540$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009543$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009544fi
9545
Theodore Ts'oe1052142006-10-21 21:46:47 -04009546
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009547# Extract the first word of "ldconfig", so it can be a program name with args.
9548set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009550$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009551if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009552 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009553else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009554 case $LDCONFIG in
9555 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009556 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9557 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009558 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560for as_dir in $PATH
9561do
9562 IFS=$as_save_IFS
9563 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009564 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009565 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 -05009566 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009568 break 2
9569 fi
9570done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009571 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009572IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009573
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009574 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9575 ;;
9576esac
9577fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009578LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009579if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009581$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009582else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009584$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009585fi
9586
Theodore Ts'oe1052142006-10-21 21:46:47 -04009587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009588if test -n "$ac_tool_prefix"; then
9589 # 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 +00009590set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009592$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009593if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009594 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009595else
9596 if test -n "$AR"; then
9597 ac_cv_prog_AR="$AR" # Let the user override the test.
9598else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600for as_dir in $PATH
9601do
9602 IFS=$as_save_IFS
9603 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009604 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009605 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 -05009606 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009608 break 2
9609 fi
9610done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009611 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009612IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009613
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009614fi
9615fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009616AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009617if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009619$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009620else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009622$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009623fi
9624
Theodore Ts'oe1052142006-10-21 21:46:47 -04009625
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009626fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009627if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009628 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009629 # Extract the first word of "ar", so it can be a program name with args.
9630set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009632$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009633if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009634 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009635else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009636 if test -n "$ac_ct_AR"; then
9637 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009638else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640for as_dir in $PATH
9641do
9642 IFS=$as_save_IFS
9643 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009644 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009645 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 -05009646 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009648 break 2
9649 fi
9650done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009651 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009652IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009653
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009654fi
9655fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009656ac_ct_AR=$ac_cv_prog_ac_ct_AR
9657if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009659$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009660else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009662$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009663fi
9664
Theodore Ts'oe1052142006-10-21 21:46:47 -04009665 if test "x$ac_ct_AR" = x; then
9666 AR="ar"
9667 else
9668 case $cross_compiling:$ac_tool_warned in
9669yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009672ac_tool_warned=yes ;;
9673esac
9674 AR=$ac_ct_AR
9675 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009676else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009677 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009678fi
9679
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009680if test -n "$ac_tool_prefix"; then
9681 # 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 +00009682set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009684$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009685if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009686 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009687else
9688 if test -n "$RANLIB"; then
9689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9690else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692for as_dir in $PATH
9693do
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009696 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009697 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 -05009698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009700 break 2
9701 fi
9702done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009703 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009704IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009705
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009706fi
9707fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009708RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009709if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009711$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009712else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009714$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009715fi
9716
Theodore Ts'oe1052142006-10-21 21:46:47 -04009717
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009718fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009719if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009720 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009721 # Extract the first word of "ranlib", so it can be a program name with args.
9722set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009724$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009725if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009726 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009727else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009728 if test -n "$ac_ct_RANLIB"; then
9729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009730else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009736 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009737 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 -05009738 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009740 break 2
9741 fi
9742done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009743 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009744IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009745
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009746fi
9747fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009748ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9749if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009751$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009752else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009754$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009755fi
9756
Theodore Ts'oe1052142006-10-21 21:46:47 -04009757 if test "x$ac_ct_RANLIB" = x; then
9758 RANLIB=":"
9759 else
9760 case $cross_compiling:$ac_tool_warned in
9761yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009764ac_tool_warned=yes ;;
9765esac
9766 RANLIB=$ac_ct_RANLIB
9767 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009768else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009769 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009770fi
9771
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009772if test -n "$ac_tool_prefix"; then
9773 # 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 +00009774set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009776$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009777if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009778 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009779else
9780 if test -n "$STRIP"; then
9781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9782else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in $PATH
9785do
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009788 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009789 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 -05009790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009792 break 2
9793 fi
9794done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009795 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009796IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009797
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009798fi
9799fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009800STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009801if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009803$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009804else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009806$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009807fi
9808
Theodore Ts'oe1052142006-10-21 21:46:47 -04009809
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009810fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009811if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009812 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009813 # Extract the first word of "strip", so it can be a program name with args.
9814set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009816$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009817if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009818 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009819else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009820 if test -n "$ac_ct_STRIP"; then
9821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009822else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009828 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009829 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 -05009830 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009832 break 2
9833 fi
9834done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009835 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009836IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009837
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009838fi
9839fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009840ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9841if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009843$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009844else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009846$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009847fi
9848
Theodore Ts'oe1052142006-10-21 21:46:47 -04009849 if test "x$ac_ct_STRIP" = x; then
9850 STRIP=":"
9851 else
9852 case $cross_compiling:$ac_tool_warned in
9853yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009856ac_tool_warned=yes ;;
9857esac
9858 STRIP=$ac_ct_STRIP
9859 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009860else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009861 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009862fi
9863
Manish Katiyar7321d942008-04-14 17:20:03 +05309864# Extract the first word of "makeinfo", so it can be a program name with args.
9865set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009867$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009868if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009869 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +05309870else
9871 if test -n "$MAKEINFO"; then
9872 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9873else
9874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875for as_dir in $PATH
9876do
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009879 for ac_exec_ext in '' $ac_executable_extensions; do
Manish Katiyar7321d942008-04-14 17:20:03 +05309880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +05309883 break 2
9884 fi
9885done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009886 done
Manish Katiyar7321d942008-04-14 17:20:03 +05309887IFS=$as_save_IFS
9888
9889fi
9890fi
9891MAKEINFO=$ac_cv_prog_MAKEINFO
9892if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009894$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +05309895else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009897$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +05309898fi
9899
9900
9901if test "_$MAKEINFO" = "_"; then
9902 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
9903else
9904 case "$MAKEINFO" in
9905 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +05309907*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009908$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +05309909*** Makeinfo is missing. Info documentation will not be built." >&2;}
9910 ;;
9911 *)
9912 ;;
9913 esac
9914fi
9915
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009916
Theodore Ts'o6c133521999-07-03 20:37:03 +00009917# See if we need a separate native compiler.
9918if test $cross_compiling = no; then
9919 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009920
Theodore Ts'o6c133521999-07-03 20:37:03 +00009921else
9922 for ac_prog in gcc cc
9923do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009924 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +00009925set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009927$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009928if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009929 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00009930else
9931 if test -n "$BUILD_CC"; then
9932 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
9933else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009936do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009937 IFS=$as_save_IFS
9938 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009939 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009940 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 -05009941 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009943 break 2
9944 fi
9945done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009946 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009947IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009948
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009949fi
9950fi
9951BUILD_CC=$ac_cv_prog_BUILD_CC
9952if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009954$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009955else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009957$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009958fi
9959
Theodore Ts'oe1052142006-10-21 21:46:47 -04009960
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009961 test -n "$BUILD_CC" && break
9962done
9963
9964fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -04009965for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009966do :
9967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9968ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9969eval as_val=\$$as_ac_Header
9970 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009971 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009972#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009973_ACEOF
9974
9975fi
9976
9977done
9978
Theodore Ts'oda76d6b2005-01-18 23:29:01 -05009979for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009980do :
9981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9982ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -05009983#if HAVE_SYS_QUEUE_H
9984#include <sys/queue.h>
9985#endif
9986
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009987"
9988eval as_val=\$$as_ac_Header
9989 if test "x$as_val" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -05009990 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009991#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -05009992_ACEOF
9993
9994fi
9995
9996done
9997
Theodore Ts'oda76d6b2005-01-18 23:29:01 -05009998for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009999do :
10000 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010001#if HAVE_SYS_TYPES_H
10002#include <sys/types.h>
10003#endif
10004#if HAVE_SYS_SOCKET
10005#include <sys/socket.h>
10006#endif
10007
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010008"
10009if test "x$ac_cv_header_net_if_h" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010010 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010011#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010012_ACEOF
10013
10014fi
10015
10016done
10017
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010018for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010019do :
10020 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10021if test "x$ac_cv_func_vprintf" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010022 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010023#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010024_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010025
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010026ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10027if test "x$ac_cv_func__doprnt" = x""yes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010028
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010029$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010030
10031fi
10032
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010033fi
10034done
10035
10036
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010037ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10038"
10039if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10040 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010041
10042fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010043
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010044ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10045"
10046if test "x$ac_cv_type_ssize_t" = x""yes; then :
10047 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010048
Theodore Ts'offf45482003-04-13 00:44:19 -040010049fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010050
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010051ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10052"
10053if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10054 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010055
10056fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010057
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010058ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010059 #define _LARGEFILE64_SOURCE
10060 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010061"
10062if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10063 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010064
10065fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010066
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010067# The cast to long int works around a bug in the HP C Compiler
10068# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10069# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10070# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010072$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010073if test "${ac_cv_sizeof_short+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010074 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010075else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010076 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010077
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010078else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010079 if test "$ac_cv_type_short" = yes; then
10080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010082{ as_fn_set_status 77
10083as_fn_error "cannot compute sizeof (short)
10084See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010085 else
10086 ac_cv_sizeof_short=0
10087 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010088fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010089
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010090fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010092$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010093
10094
10095
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010096cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010097#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010098_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010099
10100
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010101# The cast to long int works around a bug in the HP C Compiler
10102# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10103# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10104# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010106$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010107if test "${ac_cv_sizeof_int+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010108 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010109else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010110 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010111
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010112else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010113 if test "$ac_cv_type_int" = yes; then
10114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010116{ as_fn_set_status 77
10117as_fn_error "cannot compute sizeof (int)
10118See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010119 else
10120 ac_cv_sizeof_int=0
10121 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010122fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010123
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010124fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010126$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010127
10128
10129
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010130cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010131#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010132_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010133
10134
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010135# The cast to long int works around a bug in the HP C Compiler
10136# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10137# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10138# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010140$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010141if test "${ac_cv_sizeof_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010142 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010143else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010144 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010145
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010146else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010147 if test "$ac_cv_type_long" = yes; then
10148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010150{ as_fn_set_status 77
10151as_fn_error "cannot compute sizeof (long)
10152See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010153 else
10154 ac_cv_sizeof_long=0
10155 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010156fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010157
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010158fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010160$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010161
10162
10163
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010164cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010165#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010166_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010167
10168
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010169# The cast to long int works around a bug in the HP C Compiler
10170# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10171# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10172# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010174$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010175if test "${ac_cv_sizeof_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010176 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010177else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010178 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010180else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010181 if test "$ac_cv_type_long_long" = yes; then
10182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010184{ as_fn_set_status 77
10185as_fn_error "cannot compute sizeof (long long)
10186See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010187 else
10188 ac_cv_sizeof_long_long=0
10189 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010190fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010191
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010192fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010194$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010195
10196
10197
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010198cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010199#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010200_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010201
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010202
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010203SIZEOF_SHORT=$ac_cv_sizeof_short
10204SIZEOF_INT=$ac_cv_sizeof_int
10205SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010206SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10207
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010208
10209
10210
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010212$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010213if test "${ac_cv_c_bigendian+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010214 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010215else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010216 ac_cv_c_bigendian=unknown
10217 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010219/* end confdefs.h. */
10220#ifndef __APPLE_CC__
10221 not a universal capable compiler
10222 #endif
10223 typedef int dummy;
10224
10225_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010226if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010227
10228 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010229 # there are at least two -arch flags with different values.
10230 ac_arch=
10231 ac_prev=
10232 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10233 if test -n "$ac_prev"; then
10234 case $ac_word in
10235 i?86 | x86_64 | ppc | ppc64)
10236 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10237 ac_arch=$ac_word
10238 else
10239 ac_cv_c_bigendian=universal
10240 break
10241 fi
10242 ;;
10243 esac
10244 ac_prev=
10245 elif test "x$ac_word" = "x-arch"; then
10246 ac_prev=arch
10247 fi
10248 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010249fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10251 if test $ac_cv_c_bigendian = unknown; then
10252 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010254/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010255#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010256 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010258int
10259main ()
10260{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010261#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10262 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10263 && LITTLE_ENDIAN)
10264 bogus endian macros
10265 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010266
10267 ;
10268 return 0;
10269}
10270_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010271if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010272 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010274/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010275#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010276 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010278int
10279main ()
10280{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010281#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010282 not big endian
10283 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010284
10285 ;
10286 return 0;
10287}
10288_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010289if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010290 ac_cv_c_bigendian=yes
10291else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010292 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010293fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010295fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 fi
10298 if test $ac_cv_c_bigendian = unknown; then
10299 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010301/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010302#include <limits.h>
10303
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010304int
10305main ()
10306{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010307#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10308 bogus endian macros
10309 #endif
10310
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010311 ;
10312 return 0;
10313}
10314_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010315if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010316 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010318/* end confdefs.h. */
10319#include <limits.h>
10320
10321int
10322main ()
10323{
10324#ifndef _BIG_ENDIAN
10325 not big endian
10326 #endif
10327
10328 ;
10329 return 0;
10330}
10331_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010332if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010333 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010334else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010335 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010336fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010338fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10340 fi
10341 if test $ac_cv_c_bigendian = unknown; then
10342 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010343 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010344 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010346/* end confdefs.h. */
10347short int ascii_mm[] =
10348 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10349 short int ascii_ii[] =
10350 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10351 int use_ascii (int i) {
10352 return ascii_mm[i] + ascii_ii[i];
10353 }
10354 short int ebcdic_ii[] =
10355 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10356 short int ebcdic_mm[] =
10357 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10358 int use_ebcdic (int i) {
10359 return ebcdic_mm[i] + ebcdic_ii[i];
10360 }
10361 extern int foo;
10362
10363int
10364main ()
10365{
10366return use_ascii (foo) == use_ebcdic (foo);
10367 ;
10368 return 0;
10369}
10370_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010371if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010372 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10373 ac_cv_c_bigendian=yes
10374 fi
10375 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10376 if test "$ac_cv_c_bigendian" = unknown; then
10377 ac_cv_c_bigendian=no
10378 else
10379 # finding both strings is unlikely to happen, but who knows?
10380 ac_cv_c_bigendian=unknown
10381 fi
10382 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010383fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010385else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010387/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010388$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010389int
10390main ()
10391{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010392
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010393 /* Are we little or big endian? From Harbison&Steele. */
10394 union
10395 {
10396 long int l;
10397 char c[sizeof (long int)];
10398 } u;
10399 u.l = 1;
10400 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010401
10402 ;
10403 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010404}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010405_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010406if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010407 ac_cv_c_bigendian=no
10408else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010409 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010410fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10412 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010413fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010414
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010415 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010416fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010418$as_echo "$ac_cv_c_bigendian" >&6; }
10419 case $ac_cv_c_bigendian in #(
10420 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010421 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010422;; #(
10423 no)
10424 ;; #(
10425 universal)
10426
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010427$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010428
10429 ;; #(
10430 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010431 as_fn_error "unknown endianness
10432 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010433 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010434
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010435BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010436ASM_TYPES_HEADER=./asm_types.h
10437
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010438echo "/* These defines are needed for the public ext2fs.h header file */" \
10439 > public_config.h
10440if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10441 uniq tmp_config.$$ >> public_config.h
10442else
10443 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10444fi
10445if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10446 uniq tmp_config.$$ >> public_config.h
10447else
10448 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10449fi
10450rm -f tmp_config.$$
10451PUBLIC_CONFIG_HEADER=./public_config.h
10452
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010453for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010454do :
10455 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10456if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010457 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010458#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010459_ACEOF
10460
10461fi
10462
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010463done
10464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010465ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10466if test "x$ac_cv_type_intptr_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010467
10468cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010469#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010470_ACEOF
10471
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010473fi
10474
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010476$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010477if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010478 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010479else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010481/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010482#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010483int
10484main ()
10485{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010486struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010487 ;
10488 return 0;
10489}
10490_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010491if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010492 e2fsprogs_cv_struct_st_flags=yes
10493else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010494 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010495fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10497fi
10498
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010500$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010501if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010503$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010504 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010505 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010506else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010508/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010509#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010510int
10511main ()
10512{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010513struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010514 ;
10515 return 0;
10516}
10517_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010518if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010519 e2fsprogs_cv_struct_st_flags_immut=yes
10520else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010521 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010522fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10524fi
10525
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010527$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010528 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010529 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010530
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010531 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010532fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010533ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010534 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010535"
10536if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010537
10538cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010539#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010540_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010541
10542fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010543
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010544if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010546$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010547if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010548 $as_echo_n "(cached) " >&6
10549else
10550 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010552/* end confdefs.h. */
10553
10554/* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10557#ifdef __cplusplus
10558extern "C"
10559#endif
10560char blkid_probe_all ();
10561int
10562main ()
10563{
10564return blkid_probe_all ();
10565 ;
10566 return 0;
10567}
10568_ACEOF
10569for ac_lib in '' blkid; do
10570 if test -z "$ac_lib"; then
10571 ac_res="none required"
10572 else
10573 ac_res=-l$ac_lib
10574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10575 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010576 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010577 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010578fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010579rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext
10581 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010582 break
10583fi
10584done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010585if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10586
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010587else
10588 ac_cv_search_blkid_probe_all=no
10589fi
10590rm conftest.$ac_ext
10591LIBS=$ac_func_search_save_LIBS
10592fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010594$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10595ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010596if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10598
10599fi
10600
10601fi
Eric Sandeenbeb736b2009-10-21 03:43:02 -040010602for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit blkid_probe_get_topology
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010603do :
10604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10605ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10606eval as_val=\$$as_ac_var
10607 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010608 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010609#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010610_ACEOF
10611
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010612fi
10613done
10614
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010615SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010617$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010618if test "${ac_cv_lib_socket_socket+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010619 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010620else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010621 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010622LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010624/* end confdefs.h. */
10625
Theodore Ts'oe1052142006-10-21 21:46:47 -040010626/* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010629#ifdef __cplusplus
10630extern "C"
10631#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010632char socket ();
10633int
10634main ()
10635{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010636return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010637 ;
10638 return 0;
10639}
10640_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010641if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010642 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010643else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010644 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010645fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010646rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010648LIBS=$ac_check_lib_save_LIBS
10649fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010651$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010652if test "x$ac_cv_lib_socket_socket" = x""yes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010653 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010654fi
10655
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010656
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010658$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010659if test "${ac_cv_have_optreset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010660 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010661else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010663/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010664#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010665
10666_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010668 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010669 ac_cv_have_optreset=yes
10670else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010671 ac_cv_have_optreset=no
10672fi
10673rm -f conftest*
10674
10675fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010677$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010678if test $ac_cv_have_optreset = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010679 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010680
10681fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010682SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010683ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
10684if test "x$ac_cv_func_sem_init" = x""yes; then :
10685
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010686else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010688$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010689if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010690 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010691else
10692 ac_check_lib_save_LIBS=$LIBS
10693LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010695/* end confdefs.h. */
10696
10697/* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700#ifdef __cplusplus
10701extern "C"
10702#endif
10703char sem_init ();
10704int
10705main ()
10706{
10707return sem_init ();
10708 ;
10709 return 0;
10710}
10711_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010712if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010713 ac_cv_lib_pthread_sem_init=yes
10714else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010715 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010716fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010717rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010719LIBS=$ac_check_lib_save_LIBS
10720fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010722$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010723if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
10724 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010725
10726 SEM_INIT_LIB=-lpthread
10727else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010729$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010730if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010731 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010732else
10733 ac_check_lib_save_LIBS=$LIBS
10734LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010736/* end confdefs.h. */
10737
10738/* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741#ifdef __cplusplus
10742extern "C"
10743#endif
10744char sem_init ();
10745int
10746main ()
10747{
10748return sem_init ();
10749 ;
10750 return 0;
10751}
10752_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010753if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010754 ac_cv_lib_rt_sem_init=yes
10755else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010756 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010757fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010758rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010760LIBS=$ac_check_lib_save_LIBS
10761fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010763$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010764if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
10765 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010766
10767 SEM_INIT_LIB=-lrt
10768else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010770$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010771if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010772 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010773else
10774 ac_check_lib_save_LIBS=$LIBS
10775LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010777/* end confdefs.h. */
10778
10779/* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10782#ifdef __cplusplus
10783extern "C"
10784#endif
10785char sem_init ();
10786int
10787main ()
10788{
10789return sem_init ();
10790 ;
10791 return 0;
10792}
10793_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010794if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010795 ac_cv_lib_posix4_sem_init=yes
10796else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010797 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010798fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010799rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010801LIBS=$ac_check_lib_save_LIBS
10802fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010804$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010805if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
10806 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010807
10808 SEM_INIT_LIB=-lposix4
10809fi
10810
10811fi
10812
10813fi
10814
10815fi
10816
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010818$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040010819if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040010820 UNI_DIFF_OPTS=-u
10821else
10822 UNI_DIFF_OPTS=-c
10823fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010825$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040010826
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000010827case "$host_os" in
10828linux*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010829 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010830
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000010831 ;;
10832esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040010833LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040010834CYGWIN_CMT="#"
10835UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040010836case "$host_os" in
10837linux*)
10838 LINUX_CMT=
10839 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040010840cygwin)
10841 CYGWIN_CMT=
10842 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040010843 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040010844esac
10845
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010846
10847
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010848case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010849linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010850 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
10851 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010853$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010854 fi
10855 ;;
10856esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010857case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010858linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010859 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010860 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010862$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040010863 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010865$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040010866 mandir=/usr/share/man
10867 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010868 fi
10869;;
10870esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010871if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000010872 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010873 root_prefix="$ac_default_prefix"
10874 else
10875 root_prefix="$prefix"
10876 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040010877 root_bindir=$bindir
10878 root_sbindir=$sbindir
10879 root_libdir=$libdir
10880 root_sysconfdir=$sysconfdir
10881else
10882 root_bindir='${root_prefix}/bin'
10883 root_sbindir='${root_prefix}/sbin'
10884 root_libdir='${root_prefix}/lib'
10885 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010886fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050010887if test "$bindir" != '${exec_prefix}/bin'; then
10888 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010890$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050010891fi
10892if test "$sbindir" != '${exec_prefix}/sbin'; then
10893 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010895$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050010896fi
10897if test "$libdir" != '${exec_prefix}/lib'; then
10898 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010900$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050010901fi
10902if test "$sysconfdir" != '${prefix}/etc'; then
10903 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010905$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050010906fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010907
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010908
10909
10910
10911
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010913$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010914if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010915 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000010916else
10917 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010919/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000010920#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010921int
10922main ()
10923{
Theodore Ts'oae851481997-04-29 18:13:24 +000010924fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010925 ;
10926 return 0;
10927}
10928_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010929if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000010930 ac_cv_e2fsprogs_use_static=yes
10931else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010932 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000010933fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010934rm -f core conftest.err conftest.$ac_objext \
10935 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000010936LDFLAGS=$SAVE_LDFLAGS
10937fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010938
Theodore Ts'odefde781999-01-04 07:39:19 +000010939case "$host_os" in
10940solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010941 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000010942;;
10943esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010945$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000010946LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000010947if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010948 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000010949fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010950
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010951case "$host_os" in
10952darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010954$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010955 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010956
10957 ;;
10958esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010959SS_DIR=`cd ${srcdir}/lib/ss; pwd`
10960ET_DIR=`cd ${srcdir}/lib/et; pwd`
10961
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010962
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010963if test "$cross_compiling" = yes ; then
10964 DO_TEST_SUITE=
10965else
10966 DO_TEST_SUITE=check
10967fi
10968
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040010969INTL_FLAGS=
10970if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
10971 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
10972fi
10973
Theodore Ts'odd947da2005-11-09 18:37:07 -040010974if test $cross_compiling = no; then
10975 BUILD_CFLAGS="$CFLAGS"
10976 BUILD_LDFLAGS="$LDFLAGS"
10977else
10978 BUILD_CFLAGS=
10979 BUILD_LDFLAGS=
10980fi
10981
10982
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010983test -d lib || mkdir lib
10984test -d include || mkdir include
10985test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000010986test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050010987for i in MCONFIG Makefile e2fsprogs.spec \
10988 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010989 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
10990 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050010991 lib/uuid/Makefile lib/uuid/uuid_types.h \
10992 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050010993 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
10994 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050010995 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050010996 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020010997 resize/Makefile doc/Makefile intl/Makefile \
10998 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050010999 if test -d `dirname ${srcdir}/$i` ; then
11000 outlist="$outlist $i"
11001 fi
11002done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011003ac_config_files="$ac_config_files $outlist"
11004
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011005cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011006# This file is a shell script that caches the results of configure
11007# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011008# scripts and configure runs, see configure's option --config-cache.
11009# It is not useful on other systems. If it contains results you don't
11010# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011011#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011012# config.status only pays attention to the cache file if you give it
11013# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011014#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011015# `ac_cv_env_foo' variables (set or unset) will be overridden when
11016# loading this file, other *unset* `ac_cv_foo' will be assigned the
11017# following values.
11018
11019_ACEOF
11020
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011021# The following way of writing the cache mishandles newlines in values,
11022# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011023# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011024# Ultrix sh set writes to stderr and can't be redirected directly,
11025# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011026(
11027 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11028 eval ac_val=\$$ac_var
11029 case $ac_val in #(
11030 *${as_nl}*)
11031 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011033$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011034 esac
11035 case $ac_var in #(
11036 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011038 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011039 esac ;;
11040 esac
11041 done
11042
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011043 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011044 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11045 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011046 # `set' does not quote correctly, so add quotes: double-quote
11047 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011048 sed -n \
11049 "s/'/'\\\\''/g;
11050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011051 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011052 *)
11053 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011055 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011056 esac |
11057 sort
11058) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011059 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011060 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011061 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011062 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11064 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011065 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11066 :end' >>confcache
11067if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11068 if test -w "$cache_file"; then
11069 test "x$cache_file" != "x/dev/null" &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011070 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011071$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011072 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011073 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011074 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011075$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011076 fi
11077fi
11078rm -f confcache
11079
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011080test "x$prefix" = xNONE && prefix=$ac_default_prefix
11081# Let make expand exec_prefix.
11082test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11083
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011084# Transform confdefs.h into DEFS.
11085# Protect against shell expansion while executing Makefile rules.
11086# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011087#
11088# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040011089# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011090# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011091ac_script='
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011092:mline
11093/\\$/{
11094 N
11095 s,\\\n,,
11096 b mline
11097}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011098t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011099:clear
11100s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011101t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040011102s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011103t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040011104b any
11105:quote
11106s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11107s/\[/\\&/g
11108s/\]/\\&/g
11109s/\$/$$/g
11110H
11111:any
11112${
11113 g
11114 s/^\n//
11115 s/\n/ /g
11116 p
11117}
11118'
11119DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011120
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011121
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011122ac_libobjs=
11123ac_ltlibobjs=
11124for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11125 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011126 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011127 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011128 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11129 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011130 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11131 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011132done
11133LIBOBJS=$ac_libobjs
11134
11135LTLIBOBJS=$ac_ltlibobjs
11136
11137
11138
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011139
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011140: ${CONFIG_STATUS=./config.status}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011141ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011142ac_clean_files_save=$ac_clean_files
11143ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011144{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011145$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011146as_write_fail=0
11147cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011148#! $SHELL
11149# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011150# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011151# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011152# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011154debug=false
11155ac_cs_recheck=false
11156ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011157
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011158SHELL=\${CONFIG_SHELL-$SHELL}
11159export SHELL
11160_ASEOF
11161cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11162## -------------------- ##
11163## M4sh Initialization. ##
11164## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011165
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011166# Be more Bourne compatible
11167DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011168if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011169 emulate sh
11170 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011172 # is contrary to our usage. Disable this feature.
11173 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011174 setopt NO_GLOB_SUBST
11175else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011176 case `(set -o) 2>/dev/null` in #(
11177 *posix*) :
11178 set -o posix ;; #(
11179 *) :
11180 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011181esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011182fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011183
11184
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011185as_nl='
11186'
11187export as_nl
11188# Printing a long string crashes Solaris 7 /usr/bin/printf.
11189as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11190as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11191as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011192# Prefer a ksh shell builtin over an external printf program on Solaris,
11193# but without wasting forks for bash or zsh.
11194if test -z "$BASH_VERSION$ZSH_VERSION" \
11195 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11196 as_echo='print -r --'
11197 as_echo_n='print -rn --'
11198elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011199 as_echo='printf %s\n'
11200 as_echo_n='printf %s'
11201else
11202 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11203 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11204 as_echo_n='/usr/ucb/echo -n'
11205 else
11206 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11207 as_echo_n_body='eval
11208 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011209 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011210 *"$as_nl"*)
11211 expr "X$arg" : "X\\(.*\\)$as_nl";
11212 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11213 esac;
11214 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11215 '
11216 export as_echo_n_body
11217 as_echo_n='sh -c $as_echo_n_body as_echo'
11218 fi
11219 export as_echo_body
11220 as_echo='sh -c $as_echo_body as_echo'
11221fi
11222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011223# The user is always right.
11224if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011225 PATH_SEPARATOR=:
11226 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11227 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11228 PATH_SEPARATOR=';'
11229 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011230fi
11231
Theodore Ts'oe1052142006-10-21 21:46:47 -040011232
11233# IFS
11234# We need space, tab and new line, in precisely that order. Quoting is
11235# there to prevent editors from complaining about space-tab.
11236# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11237# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011238IFS=" "" $as_nl"
11239
11240# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011241case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011242 *[\\/]* ) as_myself=$0 ;;
11243 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011244for as_dir in $PATH
11245do
11246 IFS=$as_save_IFS
11247 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011248 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11249 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011250IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011251
Theodore Ts'oe1052142006-10-21 21:46:47 -040011252 ;;
11253esac
11254# We did not find ourselves, most probably we were run as `sh COMMAND'
11255# in which case we are not to be found in the path.
11256if test "x$as_myself" = x; then
11257 as_myself=$0
11258fi
11259if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011260 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011261 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011262fi
11263
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011264# Unset variables that we do not need and which cause bugs (e.g. in
11265# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11266# suppresses any "Segmentation fault" message there. '((' could
11267# trigger a bug in pdksh 5.2.14.
11268for as_var in BASH_ENV ENV MAIL MAILPATH
11269do eval test x\${$as_var+set} = xset \
11270 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011271done
11272PS1='$ '
11273PS2='> '
11274PS4='+ '
11275
11276# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011277LC_ALL=C
11278export LC_ALL
11279LANGUAGE=C
11280export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011281
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011282# CDPATH.
11283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11284
11285
11286# as_fn_error ERROR [LINENO LOG_FD]
11287# ---------------------------------
11288# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11289# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11290# script with status $?, using 1 if that was 0.
11291as_fn_error ()
11292{
11293 as_status=$?; test $as_status -eq 0 && as_status=1
11294 if test "$3"; then
11295 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11296 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11297 fi
11298 $as_echo "$as_me: error: $1" >&2
11299 as_fn_exit $as_status
11300} # as_fn_error
11301
11302
11303# as_fn_set_status STATUS
11304# -----------------------
11305# Set $? to STATUS, without forking.
11306as_fn_set_status ()
11307{
11308 return $1
11309} # as_fn_set_status
11310
11311# as_fn_exit STATUS
11312# -----------------
11313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11314as_fn_exit ()
11315{
11316 set +e
11317 as_fn_set_status $1
11318 exit $1
11319} # as_fn_exit
11320
11321# as_fn_unset VAR
11322# ---------------
11323# Portably unset VAR.
11324as_fn_unset ()
11325{
11326 { eval $1=; unset $1;}
11327}
11328as_unset=as_fn_unset
11329# as_fn_append VAR VALUE
11330# ----------------------
11331# Append the text in VALUE to the end of the definition contained in VAR. Take
11332# advantage of any shell optimizations that allow amortized linear growth over
11333# repeated appends, instead of the typical quadratic growth present in naive
11334# implementations.
11335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11336 eval 'as_fn_append ()
11337 {
11338 eval $1+=\$2
11339 }'
11340else
11341 as_fn_append ()
11342 {
11343 eval $1=\$$1\$2
11344 }
11345fi # as_fn_append
11346
11347# as_fn_arith ARG...
11348# ------------------
11349# Perform arithmetic evaluation on the ARGs, and store the result in the
11350# global $as_val. Take advantage of shells that can avoid forks. The arguments
11351# must be portable across $(()) and expr.
11352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11353 eval 'as_fn_arith ()
11354 {
11355 as_val=$(( $* ))
11356 }'
11357else
11358 as_fn_arith ()
11359 {
11360 as_val=`expr "$@" || test $? -eq 1`
11361 }
11362fi # as_fn_arith
11363
11364
Theodore Ts'oe1052142006-10-21 21:46:47 -040011365if expr a : '\(a\)' >/dev/null 2>&1 &&
11366 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11367 as_expr=expr
11368else
11369 as_expr=false
11370fi
11371
11372if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11373 as_basename=basename
11374else
11375 as_basename=false
11376fi
11377
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011378if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11379 as_dirname=dirname
11380else
11381 as_dirname=false
11382fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011383
Theodore Ts'oe1052142006-10-21 21:46:47 -040011384as_me=`$as_basename -- "$0" ||
11385$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11386 X"$0" : 'X\(//\)$' \| \
11387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011388$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011389 sed '/^.*\/\([^/][^/]*\)\/*$/{
11390 s//\1/
11391 q
11392 }
11393 /^X\/\(\/\/\)$/{
11394 s//\1/
11395 q
11396 }
11397 /^X\/\(\/\).*/{
11398 s//\1/
11399 q
11400 }
11401 s/.*/./; q'`
11402
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011403# Avoid depending upon Character Ranges.
11404as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11405as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11406as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11407as_cr_digits='0123456789'
11408as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011409
11410ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011411case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011412-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011413 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011414 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011415 xy) ECHO_C='\c';;
11416 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11417 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011418 esac;;
11419*)
11420 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011421esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011422
11423rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011424if test -d conf$$.dir; then
11425 rm -f conf$$.dir/conf$$.file
11426else
11427 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011428 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011429fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011430if (echo >conf$$.file) 2>/dev/null; then
11431 if ln -s conf$$.file conf$$ 2>/dev/null; then
11432 as_ln_s='ln -s'
11433 # ... but there are two gotchas:
11434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11436 # In both cases, we have to default to `cp -p'.
11437 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11438 as_ln_s='cp -p'
11439 elif ln conf$$.file conf$$ 2>/dev/null; then
11440 as_ln_s=ln
11441 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011442 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011443 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011444else
11445 as_ln_s='cp -p'
11446fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011447rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11448rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011449
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011450
11451# as_fn_mkdir_p
11452# -------------
11453# Create "$as_dir" as a directory, including parents if necessary.
11454as_fn_mkdir_p ()
11455{
11456
11457 case $as_dir in #(
11458 -*) as_dir=./$as_dir;;
11459 esac
11460 test -d "$as_dir" || eval $as_mkdir_p || {
11461 as_dirs=
11462 while :; do
11463 case $as_dir in #(
11464 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11465 *) as_qdir=$as_dir;;
11466 esac
11467 as_dirs="'$as_qdir' $as_dirs"
11468 as_dir=`$as_dirname -- "$as_dir" ||
11469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11470 X"$as_dir" : 'X\(//\)[^/]' \| \
11471 X"$as_dir" : 'X\(//\)$' \| \
11472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11473$as_echo X"$as_dir" |
11474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11475 s//\1/
11476 q
11477 }
11478 /^X\(\/\/\)[^/].*/{
11479 s//\1/
11480 q
11481 }
11482 /^X\(\/\/\)$/{
11483 s//\1/
11484 q
11485 }
11486 /^X\(\/\).*/{
11487 s//\1/
11488 q
11489 }
11490 s/.*/./; q'`
11491 test -d "$as_dir" && break
11492 done
11493 test -z "$as_dirs" || eval "mkdir $as_dirs"
11494 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11495
11496
11497} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011498if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011499 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011500else
11501 test -d ./-p && rmdir ./-p
11502 as_mkdir_p=false
11503fi
11504
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011505if test -x / >/dev/null 2>&1; then
11506 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011507else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011508 if ls -dL / >/dev/null 2>&1; then
11509 as_ls_L_option=L
11510 else
11511 as_ls_L_option=
11512 fi
11513 as_test_x='
11514 eval sh -c '\''
11515 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011516 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011517 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011518 case $1 in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011519 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011520 esac;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011522 ???[sx]*):;;*)false;;esac;fi
11523 '\'' sh
11524 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011525fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011526as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011527
11528# Sed expression to map a string onto a valid CPP name.
11529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11530
11531# Sed expression to map a string onto a valid variable name.
11532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11533
11534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011535exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011536## ----------------------------------- ##
11537## Main body of $CONFIG_STATUS script. ##
11538## ----------------------------------- ##
11539_ASEOF
11540test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011541
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11543# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011544# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011545# values after options handling.
11546ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011547This file was extended by $as_me, which was
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011548generated by GNU Autoconf 2.64. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011549
11550 CONFIG_FILES = $CONFIG_FILES
11551 CONFIG_HEADERS = $CONFIG_HEADERS
11552 CONFIG_LINKS = $CONFIG_LINKS
11553 CONFIG_COMMANDS = $CONFIG_COMMANDS
11554 $ $0 $@
11555
Theodore Ts'oe1052142006-10-21 21:46:47 -040011556on `(hostname || uname -n) 2>/dev/null | sed 1q`
11557"
11558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011559_ACEOF
11560
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011561case $ac_config_files in *"
11562"*) set x $ac_config_files; shift; ac_config_files=$*;;
11563esac
11564
11565
11566
11567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011568# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011569config_files="$ac_config_files"
11570config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571
Theodore Ts'oe1052142006-10-21 21:46:47 -040011572_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011573
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011575ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011576\`$as_me' instantiates files and other configuration actions
11577from templates according to the current configuration. Unless the files
11578and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011579
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011580Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011581
11582 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011583 -V, --version print version number and configuration settings, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011584 -q, --quiet, --silent
11585 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011586 -d, --debug don't remove temporary files
11587 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011588 --file=FILE[:TEMPLATE]
11589 instantiate the configuration file FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011590
11591Configuration files:
11592$config_files
11593
11594Configuration commands:
11595$config_commands
11596
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011597Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011598
Theodore Ts'oe1052142006-10-21 21:46:47 -040011599_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011601ac_cs_version="\\
11602config.status
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011603configured by $0, generated by GNU Autoconf 2.64,
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011604 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011605
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011606Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011607This config.status script is free software; the Free Software Foundation
11608gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040011609
11610ac_pwd='$ac_pwd'
11611srcdir='$srcdir'
11612INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011613AWK='$AWK'
11614test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011615_ACEOF
11616
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11618# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011619ac_need_defaults=:
11620while test $# != 0
11621do
11622 case $1 in
11623 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011626 ac_shift=:
11627 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011628 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011629 ac_option=$1
11630 ac_optarg=$2
11631 ac_shift=shift
11632 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011633 esac
11634
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011635 case $ac_option in
11636 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11638 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011640 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011641 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011642 debug=: ;;
11643 --file | --fil | --fi | --f )
11644 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011645 case $ac_optarg in
11646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11647 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011648 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011649 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011650 --he | --h | --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011651 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11654 ac_cs_silent=: ;;
11655
11656 # This is an error.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011657 -*) as_fn_error "unrecognized option: \`$1'
11658Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011659
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011660 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011661 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011662
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011663 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011664 shift
11665done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011667ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011669if $ac_cs_silent; then
11670 exec 6>/dev/null
11671 ac_configure_extra_args="$ac_configure_extra_args --silent"
11672fi
11673
11674_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011676if \$ac_cs_recheck; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011677 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11678 shift
11679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11680 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011681 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011682 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011683fi
11684
11685_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011687exec 5>>config.log
11688{
11689 echo
11690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11691## Running $as_me. ##
11692_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011693 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011694} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011695
Theodore Ts'oe1052142006-10-21 21:46:47 -040011696_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011698#
Theodore Ts'oe1052142006-10-21 21:46:47 -040011699# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011700#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011701# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011702 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011703 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011704 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011705 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11706 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011707
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011709_ACEOF
11710
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011712
11713# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011714for ac_config_target in $ac_config_targets
11715do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011716 case $ac_config_target in
11717 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11718 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
11719
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011720 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011721 esac
11722done
11723
Theodore Ts'oe1052142006-10-21 21:46:47 -040011724
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011725# If the user did not use the arguments to specify the items to instantiate,
11726# then the envvar interface is used. Set only those that are not.
11727# We use the long form for the default assignment because of an extremely
11728# bizarre bug on SunOS 4.1.3.
11729if $ac_need_defaults; then
11730 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11731 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11732fi
11733
11734# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040011735# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011736# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011737# Hook for its removal unless debugging.
11738# Note that there is a small window in which the directory will not be cleaned:
11739# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011740$debug ||
11741{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011742 tmp=
11743 trap 'exit_status=$?
11744 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11745' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011746 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011747}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011748# Create a (secure) tmp directory for tmp files.
11749
11750{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011752 test -n "$tmp" && test -d "$tmp"
11753} ||
11754{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011755 tmp=./conf$$-$RANDOM
11756 (umask 077 && mkdir "$tmp")
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011757} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011758
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011759# Set up the scripts for CONFIG_FILES section.
11760# No need to generate them if there are no CONFIG_FILES.
11761# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011762if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011763
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011764if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11765 ac_cs_awk_getline=:
11766 ac_cs_awk_pipe_init=
11767 ac_cs_awk_read_file='
11768 while ((getline aline < (F[key])) > 0)
11769 print(aline)
11770 close(F[key])'
11771 ac_cs_awk_pipe_fini=
11772else
11773 ac_cs_awk_getline=false
11774 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11775 ac_cs_awk_read_file='
11776 print "|#_!!_#|"
11777 print "cat " F[key] " &&"
11778 '$ac_cs_awk_pipe_init
11779 # The final `:' finishes the AND list.
11780 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11781fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011782ac_cr=`echo X | tr X '\015'`
11783# On cygwin, bash can eat \r inside `` if the user requested igncr.
11784# But we know of no other shell where ac_cr would be empty at this
11785# point, so we can use a bashism as a fallback.
11786if test "x$ac_cr" = x; then
11787 eval ac_cr=\$\'\\r\'
11788fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011789ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11790if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011791 ac_cs_awk_cr='\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011792else
11793 ac_cs_awk_cr=$ac_cr
11794fi
11795
11796echo 'BEGIN {' >"$tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011797_ACEOF
11798
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011799# Create commands to substitute file output variables.
11800{
11801 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11802 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
11803 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11804 echo "_ACAWK" &&
11805 echo "_ACEOF"
11806} >conf$$files.sh &&
11807. ./conf$$files.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011808 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011809rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040011810
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011811{
11812 echo "cat >conf$$subs.awk <<_ACEOF" &&
11813 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11814 echo "_ACEOF"
11815} >conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011816 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011817ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011818ac_delim='%!_!# '
11819for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011820 . ./conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011821 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011822
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011823 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11824 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011825 break
11826 elif $ac_last_try; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011827 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011828 else
11829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011830 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011831done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011832rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040011833
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11835cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040011836_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011837sed -n '
11838h
11839s/^/S["/; s/!.*/"]=/
11840p
11841g
11842s/^[^!]*!//
11843:repl
11844t repl
11845s/'"$ac_delim"'$//
11846t delim
11847:nl
11848h
11849s/\(.\{148\}\).*/\1/
11850t more1
11851s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11852p
11853n
11854b repl
11855:more1
11856s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11857p
11858g
11859s/.\{148\}//
11860t nl
11861:delim
11862h
11863s/\(.\{148\}\).*/\1/
11864t more2
11865s/["\\]/\\&/g; s/^/"/; s/$/"/
11866p
11867b
11868:more2
11869s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11870p
11871g
11872s/.\{148\}//
11873t delim
11874' <conf$$subs.awk | sed '
11875/^[^""]/{
11876 N
11877 s/\n//
11878}
11879' >>$CONFIG_STATUS || ac_write_fail=1
11880rm -f conf$$subs.awk
11881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11882_ACAWK
11883cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11884 for (key in S) S_is_set[key] = 1
11885 FS = ""
11886 \$ac_cs_awk_pipe_init
11887}
11888{
11889 line = $ 0
11890 nfields = split(line, field, "@")
11891 substed = 0
11892 len = length(field[1])
11893 for (i = 2; i < nfields; i++) {
11894 key = field[i]
11895 keylen = length(key)
11896 if (S_is_set[key]) {
11897 value = S[key]
11898 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11899 len += length(value) + length(field[++i])
11900 substed = 1
11901 } else
11902 len += 1 + keylen
11903 }
11904 if (nfields == 3 && !substed) {
11905 key = field[2]
11906 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
11907 \$ac_cs_awk_read_file
11908 next
11909 }
11910 }
11911 print line
11912}
11913\$ac_cs_awk_pipe_fini
11914_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040011915_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11917if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11918 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11919else
11920 cat
11921fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011922 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011923_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011924
11925# VPATH may cause trouble with some makes, so we remove $(srcdir),
11926# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11927# trailing colons and then remove the whole line if VPATH becomes empty
11928# (actually we leave an empty line to preserve line numbers).
11929if test "x$srcdir" = x.; then
11930 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11931s/:*\$(srcdir):*/:/
11932s/:*\${srcdir}:*/:/
11933s/:*@srcdir@:*/:/
11934s/^\([^=]*=[ ]*\):*/\1/
11935s/:*$//
11936s/^[^=]*=[ ]*$//
11937}'
11938fi
11939
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011941fi # test -n "$CONFIG_FILES"
11942
Theodore Ts'oe1052142006-10-21 21:46:47 -040011943
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011944eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11945shift
11946for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040011947do
11948 case $ac_tag in
11949 :[FHLC]) ac_mode=$ac_tag; continue;;
11950 esac
11951 case $ac_mode$ac_tag in
11952 :[FHL]*:*);;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011953 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011954 :[FH]-) ac_tag=-:-;;
11955 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11956 esac
11957 ac_save_IFS=$IFS
11958 IFS=:
11959 set x $ac_tag
11960 IFS=$ac_save_IFS
11961 shift
11962 ac_file=$1
11963 shift
11964
11965 case $ac_mode in
11966 :L) ac_source=$1;;
11967 :[FH])
11968 ac_file_inputs=
11969 for ac_f
11970 do
11971 case $ac_f in
11972 -) ac_f="$tmp/stdin";;
11973 *) # Look for the file first in the build tree, then in the source tree
11974 # (if the path is not absolute). The absolute path cannot be DOS-style,
11975 # because $ac_f cannot contain `:'.
11976 test -f "$ac_f" ||
11977 case $ac_f in
11978 [\\/$]*) false;;
11979 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11980 esac ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011981 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011982 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011983 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011984 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011985 done
11986
11987 # Let's still pretend it is `configure' which instantiates (i.e., don't
11988 # use $as_me), people would be surprised to read:
11989 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011990 configure_input='Generated from '`
11991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11992 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011993 if test x"$ac_file" != x-; then
11994 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011996$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011997 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011998 # Neutralize special characters interpreted by sed in replacement strings.
11999 case $configure_input in #(
12000 *\&* | *\|* | *\\* )
12001 ac_sed_conf_input=`$as_echo "$configure_input" |
12002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12003 *) ac_sed_conf_input=$configure_input;;
12004 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012005
12006 case $ac_tag in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012007 *:-:* | *:-) cat >"$tmp/stdin" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012008 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012009 esac
12010 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012011 esac
12012
Theodore Ts'oe1052142006-10-21 21:46:47 -040012013 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012014$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12015 X"$ac_file" : 'X\(//\)[^/]' \| \
12016 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012018$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12020 s//\1/
12021 q
12022 }
12023 /^X\(\/\/\)[^/].*/{
12024 s//\1/
12025 q
12026 }
12027 /^X\(\/\/\)$/{
12028 s//\1/
12029 q
12030 }
12031 /^X\(\/\).*/{
12032 s//\1/
12033 q
12034 }
12035 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012036 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012037 ac_builddir=.
12038
Theodore Ts'oe1052142006-10-21 21:46:47 -040012039case "$ac_dir" in
12040.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12041*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012043 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012045 case $ac_top_builddir_sub in
12046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12048 esac ;;
12049esac
12050ac_abs_top_builddir=$ac_pwd
12051ac_abs_builddir=$ac_pwd$ac_dir_suffix
12052# for backward compatibility:
12053ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012054
12055case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012056 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012057 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012058 ac_top_srcdir=$ac_top_builddir_sub
12059 ac_abs_top_srcdir=$ac_pwd ;;
12060 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012061 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012062 ac_top_srcdir=$srcdir
12063 ac_abs_top_srcdir=$srcdir ;;
12064 *) # Relative name.
12065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12066 ac_top_srcdir=$ac_top_build_prefix$srcdir
12067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012068esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012069ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012070
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012071
Theodore Ts'oe1052142006-10-21 21:46:47 -040012072 case $ac_mode in
12073 :F)
12074 #
12075 # CONFIG_FILE
12076 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012077
12078 case $INSTALL in
12079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012080 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012081 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012082_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012083
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012085# If the template does not know about datarootdir, expand it.
12086# FIXME: This hack should be removed a few years after 2.60.
12087ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012088ac_sed_dataroot='
12089/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012090 p
12091 q
12092}
12093/@datadir@/p
12094/@docdir@/p
12095/@infodir@/p
12096/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012097/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012098case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012099*datarootdir*) ac_datarootdir_seen=yes;;
12100*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012102$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012103_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012105 ac_datarootdir_hack='
12106 s&@datadir@&$datadir&g
12107 s&@docdir@&$docdir&g
12108 s&@infodir@&$infodir&g
12109 s&@localedir@&$localedir&g
12110 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012111 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012112esac
12113_ACEOF
12114
12115# Neutralize VPATH when `$srcdir' = `.'.
12116# Shell code in configure.ac might set extrasub.
12117# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12119ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012120$extrasub
12121_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012123:t
12124/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012125s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012126s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012127s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012128s&@srcdir@&$ac_srcdir&;t t
12129s&@abs_srcdir@&$ac_abs_srcdir&;t t
12130s&@top_srcdir@&$ac_top_srcdir&;t t
12131s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12132s&@builddir@&$ac_builddir&;t t
12133s&@abs_builddir@&$ac_abs_builddir&;t t
12134s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12135s&@INSTALL@&$ac_INSTALL&;t t
12136$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012137"
12138eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12139if $ac_cs_awk_getline; then
12140 $AWK -f "$tmp/subs.awk"
12141else
12142 $AWK -f "$tmp/subs.awk" | $SHELL
12143fi >$tmp/out \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012144 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012145
Theodore Ts'oe1052142006-10-21 21:46:47 -040012146test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12147 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12148 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012150which seems to be undefined. Please make sure it is defined." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012151$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012152which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012153
Theodore Ts'oe1052142006-10-21 21:46:47 -040012154 rm -f "$tmp/stdin"
12155 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012156 -) cat "$tmp/out" && rm -f "$tmp/out";;
12157 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12158 esac \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012159 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012160 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012161
12162
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012163 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012164$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012165 ;;
12166 esac
12167
12168
12169 case $ac_file$ac_mode in
12170 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012171 for ac_file in $CONFIG_FILES; do
12172 # Support "outfile[:infile[:infile...]]"
12173 case "$ac_file" in
12174 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012175 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012176 # PO directories have a Makefile.in generated from Makefile.in.in.
12177 case "$ac_file" in */Makefile.in)
12178 # Adjust a relative srcdir.
12179 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12180 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12181 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12182 # In autoconf-2.13 it is called $ac_given_srcdir.
12183 # In autoconf-2.50 it is called $srcdir.
12184 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12185 case "$ac_given_srcdir" in
12186 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12187 /*) top_srcdir="$ac_given_srcdir" ;;
12188 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12189 esac
12190 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12191 rm -f "$ac_dir/POTFILES"
12192 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12193 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 -050012194 POMAKEFILEDEPS="POTFILES.in"
12195 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012196 # on $ac_dir but don't depend on user-specified configuration
12197 # parameters.
12198 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12199 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012200 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012201 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12202 fi
12203 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12204 # Hide the ALL_LINGUAS assigment from automake.
12205 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012206 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12207 else
12208 # The set of available languages was given in configure.in.
12209 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012210 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012211 # Compute POFILES
12212 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12213 # Compute UPDATEPOFILES
12214 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12215 # Compute DUMMYPOFILES
12216 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12217 # Compute GMOFILES
12218 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012219 case "$ac_given_srcdir" in
12220 .) srcdirpre= ;;
12221 *) srcdirpre='$(srcdir)/' ;;
12222 esac
12223 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012224 UPDATEPOFILES=
12225 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012226 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012227 for lang in $ALL_LINGUAS; do
12228 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012229 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12230 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012231 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012232 done
12233 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12234 # environment variable.
12235 INST_LINGUAS=
12236 if test -n "$ALL_LINGUAS"; then
12237 for presentlang in $ALL_LINGUAS; do
12238 useit=no
12239 if test "%UNSET%" != "$LINGUAS"; then
12240 desiredlanguages="$LINGUAS"
12241 else
12242 desiredlanguages="$ALL_LINGUAS"
12243 fi
12244 for desiredlang in $desiredlanguages; do
12245 # Use the presentlang catalog if desiredlang is
12246 # a. equal to presentlang, or
12247 # b. a variant of presentlang (because in this case,
12248 # presentlang can be used as a fallback for messages
12249 # which are not translated in the desiredlang catalog).
12250 case "$desiredlang" in
12251 "$presentlang"*) useit=yes;;
12252 esac
12253 done
12254 if test $useit = yes; then
12255 INST_LINGUAS="$INST_LINGUAS $presentlang"
12256 fi
12257 done
12258 fi
12259 CATALOGS=
12260 if test -n "$INST_LINGUAS"; then
12261 for lang in $INST_LINGUAS; do
12262 CATALOGS="$CATALOGS $lang.gmo"
12263 done
12264 fi
12265 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012266 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 -040012267 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12268 if test -f "$f"; then
12269 case "$f" in
12270 *.orig | *.bak | *~) ;;
12271 *) cat "$f" >> "$ac_dir/Makefile" ;;
12272 esac
12273 fi
12274 done
12275 fi
12276 ;;
12277 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012278 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012279
Theodore Ts'oe1052142006-10-21 21:46:47 -040012280 esac
12281done # for ac_tag
12282
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012283
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012284as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012285_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012286ac_clean_files=$ac_clean_files_save
12287
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012288test $ac_write_fail = 0 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012289 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012290
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012291
12292# configure is writing to config.log, and then calls config.status.
12293# config.status does its own redirection, appending to config.log.
12294# Unfortunately, on DOS this fails, as config.log is still kept open
12295# by configure, so config.status won't be able to write to it; its
12296# output is simply discarded. So we exec the FD to /dev/null,
12297# effectively closing config.log, so it can be properly (re)opened and
12298# appended to by config.status. When coming back to configure, we
12299# need to make the FD available again.
12300if test "$no_create" != yes; then
12301 ac_cs_success=:
12302 ac_config_status_args=
12303 test "$silent" = yes &&
12304 ac_config_status_args="$ac_config_status_args --quiet"
12305 exec 5>/dev/null
12306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12307 exec 5>>config.log
12308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12309 # would make configure fail if this is the last instruction.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012310 $ac_cs_success || as_fn_exit $?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012311fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012312if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012314$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12315fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012316
Theodore Ts'oee683a12005-02-05 15:53:56 -050012317if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi