blob: edfed4e1ff76a8d3f4b48d5fed332a7fc63bb1ae [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'o61ef2472010-08-01 22:30:33 -04003# Generated by GNU Autoconf 2.65.
4#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Theodore Ts'oe1052142006-10-21 21:46:47 -04006# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050020 emulate sh
21 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040025 setopt NO_GLOB_SUBST
26else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050033fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040034
35
Scott James Remnant39fd3d42009-05-14 13:03:25 +010036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050060 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050081fi
82
Theodore Ts'oe1052142006-10-21 21:46:47 -040083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050092case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040093 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050095for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400101IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500102
Theodore Ts'oe1052142006-10-21 21:46:47 -0400103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500112 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400113fi
114
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400132
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
Theodore Ts'oe1052142006-10-21 21:46:47 -0400375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400393
Theodore Ts'oe1052142006-10-21 21:46:47 -0400394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100398$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419
420
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500430 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500435 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500438 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400439 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500440 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400441 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500442 { $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 -0500443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500448 # Exit status is that of the last command.
449 exit
450}
451
Theodore Ts'oe1052142006-10-21 21:46:47 -0400452ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500453case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400454-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500455 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400460 esac;;
461*)
462 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500463esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500464
465rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100470 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400471fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100485 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500486else
487 as_ln_s='cp -p'
488fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500491
492if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500493 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497fi
498
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400501else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100510 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400511 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500512 case $1 in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100513 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400514 esac;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400520as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500537#
538# Initializations.
539#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000540ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400541ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400543LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500548
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500555PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500556
557ac_unique_file="version.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400561#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# include <sys/types.h>
563#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400564#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565# include <sys/stat.h>
566#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400567#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500568# include <stdlib.h>
569# include <stddef.h>
570#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400571# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572# include <stdlib.h>
573# endif
574#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# include <memory.h>
578# endif
579# include <string.h>
580#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400581#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500582# include <strings.h>
583#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400584#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500585# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400586#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400587#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400588# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500589#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400590#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500591# include <unistd.h>
592#endif"
593
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400594ac_header_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100595ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400596LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100597BUILD_LDFLAGS
598BUILD_CFLAGS
599INTL_FLAGS
600DO_TEST_SUITE
601ET_DIR
602SS_DIR
603LDFLAG_STATIC
604root_sysconfdir
605root_libdir
606root_sbindir
607root_bindir
608root_prefix
609UNIX_CMT
610CYGWIN_CMT
611LINUX_CMT
612UNI_DIFF_OPTS
613SEM_INIT_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100614SOCKET_LIB
615SIZEOF_LONG_LONG
616SIZEOF_LONG
617SIZEOF_INT
618SIZEOF_SHORT
619BUILD_CC
620MAKEINFO
621STRIP
622AR
623LDCONFIG
624PERL
625SED
626AWK
627CHMOD
628RM
629CP
630MV
631LN_S
632LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400633ifNotGNUmake
634ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100635BINARY_TYPE
636POSUB
637LTLIBINTL
638LIBINTL
639INTLLIBS
640INTL_LIBTOOL_SUFFIX_PREFIX
641INTLOBJS
642GENCAT
643INSTOBJEXT
644DATADIRNAME
645CATOBJEXT
646USE_INCLUDED_LIBINTL
647BUILD_INCLUDED_LIBINTL
648INTLBISON
649LTLIBICONV
650LIBICONV
651HAVE_WPRINTF
652HAVE_SNPRINTF
653HAVE_ASPRINTF
654HAVE_POSIX_PRINTF
655GLIBC21
656ALLOCA
657RANLIB
658MSGMERGE
659XGETTEXT
660GMSGFMT
661MSGFMT
662USE_NLS
663MKINSTALLDIRS
664INSTALL_DATA
665INSTALL_SCRIPT
666INSTALL_PROGRAM
667SET_MAKE
668VERSION
669PACKAGE
670GETTEXT_PACKAGE
671UUIDD_CMT
672E2INITRD_MAN
673E2INITRD_PROG
674FSCK_MAN
675FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500676DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100677RESIZER_CMT
678IMAGER_CMT
679DEBUGFS_CMT
680BLKID_CMT
681DEPPROFILED_LIBBLKID
682PROFILED_LIBBLKID
683DEPSTATIC_LIBBLKID
684STATIC_LIBBLKID
685DEPLIBBLKID
686LIBBLKID
687UUID_CMT
688DEPPROFILED_LIBUUID
689PROFILED_LIBUUID
690DEPSTATIC_LIBUUID
691STATIC_LIBUUID
692DEPLIBUUID
693LIBUUID
694PKG_CONFIG
695TEST_IO_CMT
696PRIVATE_LIBS_CMT
697LDFLAG_DYNAMIC
698PROFILED_LIB_EXT
699STATIC_LIB_EXT
700LIB_EXT
701CHECKER_CMT
702PROFILE_CMT
703BSDLIB_CMT
704ELF_CMT
705HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400706Q
707E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400708LINK_BUILD_FLAGS
709LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100710MAINTAINER_CMT
711LINUX_INCLUDE
712EGREP
713GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100714CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400715RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500716DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
724host_os
725host_vendor
726host_cpu
727host
728build_os
729build_vendor
730build_cpu
731build
732E2FSPROGS_PKGVER
733E2FSPROGS_VERSION
734E2FSPROGS_DAY
735E2FSPROGS_MONTH
736E2FSPROGS_YEAR
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500767PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400775ac_subst_files='MCONFIG
776MAKEFILE_ELF
777MAKEFILE_BSDLIB
778MAKEFILE_PROFILE
779MAKEFILE_CHECKER
780MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400781ASM_TYPES_HEADER
782PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100783ac_user_opts='
784enable_option_checking
785with_diet_libc
786with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100787with_ccopts
788with_ldopts
789with_root_prefix
790enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400791enable_symlink_install
792enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400793enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100794enable_compression
795enable_htree
796enable_elf_shlibs
797enable_bsd_shlibs
798enable_profile
799enable_checker
800enable_jbd_debug
801enable_blkid_debug
802enable_testio_debug
803enable_libuuid
804enable_libblkid
805enable_debugfs
806enable_imager
807enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500808enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100809enable_fsck
810enable_e2initrd_helper
811enable_tls
812enable_uuidd
813enable_nls
814with_gnu_ld
815enable_rpath
816with_libiconv_prefix
817with_included_gettext
818with_libintl_prefix
819'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400820 ac_precious_vars='build_alias
821host_alias
822target_alias
823CC
824CFLAGS
825LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400826LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400827CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400828CPP
829PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400830
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000831
832# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500833ac_init_help=
834ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100835ac_unrecognized_opts=
836ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000837# The variables have the same names as the options, with
838# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500839cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000840exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000841no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000850verbose=
851x_includes=NONE
852x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400859# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000868includedir='${prefix}/include'
869oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400870docdir='${datarootdir}/doc/${PACKAGE}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000879
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000880ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400881ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000882for ac_option
883do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400886 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000887 ac_prev=
888 continue
889 fi
890
Theodore Ts'oe1052142006-10-21 21:46:47 -0400891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
Theodore Ts'oe1052142006-10-21 21:46:47 -0400898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000901
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500905 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000906
907 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500908 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500910 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000921
Theodore Ts'oe1052142006-10-21 21:46:47 -0400922 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000923 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500925 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000926
Theodore Ts'oe1052142006-10-21 21:46:47 -0400927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000934 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000936 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500938 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943"enable_$ac_useropt"
944"*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000959
960 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000962 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500964 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969"enable_$ac_useropt"
970"*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500983 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000995
996 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500997 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000998 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500999 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001000
Theodore Ts'oe1052142006-10-21 21:46:47 -04001001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001012 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001017 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001022 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001029 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001030
Theodore Ts'oe1052142006-10-21 21:46:47 -04001031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001036 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001037 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001041 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001046 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001047
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001053 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001067 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001068
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001072 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001079 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001086 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001103 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001104
Theodore Ts'oe1052142006-10-21 21:46:47 -04001105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001123 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001134 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001135
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001139 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001144 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001145
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001151 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001152
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001153 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001154 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001156 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001163
1164 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001166 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001168 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173"with_$ac_useropt"
1174"*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001179
1180 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001182 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001184 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"with_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001205 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001212 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001213
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001214 -*) as_fn_error "unrecognized option: \`$ac_option'
1215Try \`$0 --help' for more information."
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001216 ;;
1217
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001225 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001226 export $ac_envvar ;;
1227
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001228 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001229 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001234 ;;
1235
1236 esac
1237done
1238
1239if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001241 as_fn_error "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001242fi
1243
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001244if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001247 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250fi
1251
1252# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001253for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001257do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001258 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001266 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001269 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001270 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001271done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001272
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001273# There might be people who depend on the old broken behavior: `$host'
1274# used to hold the argument of --host etc.
1275# FIXME: To remove some day.
1276build=$build_alias
1277host=$host_alias
1278target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001279
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001280# FIXME: To remove some day.
1281if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001284 $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 -05001285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289fi
1290
1291ac_tool_prefix=
1292test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294test "$silent" = yes && exec 6>/dev/null
1295
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001296
Theodore Ts'oe1052142006-10-21 21:46:47 -04001297ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298ac_ls_di=`ls -di .` &&
1299ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001300 as_fn_error "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001301test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001302 as_fn_error "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001303
1304
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001305# Find the source files, if location was not specified.
1306if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001308 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001332 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001333 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001334 srcdir=..
1335 fi
1336else
1337 ac_srcdir_defaulted=no
1338fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001339if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001341 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001342fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001346 pwd)`
1347# When building in place, set srcdir=.
1348if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350fi
1351# Remove unnecessary trailing slashes from srcdir.
1352# Double slashes in file names in object file debugging info
1353# mess up M-x gdb in Emacs.
1354case $srcdir in
1355*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356esac
1357for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001363
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001364#
1365# Report the --help message.
1366#
1367if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371\`configure' configures this package to adapt to many kinds of systems.
1372
1373Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378Defaults for the options are specified in brackets.
1379
1380Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001391Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001393 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001395 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001396
1397By default, \`make install' will install all the files in
1398\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400for instance \`--prefix=\$HOME'.
1401
1402For better control, use the options below.
1403
1404Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001424_ACEOF
1425
1426 cat <<\_ACEOF
1427
1428System types:
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431_ACEOF
1432fi
1433
1434if test -n "$ac_init_help"; then
1435
1436 cat <<\_ACEOF
1437
1438Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001439 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001442 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001443 --enable-symlink-install use symlinks when installing instead of hard links
1444 --enable-symlink-build use symlinks while building instead of hard links
1445 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001446 --enable-compression enable EXPERIMENTAL compression support
1447 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001448 --enable-elf-shlibs select ELF shared libraries
1449 --enable-bsd-shlibs select BSD shared libraries
1450 --enable-profile build profiling libraries
1451 --enable-checker build checker libraries
1452 --enable-jbd-debug enable journal debugging
1453 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001454 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001455 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001456 --disable-libblkid do not build private blkid library
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001457 --disable-debugfs disable support of debugfs program
1458 --disable-imager disable support of e2image program
1459 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001460 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001461 --enable-fsck build fsck wrapper program
1462 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001463 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001464 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001465 --disable-nls do not use Native Language Support
1466 --disable-rpath do not hardcode runtime library paths
1467
1468Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001471 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001472 --with-cc no longer supported, use CC= instead
1473 --with-ccopts no longer supported, use CFLAGS= instead
1474 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001475 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1476 --with-gnu-ld assume the C compiler uses GNU ld default=no
1477 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1478 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1479 --with-included-gettext use the GNU gettext library included here
1480 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1481 --without-libintl-prefix don't search for libintl in includedir and libdir
1482
1483Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001488 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001490 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001491 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001492 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001493
1494Use these variables to override the choices made by `configure' or to help
1495it to find libraries and programs with nonstandard names/locations.
1496
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001497Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001498_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001499ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001508 ac_builddir=.
1509
Theodore Ts'oe1052142006-10-21 21:46:47 -04001510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001514 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001525
1526case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001527 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001528 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001532 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001539esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001541
Theodore Ts'oe1052142006-10-21 21:46:47 -04001542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001550 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001554 done
1555fi
1556
Theodore Ts'oe1052142006-10-21 21:46:47 -04001557test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001558if $ac_init_version; then
1559 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001560configure
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001561generated by GNU Autoconf 2.65
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001562
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001563Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001564This configure script is free software; the Free Software Foundation
1565gives unlimited permission to copy, distribute and modify it.
1566_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001567 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001568fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001569
1570## ------------------------ ##
1571## Autoconf initialization. ##
1572## ------------------------ ##
1573
1574# ac_fn_c_try_compile LINENO
1575# --------------------------
1576# Try to compile conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_compile ()
1578{
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606fi
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001608 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001609
1610} # ac_fn_c_try_compile
1611
1612# ac_fn_c_try_link LINENO
1613# -----------------------
1614# Try to link conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_link ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext conftest$ac_exeext
1619 if { { ac_try="$ac_link"
1620case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest$ac_exeext && {
1638 test "$cross_compiling" = yes ||
1639 $as_test_x conftest$ac_exeext
1640 }; then :
1641 ac_retval=0
1642else
1643 $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647fi
1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650 # interfere with the next link command; also delete a directory that is
1651 # left behind by Apple's compiler. We do this before executing the actions.
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001654 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001655
1656} # ac_fn_c_try_link
1657
1658# ac_fn_c_try_cpp LINENO
1659# ----------------------
1660# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661ac_fn_c_try_cpp ()
1662{
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_cpp conftest.$ac_ext"
1665case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } >/dev/null && {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 }; then :
1683 ac_retval=0
1684else
1685 $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689fi
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001691 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001692
1693} # ac_fn_c_try_cpp
1694
1695# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1696# -------------------------------------------------------
1697# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1698# the include files in INCLUDES and setting the cache variable VAR
1699# accordingly.
1700ac_fn_c_check_header_mongrel ()
1701{
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705$as_echo_n "checking for $2... " >&6; }
1706if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1707 $as_echo_n "(cached) " >&6
1708fi
1709eval ac_res=\$$3
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711$as_echo "$ac_res" >&6; }
1712else
1713 # Is the header compilable?
1714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1715$as_echo_n "checking $2 usability... " >&6; }
1716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717/* end confdefs.h. */
1718$4
1719#include <$2>
1720_ACEOF
1721if ac_fn_c_try_compile "$LINENO"; then :
1722 ac_header_compiler=yes
1723else
1724 ac_header_compiler=no
1725fi
1726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1728$as_echo "$ac_header_compiler" >&6; }
1729
1730# Is the header present?
1731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1732$as_echo_n "checking $2 presence... " >&6; }
1733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h. */
1735#include <$2>
1736_ACEOF
1737if ac_fn_c_try_cpp "$LINENO"; then :
1738 ac_header_preproc=yes
1739else
1740 ac_header_preproc=no
1741fi
1742rm -f conftest.err conftest.$ac_ext
1743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1744$as_echo "$ac_header_preproc" >&6; }
1745
1746# So? What about this header?
1747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1748 yes:no: )
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1750$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1753 ;;
1754 no:yes:* )
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1756$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1758$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1760$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1762$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1765 ;;
1766esac
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 $as_echo_n "(cached) " >&6
1771else
1772 eval "$3=\$ac_header_compiler"
1773fi
1774eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776$as_echo "$ac_res" >&6; }
1777fi
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779
1780} # ac_fn_c_check_header_mongrel
1781
1782# ac_fn_c_try_run LINENO
1783# ----------------------
1784# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785# that executables *can* be run.
1786ac_fn_c_try_run ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_link"
1790case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800 { { case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_try") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; }; }; then :
1810 ac_retval=0
1811else
1812 $as_echo "$as_me: program exited with status $ac_status" >&5
1813 $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=$ac_status
1817fi
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001820 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001821
1822} # ac_fn_c_try_run
1823
1824# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1825# -------------------------------------------------------
1826# Tests whether HEADER exists and can be compiled using the include files in
1827# INCLUDES, setting the cache variable VAR accordingly.
1828ac_fn_c_check_header_compile ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832$as_echo_n "checking for $2... " >&6; }
1833if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834 $as_echo_n "(cached) " >&6
1835else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h. */
1838$4
1839#include <$2>
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"; then :
1842 eval "$3=yes"
1843else
1844 eval "$3=no"
1845fi
1846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847fi
1848eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850$as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852
1853} # ac_fn_c_check_header_compile
1854
1855# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1856# -------------------------------------------
1857# Tests whether TYPE exists after having included INCLUDES, setting cache
1858# variable VAR accordingly.
1859ac_fn_c_check_type ()
1860{
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
1864if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 $as_echo_n "(cached) " >&6
1866else
1867 eval "$3=no"
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h. */
1870$4
1871int
1872main ()
1873{
1874if (sizeof ($2))
1875 return 0;
1876 ;
1877 return 0;
1878}
1879_ACEOF
1880if ac_fn_c_try_compile "$LINENO"; then :
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882/* end confdefs.h. */
1883$4
1884int
1885main ()
1886{
1887if (sizeof (($2)))
1888 return 0;
1889 ;
1890 return 0;
1891}
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894
1895else
1896 eval "$3=yes"
1897fi
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899fi
1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901fi
1902eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904$as_echo "$ac_res" >&6; }
1905 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906
1907} # ac_fn_c_check_type
1908
1909# ac_fn_c_check_func LINENO FUNC VAR
1910# ----------------------------------
1911# Tests whether FUNC exists, setting the cache variable VAR accordingly
1912ac_fn_c_check_func ()
1913{
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916$as_echo_n "checking for $2... " >&6; }
1917if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1919else
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h. */
1922/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1924#define $2 innocuous_$2
1925
1926/* System header to define __stub macros and hopefully few prototypes,
1927 which can conflict with char $2 (); below.
1928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1929 <limits.h> exists even on freestanding compilers. */
1930
1931#ifdef __STDC__
1932# include <limits.h>
1933#else
1934# include <assert.h>
1935#endif
1936
1937#undef $2
1938
1939/* Override any GCC internal prototype to avoid an error.
1940 Use char because int might match the return type of a GCC
1941 builtin and then its argument prototype would still apply. */
1942#ifdef __cplusplus
1943extern "C"
1944#endif
1945char $2 ();
1946/* The GNU C library defines this for functions which it implements
1947 to always fail with ENOSYS. Some functions are actually named
1948 something starting with __ and the normal name is an alias. */
1949#if defined __stub_$2 || defined __stub___$2
1950choke me
1951#endif
1952
1953int
1954main ()
1955{
1956return $2 ();
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961if ac_fn_c_try_link "$LINENO"; then :
1962 eval "$3=yes"
1963else
1964 eval "$3=no"
1965fi
1966rm -f core conftest.err conftest.$ac_objext \
1967 conftest$ac_exeext conftest.$ac_ext
1968fi
1969eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971$as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973
1974} # ac_fn_c_check_func
1975
1976# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1977# --------------------------------------------
1978# Tries to find the compile-time value of EXPR in a program that includes
1979# INCLUDES, setting VAR accordingly. Returns whether the value could be
1980# computed
1981ac_fn_c_compute_int ()
1982{
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if test "$cross_compiling" = yes; then
1985 # Depending upon the size, compute the lo and hi bounds.
1986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h. */
1988$4
1989int
1990main ()
1991{
1992static int test_array [1 - 2 * !(($2) >= 0)];
1993test_array [0] = 0
1994
1995 ;
1996 return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000 ac_lo=0 ac_mid=0
2001 while :; do
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004$4
2005int
2006main ()
2007{
2008static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2009test_array [0] = 0
2010
2011 ;
2012 return 0;
2013}
2014_ACEOF
2015if ac_fn_c_try_compile "$LINENO"; then :
2016 ac_hi=$ac_mid; break
2017else
2018 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2019 if test $ac_lo -le $ac_mid; then
2020 ac_lo= ac_hi=
2021 break
2022 fi
2023 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2024fi
2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 done
2027else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h. */
2030$4
2031int
2032main ()
2033{
2034static int test_array [1 - 2 * !(($2) < 0)];
2035test_array [0] = 0
2036
2037 ;
2038 return 0;
2039}
2040_ACEOF
2041if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_hi=-1 ac_mid=-1
2043 while :; do
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h. */
2046$4
2047int
2048main ()
2049{
2050static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2051test_array [0] = 0
2052
2053 ;
2054 return 0;
2055}
2056_ACEOF
2057if ac_fn_c_try_compile "$LINENO"; then :
2058 ac_lo=$ac_mid; break
2059else
2060 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2061 if test $ac_mid -le $ac_hi; then
2062 ac_lo= ac_hi=
2063 break
2064 fi
2065 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2066fi
2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 done
2069else
2070 ac_lo= ac_hi=
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075# Binary search between lo and hi bounds.
2076while test "x$ac_lo" != "x$ac_hi"; do
2077 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h. */
2080$4
2081int
2082main ()
2083{
2084static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085test_array [0] = 0
2086
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_hi=$ac_mid
2093else
2094 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097done
2098case $ac_lo in #((
2099?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2100'') ac_retval=1 ;;
2101esac
2102 else
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h. */
2105$4
2106static long int longval () { return $2; }
2107static unsigned long int ulongval () { return $2; }
2108#include <stdio.h>
2109#include <stdlib.h>
2110int
2111main ()
2112{
2113
2114 FILE *f = fopen ("conftest.val", "w");
2115 if (! f)
2116 return 1;
2117 if (($2) < 0)
2118 {
2119 long int i = longval ();
2120 if (i != ($2))
2121 return 1;
2122 fprintf (f, "%ld", i);
2123 }
2124 else
2125 {
2126 unsigned long int i = ulongval ();
2127 if (i != ($2))
2128 return 1;
2129 fprintf (f, "%lu", i);
2130 }
2131 /* Do not output a trailing newline, as this causes \r\n confusion
2132 on some platforms. */
2133 return ferror (f) || fclose (f) != 0;
2134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_run "$LINENO"; then :
2140 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2141else
2142 ac_retval=1
2143fi
2144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2145 conftest.$ac_objext conftest.beam conftest.$ac_ext
2146rm -f conftest.val
2147
2148 fi
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002150 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002151
2152} # ac_fn_c_compute_int
2153
2154# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2155# ----------------------------------------------------
2156# Tries to find if the field MEMBER exists in type AGGR, after including
2157# INCLUDES, setting cache variable VAR accordingly.
2158ac_fn_c_check_member ()
2159{
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2162$as_echo_n "checking for $2.$3... " >&6; }
2163if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2164 $as_echo_n "(cached) " >&6
2165else
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167/* end confdefs.h. */
2168$5
2169int
2170main ()
2171{
2172static $2 ac_aggr;
2173if (ac_aggr.$3)
2174return 0;
2175 ;
2176 return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"; then :
2180 eval "$4=yes"
2181else
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h. */
2184$5
2185int
2186main ()
2187{
2188static $2 ac_aggr;
2189if (sizeof ac_aggr.$3)
2190return 0;
2191 ;
2192 return 0;
2193}
2194_ACEOF
2195if ac_fn_c_try_compile "$LINENO"; then :
2196 eval "$4=yes"
2197else
2198 eval "$4=no"
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203fi
2204eval ac_res=\$$4
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2206$as_echo "$ac_res" >&6; }
2207 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2208
2209} # ac_fn_c_check_member
2210
2211# ac_fn_c_check_decl LINENO SYMBOL VAR
2212# ------------------------------------
2213# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2214ac_fn_c_check_decl ()
2215{
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2218$as_echo_n "checking whether $2 is declared... " >&6; }
2219if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2220 $as_echo_n "(cached) " >&6
2221else
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223/* end confdefs.h. */
2224$4
2225int
2226main ()
2227{
2228#ifndef $2
2229 (void) $2;
2230#endif
2231
2232 ;
2233 return 0;
2234}
2235_ACEOF
2236if ac_fn_c_try_compile "$LINENO"; then :
2237 eval "$3=yes"
2238else
2239 eval "$3=no"
2240fi
2241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242fi
2243eval ac_res=\$$3
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245$as_echo "$ac_res" >&6; }
2246 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2247
2248} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002249cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002250This file contains any messages produced by compilers while
2251running configure, to aid debugging if configure makes a mistake.
2252
2253It was created by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002254generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002255
2256 $ $0 $@
2257
2258_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002259exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002260{
2261cat <<_ASUNAME
2262## --------- ##
2263## Platform. ##
2264## --------- ##
2265
2266hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271
2272/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2274
2275/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2276/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2277/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002278/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002279/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2280/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2281/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2282
2283_ASUNAME
2284
2285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH
2287do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002290 $as_echo "PATH: $as_dir"
2291 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002292IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002293
2294} >&5
2295
2296cat >&5 <<_ACEOF
2297
2298
2299## ----------- ##
2300## Core tests. ##
2301## ----------- ##
2302
2303_ACEOF
2304
2305
2306# Keep a trace of the command line.
2307# Strip out --no-create and --no-recursion so they do not pile up.
2308# Strip out --silent because we don't want to record it for future runs.
2309# Also quote any args containing shell meta-characters.
2310# Make two passes to allow for proper duplicate-argument suppression.
2311ac_configure_args=
2312ac_configure_args0=
2313ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002314ac_must_keep_next=false
2315for ac_pass in 1 2
2316do
2317 for ac_arg
2318 do
2319 case $ac_arg in
2320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322 | -silent | --silent | --silen | --sile | --sil)
2323 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002324 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002325 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002326 esac
2327 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002328 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002329 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002330 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002331 if test $ac_must_keep_next = true; then
2332 ac_must_keep_next=false # Got value, back to normal.
2333 else
2334 case $ac_arg in
2335 *=* | --config-cache | -C | -disable-* | --disable-* \
2336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338 | -with-* | --with-* | -without-* | --without-* | --x)
2339 case "$ac_configure_args0 " in
2340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2341 esac
2342 ;;
2343 -* ) ac_must_keep_next=true ;;
2344 esac
2345 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002346 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002347 ;;
2348 esac
2349 done
2350done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002351{ ac_configure_args0=; unset ac_configure_args0;}
2352{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002353
2354# When interrupted or exit'd, cleanup temporary files, and complete
2355# config.log. We remove comments because anyway the quotes in there
2356# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002357# WARNING: Use '\'' to represent an apostrophe within the trap.
2358# 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 -05002359trap 'exit_status=$?
2360 # Save into config.log some information that might help in debugging.
2361 {
2362 echo
2363
2364 cat <<\_ASBOX
2365## ---------------- ##
2366## Cache variables. ##
2367## ---------------- ##
2368_ASBOX
2369 echo
2370 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002371(
2372 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2373 eval ac_val=\$$ac_var
2374 case $ac_val in #(
2375 *${as_nl}*)
2376 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002377 *_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 +01002378$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002379 esac
2380 case $ac_var in #(
2381 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002382 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002383 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002384 esac ;;
2385 esac
2386 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002387 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002388 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2389 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002390 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002391 "s/'\''/'\''\\\\'\'''\''/g;
2392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2393 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002394 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002396 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002397 esac |
2398 sort
2399)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002400 echo
2401
2402 cat <<\_ASBOX
2403## ----------------- ##
2404## Output variables. ##
2405## ----------------- ##
2406_ASBOX
2407 echo
2408 for ac_var in $ac_subst_vars
2409 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002410 eval ac_val=\$$ac_var
2411 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002412 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002413 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002414 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002415 done | sort
2416 echo
2417
2418 if test -n "$ac_subst_files"; then
2419 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04002420## ------------------- ##
2421## File substitutions. ##
2422## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002423_ASBOX
2424 echo
2425 for ac_var in $ac_subst_files
2426 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002427 eval ac_val=\$$ac_var
2428 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002430 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002431 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002432 done | sort
2433 echo
2434 fi
2435
2436 if test -s confdefs.h; then
2437 cat <<\_ASBOX
2438## ----------- ##
2439## confdefs.h. ##
2440## ----------- ##
2441_ASBOX
2442 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002443 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002444 echo
2445 fi
2446 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002447 $as_echo "$as_me: caught signal $ac_signal"
2448 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002449 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002450 rm -f core *.core core.conftest.* &&
2451 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002452 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002453' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002454for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002455 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002456done
2457ac_signal=0
2458
2459# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002460rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002461
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002462$as_echo "/* confdefs.h */" > confdefs.h
2463
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002464# Predefined preprocessor variables.
2465
2466cat >>confdefs.h <<_ACEOF
2467#define PACKAGE_NAME "$PACKAGE_NAME"
2468_ACEOF
2469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002470cat >>confdefs.h <<_ACEOF
2471#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472_ACEOF
2473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_VERSION "$PACKAGE_VERSION"
2476_ACEOF
2477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_STRING "$PACKAGE_STRING"
2480_ACEOF
2481
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484_ACEOF
2485
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_URL "$PACKAGE_URL"
2488_ACEOF
2489
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002490
2491# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002492# Prefer an explicitly selected file to automatically selected ones.
2493ac_site_file1=NONE
2494ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002495if test -n "$CONFIG_SITE"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002496 ac_site_file1=$CONFIG_SITE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002497elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002498 ac_site_file1=$prefix/share/config.site
2499 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002500else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002501 ac_site_file1=$ac_default_prefix/share/config.site
2502 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002503fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002504for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002505do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002506 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002507 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002509$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002511 . "$ac_site_file"
2512 fi
2513done
2514
2515if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002516 # Some versions of bash will fail to source /dev/null (special files
2517 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2518 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002520$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002521 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002522 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2523 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002524 esac
2525 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002526else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002527 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002528$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002529 >$cache_file
2530fi
2531
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002532as_fn_append ac_header_list " stdlib.h"
2533as_fn_append ac_header_list " unistd.h"
2534as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002535# Check that the precious variables saved in the cache have kept the same
2536# value.
2537ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002538for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002539 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2540 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002541 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2542 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 case $ac_old_set,$ac_new_set in
2544 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002545 { $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 +01002546$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 -05002547 ac_cache_corrupted=: ;;
2548 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002549 { $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 +01002550$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002551 ac_cache_corrupted=: ;;
2552 ,);;
2553 *)
2554 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002555 # differences in whitespace do not lead to failure.
2556 ac_old_val_w=`echo x $ac_old_val`
2557 ac_new_val_w=`echo x $ac_new_val`
2558 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002559 { $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 +01002560$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2561 ac_cache_corrupted=:
2562 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002563 { $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 +01002564$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2565 eval $ac_var=\$ac_old_val
2566 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002567 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002568$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002569 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002570$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002571 fi;;
2572 esac
2573 # Pass precious variables to config.status.
2574 if test "$ac_new_set" = set; then
2575 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002576 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002577 *) ac_arg=$ac_var=$ac_new_val ;;
2578 esac
2579 case " $ac_configure_args " in
2580 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002581 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002582 esac
2583 fi
2584done
2585if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002588 { $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 +01002589$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002590 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002591fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002592## -------------------- ##
2593## Main body of script. ##
2594## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002595
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002596ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002597ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002601
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002602
2603
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002604ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002605for ac_dir in config "$srcdir"/config; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002606 for ac_t in install-sh install.sh shtool; do
2607 if test -f "$ac_dir/$ac_t"; then
2608 ac_aux_dir=$ac_dir
2609 ac_install_sh="$ac_aux_dir/$ac_t -c"
2610 break 2
2611 fi
2612 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002613done
2614if test -z "$ac_aux_dir"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002615 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 +00002616fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002617
2618# These three variables are undocumented and unsupported,
2619# and are intended to be withdrawn in a future Autoconf release.
2620# They can cause serious problems if a builder's source tree is in a directory
2621# whose full name contains unusual characters.
2622ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2623ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2624ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2625
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002626
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002627MCONFIG=./MCONFIG
2628
Theodore Ts'o74becf31997-04-26 14:37:06 +00002629BINARY_TYPE=bin
2630E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2631 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2632DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2633 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002634E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002635MONTH=`echo $DATE | awk -F- '{print $2}'`
2636YEAR=`echo $DATE | awk -F- '{print $3}'`
2637
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002638if expr $YEAR ">" 1900 > /dev/null ; then
2639 E2FSPROGS_YEAR=$YEAR
2640elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002641 E2FSPROGS_YEAR=19$YEAR
2642else
2643 E2FSPROGS_YEAR=20$YEAR
2644fi
2645
2646case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002647Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2648Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2649Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2650Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2651May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2652Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2653Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2654Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2655Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2656Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2657Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2658Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002659*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002660$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002661esac
2662
Andreas Dilger927566a2006-11-12 19:41:25 -05002663base_ver=`echo $E2FSPROGS_VERSION | \
2664 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002665
2666date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2667
2668case $E2FSPROGS_VERSION in
2669*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002670 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002671 ;;
2672*)
2673 E2FSPROGS_PKGVER="$base_ver"
2674 ;;
2675esac
2676
2677unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002678{ $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 +01002679$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002681$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002682
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002683
2684
2685
Andreas Dilger927566a2006-11-12 19:41:25 -05002686
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002687# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002688$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002689 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002690
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002692$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002693if test "${ac_cv_build+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002694 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002695else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002696 ac_build_alias=$build_alias
2697test "x$ac_build_alias" = x &&
2698 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2699test "x$ac_build_alias" = x &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002700 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002701ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002702 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002703
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002704fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002706$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002707case $ac_cv_build in
2708*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002709*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002710esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002711build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002712ac_save_IFS=$IFS; IFS='-'
2713set x $ac_cv_build
2714shift
2715build_cpu=$1
2716build_vendor=$2
2717shift; shift
2718# Remember, the first character of IFS is used to create $*,
2719# except with old shells:
2720build_os=$*
2721IFS=$ac_save_IFS
2722case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002723
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002724
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002726$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002727if test "${ac_cv_host+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002728 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002729else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002730 if test "x$host_alias" = x; then
2731 ac_cv_host=$ac_cv_build
2732else
2733 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002734 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002735fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002736
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002737fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002739$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002740case $ac_cv_host in
2741*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002742*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002743esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002744host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002745ac_save_IFS=$IFS; IFS='-'
2746set x $ac_cv_host
2747shift
2748host_cpu=$1
2749host_vendor=$2
2750shift; shift
2751# Remember, the first character of IFS is used to create $*,
2752# except with old shells:
2753host_os=$*
2754IFS=$ac_save_IFS
2755case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002756
2757
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002758DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002759ac_ext=c
2760ac_cpp='$CPP $CPPFLAGS'
2761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764if test -n "$ac_tool_prefix"; then
2765 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2766set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002768$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002769if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002770 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002771else
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002780 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002781 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 -05002782 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002784 break 2
2785 fi
2786done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002787 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002788IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002789
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002790fi
2791fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002792CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002793if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002795$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002796else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002798$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002799fi
2800
Theodore Ts'oe1052142006-10-21 21:46:47 -04002801
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002802fi
2803if test -z "$ac_cv_prog_CC"; then
2804 ac_ct_CC=$CC
2805 # Extract the first word of "gcc", so it can be a program name with args.
2806set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002808$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002809if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002810 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002811else
2812 if test -n "$ac_ct_CC"; then
2813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814else
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002820 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002821 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 -05002822 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002824 break 2
2825 fi
2826done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002827 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002828IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002829
2830fi
2831fi
2832ac_ct_CC=$ac_cv_prog_ac_ct_CC
2833if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002835$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002836else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002838$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002839fi
2840
Theodore Ts'oe1052142006-10-21 21:46:47 -04002841 if test "x$ac_ct_CC" = x; then
2842 CC=""
2843 else
2844 case $cross_compiling:$ac_tool_warned in
2845yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002846{ $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 +01002847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002848ac_tool_warned=yes ;;
2849esac
2850 CC=$ac_ct_CC
2851 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002852else
2853 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002854fi
2855
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002856if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002857 if test -n "$ac_tool_prefix"; then
2858 # 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 -05002859set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002861$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002862if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002863 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002864else
2865 if test -n "$CC"; then
2866 ac_cv_prog_CC="$CC" # Let the user override the test.
2867else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002873 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002874 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 -05002875 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002877 break 2
2878 fi
2879done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002880 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002881IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002882
2883fi
2884fi
2885CC=$ac_cv_prog_CC
2886if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002888$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002889else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002891$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002892fi
2893
Theodore Ts'oe1052142006-10-21 21:46:47 -04002894
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002895 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002896fi
2897if test -z "$CC"; then
2898 # Extract the first word of "cc", so it can be a program name with args.
2899set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002901$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002902if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002903 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002904else
2905 if test -n "$CC"; then
2906 ac_cv_prog_CC="$CC" # Let the user override the test.
2907else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002908 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002914 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002915 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 -05002916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2917 ac_prog_rejected=yes
2918 continue
2919 fi
2920 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002922 break 2
2923 fi
2924done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002925 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002926IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002927
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002928if test $ac_prog_rejected = yes; then
2929 # We found a bogon in the path, so make sure we never use it.
2930 set dummy $ac_cv_prog_CC
2931 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002932 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002933 # We chose a different compiler from the bogus one.
2934 # However, it has the same basename, so the bogon will be chosen
2935 # first if we set CC to just the basename; use the full file name.
2936 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002937 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002938 fi
2939fi
2940fi
2941fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002943if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002945$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002946else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002948$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002949fi
2950
Theodore Ts'oe1052142006-10-21 21:46:47 -04002951
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002952fi
2953if test -z "$CC"; then
2954 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002955 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002956 do
2957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2958set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002960$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002961if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002962 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002963else
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
2966else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968for as_dir in $PATH
2969do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002972 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002973 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 -05002974 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002976 break 2
2977 fi
2978done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002979 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002980IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002981
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002982fi
2983fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002984CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002985if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002987$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002988else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002990$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002991fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002992
Theodore Ts'oe1052142006-10-21 21:46:47 -04002993
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002994 test -n "$CC" && break
2995 done
2996fi
2997if test -z "$CC"; then
2998 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002999 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003000do
3001 # Extract the first word of "$ac_prog", so it can be a program name with args.
3002set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003004$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003005if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003006 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003007else
3008 if test -n "$ac_ct_CC"; then
3009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010else
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003016 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003017 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 -05003018 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003020 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003021 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003022done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003023 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003024IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003025
3026fi
3027fi
3028ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003031$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003032else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003034$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003035fi
3036
Theodore Ts'oe1052142006-10-21 21:46:47 -04003037
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038 test -n "$ac_ct_CC" && break
3039done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003040
Theodore Ts'oe1052142006-10-21 21:46:47 -04003041 if test "x$ac_ct_CC" = x; then
3042 CC=""
3043 else
3044 case $cross_compiling:$ac_tool_warned in
3045yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003046{ $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 +01003047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003048ac_tool_warned=yes ;;
3049esac
3050 CC=$ac_ct_CC
3051 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003052fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003053
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003054fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003055
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003056
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003057test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003059as_fn_error "no acceptable C compiler found in \$PATH
3060See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003061
3062# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003063$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003064set X $ac_compile
3065ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003066for ac_option in --version -v -V -qversion; do
3067 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003068case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073$as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003075 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003076 if test -s conftest.err; then
3077 sed '10a\
3078... rest of stderr output deleted ...
3079 10q' conftest.err >conftest.er1
3080 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003081 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003082 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }
3085done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003086
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003088/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003089
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003090int
3091main ()
3092{
3093
3094 ;
3095 return 0;
3096}
3097_ACEOF
3098ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003099ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003100# Try to create an executable without -o first, disregard a.out.
3101# It will help us diagnose broken compilers, and finding out an intuition
3102# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3104$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003105ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3106
3107# The possible output files:
3108ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3109
Theodore Ts'oe1052142006-10-21 21:46:47 -04003110ac_rmfiles=
3111for ac_file in $ac_files
3112do
3113 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003115 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3116 esac
3117done
3118rm -f $ac_rmfiles
3119
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003120if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003121case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003127 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003128 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003131 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3132# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3133# in a Makefile. We should not override ac_cv_exeext if it was cached,
3134# so that the user can short-circuit this test for compilers unknown to
3135# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003136for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003137do
3138 test -f "$ac_file" || continue
3139 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003141 ;;
3142 [ab].out )
3143 # We found the default executable, but exeext='' is most
3144 # certainly right.
3145 break;;
3146 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003147 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003148 then :; else
3149 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 fi
3151 # We set ac_cv_exeext here because the later test for it is not
3152 # safe: cross compilers may not add the suffix if given an `-o'
3153 # argument, so we may need to know it at that point already.
3154 # Even if this section looks crufty: it has the advantage of
3155 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003156 break;;
3157 * )
3158 break;;
3159 esac
3160done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003161test "$ac_cv_exeext" = no && ac_cv_exeext=
3162
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003163else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003164 ac_file=''
3165fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003166if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168$as_echo "no" >&6; }
3169$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003170sed 's/^/| /' conftest.$ac_ext >&5
3171
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003172{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003174{ as_fn_set_status 77
3175as_fn_error "C compiler cannot create executables
3176See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003177else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003180fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3182$as_echo_n "checking for C compiler default output file name... " >&6; }
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003185ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003186
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003187rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003188ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003190$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003191if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003192case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003198 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003199 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003202 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3203# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3204# work properly (i.e., refer to `conftest.exe'), while it won't with
3205# `rm'.
3206for ac_file in conftest.exe conftest conftest.*; do
3207 test -f "$ac_file" || continue
3208 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003211 break;;
3212 * ) break;;
3213 esac
3214done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003215else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003218as_fn_error "cannot compute suffix of executables: cannot compile and link
3219See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003220fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003221rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003223$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003224
3225rm -f conftest.$ac_ext
3226EXEEXT=$ac_cv_exeext
3227ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h. */
3230#include <stdio.h>
3231int
3232main ()
3233{
3234FILE *f = fopen ("conftest.out", "w");
3235 return ferror (f) || fclose (f) != 0;
3236
3237 ;
3238 return 0;
3239}
3240_ACEOF
3241ac_clean_files="$ac_clean_files conftest.out"
3242# Check that the compiler produces executables we can run. If not, either
3243# the compiler is broken, or we cross compile.
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3245$as_echo_n "checking whether we are cross compiling... " >&6; }
3246if test "$cross_compiling" != yes; then
3247 { { ac_try="$ac_link"
3248case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251esac
3252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253$as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_link") 2>&5
3255 ac_status=$?
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }
3258 if { ac_try='./conftest$ac_cv_exeext'
3259 { { case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262esac
3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264$as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_try") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; }; then
3269 cross_compiling=no
3270 else
3271 if test "$cross_compiling" = maybe; then
3272 cross_compiling=yes
3273 else
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276as_fn_error "cannot run C compiled programs.
3277If you meant to cross compile, use \`--host'.
3278See \`config.log' for more details." "$LINENO" 5; }
3279 fi
3280 fi
3281fi
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283$as_echo "$cross_compiling" >&6; }
3284
3285rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003288$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003289if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003290 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003291else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003293/* end confdefs.h. */
3294
3295int
3296main ()
3297{
3298
3299 ;
3300 return 0;
3301}
3302_ACEOF
3303rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003304if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003305case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003311 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003312 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003315 for ac_file in conftest.o conftest.obj conftest.*; do
3316 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003317 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3320 break;;
3321 esac
3322done
3323else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003324 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003325sed 's/^/| /' conftest.$ac_ext >&5
3326
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003327{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003329as_fn_error "cannot compute suffix of object files: cannot compile
3330See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003331fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003332rm -f conftest.$ac_cv_objext conftest.$ac_ext
3333fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003335$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003336OBJEXT=$ac_cv_objext
3337ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003338{ $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 +01003339$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003340if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003341 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003342else
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#ifndef __GNUC__
3350 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003351#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003352
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003353 ;
3354 return 0;
3355}
3356_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003357if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003358 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003359else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003360 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003361fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003363ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003364
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003365fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003367$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3368if test $ac_compiler_gnu = yes; then
3369 GCC=yes
3370else
3371 GCC=
3372fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003373ac_test_CFLAGS=${CFLAGS+set}
3374ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003376$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003377if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003378 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003379else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003380 ac_save_c_werror_flag=$ac_c_werror_flag
3381 ac_c_werror_flag=yes
3382 ac_cv_prog_cc_g=no
3383 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003385/* end confdefs.h. */
3386
3387int
3388main ()
3389{
3390
3391 ;
3392 return 0;
3393}
3394_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003395if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003396 ac_cv_prog_cc_g=yes
3397else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003398 CFLAGS=""
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003400/* end confdefs.h. */
3401
3402int
3403main ()
3404{
3405
3406 ;
3407 return 0;
3408}
3409_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003410if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003411
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003412else
3413 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003414 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003416/* end confdefs.h. */
3417
3418int
3419main ()
3420{
3421
3422 ;
3423 return 0;
3424}
3425_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003426if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003427 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003428fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003430fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3435fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003437$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003438if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003439 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003440elif test $ac_cv_prog_cc_g = yes; then
3441 if test "$GCC" = yes; then
3442 CFLAGS="-g -O2"
3443 else
3444 CFLAGS="-g"
3445 fi
3446else
3447 if test "$GCC" = yes; then
3448 CFLAGS="-O2"
3449 else
3450 CFLAGS=
3451 fi
3452fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003454$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003455if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003456 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003457else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003458 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003459ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003461/* end confdefs.h. */
3462#include <stdarg.h>
3463#include <stdio.h>
3464#include <sys/types.h>
3465#include <sys/stat.h>
3466/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3467struct buf { int x; };
3468FILE * (*rcsopen) (struct buf *, struct stat *, int);
3469static char *e (p, i)
3470 char **p;
3471 int i;
3472{
3473 return p[i];
3474}
3475static char *f (char * (*g) (char **, int), char **p, ...)
3476{
3477 char *s;
3478 va_list v;
3479 va_start (v,p);
3480 s = g (p, va_arg (v,int));
3481 va_end (v);
3482 return s;
3483}
3484
3485/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3486 function prototypes and stuff, but not '\xHH' hex character constants.
3487 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003488 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3490 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003491 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003492int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3493
Theodore Ts'oe1052142006-10-21 21:46:47 -04003494/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3495 inside strings and character constants. */
3496#define FOO(x) 'x'
3497int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3498
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003499int test (int i, double x);
3500struct s1 {int (*f) (int a);};
3501struct s2 {int (*f) (double a);};
3502int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3503int argc;
3504char **argv;
3505int
3506main ()
3507{
3508return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3509 ;
3510 return 0;
3511}
3512_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003513for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3514 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003515do
3516 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003517 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003518 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003519fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003520rm -f core conftest.err conftest.$ac_objext
3521 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003522done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003523rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003524CC=$ac_save_CC
3525
3526fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003527# AC_CACHE_VAL
3528case "x$ac_cv_prog_cc_c89" in
3529 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003531$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003532 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003534$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003535 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003536 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003538$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003539esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003540if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003541
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003542fi
3543
3544ac_ext=c
3545ac_cpp='$CPP $CPPFLAGS'
3546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3552$as_echo_n "checking for dlopen in -ldl... " >&6; }
3553if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555else
3556 ac_check_lib_save_LIBS=$LIBS
3557LIBS="-ldl $LIBS"
3558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h. */
3560
3561/* Override any GCC internal prototype to avoid an error.
3562 Use char because int might match the return type of a GCC
3563 builtin and then its argument prototype would still apply. */
3564#ifdef __cplusplus
3565extern "C"
3566#endif
3567char dlopen ();
3568int
3569main ()
3570{
3571return dlopen ();
3572 ;
3573 return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_link "$LINENO"; then :
3577 ac_cv_lib_dl_dlopen=yes
3578else
3579 ac_cv_lib_dl_dlopen=no
3580fi
3581rm -f core conftest.err conftest.$ac_objext \
3582 conftest$ac_exeext conftest.$ac_ext
3583LIBS=$ac_check_lib_save_LIBS
3584fi
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3586$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3587if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3588 DLOPEN_LIB=-ldl
3589$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3590
3591fi
3592
3593
3594WITH_DIET_LIBC=
3595
3596# Check whether --with-diet-libc was given.
3597if test "${with_diet_libc+set}" = set; then :
3598 withval=$with_diet_libc; CC="diet cc -nostdinc"
3599WITH_DIET_LIBC=yes
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3601$as_echo "CC=$CC" >&6; }
3602fi
3603
3604# Check whether --with-cc was given.
3605if test "${with_cc+set}" = set; then :
3606 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3607fi
3608
3609
3610# Check whether --with-ccopts was given.
3611if test "${with_ccopts+set}" = set; then :
3612 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3613fi
3614
3615
3616# Check whether --with-ldopts was given.
3617if test "${with_ldopts+set}" = set; then :
3618 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3619fi
3620
3621ac_ext=c
3622ac_cpp='$CPP $CPPFLAGS'
3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626if test -n "$ac_tool_prefix"; then
3627 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3628set dummy ${ac_tool_prefix}gcc; ac_word=$2
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630$as_echo_n "checking for $ac_word... " >&6; }
3631if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633else
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC="$CC" # Let the user override the test.
3636else
3637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638for as_dir in $PATH
3639do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648done
3649 done
3650IFS=$as_save_IFS
3651
3652fi
3653fi
3654CC=$ac_cv_prog_CC
3655if test -n "$CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3657$as_echo "$CC" >&6; }
3658else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660$as_echo "no" >&6; }
3661fi
3662
3663
3664fi
3665if test -z "$ac_cv_prog_CC"; then
3666 ac_ct_CC=$CC
3667 # Extract the first word of "gcc", so it can be a program name with args.
3668set dummy gcc; ac_word=$2
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670$as_echo_n "checking for $ac_word... " >&6; }
3671if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3673else
3674 if test -n "$ac_ct_CC"; then
3675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3676else
3677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678for as_dir in $PATH
3679do
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_prog_ac_ct_CC="gcc"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 break 2
3687 fi
3688done
3689 done
3690IFS=$as_save_IFS
3691
3692fi
3693fi
3694ac_ct_CC=$ac_cv_prog_ac_ct_CC
3695if test -n "$ac_ct_CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697$as_echo "$ac_ct_CC" >&6; }
3698else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700$as_echo "no" >&6; }
3701fi
3702
3703 if test "x$ac_ct_CC" = x; then
3704 CC=""
3705 else
3706 case $cross_compiling:$ac_tool_warned in
3707yes:)
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710ac_tool_warned=yes ;;
3711esac
3712 CC=$ac_ct_CC
3713 fi
3714else
3715 CC="$ac_cv_prog_CC"
3716fi
3717
3718if test -z "$CC"; then
3719 if test -n "$ac_tool_prefix"; then
3720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3721set dummy ${ac_tool_prefix}cc; ac_word=$2
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723$as_echo_n "checking for $ac_word... " >&6; }
3724if test "${ac_cv_prog_CC+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3726else
3727 if test -n "$CC"; then
3728 ac_cv_prog_CC="$CC" # Let the user override the test.
3729else
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 ac_cv_prog_CC="${ac_tool_prefix}cc"
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 break 2
3740 fi
3741done
3742 done
3743IFS=$as_save_IFS
3744
3745fi
3746fi
3747CC=$ac_cv_prog_CC
3748if test -n "$CC"; then
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750$as_echo "$CC" >&6; }
3751else
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753$as_echo "no" >&6; }
3754fi
3755
3756
3757 fi
3758fi
3759if test -z "$CC"; then
3760 # Extract the first word of "cc", so it can be a program name with args.
3761set dummy cc; ac_word=$2
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763$as_echo_n "checking for $ac_word... " >&6; }
3764if test "${ac_cv_prog_CC+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
3766else
3767 if test -n "$CC"; then
3768 ac_cv_prog_CC="$CC" # Let the user override the test.
3769else
3770 ac_prog_rejected=no
3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3779 ac_prog_rejected=yes
3780 continue
3781 fi
3782 ac_cv_prog_CC="cc"
3783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 break 2
3785 fi
3786done
3787 done
3788IFS=$as_save_IFS
3789
3790if test $ac_prog_rejected = yes; then
3791 # We found a bogon in the path, so make sure we never use it.
3792 set dummy $ac_cv_prog_CC
3793 shift
3794 if test $# != 0; then
3795 # We chose a different compiler from the bogus one.
3796 # However, it has the same basename, so the bogon will be chosen
3797 # first if we set CC to just the basename; use the full file name.
3798 shift
3799 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3800 fi
3801fi
3802fi
3803fi
3804CC=$ac_cv_prog_CC
3805if test -n "$CC"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3807$as_echo "$CC" >&6; }
3808else
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810$as_echo "no" >&6; }
3811fi
3812
3813
3814fi
3815if test -z "$CC"; then
3816 if test -n "$ac_tool_prefix"; then
3817 for ac_prog in cl.exe
3818 do
3819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3820set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822$as_echo_n "checking for $ac_word... " >&6; }
3823if test "${ac_cv_prog_CC+set}" = set; then :
3824 $as_echo_n "(cached) " >&6
3825else
3826 if test -n "$CC"; then
3827 ac_cv_prog_CC="$CC" # Let the user override the test.
3828else
3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3836 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 break 2
3839 fi
3840done
3841 done
3842IFS=$as_save_IFS
3843
3844fi
3845fi
3846CC=$ac_cv_prog_CC
3847if test -n "$CC"; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3849$as_echo "$CC" >&6; }
3850else
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852$as_echo "no" >&6; }
3853fi
3854
3855
3856 test -n "$CC" && break
3857 done
3858fi
3859if test -z "$CC"; then
3860 ac_ct_CC=$CC
3861 for ac_prog in cl.exe
3862do
3863 # Extract the first word of "$ac_prog", so it can be a program name with args.
3864set dummy $ac_prog; ac_word=$2
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866$as_echo_n "checking for $ac_word... " >&6; }
3867if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3868 $as_echo_n "(cached) " >&6
3869else
3870 if test -n "$ac_ct_CC"; then
3871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3872else
3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874for as_dir in $PATH
3875do
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3880 ac_cv_prog_ac_ct_CC="$ac_prog"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3883 fi
3884done
3885 done
3886IFS=$as_save_IFS
3887
3888fi
3889fi
3890ac_ct_CC=$ac_cv_prog_ac_ct_CC
3891if test -n "$ac_ct_CC"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3893$as_echo "$ac_ct_CC" >&6; }
3894else
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896$as_echo "no" >&6; }
3897fi
3898
3899
3900 test -n "$ac_ct_CC" && break
3901done
3902
3903 if test "x$ac_ct_CC" = x; then
3904 CC=""
3905 else
3906 case $cross_compiling:$ac_tool_warned in
3907yes:)
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3910ac_tool_warned=yes ;;
3911esac
3912 CC=$ac_ct_CC
3913 fi
3914fi
3915
3916fi
3917
3918
3919test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921as_fn_error "no acceptable C compiler found in \$PATH
3922See \`config.log' for more details." "$LINENO" 5; }
3923
3924# Provide some information about the compiler.
3925$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3926set X $ac_compile
3927ac_compiler=$2
3928for ac_option in --version -v -V -qversion; do
3929 { { ac_try="$ac_compiler $ac_option >&5"
3930case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933esac
3934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935$as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3937 ac_status=$?
3938 if test -s conftest.err; then
3939 sed '10a\
3940... rest of stderr output deleted ...
3941 10q' conftest.err >conftest.er1
3942 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003943 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003944 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }
3947done
3948
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3950$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3951if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3953else
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955/* end confdefs.h. */
3956
3957int
3958main ()
3959{
3960#ifndef __GNUC__
3961 choke me
3962#endif
3963
3964 ;
3965 return 0;
3966}
3967_ACEOF
3968if ac_fn_c_try_compile "$LINENO"; then :
3969 ac_compiler_gnu=yes
3970else
3971 ac_compiler_gnu=no
3972fi
3973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974ac_cv_c_compiler_gnu=$ac_compiler_gnu
3975
3976fi
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3978$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3979if test $ac_compiler_gnu = yes; then
3980 GCC=yes
3981else
3982 GCC=
3983fi
3984ac_test_CFLAGS=${CFLAGS+set}
3985ac_save_CFLAGS=$CFLAGS
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3987$as_echo_n "checking whether $CC accepts -g... " >&6; }
3988if test "${ac_cv_prog_cc_g+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3990else
3991 ac_save_c_werror_flag=$ac_c_werror_flag
3992 ac_c_werror_flag=yes
3993 ac_cv_prog_cc_g=no
3994 CFLAGS="-g"
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996/* end confdefs.h. */
3997
3998int
3999main ()
4000{
4001
4002 ;
4003 return 0;
4004}
4005_ACEOF
4006if ac_fn_c_try_compile "$LINENO"; then :
4007 ac_cv_prog_cc_g=yes
4008else
4009 CFLAGS=""
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011/* end confdefs.h. */
4012
4013int
4014main ()
4015{
4016
4017 ;
4018 return 0;
4019}
4020_ACEOF
4021if ac_fn_c_try_compile "$LINENO"; then :
4022
4023else
4024 ac_c_werror_flag=$ac_save_c_werror_flag
4025 CFLAGS="-g"
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h. */
4028
4029int
4030main ()
4031{
4032
4033 ;
4034 return 0;
4035}
4036_ACEOF
4037if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_cv_prog_cc_g=yes
4039fi
4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041fi
4042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043fi
4044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_c_werror_flag=$ac_save_c_werror_flag
4046fi
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4048$as_echo "$ac_cv_prog_cc_g" >&6; }
4049if test "$ac_test_CFLAGS" = set; then
4050 CFLAGS=$ac_save_CFLAGS
4051elif test $ac_cv_prog_cc_g = yes; then
4052 if test "$GCC" = yes; then
4053 CFLAGS="-g -O2"
4054 else
4055 CFLAGS="-g"
4056 fi
4057else
4058 if test "$GCC" = yes; then
4059 CFLAGS="-O2"
4060 else
4061 CFLAGS=
4062 fi
4063fi
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4065$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4066if test "${ac_cv_prog_cc_c89+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068else
4069 ac_cv_prog_cc_c89=no
4070ac_save_CC=$CC
4071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072/* end confdefs.h. */
4073#include <stdarg.h>
4074#include <stdio.h>
4075#include <sys/types.h>
4076#include <sys/stat.h>
4077/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4078struct buf { int x; };
4079FILE * (*rcsopen) (struct buf *, struct stat *, int);
4080static char *e (p, i)
4081 char **p;
4082 int i;
4083{
4084 return p[i];
4085}
4086static char *f (char * (*g) (char **, int), char **p, ...)
4087{
4088 char *s;
4089 va_list v;
4090 va_start (v,p);
4091 s = g (p, va_arg (v,int));
4092 va_end (v);
4093 return s;
4094}
4095
4096/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4097 function prototypes and stuff, but not '\xHH' hex character constants.
4098 These don't provoke an error unfortunately, instead are silently treated
4099 as 'x'. The following induces an error, until -std is added to get
4100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4101 array size at least. It's necessary to write '\x00'==0 to get something
4102 that's true only with -std. */
4103int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4104
4105/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4106 inside strings and character constants. */
4107#define FOO(x) 'x'
4108int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4109
4110int test (int i, double x);
4111struct s1 {int (*f) (int a);};
4112struct s2 {int (*f) (double a);};
4113int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4114int argc;
4115char **argv;
4116int
4117main ()
4118{
4119return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4120 ;
4121 return 0;
4122}
4123_ACEOF
4124for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4126do
4127 CC="$ac_save_CC $ac_arg"
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_c89=$ac_arg
4130fi
4131rm -f core conftest.err conftest.$ac_objext
4132 test "x$ac_cv_prog_cc_c89" != "xno" && break
4133done
4134rm -f conftest.$ac_ext
4135CC=$ac_save_CC
4136
4137fi
4138# AC_CACHE_VAL
4139case "x$ac_cv_prog_cc_c89" in
4140 x)
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4142$as_echo "none needed" >&6; } ;;
4143 xno)
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4145$as_echo "unsupported" >&6; } ;;
4146 *)
4147 CC="$CC $ac_cv_prog_cc_c89"
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4149$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4150esac
4151if test "x$ac_cv_prog_cc_c89" != xno; then :
4152
4153fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004154
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004155ac_ext=c
4156ac_cpp='$CPP $CPPFLAGS'
4157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004161if test "$GCC" = yes; then
4162 RDYNAMIC="-rdynamic"
4163
4164fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004165ac_ext=c
4166ac_cpp='$CPP $CPPFLAGS'
4167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004171$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004172# On Suns, sometimes $CPP names a directory.
4173if test -n "$CPP" && test -d "$CPP"; then
4174 CPP=
4175fi
4176if test -z "$CPP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004177 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004178 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004179else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004180 # Double quotes because CPP needs to be expanded
4181 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4182 do
4183 ac_preproc_ok=false
4184for ac_c_preproc_warn_flag in '' yes
4185do
4186 # Use a header file that comes with gcc, so configuring glibc
4187 # with a fresh cross-compiler works.
4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004190 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004191 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004193/* end confdefs.h. */
4194#ifdef __STDC__
4195# include <limits.h>
4196#else
4197# include <assert.h>
4198#endif
4199 Syntax error
4200_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004201if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004202
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004203else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004204 # Broken: fails on valid input.
4205continue
4206fi
4207rm -f conftest.err conftest.$ac_ext
4208
Theodore Ts'oe1052142006-10-21 21:46:47 -04004209 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004210 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004212/* end confdefs.h. */
4213#include <ac_nonexistent.h>
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 # Broken: success on invalid input.
4217continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004218else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004219 # Passes both tests.
4220ac_preproc_ok=:
4221break
4222fi
4223rm -f conftest.err conftest.$ac_ext
4224
4225done
4226# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4227rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004228if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004229 break
4230fi
4231
4232 done
4233 ac_cv_prog_CPP=$CPP
4234
4235fi
4236 CPP=$ac_cv_prog_CPP
4237else
4238 ac_cv_prog_CPP=$CPP
4239fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004241$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004242ac_preproc_ok=false
4243for ac_c_preproc_warn_flag in '' yes
4244do
4245 # Use a header file that comes with gcc, so configuring glibc
4246 # with a fresh cross-compiler works.
4247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4248 # <limits.h> exists even on freestanding compilers.
4249 # On the NeXT, cc -E runs the code through the compiler's parser,
4250 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004252/* end confdefs.h. */
4253#ifdef __STDC__
4254# include <limits.h>
4255#else
4256# include <assert.h>
4257#endif
4258 Syntax error
4259_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004260if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004261
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004262else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004263 # Broken: fails on valid input.
4264continue
4265fi
4266rm -f conftest.err conftest.$ac_ext
4267
Theodore Ts'oe1052142006-10-21 21:46:47 -04004268 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004269 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004271/* end confdefs.h. */
4272#include <ac_nonexistent.h>
4273_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004274if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004275 # Broken: success on invalid input.
4276continue
4277else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004278 # Passes both tests.
4279ac_preproc_ok=:
4280break
4281fi
4282rm -f conftest.err conftest.$ac_ext
4283
4284done
4285# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004287if $ac_preproc_ok; then :
4288
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004289else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004292as_fn_error "C preprocessor \"$CPP\" fails sanity check
4293See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004294fi
4295
4296ac_ext=c
4297ac_cpp='$CPP $CPPFLAGS'
4298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301
4302
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004303{ $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 +01004304$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004305if test "${ac_cv_path_GREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004306 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004307else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004308 if test -z "$GREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004309 ac_path_GREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04004312for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004316 for ac_prog in grep ggrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4320# Check for GNU ac_path_GREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004321 # Check for GNU $ac_path_GREP
4322case `"$ac_path_GREP" --version 2>&1` in
4323*GNU*)
4324 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4325*)
4326 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004327 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004328 while :
4329 do
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004333 $as_echo 'GREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004336 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04004337 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_GREP="$ac_path_GREP"
4340 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004341 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4344 done
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346esac
4347
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004348 $ac_path_GREP_found && break 3
4349 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004350 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004351 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004352IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004353 if test -z "$ac_cv_path_GREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004354 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 +01004355 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004356else
4357 ac_cv_path_GREP=$GREP
4358fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004359
Theodore Ts'oe1052142006-10-21 21:46:47 -04004360fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004362$as_echo "$ac_cv_path_GREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04004363 GREP="$ac_cv_path_GREP"
4364
4365
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004367$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004368if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004369 $as_echo_n "(cached) " >&6
Theodore Ts'oe1052142006-10-21 21:46:47 -04004370else
4371 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4372 then ac_cv_path_EGREP="$GREP -E"
4373 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004374 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004375 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04004378for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4379do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004382 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4386# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004387 # Check for GNU $ac_path_EGREP
4388case `"$ac_path_EGREP" --version 2>&1` in
4389*GNU*)
4390 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4391*)
4392 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004393 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004394 while :
4395 do
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004399 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004400 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004402 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04004403 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_EGREP="$ac_path_EGREP"
4406 ac_path_EGREP_max=$ac_count
4407 fi
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4410 done
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412esac
4413
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004414 $ac_path_EGREP_found && break 3
4415 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004416 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004417 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004418IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004419 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004420 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 +01004421 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004422else
4423 ac_cv_path_EGREP=$EGREP
4424fi
4425
Theodore Ts'oe1052142006-10-21 21:46:47 -04004426 fi
4427fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004429$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04004430 EGREP="$ac_cv_path_EGREP"
4431
4432
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004434$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004435if test "${ac_cv_header_stdc+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004436 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004437else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004439/* end confdefs.h. */
4440#include <stdlib.h>
4441#include <stdarg.h>
4442#include <string.h>
4443#include <float.h>
4444
4445int
4446main ()
4447{
4448
4449 ;
4450 return 0;
4451}
4452_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004453if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004454 ac_cv_header_stdc=yes
4455else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004456 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004457fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004459
4460if test $ac_cv_header_stdc = yes; then
4461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004463/* end confdefs.h. */
4464#include <string.h>
4465
4466_ACEOF
4467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004468 $EGREP "memchr" >/dev/null 2>&1; then :
4469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004470else
4471 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004472fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004473rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004474
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004475fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004476
4477if test $ac_cv_header_stdc = yes; then
4478 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004480/* end confdefs.h. */
4481#include <stdlib.h>
4482
4483_ACEOF
4484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004485 $EGREP "free" >/dev/null 2>&1; then :
4486
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004487else
4488 ac_cv_header_stdc=no
4489fi
4490rm -f conftest*
4491
4492fi
4493
4494if test $ac_cv_header_stdc = yes; then
4495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004496 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004497 :
4498else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004500/* end confdefs.h. */
4501#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04004502#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004503#if ((' ' & 0x0FF) == 0x020)
4504# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4505# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4506#else
4507# define ISLOWER(c) \
4508 (('a' <= (c) && (c) <= 'i') \
4509 || ('j' <= (c) && (c) <= 'r') \
4510 || ('s' <= (c) && (c) <= 'z'))
4511# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4512#endif
4513
4514#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4515int
4516main ()
4517{
4518 int i;
4519 for (i = 0; i < 256; i++)
4520 if (XOR (islower (i), ISLOWER (i))
4521 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04004522 return 2;
4523 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004524}
4525_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004526if ac_fn_c_try_run "$LINENO"; then :
4527
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004528else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004529 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004530fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4532 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004533fi
4534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004535fi
4536fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004538$as_echo "$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004539if test $ac_cv_header_stdc = yes; then
4540
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004541$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004542
4543fi
4544
4545# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004546for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4547 inttypes.h stdint.h unistd.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004548do :
4549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4550ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4551"
4552eval as_val=\$$as_ac_Header
4553 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004554 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004555#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004556_ACEOF
4557
4558fi
4559
4560done
4561
4562
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004563ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4564if test "x$ac_cv_header_linux_fs_h" = x""yes; then :
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004565 linux_headers=yes
4566else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004567 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004568fi
4569
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004570
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00004571if test "$linux_headers" != yes; then
4572 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004573fi
4574
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004576$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004577if test "$GCC" = yes
4578then
4579 case "$host_cpu" in
4580 alpha) addcflags="-mieee" ;;
4581 esac
4582fi
4583if test "x$addcflags" != x
4584then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004586$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004587 CFLAGS="$addcflags $CFLAGS"
4588else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004590$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004591fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004592LIB_EXT=.a
4593STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004594PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004595
Theodore Ts'oe1052142006-10-21 21:46:47 -04004596# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004597if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004598 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004599else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004600 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004601fi
4602# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004603if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004604 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004605then
4606 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004608$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004609else
4610 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004612$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004613fi
4614
4615else
4616 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004618$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004619
Theodore Ts'oe1052142006-10-21 21:46:47 -04004620fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004621
Theodore Ts'oe1052142006-10-21 21:46:47 -04004622
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004623# Check whether --enable-symlink-install was given.
4624if test "${enable_symlink_install+set}" = set; then :
4625 enableval=$enable_symlink_install; if test "$enableval" = "no"
4626then
4627 LINK_INSTALL_FLAGS=-f
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4629$as_echo "Disabling symlinks for install" >&6; }
4630else
4631 LINK_INSTALL_FLAGS=-sf
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4633$as_echo "Enabling symlinks for install" >&6; }
4634fi
4635
4636else
4637 LINK_INSTALL_FLAGS=-f
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4639$as_echo "Disabling symlinks for install" >&6; }
4640
4641fi
4642
4643
4644# Check whether --enable-symlink-build was given.
4645if test "${enable_symlink_build+set}" = set; then :
4646 enableval=$enable_symlink_build; if test "$enableval" = "no"
4647then
4648 LINK_BUILD_FLAGS=
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4650$as_echo "Disabling symlinks for build" >&6; }
4651else
4652 LINK_BUILD_FLAGS=-s
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4654$as_echo "Enabling symlinks for build" >&6; }
4655fi
4656
4657else
4658 LINK_BUILD_FLAGS=
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4660$as_echo "Disabling symlinks for build" >&6; }
4661
4662fi
4663
4664
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004665# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004666if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004667 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4668then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004670$as_echo "Disabling verbose make commands" >&6; }
4671 E=@echo
4672 Q=@
4673else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004675$as_echo "Enabling verbose make commands" >&6; }
4676 E=@\\#
4677 Q=
4678fi
4679
4680else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004682$as_echo "Disabling verbose make commands" >&6; }
4683E=@echo
4684Q=@
4685
4686fi
4687
4688
4689
Theodore Ts'oe1052142006-10-21 21:46:47 -04004690# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004691if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004692 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004693then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004695$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004696else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004697 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004698
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004700$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004702$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004703fi
4704
4705else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004707$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004708
Theodore Ts'oe1052142006-10-21 21:46:47 -04004709fi
4710
4711# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004712if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004713 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004714then
4715 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004717$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004718else
4719 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004720 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004721
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004723$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004724fi
4725
4726else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004727 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004728$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004729
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004731$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004732
Theodore Ts'oe1052142006-10-21 21:46:47 -04004733fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004734
Theodore Ts'oe1052142006-10-21 21:46:47 -04004735
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004736E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004737LDFLAG_DYNAMIC=
4738PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004739# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004740if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004741 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004742then
4743 ELF_CMT=#
4744 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004746$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004747else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004748 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004749 ELF_CMT=
4750 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004751 case "$host_os" in
4752 solaris2.*)
4753 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4754 ;;
4755 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004756 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004757 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004758 PRIVATE_LIBS_CMT=#
4759 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004761$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004762fi
4763
4764else
4765 MAKEFILE_ELF=/dev/null
4766ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004768$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004769
Theodore Ts'oe1052142006-10-21 21:46:47 -04004770fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004771
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004772
Theodore Ts'oe1052142006-10-21 21:46:47 -04004773
4774# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004775if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004776 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004777then
4778 BSDLIB_CMT=#
4779 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004781$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004782else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004783 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004784 BSDLIB_CMT=
4785 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004786 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004787 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004788 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004789 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4790 LIB_EXT=.dylib
4791 ;;
4792 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004794$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004795fi
4796
4797else
4798 MAKEFILE_BSDLIB=/dev/null
4799BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004801$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004802
Theodore Ts'oe1052142006-10-21 21:46:47 -04004803fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004804
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004805
Theodore Ts'oe1052142006-10-21 21:46:47 -04004806
4807# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004808if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004809 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004810then
4811 PROFILE_CMT=#
4812 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004814$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004815else
4816 PROFILE_CMT=
4817 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4818 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004820$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004821fi
4822
4823else
4824 PROFILE_CMT=#
4825MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004827$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004828
Theodore Ts'oe1052142006-10-21 21:46:47 -04004829fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004830
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004831
Theodore Ts'oe1052142006-10-21 21:46:47 -04004832
4833# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004834if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004835 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004836then
4837 CHECKER_CMT=#
4838 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004840$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004841else
4842 CHECKER_CMT=
4843 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004845$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004846fi
4847
4848else
4849 CHECKER_CMT=#
4850MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004852$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004853
Theodore Ts'oe1052142006-10-21 21:46:47 -04004854fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004855
4856
4857
4858
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004859
Theodore Ts'oe1052142006-10-21 21:46:47 -04004860
Theodore Ts'o55da9872008-09-02 23:12:38 -04004861
4862
Theodore Ts'oe1052142006-10-21 21:46:47 -04004863# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004864if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004865 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004866then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004868$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004869else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004870 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004871
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004873$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004874fi
4875
4876else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004878$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004879
Theodore Ts'oe1052142006-10-21 21:46:47 -04004880fi
4881
4882# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004883if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004884 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004885then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004887$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004888else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004889 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004890
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004892$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004893fi
4894
4895else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004897$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004898
Theodore Ts'oe1052142006-10-21 21:46:47 -04004899fi
4900
4901# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004902if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004903 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004904then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004906$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004907 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004908else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004909 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004910 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004911
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004913$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004914fi
4915
4916else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004918$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004919$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004920
4921TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004922
Theodore Ts'oe1052142006-10-21 21:46:47 -04004923fi
4924
Theodore Ts'oaf773652008-09-01 11:27:27 -04004925
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004926
4927
4928if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4931set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004933$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004934if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004935 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004936else
4937 case $PKG_CONFIG in
4938 [\\/]* | ?:[\\/]*)
4939 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4940 ;;
4941 *)
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943for as_dir in $PATH
4944do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004947 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004951 break 2
4952 fi
4953done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004954 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004955IFS=$as_save_IFS
4956
4957 ;;
4958esac
4959fi
4960PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4961if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004963$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004964else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004966$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004967fi
4968
4969
4970fi
4971if test -z "$ac_cv_path_PKG_CONFIG"; then
4972 ac_pt_PKG_CONFIG=$PKG_CONFIG
4973 # Extract the first word of "pkg-config", so it can be a program name with args.
4974set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004976$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004977if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004978 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004979else
4980 case $ac_pt_PKG_CONFIG in
4981 [\\/]* | ?:[\\/]*)
4982 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4983 ;;
4984 *)
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986for as_dir in $PATH
4987do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004990 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004994 break 2
4995 fi
4996done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004997 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004998IFS=$as_save_IFS
4999
5000 ;;
5001esac
5002fi
5003ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5004if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005006$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005007else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005009$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005010fi
5011
5012 if test "x$ac_pt_PKG_CONFIG" = x; then
5013 PKG_CONFIG=""
5014 else
5015 case $cross_compiling:$ac_tool_warned in
5016yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005017{ $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 +01005018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005019ac_tool_warned=yes ;;
5020esac
5021 PKG_CONFIG=$ac_pt_PKG_CONFIG
5022 fi
5023else
5024 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5025fi
5026
5027fi
5028if test -n "$PKG_CONFIG"; then
5029 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005030 { $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 +01005031$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005032 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005034$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005035 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005037$as_echo "no" >&6; }
5038 PKG_CONFIG=""
5039 fi
5040
5041fi
5042LIBUUID=
5043DEPLIBUUID=
5044STATIC_LIBUUID=
5045DEPSTATIC_LIBUUID=
5046PROFILED_LIBUUID=
5047DEPPROFILED_LIBUUID=
5048UUID_CMT=
5049# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005050if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005051 enableval=$enable_libuuid; if test "$enableval" = "no"
5052then
5053 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005054 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005055 fi
5056
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005058$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005059if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005060 $as_echo_n "(cached) " >&6
5061else
5062 ac_check_lib_save_LIBS=$LIBS
5063LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005065/* end confdefs.h. */
5066
5067/* Override any GCC internal prototype to avoid an error.
5068 Use char because int might match the return type of a GCC
5069 builtin and then its argument prototype would still apply. */
5070#ifdef __cplusplus
5071extern "C"
5072#endif
5073char uuid_generate ();
5074int
5075main ()
5076{
5077return uuid_generate ();
5078 ;
5079 return 0;
5080}
5081_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005082if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005083 ac_cv_lib_uuid_uuid_generate=yes
5084else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005085 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005086fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005087rm -f core conftest.err conftest.$ac_objext \
5088 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005089LIBS=$ac_check_lib_save_LIBS
5090fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005092$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005093if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005094 LIBUUID=`$PKG_CONFIG --libs uuid`;
5095 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5096else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005097 as_fn_error "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005098fi
5099
5100 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005102$as_echo "Disabling private uuid library" >&6; }
5103else
5104 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5105 DEPLIBUUID=$LIBUUID
5106 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5107 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5108 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5109 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005111$as_echo "Enabling private uuid library" >&6; }
5112fi
5113
5114else
5115 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5116DEPLIBUUID=$LIBUUID
5117STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5118DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5119PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5120DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005122$as_echo "Enabling private uuid library by default" >&6; }
5123
5124fi
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5136 if test -n "$ac_tool_prefix"; then
5137 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5138set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005140$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005141if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005142 $as_echo_n "(cached) " >&6
5143else
5144 case $PKG_CONFIG in
5145 [\\/]* | ?:[\\/]*)
5146 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5147 ;;
5148 *)
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005154 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005158 break 2
5159 fi
5160done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005161 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005162IFS=$as_save_IFS
5163
5164 ;;
5165esac
5166fi
5167PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5168if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005170$as_echo "$PKG_CONFIG" >&6; }
5171else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005173$as_echo "no" >&6; }
5174fi
5175
5176
5177fi
5178if test -z "$ac_cv_path_PKG_CONFIG"; then
5179 ac_pt_PKG_CONFIG=$PKG_CONFIG
5180 # Extract the first word of "pkg-config", so it can be a program name with args.
5181set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005183$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005184if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005185 $as_echo_n "(cached) " >&6
5186else
5187 case $ac_pt_PKG_CONFIG in
5188 [\\/]* | ?:[\\/]*)
5189 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5190 ;;
5191 *)
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005197 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005201 break 2
5202 fi
5203done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005204 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005205IFS=$as_save_IFS
5206
5207 ;;
5208esac
5209fi
5210ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5211if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005213$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5214else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005216$as_echo "no" >&6; }
5217fi
5218
5219 if test "x$ac_pt_PKG_CONFIG" = x; then
5220 PKG_CONFIG=""
5221 else
5222 case $cross_compiling:$ac_tool_warned in
5223yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005224{ $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 +01005225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226ac_tool_warned=yes ;;
5227esac
5228 PKG_CONFIG=$ac_pt_PKG_CONFIG
5229 fi
5230else
5231 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5232fi
5233
5234fi
5235if test -n "$PKG_CONFIG"; then
5236 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005237 { $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 +01005238$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5239 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005241$as_echo "yes" >&6; }
5242 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005244$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005245 PKG_CONFIG=""
5246 fi
5247
5248fi
5249LIBBLKID=
5250DEPLIBBLKID=
5251STATIC_LIBBLKID=
5252DEPSTATIC_LIBBLKID=
5253PROFILED_LIBBLKID=
5254DEPPROFILED_LIBBLKID=
5255BLKID_CMT=
5256# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005257if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005258 enableval=$enable_libblkid; if test "$enableval" = "no"
5259then
5260 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005261 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005262 fi
5263
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005265$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005266if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005267 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005268else
5269 ac_check_lib_save_LIBS=$LIBS
5270LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005272/* end confdefs.h. */
5273
5274/* Override any GCC internal prototype to avoid an error.
5275 Use char because int might match the return type of a GCC
5276 builtin and then its argument prototype would still apply. */
5277#ifdef __cplusplus
5278extern "C"
5279#endif
5280char blkid_get_cache ();
5281int
5282main ()
5283{
5284return blkid_get_cache ();
5285 ;
5286 return 0;
5287}
5288_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005289if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005290 ac_cv_lib_blkid_blkid_get_cache=yes
5291else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005292 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005293fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005294rm -f core conftest.err conftest.$ac_objext \
5295 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005296LIBS=$ac_check_lib_save_LIBS
5297fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005299$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005300if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005301 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5302 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5303else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005304 as_fn_error "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005305fi
5306
5307 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005309$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005310else
5311 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5312 DEPLIBBLKID=$LIBBLKID
5313 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5314 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5315 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5316 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005317 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005318
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005320$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005321fi
5322
5323else
5324 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5325DEPLIBBLKID=$LIBBLKID
5326STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5327DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5328PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5329DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005330$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005331
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005333$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005334
5335fi
5336
5337
5338
5339
5340
5341
5342
5343
Theodore Ts'oe1052142006-10-21 21:46:47 -04005344# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005345if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005346 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005347then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005349$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005350 DEBUGFS_CMT="#"
5351else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005352 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005354$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005355fi
5356
5357else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005359$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005360DEBUGFS_CMT=
5361
Theodore Ts'oe1052142006-10-21 21:46:47 -04005362fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005363
Theodore Ts'oe1052142006-10-21 21:46:47 -04005364
5365# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005366if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005367 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005368then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005370$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005371 IMAGER_CMT="#"
5372else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005373 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005375$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005376fi
5377
5378else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005380$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005381IMAGER_CMT=
5382
Theodore Ts'oe1052142006-10-21 21:46:47 -04005383fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005384
Theodore Ts'oe1052142006-10-21 21:46:47 -04005385
5386# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005387if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005388 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005389then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005391$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005392 RESIZER_CMT="#"
5393else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005394 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005396$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005397fi
5398
5399else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005401$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005402RESIZER_CMT=
5403
Theodore Ts'oe1052142006-10-21 21:46:47 -04005404fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005405
Theodore Ts'oe1052142006-10-21 21:46:47 -04005406
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005407# Check whether --enable-defrag was given.
5408if test "${enable_defrag+set}" = set; then :
5409 enableval=$enable_defrag; if test "$enableval" = "no"
5410then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5412$as_echo "Disabling e4defrag support" >&6; }
5413 DEFRAG_CMT="#"
5414else
5415 DEFRAG_CMT=
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5417$as_echo "Enabling e4defrag support" >&6; }
5418fi
5419
5420else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5422$as_echo "Enabling e4defrag support by default" >&6; }
5423DEFRAG_CMT=
5424
5425fi
5426
5427
Theodore Ts'oe1052142006-10-21 21:46:47 -04005428# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005429if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005430 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005431then
5432 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005434$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005435else
5436 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005438$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005439fi
5440
5441else
5442 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005443 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005444 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005446$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005447 ;;
5448 *)
5449 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005451$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005452esac
5453
Theodore Ts'oe1052142006-10-21 21:46:47 -04005454fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005455
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005456
Theodore Ts'oe1052142006-10-21 21:46:47 -04005457
5458# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005459if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005460 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005461then
5462 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005464$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005465else
5466 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005468$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005469fi
5470
5471else
5472 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005474$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005475
Theodore Ts'oe1052142006-10-21 21:46:47 -04005476fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005477
5478
Theodore Ts'oe1052142006-10-21 21:46:47 -04005479
Theodore Ts'o32493942007-12-31 10:45:01 -05005480# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005481if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005482 enableval=$enable_tls; if test "$enableval" = "no"
5483then
5484 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005486$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005487else
5488 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005490$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005491fi
5492
5493else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005494 if test -n "$WITH_DIET_LIBC"
5495then
5496 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005497 { $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 +01005498$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005499else
5500 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005502$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005503fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005504
5505fi
5506
5507if test "$try_tls" = "yes"
5508then
5509
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005511$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005512 if test "${ac_cv_tls+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005513 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005514else
5515
5516 ax_tls_keywords="__thread __declspec(thread) none"
5517 for ax_tls_keyword in $ax_tls_keywords; do
5518 case $ax_tls_keyword in
5519 none) ac_cv_tls=none ; break ;;
5520 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005522/* end confdefs.h. */
5523#include <stdlib.h>
5524 static void
5525 foo(void) {
5526 static $ax_tls_keyword int bar;
5527 exit(1);
5528 }
5529int
5530main ()
5531{
5532
5533 ;
5534 return 0;
5535}
5536_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005537if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005538 ac_cv_tls=$ax_tls_keyword ; break
5539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005540 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005541
5542fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 esac
5545 done
5546
5547fi
5548
5549
5550 if test "$ac_cv_tls" != "none"; then
5551
5552cat >>confdefs.h <<_ACEOF
5553#define TLS $ac_cv_tls
5554_ACEOF
5555
5556 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005558$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005559
5560fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005561# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005562if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005563 enableval=$enable_uuidd; if test "$enableval" = "no"
5564then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005566$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005567 UUIDD_CMT="#"
5568else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005569 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005570
5571 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005573$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005574fi
5575
5576else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005577 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005578
5579UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005581$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005582
5583fi
5584
5585
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005586MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005588GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005589PACKAGE=e2fsprogs
5590VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005591VERSION=0.14.1
5592cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005593#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005594_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005595
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005596cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005597#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005598_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005599
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005600
5601
5602
5603
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005605$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5606set x ${MAKE-make}
5607ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005608if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005609 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005610else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005611 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005612SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005613all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005614 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005615_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005616# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005617case `${MAKE-make} -f conftest.make 2>/dev/null` in
5618 *@@@%%%=?*=@@@%%%*)
5619 eval ac_cv_prog_make_${ac_make}_set=yes;;
5620 *)
5621 eval ac_cv_prog_make_${ac_make}_set=no;;
5622esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005623rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005624fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005625if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005627$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005628 SET_MAKE=
5629else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005631$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005632 SET_MAKE="MAKE=${MAKE-make}"
5633fi
5634
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005635# Find a good install program. We prefer a C program (faster),
5636# so one script is as good as another. But avoid the broken or
5637# incompatible versions:
5638# SysV /etc/install, /usr/sbin/install
5639# SunOS /usr/etc/install
5640# IRIX /sbin/install
5641# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005642# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005643# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5644# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5645# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005646# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005647# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005648# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005650$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005651if test -z "$INSTALL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005652if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005653 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005654else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005660 # Account for people who put trailing slashes in PATH elements.
5661case $as_dir/ in #((
5662 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005663 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005664 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005665 /usr/ucb/* ) ;;
5666 *)
5667 # OSF1 and SCO ODT 3.0 have their own names for install.
5668 # Don't use installbsd from OSF since it installs stuff as root
5669 # by default.
5670 for ac_prog in ginstall scoinst install; do
5671 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005672 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 -04005673 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005674 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005675 # AIX install. It has an incompatible calling convention.
5676 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005677 elif test $ac_prog = install &&
5678 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5679 # program-specific install script used by HP pwplus--don't use.
5680 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005681 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005682 rm -rf conftest.one conftest.two conftest.dir
5683 echo one > conftest.one
5684 echo two > conftest.two
5685 mkdir conftest.dir
5686 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5687 test -s conftest.one && test -s conftest.two &&
5688 test -s conftest.dir/conftest.one &&
5689 test -s conftest.dir/conftest.two
5690 then
5691 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5692 break 3
5693 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005694 fi
5695 fi
5696 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005697 done
5698 ;;
5699esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005700
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005701 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005702IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005703
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005704rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005705
5706fi
5707 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005708 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005709 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005710 # As a last resort, use the slow shell script. Don't cache a
5711 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005712 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005713 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005714 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005715 fi
5716fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005718$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005719
5720# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5721# It thinks the first close brace ends the variable substitution.
5722test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5723
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005724test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005725
5726test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5727
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005728
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005729 MKINSTALLDIRS=
5730 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005731 case "$ac_aux_dir" in
5732 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5733 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5734 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005735 fi
5736 if test -z "$MKINSTALLDIRS"; then
5737 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5738 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005739
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005740
5741
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005743$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005744 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005745if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005746 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005747else
5748 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005749fi
5750
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005752$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005753
5754
5755
5756
5757
5758
5759# Prepare PATH_SEPARATOR.
5760# The user is always right.
5761if test "${PATH_SEPARATOR+set}" != set; then
5762 echo "#! /bin/sh" >conf$$.sh
5763 echo "exit 0" >>conf$$.sh
5764 chmod +x conf$$.sh
5765 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5766 PATH_SEPARATOR=';'
5767 else
5768 PATH_SEPARATOR=:
5769 fi
5770 rm -f conf$$.sh
5771fi
5772
5773# Find out how to test for executable files. Don't use a zero-byte file,
5774# as systems may use methods other than mode bits to determine executability.
5775cat >conf$$.file <<_ASEOF
5776#! /bin/sh
5777exit 0
5778_ASEOF
5779chmod +x conf$$.file
5780if test -x conf$$.file >/dev/null 2>&1; then
5781 ac_executable_p="test -x"
5782else
5783 ac_executable_p="test -f"
5784fi
5785rm -f conf$$.file
5786
5787# Extract the first word of "msgfmt", so it can be a program name with args.
5788set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005790$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005791if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005792 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005793else
5794 case "$MSGFMT" in
5795 [\\/]* | ?:[\\/]*)
5796 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5797 ;;
5798 *)
5799 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5800 for ac_dir in $PATH; do
5801 IFS="$ac_save_IFS"
5802 test -z "$ac_dir" && ac_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5805 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5806 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5807 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5808 break 2
5809 fi
5810 fi
5811 done
5812 done
5813 IFS="$ac_save_IFS"
5814 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5815 ;;
5816esac
5817fi
5818MSGFMT="$ac_cv_path_MSGFMT"
5819if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005821$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005822else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005824$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005825fi
5826
5827 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5828set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005830$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005831if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005832 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005833else
5834 case $GMSGFMT in
5835 [\\/]* | ?:[\\/]*)
5836 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5837 ;;
5838 *)
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005844 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005845 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 -05005846 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005848 break 2
5849 fi
5850done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005851 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005852IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005853
5854 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5855 ;;
5856esac
5857fi
5858GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005859if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005861$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005862else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005864$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005865fi
5866
5867
5868
Theodore Ts'oe1052142006-10-21 21:46:47 -04005869
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005870# Prepare PATH_SEPARATOR.
5871# The user is always right.
5872if test "${PATH_SEPARATOR+set}" != set; then
5873 echo "#! /bin/sh" >conf$$.sh
5874 echo "exit 0" >>conf$$.sh
5875 chmod +x conf$$.sh
5876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5877 PATH_SEPARATOR=';'
5878 else
5879 PATH_SEPARATOR=:
5880 fi
5881 rm -f conf$$.sh
5882fi
5883
5884# Find out how to test for executable files. Don't use a zero-byte file,
5885# as systems may use methods other than mode bits to determine executability.
5886cat >conf$$.file <<_ASEOF
5887#! /bin/sh
5888exit 0
5889_ASEOF
5890chmod +x conf$$.file
5891if test -x conf$$.file >/dev/null 2>&1; then
5892 ac_executable_p="test -x"
5893else
5894 ac_executable_p="test -f"
5895fi
5896rm -f conf$$.file
5897
5898# Extract the first word of "xgettext", so it can be a program name with args.
5899set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005901$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005902if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005903 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005904else
5905 case "$XGETTEXT" in
5906 [\\/]* | ?:[\\/]*)
5907 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5908 ;;
5909 *)
5910 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5911 for ac_dir in $PATH; do
5912 IFS="$ac_save_IFS"
5913 test -z "$ac_dir" && ac_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5916 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5917 (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
5918 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5919 break 2
5920 fi
5921 fi
5922 done
5923 done
5924 IFS="$ac_save_IFS"
5925 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5926 ;;
5927esac
5928fi
5929XGETTEXT="$ac_cv_path_XGETTEXT"
5930if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005932$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005933else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005935$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005936fi
5937
5938 rm -f messages.po
5939
5940
5941# Prepare PATH_SEPARATOR.
5942# The user is always right.
5943if test "${PATH_SEPARATOR+set}" != set; then
5944 echo "#! /bin/sh" >conf$$.sh
5945 echo "exit 0" >>conf$$.sh
5946 chmod +x conf$$.sh
5947 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5948 PATH_SEPARATOR=';'
5949 else
5950 PATH_SEPARATOR=:
5951 fi
5952 rm -f conf$$.sh
5953fi
5954
5955# Find out how to test for executable files. Don't use a zero-byte file,
5956# as systems may use methods other than mode bits to determine executability.
5957cat >conf$$.file <<_ASEOF
5958#! /bin/sh
5959exit 0
5960_ASEOF
5961chmod +x conf$$.file
5962if test -x conf$$.file >/dev/null 2>&1; then
5963 ac_executable_p="test -x"
5964else
5965 ac_executable_p="test -f"
5966fi
5967rm -f conf$$.file
5968
5969# Extract the first word of "msgmerge", so it can be a program name with args.
5970set dummy msgmerge; 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_path_MSGMERGE+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 case "$MSGMERGE" in
5977 [\\/]* | ?:[\\/]*)
5978 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5979 ;;
5980 *)
5981 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5982 for ac_dir in $PATH; do
5983 IFS="$ac_save_IFS"
5984 test -z "$ac_dir" && ac_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5987 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5988 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5989 break 2
5990 fi
5991 fi
5992 done
5993 done
5994 IFS="$ac_save_IFS"
5995 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5996 ;;
5997esac
5998fi
5999MSGMERGE="$ac_cv_path_MSGMERGE"
6000if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006002$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006003else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006005$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006006fi
6007
6008
6009 if test "$GMSGFMT" != ":"; then
6010 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6011 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6012 : ;
6013 else
6014 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006015 { $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 +01006016$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006017 GMSGFMT=":"
6018 fi
6019 fi
6020
6021 if test "$XGETTEXT" != ":"; then
6022 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6023 (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
6024 : ;
6025 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006026 { $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 +01006027$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006028 XGETTEXT=":"
6029 fi
6030 rm -f messages.po
6031 fi
6032
Theodore Ts'oe1052142006-10-21 21:46:47 -04006033 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006034
6035
6036if test -n "$ac_tool_prefix"; then
6037 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6038set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006040$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006041if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006042 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006043else
6044 if test -n "$RANLIB"; then
6045 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6046else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048for as_dir in $PATH
6049do
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006052 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006053 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 -05006054 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006056 break 2
6057 fi
6058done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006059 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006060IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006061
6062fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006063fi
6064RANLIB=$ac_cv_prog_RANLIB
6065if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006067$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006068else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006070$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006071fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006072
Theodore Ts'oe1052142006-10-21 21:46:47 -04006073
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006074fi
6075if test -z "$ac_cv_prog_RANLIB"; then
6076 ac_ct_RANLIB=$RANLIB
6077 # Extract the first word of "ranlib", so it can be a program name with args.
6078set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006080$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006081if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006082 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006083else
6084 if test -n "$ac_ct_RANLIB"; then
6085 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6086else
6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006092 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006093 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 -05006094 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006096 break 2
6097 fi
6098done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006099 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006101
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006102fi
6103fi
6104ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6105if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006107$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006108else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006110$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006111fi
6112
Theodore Ts'oe1052142006-10-21 21:46:47 -04006113 if test "x$ac_ct_RANLIB" = x; then
6114 RANLIB=":"
6115 else
6116 case $cross_compiling:$ac_tool_warned in
6117yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006118{ $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 +01006119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006120ac_tool_warned=yes ;;
6121esac
6122 RANLIB=$ac_ct_RANLIB
6123 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006124else
6125 RANLIB="$ac_cv_prog_RANLIB"
6126fi
6127
6128
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006130$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006131if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006132 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006133else
6134 ac_check_lib_save_LIBS=$LIBS
6135LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006137/* end confdefs.h. */
6138
Theodore Ts'oe1052142006-10-21 21:46:47 -04006139/* Override any GCC internal prototype to avoid an error.
6140 Use char because int might match the return type of a GCC
6141 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006142#ifdef __cplusplus
6143extern "C"
6144#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006145char strerror ();
6146int
6147main ()
6148{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006149return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006150 ;
6151 return 0;
6152}
6153_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006154if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006155 ac_cv_lib_cposix_strerror=yes
6156else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006157 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006158fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006159rm -f core conftest.err conftest.$ac_objext \
6160 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006161LIBS=$ac_check_lib_save_LIBS
6162fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006164$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006165if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006166 LIBS="$LIBS -lcposix"
6167fi
6168
6169
6170
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006172$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006173if test "${ac_cv_c_const+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006174 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006175else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006177/* end confdefs.h. */
6178
6179int
6180main ()
6181{
6182/* FIXME: Include the comments suggested by Paul. */
6183#ifndef __cplusplus
6184 /* Ultrix mips cc rejects this. */
6185 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006186 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006187 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006188 char const *const *pcpcc;
6189 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006190 /* NEC SVR4.0.2 mips cc rejects this. */
6191 struct point {int x, y;};
6192 static struct point const zero = {0,0};
6193 /* AIX XL C 1.02.0.0 rejects this.
6194 It does not let you subtract one const X* pointer from another in
6195 an arm of an if-expression whose if-part is not a constant
6196 expression */
6197 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006198 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006199 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006200 ++pcpcc;
6201 ppc = (char**) pcpcc;
6202 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006203 { /* SCO 3.2v4 cc rejects this. */
6204 char *t;
6205 char const *s = 0 ? (char *) 0 : (char const *) 0;
6206
6207 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006208 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006209 }
6210 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6211 int x[] = {25, 17};
6212 const int *foo = &x[0];
6213 ++foo;
6214 }
6215 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6216 typedef const int *iptr;
6217 iptr p = 0;
6218 ++p;
6219 }
6220 { /* AIX XL C 1.02.0.0 rejects this saying
6221 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6222 struct s { int j; const int *ap[3]; };
6223 struct s *b; b->j = 5;
6224 }
6225 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6226 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006227 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006228 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006229 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006230#endif
6231
6232 ;
6233 return 0;
6234}
6235_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006236if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006237 ac_cv_c_const=yes
6238else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006239 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006240fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006242fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006244$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006245if test $ac_cv_c_const = no; then
6246
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006247$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006248
6249fi
6250
6251
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006253$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006254if test "${bh_cv_c_signed+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006255 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006256else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006258/* end confdefs.h. */
6259
6260int
6261main ()
6262{
6263signed char x;
6264 ;
6265 return 0;
6266}
6267_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006268if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006269 bh_cv_c_signed=yes
6270else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006271 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006272fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006274fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006276$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006277 if test $bh_cv_c_signed = no; then
6278
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006279$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006280
6281 fi
6282
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006284$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006285if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006286 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006287else
6288 ac_cv_c_inline=no
6289for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006291/* end confdefs.h. */
6292#ifndef __cplusplus
6293typedef int foo_t;
6294static $ac_kw foo_t static_foo () {return 0; }
6295$ac_kw foo_t foo () {return 0; }
6296#endif
6297
6298_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006299if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006300 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006301fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006304done
6305
6306fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006308$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006310case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006311 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006312 *)
6313 case $ac_cv_c_inline in
6314 no) ac_val=;;
6315 *) ac_val=$ac_cv_c_inline;;
6316 esac
6317 cat >>confdefs.h <<_ACEOF
6318#ifndef __cplusplus
6319#define inline $ac_val
6320#endif
6321_ACEOF
6322 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006323esac
6324
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006325ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6326if test "x$ac_cv_type_off_t" = x""yes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006327
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006328else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006329
6330cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006331#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006332_ACEOF
6333
6334fi
6335
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006336ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6337if test "x$ac_cv_type_size_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006338
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006339else
6340
6341cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006342#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006343_ACEOF
6344
6345fi
6346
6347
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006349$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006350if test "${ac_cv_type_long_long+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. */
6355long long ll = 1LL; int i = 63;
6356int
6357main ()
6358{
6359long long llmax = (long long) -1;
6360 return ll << i | ll >> i | llmax / ll | llmax % ll;
6361 ;
6362 return 0;
6363}
6364_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006365if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006366 ac_cv_type_long_long=yes
6367else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006368 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006369fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006370rm -f core conftest.err conftest.$ac_objext \
6371 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006372fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006374$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006375 if test $ac_cv_type_long_long = yes; then
6376
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006377$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006378
6379 fi
6380
6381
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006383$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006384if test "${gt_cv_c_long_double+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006385 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006386else
6387 if test "$GCC" = yes; then
6388 gt_cv_c_long_double=yes
6389 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006391/* end confdefs.h. */
6392
6393 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6394 long double foo = 0.0;
6395 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6396 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6397
6398int
6399main ()
6400{
6401
6402 ;
6403 return 0;
6404}
6405_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006406if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006407 gt_cv_c_long_double=yes
6408else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006409 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006410fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006412 fi
6413fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006415$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006416 if test $gt_cv_c_long_double = yes; then
6417
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006418$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006419
6420 fi
6421
6422
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006424$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006425if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006426 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006427else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006429/* end confdefs.h. */
6430#include <stddef.h>
6431 wchar_t foo = (wchar_t)'\0';
6432int
6433main ()
6434{
6435
6436 ;
6437 return 0;
6438}
6439_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006440if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006441 gt_cv_c_wchar_t=yes
6442else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006443 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006444fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006446fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006448$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006449 if test $gt_cv_c_wchar_t = yes; then
6450
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006451$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006452
6453 fi
6454
6455
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006457$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006458if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006459 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006460else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006462/* end confdefs.h. */
6463#include <wchar.h>
6464 wint_t foo = (wchar_t)'\0';
6465int
6466main ()
6467{
6468
6469 ;
6470 return 0;
6471}
6472_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006473if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006474 gt_cv_c_wint_t=yes
6475else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006476 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006477fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006479fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006481$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006482 if test $gt_cv_c_wint_t = yes; then
6483
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006484$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006485
6486 fi
6487
6488
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006490$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006491if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006492 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006493else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006495/* end confdefs.h. */
6496#include <sys/types.h>
6497#include <inttypes.h>
6498int
6499main ()
6500{
6501uintmax_t i = (uintmax_t) -1;
6502 ;
6503 return 0;
6504}
6505_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006506if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006507 jm_ac_cv_header_inttypes_h=yes
6508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006509 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006512fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006514$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006515 if test $jm_ac_cv_header_inttypes_h = yes; then
6516
6517cat >>confdefs.h <<_ACEOF
6518#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6519_ACEOF
6520
6521 fi
6522
6523
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006525$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006526if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006527 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006528else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006530/* end confdefs.h. */
6531#include <sys/types.h>
6532#include <stdint.h>
6533int
6534main ()
6535{
6536uintmax_t i = (uintmax_t) -1;
6537 ;
6538 return 0;
6539}
6540_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006541if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006542 jm_ac_cv_header_stdint_h=yes
6543else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006544 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006545fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006547fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006549$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006550 if test $jm_ac_cv_header_stdint_h = yes; then
6551
6552cat >>confdefs.h <<_ACEOF
6553#define HAVE_STDINT_H_WITH_UINTMAX 1
6554_ACEOF
6555
6556 fi
6557
6558
6559
6560
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006562$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006563if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006564 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006565else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006567/* end confdefs.h. */
6568
6569#include <stddef.h>
6570#include <stdlib.h>
6571#if HAVE_STDINT_H_WITH_UINTMAX
6572#include <stdint.h>
6573#endif
6574#if HAVE_INTTYPES_H_WITH_UINTMAX
6575#include <inttypes.h>
6576#endif
6577
6578int
6579main ()
6580{
6581intmax_t x = -1;
6582 ;
6583 return 0;
6584}
6585_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006586if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006587 gt_cv_c_intmax_t=yes
6588else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006589 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006590fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006594$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006595 if test $gt_cv_c_intmax_t = yes; then
6596
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006597$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006598
6599 fi
6600
6601
6602
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006604$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006605if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006606 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006607else
6608
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006609 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006610
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006612/* end confdefs.h. */
6613
6614#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6615 notposix
6616#endif
6617
6618_ACEOF
6619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006620 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006621 gt_cv_func_printf_posix="guessing no"
6622else
6623 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006624fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006625rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006626
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006627
6628else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006630/* end confdefs.h. */
6631
6632#include <stdio.h>
6633#include <string.h>
6634/* The string "%2$d %1$d", with dollar characters protected from the shell's
6635 dollar expansion (possibly an autoconf bug). */
6636static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6637static char buf[100];
6638int main ()
6639{
6640 sprintf (buf, format, 33, 55);
6641 return (strcmp (buf, "55 33") != 0);
6642}
6643_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006644if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006645 gt_cv_func_printf_posix=yes
6646else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006647 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006648fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6650 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006651fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006652
Theodore Ts'oe1052142006-10-21 21:46:47 -04006653
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006654fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006656$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006657 case $gt_cv_func_printf_posix in
6658 *yes)
6659
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006660$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661
6662 ;;
6663 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006664
6665# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6666# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006668$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006669if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006670 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006671else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006674#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006675int
6676main ()
6677{
6678char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006679 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006680 ;
6681 return 0;
6682}
6683_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006684if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006686else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006687 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006688fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006689rm -f core conftest.err conftest.$ac_objext \
6690 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006691fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006693$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006694if test $ac_cv_working_alloca_h = yes; then
6695
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006696$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006697
6698fi
6699
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006701$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006702if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006703 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006704else
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'oa64c9c12000-02-08 20:17:21 +00006707#ifdef __GNUC__
6708# define alloca __builtin_alloca
6709#else
6710# ifdef _MSC_VER
6711# include <malloc.h>
6712# define alloca _alloca
6713# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006714# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006715# include <alloca.h>
6716# else
6717# ifdef _AIX
6718 #pragma alloca
6719# else
6720# ifndef alloca /* predefined by HP cc +Olibcalls */
6721char *alloca ();
6722# endif
6723# endif
6724# endif
6725# endif
6726#endif
6727
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006728int
6729main ()
6730{
6731char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006732 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006733 ;
6734 return 0;
6735}
6736_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006737if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006738 ac_cv_func_alloca_works=yes
6739else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006740 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006741fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006742rm -f core conftest.err conftest.$ac_objext \
6743 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006744fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006746$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006747
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006748if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006749
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006750$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006751
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006752else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006753 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6754# that cause trouble. Some versions do not even contain alloca or
6755# contain a buggy version. If you still want to use their alloca,
6756# use ar to extract alloca.o from them instead of compiling alloca.c.
6757
Theodore Ts'oe1052142006-10-21 21:46:47 -04006758ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006759
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006760$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006761
6762
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006764$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006765if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006766 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006767else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006769/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006770#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006771webecray
6772#else
6773wenotbecray
6774#endif
6775
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006776_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006778 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006779 ac_cv_os_cray=yes
6780else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006781 ac_cv_os_cray=no
6782fi
6783rm -f conftest*
6784
6785fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006787$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006788if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006789 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006791ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6792eval as_val=\$$as_ac_var
6793 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006794
6795cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006796#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006798
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006799 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006800fi
6801
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006802 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006803fi
6804
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006806$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006807if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006808 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006809else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006810 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006811 ac_cv_c_stack_direction=0
6812else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006815$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006817find_stack_direction ()
6818{
6819 static char *addr = 0;
6820 auto char dummy;
6821 if (addr == 0)
6822 {
6823 addr = &dummy;
6824 return find_stack_direction ();
6825 }
6826 else
6827 return (&dummy > addr) ? 1 : -1;
6828}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006829
6830int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006831main ()
6832{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006833 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006834}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006835_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006836if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006837 ac_cv_c_stack_direction=1
6838else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006839 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006840fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6842 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006843fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006844
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006845fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006847$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006848cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006849#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006850_ACEOF
6851
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006852
6853fi
6854
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006855
6856
6857
6858 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006859do :
6860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006861ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6862"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006863eval as_val=\$$as_ac_Header
6864 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006865 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006866#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006867_ACEOF
6868
6869fi
6870
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006871done
6872
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006873
6874
6875
6876
6877
6878
6879
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006880for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006881do :
6882 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6883if test "x$ac_cv_func_getpagesize" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006885#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006886_ACEOF
6887
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006888fi
6889done
6890
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006892$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006893if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006894 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006895else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006896 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006897 ac_cv_func_mmap_fixed_mapped=no
6898else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900/* end confdefs.h. */
6901$ac_includes_default
6902/* malloc might have been renamed as rpl_malloc. */
6903#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006904
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006905/* Thanks to Mike Haertel and Jim Avera for this test.
6906 Here is a matrix of mmap possibilities:
6907 mmap private not fixed
6908 mmap private fixed at somewhere currently unmapped
6909 mmap private fixed at somewhere already mapped
6910 mmap shared not fixed
6911 mmap shared fixed at somewhere currently unmapped
6912 mmap shared fixed at somewhere already mapped
6913 For private mappings, we should verify that changes cannot be read()
6914 back from the file, nor mmap's back from the file at a different
6915 address. (There have been systems where private was not correctly
6916 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006917 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006918 like early versions of FreeBSD and possibly contemporary NetBSD.)
6919 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006920 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006921
6922 Grep wants private fixed already mapped.
6923 The main things grep needs to know about mmap are:
6924 * does it exist and is it safe to write into the mmap'd area
6925 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006926
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006927#include <fcntl.h>
6928#include <sys/mman.h>
6929
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006930#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006931char *malloc ();
6932#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006934/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006935#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006936# ifdef _SC_PAGESIZE
6937# define getpagesize() sysconf(_SC_PAGESIZE)
6938# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006939# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006940# include <sys/param.h>
6941# ifdef EXEC_PAGESIZE
6942# define getpagesize() EXEC_PAGESIZE
6943# else /* no EXEC_PAGESIZE */
6944# ifdef NBPG
6945# define getpagesize() NBPG * CLSIZE
6946# ifndef CLSIZE
6947# define CLSIZE 1
6948# endif /* no CLSIZE */
6949# else /* no NBPG */
6950# ifdef NBPC
6951# define getpagesize() NBPC
6952# else /* no NBPC */
6953# ifdef PAGESIZE
6954# define getpagesize() PAGESIZE
6955# endif /* PAGESIZE */
6956# endif /* no NBPC */
6957# endif /* no NBPG */
6958# endif /* no EXEC_PAGESIZE */
6959# else /* no HAVE_SYS_PARAM_H */
6960# define getpagesize() 8192 /* punt totally */
6961# endif /* no HAVE_SYS_PARAM_H */
6962# endif /* no _SC_PAGESIZE */
6963
6964#endif /* no HAVE_GETPAGESIZE */
6965
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006966int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006967main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006968{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006969 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006970 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006971 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006972 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006973
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006974 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006975
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976 /* First, make a file with some known garbage in it. */
6977 data = (char *) malloc (pagesize);
6978 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006979 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006980 for (i = 0; i < pagesize; ++i)
6981 *(data + i) = rand ();
6982 umask (0);
6983 fd = creat ("conftest.mmap", 0600);
6984 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006985 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006986 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006987 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006989
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006990 /* Next, check that the tail of a page is zero-filled. File must have
6991 non-zero length, otherwise we risk SIGBUS for entire page. */
6992 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6993 if (fd2 < 0)
6994 return 4;
6995 cdata2 = "";
6996 if (write (fd2, cdata2, 1) != 1)
6997 return 5;
6998 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6999 if (data2 == MAP_FAILED)
7000 return 6;
7001 for (i = 0; i < pagesize; ++i)
7002 if (*(data2 + i))
7003 return 7;
7004 close (fd2);
7005 if (munmap (data2, pagesize))
7006 return 8;
7007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007008 /* Next, try to mmap the file at a fixed address which already has
7009 something else allocated at it. If we can, also make sure that
7010 we see the same garbage. */
7011 fd = open ("conftest.mmap", O_RDWR);
7012 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007013 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007014 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7015 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007016 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007017 for (i = 0; i < pagesize; ++i)
7018 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007019 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007020
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007021 /* Finally, make sure that changes to the mapped area do not
7022 percolate back to the file as seen by read(). (This is a bug on
7023 some variants of i386 svr4.0.) */
7024 for (i = 0; i < pagesize; ++i)
7025 *(data2 + i) = *(data2 + i) + 1;
7026 data3 = (char *) malloc (pagesize);
7027 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007028 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007029 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007030 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007031 for (i = 0; i < pagesize; ++i)
7032 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007033 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007034 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007035 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007036}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007037_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007038if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007039 ac_cv_func_mmap_fixed_mapped=yes
7040else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007041 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007042fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7044 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007045fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007046
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007047fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007049$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007050if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007052$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007053
7054fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007055rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007056
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007057
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007058 { $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 +01007059$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 -05007060if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007061 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007062else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007064/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007065
7066#include <features.h>
7067#ifdef __GNU_LIBRARY__
7068 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7069 Lucky GNU user
7070 #endif
7071#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007072
7073_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007075 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007076 ac_cv_gnu_library_2_1=yes
7077else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007078 ac_cv_gnu_library_2_1=no
7079fi
7080rm -f conftest*
7081
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007082
7083
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007084fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007086$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007087
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007088 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007089
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007090
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007091
7092
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007094$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007095if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007096 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007097else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007098
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007099 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007100
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007101 # Guess based on the CPU.
7102 case "$host_cpu" in
7103 alpha* | i3456786 | m68k | s390*)
7104 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7105 *)
7106 gt_cv_int_divbyzero_sigfpe="guessing no";;
7107 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007108
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007109else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007111/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007112
7113#include <stdlib.h>
7114#include <signal.h>
7115
7116static void
7117#ifdef __cplusplus
7118sigfpe_handler (int sig)
7119#else
7120sigfpe_handler (sig) int sig;
7121#endif
7122{
7123 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7124 exit (sig != SIGFPE);
7125}
7126
7127int x = 1;
7128int y = 0;
7129int z;
7130int nan;
7131
7132int main ()
7133{
7134 signal (SIGFPE, sigfpe_handler);
7135/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7136#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7137 signal (SIGTRAP, sigfpe_handler);
7138#endif
7139/* Linux/SPARC yields signal SIGILL. */
7140#if defined (__sparc__) && defined (__linux__)
7141 signal (SIGILL, sigfpe_handler);
7142#endif
7143
7144 z = x / y;
7145 nan = y / y;
7146 exit (1);
7147}
7148
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007149_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007150if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007151 gt_cv_int_divbyzero_sigfpe=yes
7152else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007153 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007154fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7156 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007157fi
7158
Theodore Ts'oe1052142006-10-21 21:46:47 -04007159
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007160fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007162$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007163 case "$gt_cv_int_divbyzero_sigfpe" in
7164 *yes) value=1;;
7165 *) value=0;;
7166 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007167
7168cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007169#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007170_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007171
7172
7173
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007175$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007176if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007177 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007178else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180/* end confdefs.h. */
7181unsigned long long ull = 1ULL; int i = 63;
7182int
7183main ()
7184{
7185unsigned long long ullmax = (unsigned long long) -1;
7186 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7187 ;
7188 return 0;
7189}
7190_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007191if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007192 ac_cv_type_unsigned_long_long=yes
7193else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007194 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007195fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007196rm -f core conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007198fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007200$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007201 if test $ac_cv_type_unsigned_long_long = yes; then
7202
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007203$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007204
7205 fi
7206
7207
7208
7209
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007210 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 -05007211
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007212 test $ac_cv_type_unsigned_long_long = yes \
7213 && ac_type='unsigned long long' \
7214 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007215
7216cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007217#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007218_ACEOF
7219
7220 else
7221
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007222$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007223
7224 fi
7225
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007226
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007228$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007229if test "${gt_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007230 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007231else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007232
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007234/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007235#include <sys/types.h>
7236#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007237int
7238main ()
7239{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007240
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007241 ;
7242 return 0;
7243}
7244_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007245if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007246 gt_cv_header_inttypes_h=yes
7247else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007248 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007249fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007251
7252fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007254$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007255 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007256
7257cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007258#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007259_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007260
7261 fi
7262
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007263
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007264
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007265 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007266 { $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 +01007267$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007268if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007269 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007273/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007274#include <inttypes.h>
7275#ifdef PRId32
7276char *p = PRId32;
7277#endif
7278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007279int
7280main ()
7281{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007282
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007283 ;
7284 return 0;
7285}
7286_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007287if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007288 gt_cv_inttypes_pri_broken=no
7289else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007290 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007291fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007293
7294fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007296$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007297 fi
7298 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007299
7300cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007301#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007302_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007303
7304 fi
7305
7306
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007307 for ac_header in stdint.h
7308do :
7309 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7310if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007311 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007312#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007313_ACEOF
7314
7315fi
7316
7317done
7318
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007320$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007321 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007323/* end confdefs.h. */
7324
7325#include <limits.h>
7326#if HAVE_STDINT_H
7327#include <stdint.h>
7328#endif
7329#ifdef SIZE_MAX
7330Found it
7331#endif
7332
7333_ACEOF
7334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007335 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007336 result=yes
7337fi
7338rm -f conftest*
7339
7340 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007341 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 -05007342
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007343else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007344 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007345fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007346
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007347
7348 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007350else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007351 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007352fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007353
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007354
7355 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007357else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007358 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007359fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007360
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007361
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007362 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007364/* end confdefs.h. */
7365#include <stddef.h>
7366 extern size_t foo;
7367 extern unsigned long foo;
7368
7369int
7370main ()
7371{
7372
7373 ;
7374 return 0;
7375}
7376_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007377if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007378 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007379fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007381 fi
7382 if test -z "$result"; then
7383 if test "$fits_in_uint" = 1; then
7384 result="$res_hi$res_lo"U
7385 else
7386 result="$res_hi$res_lo"UL
7387 fi
7388 else
7389 result='~(size_t)0'
7390 fi
7391 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007393$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007394 if test "$result" != yes; then
7395
7396cat >>confdefs.h <<_ACEOF
7397#define SIZE_MAX $result
7398_ACEOF
7399
7400 fi
7401
7402
7403
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007404 for ac_header in stdint.h
7405do :
7406 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7407if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007408 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007409#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007410_ACEOF
7411
7412fi
7413
7414done
7415
7416
7417
7418 if test "X$prefix" = "XNONE"; then
7419 acl_final_prefix="$ac_default_prefix"
7420 else
7421 acl_final_prefix="$prefix"
7422 fi
7423 if test "X$exec_prefix" = "XNONE"; then
7424 acl_final_exec_prefix='${prefix}'
7425 else
7426 acl_final_exec_prefix="$exec_prefix"
7427 fi
7428 acl_save_prefix="$prefix"
7429 prefix="$acl_final_prefix"
7430 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7431 prefix="$acl_save_prefix"
7432
7433
Theodore Ts'oe1052142006-10-21 21:46:47 -04007434# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007435if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007436 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007437else
7438 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007439fi
7440
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007441# Prepare PATH_SEPARATOR.
7442# The user is always right.
7443if test "${PATH_SEPARATOR+set}" != set; then
7444 echo "#! /bin/sh" >conf$$.sh
7445 echo "exit 0" >>conf$$.sh
7446 chmod +x conf$$.sh
7447 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7448 PATH_SEPARATOR=';'
7449 else
7450 PATH_SEPARATOR=:
7451 fi
7452 rm -f conf$$.sh
7453fi
7454ac_prog=ld
7455if test "$GCC" = yes; then
7456 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007458$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007459 case $host in
7460 *-*-mingw*)
7461 # gcc leaves a trailing carriage return which upsets mingw
7462 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7463 *)
7464 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7465 esac
7466 case $ac_prog in
7467 # Accept absolute paths.
7468 [\\/]* | [A-Za-z]:[\\/]*)
7469 re_direlt='/[^/][^/]*/\.\./'
7470 # Canonicalize the path of ld
7471 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7472 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7473 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7474 done
7475 test -z "$LD" && LD="$ac_prog"
7476 ;;
7477 "")
7478 # If it fails, then pretend we aren't using GCC.
7479 ac_prog=ld
7480 ;;
7481 *)
7482 # If it is relative, then search for the first ld in PATH.
7483 with_gnu_ld=unknown
7484 ;;
7485 esac
7486elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007488$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007489else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007491$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007492fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007493if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007494 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007495else
7496 if test -z "$LD"; then
7497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7498 for ac_dir in $PATH; do
7499 test -z "$ac_dir" && ac_dir=.
7500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7501 acl_cv_path_LD="$ac_dir/$ac_prog"
7502 # Check to see if the program is GNU ld. I'd rather use --version,
7503 # but apparently some GNU ld's only accept -v.
7504 # Break only if it was the GNU/non-GNU ld that we prefer.
7505 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7506 *GNU* | *'with BFD'*)
7507 test "$with_gnu_ld" != no && break ;;
7508 *)
7509 test "$with_gnu_ld" != yes && break ;;
7510 esac
7511 fi
7512 done
7513 IFS="$ac_save_ifs"
7514else
7515 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7516fi
7517fi
7518
7519LD="$acl_cv_path_LD"
7520if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007522$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007525$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007526fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007527test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007529$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007530if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007531 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007532else
7533 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7534case `$LD -v 2>&1 </dev/null` in
7535*GNU* | *'with BFD'*)
7536 acl_cv_prog_gnu_ld=yes ;;
7537*)
7538 acl_cv_prog_gnu_ld=no ;;
7539esac
7540fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007542$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007543with_gnu_ld=$acl_cv_prog_gnu_ld
7544
7545
7546
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007548$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007549if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007550 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551else
7552
7553 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7554 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7555 . ./conftest.sh
7556 rm -f ./conftest.sh
7557 acl_cv_rpath=done
7558
7559fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007561$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007562 wl="$acl_cv_wl"
7563 libext="$acl_cv_libext"
7564 shlibext="$acl_cv_shlibext"
7565 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7566 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7567 hardcode_direct="$acl_cv_hardcode_direct"
7568 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007569 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007570if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007571 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007572else
7573 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007574fi
7575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007576
7577
7578
7579
7580
7581
7582
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007583 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007584
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007585 acl_save_prefix="$prefix"
7586 prefix="$acl_final_prefix"
7587 acl_save_exec_prefix="$exec_prefix"
7588 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007589
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007590 eval additional_includedir=\"$includedir\"
7591 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007592
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007593 exec_prefix="$acl_save_exec_prefix"
7594 prefix="$acl_save_prefix"
7595
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007596
Theodore Ts'oe1052142006-10-21 21:46:47 -04007597# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007598if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007599 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007600 if test "X$withval" = "Xno"; then
7601 use_additional=no
7602 else
7603 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007604
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007605 acl_save_prefix="$prefix"
7606 prefix="$acl_final_prefix"
7607 acl_save_exec_prefix="$exec_prefix"
7608 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007609
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007610 eval additional_includedir=\"$includedir\"
7611 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007612
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007613 exec_prefix="$acl_save_exec_prefix"
7614 prefix="$acl_save_prefix"
7615
7616 else
7617 additional_includedir="$withval/include"
7618 additional_libdir="$withval/lib"
7619 fi
7620 fi
7621
Theodore Ts'oe1052142006-10-21 21:46:47 -04007622fi
7623
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007624 LIBICONV=
7625 LTLIBICONV=
7626 INCICONV=
7627 rpathdirs=
7628 ltrpathdirs=
7629 names_already_handled=
7630 names_next_round='iconv '
7631 while test -n "$names_next_round"; do
7632 names_this_round="$names_next_round"
7633 names_next_round=
7634 for name in $names_this_round; do
7635 already_handled=
7636 for n in $names_already_handled; do
7637 if test "$n" = "$name"; then
7638 already_handled=yes
7639 break
7640 fi
7641 done
7642 if test -z "$already_handled"; then
7643 names_already_handled="$names_already_handled $name"
7644 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7645 eval value=\"\$HAVE_LIB$uppername\"
7646 if test -n "$value"; then
7647 if test "$value" = yes; then
7648 eval value=\"\$LIB$uppername\"
7649 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7650 eval value=\"\$LTLIB$uppername\"
7651 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7652 else
7653 :
7654 fi
7655 else
7656 found_dir=
7657 found_la=
7658 found_so=
7659 found_a=
7660 if test $use_additional = yes; then
7661 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7662 found_dir="$additional_libdir"
7663 found_so="$additional_libdir/lib$name.$shlibext"
7664 if test -f "$additional_libdir/lib$name.la"; then
7665 found_la="$additional_libdir/lib$name.la"
7666 fi
7667 else
7668 if test -f "$additional_libdir/lib$name.$libext"; then
7669 found_dir="$additional_libdir"
7670 found_a="$additional_libdir/lib$name.$libext"
7671 if test -f "$additional_libdir/lib$name.la"; then
7672 found_la="$additional_libdir/lib$name.la"
7673 fi
7674 fi
7675 fi
7676 fi
7677 if test "X$found_dir" = "X"; then
7678 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007679
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007680 acl_save_prefix="$prefix"
7681 prefix="$acl_final_prefix"
7682 acl_save_exec_prefix="$exec_prefix"
7683 exec_prefix="$acl_final_exec_prefix"
7684 eval x=\"$x\"
7685 exec_prefix="$acl_save_exec_prefix"
7686 prefix="$acl_save_prefix"
7687
7688 case "$x" in
7689 -L*)
7690 dir=`echo "X$x" | sed -e 's/^X-L//'`
7691 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7692 found_dir="$dir"
7693 found_so="$dir/lib$name.$shlibext"
7694 if test -f "$dir/lib$name.la"; then
7695 found_la="$dir/lib$name.la"
7696 fi
7697 else
7698 if test -f "$dir/lib$name.$libext"; then
7699 found_dir="$dir"
7700 found_a="$dir/lib$name.$libext"
7701 if test -f "$dir/lib$name.la"; then
7702 found_la="$dir/lib$name.la"
7703 fi
7704 fi
7705 fi
7706 ;;
7707 esac
7708 if test "X$found_dir" != "X"; then
7709 break
7710 fi
7711 done
7712 fi
7713 if test "X$found_dir" != "X"; then
7714 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7715 if test "X$found_so" != "X"; then
7716 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7717 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7718 else
7719 haveit=
7720 for x in $ltrpathdirs; do
7721 if test "X$x" = "X$found_dir"; then
7722 haveit=yes
7723 break
7724 fi
7725 done
7726 if test -z "$haveit"; then
7727 ltrpathdirs="$ltrpathdirs $found_dir"
7728 fi
7729 if test "$hardcode_direct" = yes; then
7730 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7731 else
7732 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7733 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7734 haveit=
7735 for x in $rpathdirs; do
7736 if test "X$x" = "X$found_dir"; then
7737 haveit=yes
7738 break
7739 fi
7740 done
7741 if test -z "$haveit"; then
7742 rpathdirs="$rpathdirs $found_dir"
7743 fi
7744 else
7745 haveit=
7746 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007747
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007748 acl_save_prefix="$prefix"
7749 prefix="$acl_final_prefix"
7750 acl_save_exec_prefix="$exec_prefix"
7751 exec_prefix="$acl_final_exec_prefix"
7752 eval x=\"$x\"
7753 exec_prefix="$acl_save_exec_prefix"
7754 prefix="$acl_save_prefix"
7755
7756 if test "X$x" = "X-L$found_dir"; then
7757 haveit=yes
7758 break
7759 fi
7760 done
7761 if test -z "$haveit"; then
7762 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7763 fi
7764 if test "$hardcode_minus_L" != no; then
7765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7766 else
7767 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7768 fi
7769 fi
7770 fi
7771 fi
7772 else
7773 if test "X$found_a" != "X"; then
7774 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7775 else
7776 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7777 fi
7778 fi
7779 additional_includedir=
7780 case "$found_dir" in
7781 */lib | */lib/)
7782 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7783 additional_includedir="$basedir/include"
7784 ;;
7785 esac
7786 if test "X$additional_includedir" != "X"; then
7787 if test "X$additional_includedir" != "X/usr/include"; then
7788 haveit=
7789 if test "X$additional_includedir" = "X/usr/local/include"; then
7790 if test -n "$GCC"; then
7791 case $host_os in
7792 linux*) haveit=yes;;
7793 esac
7794 fi
7795 fi
7796 if test -z "$haveit"; then
7797 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007798
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007799 acl_save_prefix="$prefix"
7800 prefix="$acl_final_prefix"
7801 acl_save_exec_prefix="$exec_prefix"
7802 exec_prefix="$acl_final_exec_prefix"
7803 eval x=\"$x\"
7804 exec_prefix="$acl_save_exec_prefix"
7805 prefix="$acl_save_prefix"
7806
7807 if test "X$x" = "X-I$additional_includedir"; then
7808 haveit=yes
7809 break
7810 fi
7811 done
7812 if test -z "$haveit"; then
7813 if test -d "$additional_includedir"; then
7814 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7815 fi
7816 fi
7817 fi
7818 fi
7819 fi
7820 if test -n "$found_la"; then
7821 save_libdir="$libdir"
7822 case "$found_la" in
7823 */* | *\\*) . "$found_la" ;;
7824 *) . "./$found_la" ;;
7825 esac
7826 libdir="$save_libdir"
7827 for dep in $dependency_libs; do
7828 case "$dep" in
7829 -L*)
7830 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7831 if test "X$additional_libdir" != "X/usr/lib"; then
7832 haveit=
7833 if test "X$additional_libdir" = "X/usr/local/lib"; then
7834 if test -n "$GCC"; then
7835 case $host_os in
7836 linux*) haveit=yes;;
7837 esac
7838 fi
7839 fi
7840 if test -z "$haveit"; then
7841 haveit=
7842 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007843
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007844 acl_save_prefix="$prefix"
7845 prefix="$acl_final_prefix"
7846 acl_save_exec_prefix="$exec_prefix"
7847 exec_prefix="$acl_final_exec_prefix"
7848 eval x=\"$x\"
7849 exec_prefix="$acl_save_exec_prefix"
7850 prefix="$acl_save_prefix"
7851
7852 if test "X$x" = "X-L$additional_libdir"; then
7853 haveit=yes
7854 break
7855 fi
7856 done
7857 if test -z "$haveit"; then
7858 if test -d "$additional_libdir"; then
7859 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7860 fi
7861 fi
7862 haveit=
7863 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007864
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007865 acl_save_prefix="$prefix"
7866 prefix="$acl_final_prefix"
7867 acl_save_exec_prefix="$exec_prefix"
7868 exec_prefix="$acl_final_exec_prefix"
7869 eval x=\"$x\"
7870 exec_prefix="$acl_save_exec_prefix"
7871 prefix="$acl_save_prefix"
7872
7873 if test "X$x" = "X-L$additional_libdir"; then
7874 haveit=yes
7875 break
7876 fi
7877 done
7878 if test -z "$haveit"; then
7879 if test -d "$additional_libdir"; then
7880 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7881 fi
7882 fi
7883 fi
7884 fi
7885 ;;
7886 -R*)
7887 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7888 if test "$enable_rpath" != no; then
7889 haveit=
7890 for x in $rpathdirs; do
7891 if test "X$x" = "X$dir"; then
7892 haveit=yes
7893 break
7894 fi
7895 done
7896 if test -z "$haveit"; then
7897 rpathdirs="$rpathdirs $dir"
7898 fi
7899 haveit=
7900 for x in $ltrpathdirs; do
7901 if test "X$x" = "X$dir"; then
7902 haveit=yes
7903 break
7904 fi
7905 done
7906 if test -z "$haveit"; then
7907 ltrpathdirs="$ltrpathdirs $dir"
7908 fi
7909 fi
7910 ;;
7911 -l*)
7912 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7913 ;;
7914 *.la)
7915 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7916 ;;
7917 *)
7918 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7919 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7920 ;;
7921 esac
7922 done
7923 fi
7924 else
7925 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7926 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7927 fi
7928 fi
7929 fi
7930 done
7931 done
7932 if test "X$rpathdirs" != "X"; then
7933 if test -n "$hardcode_libdir_separator"; then
7934 alldirs=
7935 for found_dir in $rpathdirs; do
7936 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7937 done
7938 acl_save_libdir="$libdir"
7939 libdir="$alldirs"
7940 eval flag=\"$hardcode_libdir_flag_spec\"
7941 libdir="$acl_save_libdir"
7942 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7943 else
7944 for found_dir in $rpathdirs; do
7945 acl_save_libdir="$libdir"
7946 libdir="$found_dir"
7947 eval flag=\"$hardcode_libdir_flag_spec\"
7948 libdir="$acl_save_libdir"
7949 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7950 done
7951 fi
7952 fi
7953 if test "X$ltrpathdirs" != "X"; then
7954 for found_dir in $ltrpathdirs; do
7955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7956 done
7957 fi
7958
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007959
7960
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007961
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007962
7963
7964
7965
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007966 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7967if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007968
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007969else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007970
7971$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007972
7973
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007974fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007975
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007976 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 -04007977stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007978do :
7979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7980ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7981eval as_val=\$$as_ac_Header
7982 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007983 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007984#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007985_ACEOF
7986
7987fi
7988
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007989done
7990
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007991 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007992mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7993strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7994__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007995do :
7996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7997ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7998eval as_val=\$$as_ac_var
7999 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008000 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008001#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008002_ACEOF
8003
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008004fi
8005done
8006
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008008
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008010$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008011if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008012 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008013else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008015/* end confdefs.h. */
8016#include <stdio.h>
8017int
8018main ()
8019{
8020
8021#ifndef _snprintf
8022 char *p = (char *) _snprintf;
8023#endif
8024
8025 ;
8026 return 0;
8027}
8028_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008029if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008030 ac_cv_have_decl__snprintf=yes
8031else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008032 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008033fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008035fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008037$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008038 if test $ac_cv_have_decl__snprintf = yes; then
8039 gt_value=1
8040 else
8041 gt_value=0
8042 fi
8043
8044cat >>confdefs.h <<_ACEOF
8045#define HAVE_DECL__SNPRINTF $gt_value
8046_ACEOF
8047
8048
8049
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008051$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008052if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008053 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008054else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008056/* end confdefs.h. */
8057#include <stdio.h>
8058int
8059main ()
8060{
8061
8062#ifndef _snwprintf
8063 char *p = (char *) _snwprintf;
8064#endif
8065
8066 ;
8067 return 0;
8068}
8069_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008070if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008071 ac_cv_have_decl__snwprintf=yes
8072else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008073 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008074fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008076fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008078$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008079 if test $ac_cv_have_decl__snwprintf = yes; then
8080 gt_value=1
8081 else
8082 gt_value=0
8083 fi
8084
8085cat >>confdefs.h <<_ACEOF
8086#define HAVE_DECL__SNWPRINTF $gt_value
8087_ACEOF
8088
8089
8090
8091
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008093$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008094if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008095 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008096else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008098/* end confdefs.h. */
8099#include <stdio.h>
8100int
8101main ()
8102{
8103
8104#ifndef feof_unlocked
8105 char *p = (char *) feof_unlocked;
8106#endif
8107
8108 ;
8109 return 0;
8110}
8111_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008112if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008113 ac_cv_have_decl_feof_unlocked=yes
8114else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008115 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008116fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008118fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008120$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008121 if test $ac_cv_have_decl_feof_unlocked = yes; then
8122 gt_value=1
8123 else
8124 gt_value=0
8125 fi
8126
8127cat >>confdefs.h <<_ACEOF
8128#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8129_ACEOF
8130
8131
8132
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008134$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008135if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008136 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008137else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008139/* end confdefs.h. */
8140#include <stdio.h>
8141int
8142main ()
8143{
8144
8145#ifndef fgets_unlocked
8146 char *p = (char *) fgets_unlocked;
8147#endif
8148
8149 ;
8150 return 0;
8151}
8152_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008153if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008154 ac_cv_have_decl_fgets_unlocked=yes
8155else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008156 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008157fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008159fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008161$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008162 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8163 gt_value=1
8164 else
8165 gt_value=0
8166 fi
8167
8168cat >>confdefs.h <<_ACEOF
8169#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8170_ACEOF
8171
8172
8173
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008175$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008176if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008177 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008178else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008180/* end confdefs.h. */
8181#include <stdio.h>
8182int
8183main ()
8184{
8185
8186#ifndef getc_unlocked
8187 char *p = (char *) getc_unlocked;
8188#endif
8189
8190 ;
8191 return 0;
8192}
8193_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008194if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008195 ac_cv_have_decl_getc_unlocked=yes
8196else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008197 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008198fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008200fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008202$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008203 if test $ac_cv_have_decl_getc_unlocked = yes; then
8204 gt_value=1
8205 else
8206 gt_value=0
8207 fi
8208
8209cat >>confdefs.h <<_ACEOF
8210#define HAVE_DECL_GETC_UNLOCKED $gt_value
8211_ACEOF
8212
8213
8214
8215 case $gt_cv_func_printf_posix in
8216 *yes) HAVE_POSIX_PRINTF=1 ;;
8217 *) HAVE_POSIX_PRINTF=0 ;;
8218 esac
8219
8220 if test "$ac_cv_func_asprintf" = yes; then
8221 HAVE_ASPRINTF=1
8222 else
8223 HAVE_ASPRINTF=0
8224 fi
8225
8226 if test "$ac_cv_func_snprintf" = yes; then
8227 HAVE_SNPRINTF=1
8228 else
8229 HAVE_SNPRINTF=0
8230 fi
8231
8232 if test "$ac_cv_func_wprintf" = yes; then
8233 HAVE_WPRINTF=1
8234 else
8235 HAVE_WPRINTF=0
8236 fi
8237
8238
8239
8240
8241
8242
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008243
8244 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008245
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008246 for element in $INCICONV; do
8247 haveit=
8248 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008249
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008250 acl_save_prefix="$prefix"
8251 prefix="$acl_final_prefix"
8252 acl_save_exec_prefix="$exec_prefix"
8253 exec_prefix="$acl_final_exec_prefix"
8254 eval x=\"$x\"
8255 exec_prefix="$acl_save_exec_prefix"
8256 prefix="$acl_save_prefix"
8257
8258 if test "X$x" = "X$element"; then
8259 haveit=yes
8260 break
8261 fi
8262 done
8263 if test -z "$haveit"; then
8264 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8265 fi
8266 done
8267
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008268
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008270$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008271if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008272 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008273else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008274
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008275 am_cv_func_iconv="no, consider installing GNU libiconv"
8276 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008278/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008279#include <stdlib.h>
8280#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008281int
8282main ()
8283{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008284iconv_t cd = iconv_open("","");
8285 iconv(cd,NULL,NULL,NULL,NULL);
8286 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008287 ;
8288 return 0;
8289}
8290_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008291if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008292 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008293fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008294rm -f core conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008296 if test "$am_cv_func_iconv" != yes; then
8297 am_save_LIBS="$LIBS"
8298 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008300/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008301#include <stdlib.h>
8302#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008303int
8304main ()
8305{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008306iconv_t cd = iconv_open("","");
8307 iconv(cd,NULL,NULL,NULL,NULL);
8308 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008309 ;
8310 return 0;
8311}
8312_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008313if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008314 am_cv_lib_iconv=yes
8315 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008316fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008317rm -f core conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008319 LIBS="$am_save_LIBS"
8320 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008321
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008322fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008324$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008325 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008326
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008327$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008328
8329 fi
8330 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008332$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008334$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008335 else
8336 CPPFLAGS="$am_save_CPPFLAGS"
8337 LIBICONV=
8338 LTLIBICONV=
8339 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008340
8341
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008342
8343 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008345$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008346 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008347 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008348else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008349
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008351/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008352
8353#include <stdlib.h>
8354#include <iconv.h>
8355extern
8356#ifdef __cplusplus
8357"C"
8358#endif
8359#if defined(__STDC__) || defined(__cplusplus)
8360size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8361#else
8362size_t iconv();
8363#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008364
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008365int
8366main ()
8367{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008368
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008369 ;
8370 return 0;
8371}
8372_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008373if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008374 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008375else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008376 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008377fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008379 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 +00008380fi
8381
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008382 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008384 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008385$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008386 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008387
8388cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008389#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008390_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008391
8392 fi
8393
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008394
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008396$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008397if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008398 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008399else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008401/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008402#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008403int
8404main ()
8405{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008406char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008407 ;
8408 return 0;
8409}
8410_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008411if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008412 am_cv_langinfo_codeset=yes
8413else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008414 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008415fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008416rm -f core conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008418
8419fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008421$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008422 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008423
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008424$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008425
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008426 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008427
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008428 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008429
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008431$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008432if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008433 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008434else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008436/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008437#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008438int
8439main ()
8440{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008441return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008442 ;
8443 return 0;
8444}
8445_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008446if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008447 am_cv_val_LC_MESSAGES=yes
8448else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008449 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008450fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008451rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008453fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008455$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008456 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008457
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008458$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008459
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008460 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008461
8462 fi
8463
8464 for ac_prog in bison
8465do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008466 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008467set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008469$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008470if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008471 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008472else
8473 if test -n "$INTLBISON"; then
8474 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8475else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477for as_dir in $PATH
8478do
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008481 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008482 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 -05008483 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008485 break 2
8486 fi
8487done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008488 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008489IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008490
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008491fi
8492fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008493INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008494if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008496$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008497else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008499$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008500fi
8501
Theodore Ts'oe1052142006-10-21 21:46:47 -04008502
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008503 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008504done
8505
8506 if test -z "$INTLBISON"; then
8507 ac_verc_fail=yes
8508 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008510$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008511 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8512 case $ac_prog_version in
8513 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8514 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8515 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8516 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8517 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008519$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008520 fi
8521 if test $ac_verc_fail = yes; then
8522 INTLBISON=:
8523 fi
8524
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008525
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008526
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008527
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008528
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008529
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008530
8531
8532
8533
8534
8535
8536
8537
8538
8539
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008541$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008542 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008543if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008544 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008545else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008546 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008547fi
8548
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008550$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008551
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008552
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008553
8554
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008555 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008556 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008557
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008558 LIBINTL=
8559 LTLIBINTL=
8560 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008561
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008562 if test "$USE_NLS" = "yes"; then
8563 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008564
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008566$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008567
Theodore Ts'oe1052142006-10-21 21:46:47 -04008568# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008569if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008570 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008571else
8572 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008573fi
8574
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008576$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008577
8578 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8579 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008581
8582
8583
8584
8585
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008587$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008588if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008589 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008590else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008592/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008593#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008594extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008595extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008596int
8597main ()
8598{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008599bindtextdomain ("", "");
8600return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008601 ;
8602 return 0;
8603}
8604_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008605if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008606 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008607else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008608 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008609fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008610rm -f core conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008612fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008614$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008615
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008616 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008617
8618
8619
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008620 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008621
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008622 acl_save_prefix="$prefix"
8623 prefix="$acl_final_prefix"
8624 acl_save_exec_prefix="$exec_prefix"
8625 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008626
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008627 eval additional_includedir=\"$includedir\"
8628 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008629
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008630 exec_prefix="$acl_save_exec_prefix"
8631 prefix="$acl_save_prefix"
8632
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008633
Theodore Ts'oe1052142006-10-21 21:46:47 -04008634# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008635if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008636 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008637 if test "X$withval" = "Xno"; then
8638 use_additional=no
8639 else
8640 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008641
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008642 acl_save_prefix="$prefix"
8643 prefix="$acl_final_prefix"
8644 acl_save_exec_prefix="$exec_prefix"
8645 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008646
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008647 eval additional_includedir=\"$includedir\"
8648 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008649
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008650 exec_prefix="$acl_save_exec_prefix"
8651 prefix="$acl_save_prefix"
8652
8653 else
8654 additional_includedir="$withval/include"
8655 additional_libdir="$withval/lib"
8656 fi
8657 fi
8658
Theodore Ts'oe1052142006-10-21 21:46:47 -04008659fi
8660
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008661 LIBINTL=
8662 LTLIBINTL=
8663 INCINTL=
8664 rpathdirs=
8665 ltrpathdirs=
8666 names_already_handled=
8667 names_next_round='intl '
8668 while test -n "$names_next_round"; do
8669 names_this_round="$names_next_round"
8670 names_next_round=
8671 for name in $names_this_round; do
8672 already_handled=
8673 for n in $names_already_handled; do
8674 if test "$n" = "$name"; then
8675 already_handled=yes
8676 break
8677 fi
8678 done
8679 if test -z "$already_handled"; then
8680 names_already_handled="$names_already_handled $name"
8681 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8682 eval value=\"\$HAVE_LIB$uppername\"
8683 if test -n "$value"; then
8684 if test "$value" = yes; then
8685 eval value=\"\$LIB$uppername\"
8686 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8687 eval value=\"\$LTLIB$uppername\"
8688 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8689 else
8690 :
8691 fi
8692 else
8693 found_dir=
8694 found_la=
8695 found_so=
8696 found_a=
8697 if test $use_additional = yes; then
8698 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8699 found_dir="$additional_libdir"
8700 found_so="$additional_libdir/lib$name.$shlibext"
8701 if test -f "$additional_libdir/lib$name.la"; then
8702 found_la="$additional_libdir/lib$name.la"
8703 fi
8704 else
8705 if test -f "$additional_libdir/lib$name.$libext"; then
8706 found_dir="$additional_libdir"
8707 found_a="$additional_libdir/lib$name.$libext"
8708 if test -f "$additional_libdir/lib$name.la"; then
8709 found_la="$additional_libdir/lib$name.la"
8710 fi
8711 fi
8712 fi
8713 fi
8714 if test "X$found_dir" = "X"; then
8715 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008716
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008717 acl_save_prefix="$prefix"
8718 prefix="$acl_final_prefix"
8719 acl_save_exec_prefix="$exec_prefix"
8720 exec_prefix="$acl_final_exec_prefix"
8721 eval x=\"$x\"
8722 exec_prefix="$acl_save_exec_prefix"
8723 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008724
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008725 case "$x" in
8726 -L*)
8727 dir=`echo "X$x" | sed -e 's/^X-L//'`
8728 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8729 found_dir="$dir"
8730 found_so="$dir/lib$name.$shlibext"
8731 if test -f "$dir/lib$name.la"; then
8732 found_la="$dir/lib$name.la"
8733 fi
8734 else
8735 if test -f "$dir/lib$name.$libext"; then
8736 found_dir="$dir"
8737 found_a="$dir/lib$name.$libext"
8738 if test -f "$dir/lib$name.la"; then
8739 found_la="$dir/lib$name.la"
8740 fi
8741 fi
8742 fi
8743 ;;
8744 esac
8745 if test "X$found_dir" != "X"; then
8746 break
8747 fi
8748 done
8749 fi
8750 if test "X$found_dir" != "X"; then
8751 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8752 if test "X$found_so" != "X"; then
8753 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8754 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8755 else
8756 haveit=
8757 for x in $ltrpathdirs; do
8758 if test "X$x" = "X$found_dir"; then
8759 haveit=yes
8760 break
8761 fi
8762 done
8763 if test -z "$haveit"; then
8764 ltrpathdirs="$ltrpathdirs $found_dir"
8765 fi
8766 if test "$hardcode_direct" = yes; then
8767 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8768 else
8769 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8770 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8771 haveit=
8772 for x in $rpathdirs; do
8773 if test "X$x" = "X$found_dir"; then
8774 haveit=yes
8775 break
8776 fi
8777 done
8778 if test -z "$haveit"; then
8779 rpathdirs="$rpathdirs $found_dir"
8780 fi
8781 else
8782 haveit=
8783 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008784
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008785 acl_save_prefix="$prefix"
8786 prefix="$acl_final_prefix"
8787 acl_save_exec_prefix="$exec_prefix"
8788 exec_prefix="$acl_final_exec_prefix"
8789 eval x=\"$x\"
8790 exec_prefix="$acl_save_exec_prefix"
8791 prefix="$acl_save_prefix"
8792
8793 if test "X$x" = "X-L$found_dir"; then
8794 haveit=yes
8795 break
8796 fi
8797 done
8798 if test -z "$haveit"; then
8799 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8800 fi
8801 if test "$hardcode_minus_L" != no; then
8802 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8803 else
8804 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8805 fi
8806 fi
8807 fi
8808 fi
8809 else
8810 if test "X$found_a" != "X"; then
8811 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8812 else
8813 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8814 fi
8815 fi
8816 additional_includedir=
8817 case "$found_dir" in
8818 */lib | */lib/)
8819 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8820 additional_includedir="$basedir/include"
8821 ;;
8822 esac
8823 if test "X$additional_includedir" != "X"; then
8824 if test "X$additional_includedir" != "X/usr/include"; then
8825 haveit=
8826 if test "X$additional_includedir" = "X/usr/local/include"; then
8827 if test -n "$GCC"; then
8828 case $host_os in
8829 linux*) haveit=yes;;
8830 esac
8831 fi
8832 fi
8833 if test -z "$haveit"; then
8834 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008835
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008836 acl_save_prefix="$prefix"
8837 prefix="$acl_final_prefix"
8838 acl_save_exec_prefix="$exec_prefix"
8839 exec_prefix="$acl_final_exec_prefix"
8840 eval x=\"$x\"
8841 exec_prefix="$acl_save_exec_prefix"
8842 prefix="$acl_save_prefix"
8843
8844 if test "X$x" = "X-I$additional_includedir"; then
8845 haveit=yes
8846 break
8847 fi
8848 done
8849 if test -z "$haveit"; then
8850 if test -d "$additional_includedir"; then
8851 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8852 fi
8853 fi
8854 fi
8855 fi
8856 fi
8857 if test -n "$found_la"; then
8858 save_libdir="$libdir"
8859 case "$found_la" in
8860 */* | *\\*) . "$found_la" ;;
8861 *) . "./$found_la" ;;
8862 esac
8863 libdir="$save_libdir"
8864 for dep in $dependency_libs; do
8865 case "$dep" in
8866 -L*)
8867 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8868 if test "X$additional_libdir" != "X/usr/lib"; then
8869 haveit=
8870 if test "X$additional_libdir" = "X/usr/local/lib"; then
8871 if test -n "$GCC"; then
8872 case $host_os in
8873 linux*) haveit=yes;;
8874 esac
8875 fi
8876 fi
8877 if test -z "$haveit"; then
8878 haveit=
8879 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008880
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008881 acl_save_prefix="$prefix"
8882 prefix="$acl_final_prefix"
8883 acl_save_exec_prefix="$exec_prefix"
8884 exec_prefix="$acl_final_exec_prefix"
8885 eval x=\"$x\"
8886 exec_prefix="$acl_save_exec_prefix"
8887 prefix="$acl_save_prefix"
8888
8889 if test "X$x" = "X-L$additional_libdir"; then
8890 haveit=yes
8891 break
8892 fi
8893 done
8894 if test -z "$haveit"; then
8895 if test -d "$additional_libdir"; then
8896 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8897 fi
8898 fi
8899 haveit=
8900 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008901
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008902 acl_save_prefix="$prefix"
8903 prefix="$acl_final_prefix"
8904 acl_save_exec_prefix="$exec_prefix"
8905 exec_prefix="$acl_final_exec_prefix"
8906 eval x=\"$x\"
8907 exec_prefix="$acl_save_exec_prefix"
8908 prefix="$acl_save_prefix"
8909
8910 if test "X$x" = "X-L$additional_libdir"; then
8911 haveit=yes
8912 break
8913 fi
8914 done
8915 if test -z "$haveit"; then
8916 if test -d "$additional_libdir"; then
8917 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8918 fi
8919 fi
8920 fi
8921 fi
8922 ;;
8923 -R*)
8924 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8925 if test "$enable_rpath" != no; then
8926 haveit=
8927 for x in $rpathdirs; do
8928 if test "X$x" = "X$dir"; then
8929 haveit=yes
8930 break
8931 fi
8932 done
8933 if test -z "$haveit"; then
8934 rpathdirs="$rpathdirs $dir"
8935 fi
8936 haveit=
8937 for x in $ltrpathdirs; do
8938 if test "X$x" = "X$dir"; then
8939 haveit=yes
8940 break
8941 fi
8942 done
8943 if test -z "$haveit"; then
8944 ltrpathdirs="$ltrpathdirs $dir"
8945 fi
8946 fi
8947 ;;
8948 -l*)
8949 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8950 ;;
8951 *.la)
8952 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8953 ;;
8954 *)
8955 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8956 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8957 ;;
8958 esac
8959 done
8960 fi
8961 else
8962 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8963 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8964 fi
8965 fi
8966 fi
8967 done
8968 done
8969 if test "X$rpathdirs" != "X"; then
8970 if test -n "$hardcode_libdir_separator"; then
8971 alldirs=
8972 for found_dir in $rpathdirs; do
8973 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8974 done
8975 acl_save_libdir="$libdir"
8976 libdir="$alldirs"
8977 eval flag=\"$hardcode_libdir_flag_spec\"
8978 libdir="$acl_save_libdir"
8979 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8980 else
8981 for found_dir in $rpathdirs; do
8982 acl_save_libdir="$libdir"
8983 libdir="$found_dir"
8984 eval flag=\"$hardcode_libdir_flag_spec\"
8985 libdir="$acl_save_libdir"
8986 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8987 done
8988 fi
8989 fi
8990 if test "X$ltrpathdirs" != "X"; then
8991 for found_dir in $ltrpathdirs; do
8992 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8993 done
8994 fi
8995
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008997$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008998if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008999 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009000else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009001 gt_save_CPPFLAGS="$CPPFLAGS"
9002 CPPFLAGS="$CPPFLAGS $INCINTL"
9003 gt_save_LIBS="$LIBS"
9004 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009006/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009007#include <libintl.h>
9008extern int _nl_msg_cat_cntr;
9009extern
9010#ifdef __cplusplus
9011"C"
9012#endif
9013const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009014int
9015main ()
9016{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009017bindtextdomain ("", "");
9018return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009019 ;
9020 return 0;
9021}
9022_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009023if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009024 gt_cv_func_gnugettext1_libintl=yes
9025else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009026 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009027fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009028rm -f core conftest.err conftest.$ac_objext \
9029 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009030 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9031 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009033/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009034#include <libintl.h>
9035extern int _nl_msg_cat_cntr;
9036extern
9037#ifdef __cplusplus
9038"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009039#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009040const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009041int
9042main ()
9043{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009044bindtextdomain ("", "");
9045return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009046 ;
9047 return 0;
9048}
9049_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009050if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009051 LIBINTL="$LIBINTL $LIBICONV"
9052 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9053 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009054
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009055fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009056rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009058 fi
9059 CPPFLAGS="$gt_save_CPPFLAGS"
9060 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009061fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009063$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009064 fi
9065
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009066 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9067 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009068 && test "$PACKAGE" != gettext-runtime \
9069 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009070 gt_use_preinstalled_gnugettext=yes
9071 else
9072 LIBINTL=
9073 LTLIBINTL=
9074 INCINTL=
9075 fi
9076
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009077
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009078 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9079 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009080 fi
9081 fi
9082
9083 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009084 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009085 USE_INCLUDED_LIBINTL=yes
9086 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9087 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9088 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009089 fi
9090
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009091 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9092 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9093 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009094 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009095
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009096
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009097 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9098 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009099
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009100$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009101
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009102 else
9103 USE_NLS=no
9104 fi
9105 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009106
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009108$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009110$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009111 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009113$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009114 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9115 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9116 gt_source="external libintl"
9117 else
9118 gt_source="libc"
9119 fi
9120 else
9121 gt_source="included intl directory"
9122 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009124$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009125 fi
9126
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009127 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009128
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009129 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9130 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009132$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009134$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009135
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009136 for element in $INCINTL; do
9137 haveit=
9138 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009139
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009140 acl_save_prefix="$prefix"
9141 prefix="$acl_final_prefix"
9142 acl_save_exec_prefix="$exec_prefix"
9143 exec_prefix="$acl_final_exec_prefix"
9144 eval x=\"$x\"
9145 exec_prefix="$acl_save_exec_prefix"
9146 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009147
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009148 if test "X$x" = "X$element"; then
9149 haveit=yes
9150 break
9151 fi
9152 done
9153 if test -z "$haveit"; then
9154 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9155 fi
9156 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009157
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009158 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009159
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009160
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009161$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009162
9163
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009164$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009165
9166 fi
9167
9168 POSUB=po
9169 fi
9170
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009171
9172 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009173 BUILD_INCLUDED_LIBINTL=yes
9174 fi
9175
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009176
9177
9178
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009179
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009180 nls_cv_header_intl=
9181 nls_cv_header_libgt=
9182
9183 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009184
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009185
9186 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009187
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009188
9189 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009190
9191
9192 if test "$USE_INCLUDED_LIBINTL" = yes; then
9193 INTLOBJS="\$(GETTOBJS)"
9194 fi
9195
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009196
9197 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009198
9199
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009200
9201 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009202
9203
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009204
9205
9206
9207
9208
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009210$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9211set x ${MAKE-make}
9212ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009213if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009214 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009215else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009216 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009217SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009218all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009219 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009220_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009221# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009222case `${MAKE-make} -f conftest.make 2>/dev/null` in
9223 *@@@%%%=?*=@@@%%%*)
9224 eval ac_cv_prog_make_${ac_make}_set=yes;;
9225 *)
9226 eval ac_cv_prog_make_${ac_make}_set=no;;
9227esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009228rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009229fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009230if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009232$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009233 SET_MAKE=
9234else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009236$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009237 SET_MAKE="MAKE=${MAKE-make}"
9238fi
9239
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009241$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009242if test "${_cv_gnu_make_command+set}" = set; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009243 $as_echo_n "(cached) " >&6
9244else
9245 _cv_gnu_make_command='' ;
9246 for a in "$MAKE" make gmake gnumake ; do
9247 if test -z "$a" ; then continue ; fi ;
9248 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9249 _cv_gnu_make_command=$a ;
9250 break;
9251 fi
9252 done ;
9253
9254fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009256$as_echo "$_cv_gnu_make_command" >&6; } ;
9257 if test "x$_cv_gnu_make_command" != "x" ; then
9258 ifGNUmake='' ;
9259 ifNotGNUmake='#' ;
9260 else
9261 ifGNUmake='#' ;
9262 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009264$as_echo "\"Not found\"" >&6; };
9265 fi
9266
9267
9268
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009269# Extract the first word of "ln", so it can be a program name with args.
9270set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009272$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009273if test "${ac_cv_path_LN+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009274 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009275else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009276 case $LN in
9277 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009278 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9279 ;;
9280 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282for as_dir in $PATH
9283do
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009286 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009287 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 -05009288 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009290 break 2
9291 fi
9292done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009293 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009294IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009295
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009296 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9297 ;;
9298esac
9299fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009300LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009301if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009303$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009304else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009306$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009307fi
9308
Theodore Ts'oe1052142006-10-21 21:46:47 -04009309
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009311$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009312LN_S=$as_ln_s
9313if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009315$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009316else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009318$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009319fi
9320
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009321# Extract the first word of "mv", so it can be a program name with args.
9322set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009324$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009325if test "${ac_cv_path_MV+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009326 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009327else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009328 case $MV in
9329 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009330 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9331 ;;
9332 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334for as_dir in $PATH
9335do
9336 IFS=$as_save_IFS
9337 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009338 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009339 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 -05009340 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009342 break 2
9343 fi
9344done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009345 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009346IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009347
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009348 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9349 ;;
9350esac
9351fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009352MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009353if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009355$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009356else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009358$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009359fi
9360
Theodore Ts'oe1052142006-10-21 21:46:47 -04009361
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009362# Extract the first word of "cp", so it can be a program name with args.
9363set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009365$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009366if test "${ac_cv_path_CP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009367 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009368else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009369 case $CP in
9370 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009371 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9372 ;;
9373 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375for as_dir in $PATH
9376do
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009379 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009380 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 -05009381 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009383 break 2
9384 fi
9385done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009386 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009387IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009388
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009389 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9390 ;;
9391esac
9392fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009393CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009394if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009396$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009397else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009399$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009400fi
9401
Theodore Ts'oe1052142006-10-21 21:46:47 -04009402
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009403# Extract the first word of "rm", so it can be a program name with args.
9404set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009406$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009407if test "${ac_cv_path_RM+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009408 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009409else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009410 case $RM in
9411 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009412 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9413 ;;
9414 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416for as_dir in $PATH
9417do
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009420 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009421 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 -05009422 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009424 break 2
9425 fi
9426done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009427 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009428IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009429
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009430 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9431 ;;
9432esac
9433fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009434RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009435if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009437$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009438else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009440$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009441fi
9442
Theodore Ts'oe1052142006-10-21 21:46:47 -04009443
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009444# Extract the first word of "chmod", so it can be a program name with args.
9445set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009447$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009448if test "${ac_cv_path_CHMOD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009449 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009450else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009451 case $CHMOD in
9452 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009453 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9454 ;;
9455 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457for as_dir in $PATH
9458do
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009461 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009462 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 -05009463 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009465 break 2
9466 fi
9467done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009468 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009469IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009470
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009471 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9472 ;;
9473esac
9474fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009475CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009476if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009478$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009479else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009481$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009482fi
9483
Theodore Ts'oe1052142006-10-21 21:46:47 -04009484
Theodore Ts'o32237012005-01-17 19:13:39 -05009485for ac_prog in gawk mawk nawk awk
9486do
9487 # Extract the first word of "$ac_prog", so it can be a program name with args.
9488set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009490$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009491if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009492 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009493else
Theodore Ts'o32237012005-01-17 19:13:39 -05009494 if test -n "$AWK"; then
9495 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9496else
9497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009498for as_dir in $PATH
9499do
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009502 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009503 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 -05009504 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009506 break 2
9507 fi
9508done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009509 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009510IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009511
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009512fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009513fi
9514AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009515if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009517$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009518else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009520$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009521fi
9522
Theodore Ts'oe1052142006-10-21 21:46:47 -04009523
Theodore Ts'o32237012005-01-17 19:13:39 -05009524 test -n "$AWK" && break
9525done
9526
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009528$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009529if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009530 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009531else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009532 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9533 then ac_cv_path_EGREP="$GREP -E"
9534 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009535 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009536 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009537 # Loop through the user's path and test for each of PROGNAME-LIST
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009539for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9540do
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009543 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009544 for ac_exec_ext in '' $ac_executable_extensions; do
9545 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9546 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9547# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009548 # Check for GNU $ac_path_EGREP
9549case `"$ac_path_EGREP" --version 2>&1` in
9550*GNU*)
9551 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9552*)
9553 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009554 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009555 while :
9556 do
9557 cat "conftest.in" "conftest.in" >"conftest.tmp"
9558 mv "conftest.tmp" "conftest.in"
9559 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009560 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009561 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009563 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009564 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9565 # Best one so far, save it but keep looking for a better one
9566 ac_cv_path_EGREP="$ac_path_EGREP"
9567 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009568 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009569 # 10*(2^10) chars as input seems more than enough
9570 test $ac_count -gt 10 && break
9571 done
9572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9573esac
9574
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009575 $ac_path_EGREP_found && break 3
9576 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009577 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009578 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009579IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009580 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009581 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 +01009582 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009583else
9584 ac_cv_path_EGREP=$EGREP
9585fi
9586
Theodore Ts'oe1052142006-10-21 21:46:47 -04009587 fi
9588fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009590$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009591 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009592
9593
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009594# Extract the first word of "sed", so it can be a program name with args.
9595set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009597$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009598if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009599 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009600else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009601 case $SED in
9602 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009603 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9604 ;;
9605 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607for as_dir in $PATH
9608do
9609 IFS=$as_save_IFS
9610 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009611 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009612 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 -05009613 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009615 break 2
9616 fi
9617done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009618 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009619IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009620
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009621 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9622 ;;
9623esac
9624fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009625SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009626if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009628$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009629else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009631$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009632fi
9633
Theodore Ts'oe1052142006-10-21 21:46:47 -04009634
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009635# Extract the first word of "perl", so it can be a program name with args.
9636set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009638$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009639if test "${ac_cv_path_PERL+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009640 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009641else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009642 case $PERL in
9643 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009644 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9645 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009646 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648for as_dir in $PATH
9649do
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009652 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009653 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 -05009654 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009656 break 2
9657 fi
9658done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009659 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009660IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009661
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009662 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9663 ;;
9664esac
9665fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009666PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009667if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009669$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009670else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009672$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009673fi
9674
Theodore Ts'oe1052142006-10-21 21:46:47 -04009675
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009676# Extract the first word of "ldconfig", so it can be a program name with args.
9677set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009679$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009680if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009681 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009682else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009683 case $LDCONFIG in
9684 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009685 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9686 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009687 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689for as_dir in $PATH
9690do
9691 IFS=$as_save_IFS
9692 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009693 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009694 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 -05009695 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009697 break 2
9698 fi
9699done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009700 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009701IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009702
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009703 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9704 ;;
9705esac
9706fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009707LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009708if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009710$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009711else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009713$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009714fi
9715
Theodore Ts'oe1052142006-10-21 21:46:47 -04009716
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009717if test -n "$ac_tool_prefix"; then
9718 # 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 +00009719set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009721$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009722if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009723 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009724else
9725 if test -n "$AR"; then
9726 ac_cv_prog_AR="$AR" # Let the user override the test.
9727else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729for as_dir in $PATH
9730do
9731 IFS=$as_save_IFS
9732 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009733 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009734 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 -05009735 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009737 break 2
9738 fi
9739done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009740 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009741IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009742
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009743fi
9744fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009745AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009746if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009748$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009749else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009751$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009752fi
9753
Theodore Ts'oe1052142006-10-21 21:46:47 -04009754
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009755fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009756if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009757 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009758 # Extract the first word of "ar", so it can be a program name with args.
9759set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009761$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009762if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009763 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009764else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009765 if test -n "$ac_ct_AR"; then
9766 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009767else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769for as_dir in $PATH
9770do
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009773 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009774 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 -05009775 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009777 break 2
9778 fi
9779done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009780 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009781IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009782
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009783fi
9784fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009785ac_ct_AR=$ac_cv_prog_ac_ct_AR
9786if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009788$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009789else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009791$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009792fi
9793
Theodore Ts'oe1052142006-10-21 21:46:47 -04009794 if test "x$ac_ct_AR" = x; then
9795 AR="ar"
9796 else
9797 case $cross_compiling:$ac_tool_warned in
9798yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009799{ $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 +01009800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009801ac_tool_warned=yes ;;
9802esac
9803 AR=$ac_ct_AR
9804 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009805else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009806 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009807fi
9808
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009809if test -n "$ac_tool_prefix"; then
9810 # 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 +00009811set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009813$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009814if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009815 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009816else
9817 if test -n "$RANLIB"; then
9818 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9819else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821for as_dir in $PATH
9822do
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009825 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009826 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 -05009827 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009829 break 2
9830 fi
9831done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009832 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009833IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009834
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009835fi
9836fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009837RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009838if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009840$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009841else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009843$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009844fi
9845
Theodore Ts'oe1052142006-10-21 21:46:47 -04009846
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009847fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009848if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009849 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009850 # Extract the first word of "ranlib", so it can be a program name with args.
9851set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009853$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009854if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009855 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009856else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009857 if test -n "$ac_ct_RANLIB"; then
9858 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009859else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861for as_dir in $PATH
9862do
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009865 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009866 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 -05009867 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009869 break 2
9870 fi
9871done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009872 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009873IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009874
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009875fi
9876fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009877ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9878if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009880$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009881else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009883$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009884fi
9885
Theodore Ts'oe1052142006-10-21 21:46:47 -04009886 if test "x$ac_ct_RANLIB" = x; then
9887 RANLIB=":"
9888 else
9889 case $cross_compiling:$ac_tool_warned in
9890yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009891{ $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 +01009892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009893ac_tool_warned=yes ;;
9894esac
9895 RANLIB=$ac_ct_RANLIB
9896 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009897else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009898 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009899fi
9900
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009901if test -n "$ac_tool_prefix"; then
9902 # 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 +00009903set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009905$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009906if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009907 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009908else
9909 if test -n "$STRIP"; then
9910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9911else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913for as_dir in $PATH
9914do
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009917 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009918 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 -05009919 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009921 break 2
9922 fi
9923done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009924 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009925IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009926
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009927fi
9928fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009929STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009930if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009932$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009933else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009935$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009936fi
9937
Theodore Ts'oe1052142006-10-21 21:46:47 -04009938
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009939fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009940if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009941 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009942 # Extract the first word of "strip", so it can be a program name with args.
9943set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009945$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009946if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009947 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009948else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009949 if test -n "$ac_ct_STRIP"; then
9950 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009951else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953for as_dir in $PATH
9954do
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009957 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009958 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 -05009959 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009961 break 2
9962 fi
9963done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009964 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009965IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009966
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009967fi
9968fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009969ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9970if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009972$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009973else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009975$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009976fi
9977
Theodore Ts'oe1052142006-10-21 21:46:47 -04009978 if test "x$ac_ct_STRIP" = x; then
9979 STRIP=":"
9980 else
9981 case $cross_compiling:$ac_tool_warned in
9982yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009983{ $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 +01009984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009985ac_tool_warned=yes ;;
9986esac
9987 STRIP=$ac_ct_STRIP
9988 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009989else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009990 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009991fi
9992
Manish Katiyar7321d942008-04-14 17:20:03 +05309993# Extract the first word of "makeinfo", so it can be a program name with args.
9994set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009996$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009997if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009998 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +05309999else
10000 if test -n "$MAKEINFO"; then
10001 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10002else
10003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004for as_dir in $PATH
10005do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010008 for ac_exec_ext in '' $ac_executable_extensions; do
Manish Katiyar7321d942008-04-14 17:20:03 +053010009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10010 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010012 break 2
10013 fi
10014done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010015 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010016IFS=$as_save_IFS
10017
10018fi
10019fi
10020MAKEINFO=$ac_cv_prog_MAKEINFO
10021if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010023$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010024else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010026$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010027fi
10028
10029
10030if test "_$MAKEINFO" = "_"; then
10031 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10032else
10033 case "$MAKEINFO" in
10034 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010036*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010037$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010038*** Makeinfo is missing. Info documentation will not be built." >&2;}
10039 ;;
10040 *)
10041 ;;
10042 esac
10043fi
10044
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010045
Theodore Ts'o6c133521999-07-03 20:37:03 +000010046# See if we need a separate native compiler.
10047if test $cross_compiling = no; then
10048 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010049
Theodore Ts'o6c133521999-07-03 20:37:03 +000010050else
10051 for ac_prog in gcc cc
10052do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010053 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010054set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010056$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010057if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010058 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010059else
10060 if test -n "$BUILD_CC"; then
10061 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10062else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010065do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010068 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010069 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 -050010070 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010072 break 2
10073 fi
10074done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010075 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010076IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010077
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010078fi
10079fi
10080BUILD_CC=$ac_cv_prog_BUILD_CC
10081if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010083$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010084else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010086$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010087fi
10088
Theodore Ts'oe1052142006-10-21 21:46:47 -040010089
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010090 test -n "$BUILD_CC" && break
10091done
10092
10093fi
Theodore Ts'o9b3018a2011-08-11 14:56:49 -040010094for ac_header in dirent.h errno.h execinfo.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 -050010095do :
10096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10097ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10098eval as_val=\$$as_ac_Header
10099 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010100 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010101#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010102_ACEOF
10103
10104fi
10105
10106done
10107
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010108for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010109do :
10110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10111ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010112#if HAVE_SYS_QUEUE_H
10113#include <sys/queue.h>
10114#endif
10115
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010116"
10117eval as_val=\$$as_ac_Header
10118 if test "x$as_val" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010119 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010120#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010121_ACEOF
10122
10123fi
10124
10125done
10126
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010127for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010128do :
10129 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010130#if HAVE_SYS_TYPES_H
10131#include <sys/types.h>
10132#endif
10133#if HAVE_SYS_SOCKET
10134#include <sys/socket.h>
10135#endif
10136
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010137"
10138if test "x$ac_cv_header_net_if_h" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010139 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010140#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010141_ACEOF
10142
10143fi
10144
10145done
10146
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010147for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010148do :
10149 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10150if test "x$ac_cv_func_vprintf" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010151 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010152#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010153_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010154
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010155ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10156if test "x$ac_cv_func__doprnt" = x""yes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010157
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010158$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010159
10160fi
10161
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010162fi
10163done
10164
10165
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010166ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10167"
10168if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10169 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010170
10171fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010172
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010173ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10174"
10175if test "x$ac_cv_type_ssize_t" = x""yes; then :
10176 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010177
Theodore Ts'offf45482003-04-13 00:44:19 -040010178fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010179
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010180ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10181"
10182if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10183 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010184
10185fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010186
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010187ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010188 #define _LARGEFILE64_SOURCE
10189 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010190"
10191if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10192 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010193
10194fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010195
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010196# The cast to long int works around a bug in the HP C Compiler
10197# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10198# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10199# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010201$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010202if test "${ac_cv_sizeof_short+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010203 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010204else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010205 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 -050010206
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010207else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010208 if test "$ac_cv_type_short" = yes; then
10209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010211{ as_fn_set_status 77
10212as_fn_error "cannot compute sizeof (short)
10213See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010214 else
10215 ac_cv_sizeof_short=0
10216 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010217fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010218
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010219fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010221$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010222
10223
10224
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010225cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010226#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010227_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010228
10229
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010230# The cast to long int works around a bug in the HP C Compiler
10231# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10232# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10233# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010235$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010236if test "${ac_cv_sizeof_int+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010237 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010238else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010239 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 -050010240
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010241else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010242 if test "$ac_cv_type_int" = yes; then
10243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010245{ as_fn_set_status 77
10246as_fn_error "cannot compute sizeof (int)
10247See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010248 else
10249 ac_cv_sizeof_int=0
10250 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010251fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010252
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010253fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010255$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010256
10257
10258
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010259cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010260#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010261_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010262
10263
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010264# The cast to long int works around a bug in the HP C Compiler
10265# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10266# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10267# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010269$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010270if test "${ac_cv_sizeof_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010271 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010272else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010273 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 -050010274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010275else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010276 if test "$ac_cv_type_long" = yes; then
10277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010279{ as_fn_set_status 77
10280as_fn_error "cannot compute sizeof (long)
10281See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010282 else
10283 ac_cv_sizeof_long=0
10284 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010285fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010286
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010287fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010289$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010290
10291
10292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010293cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010294#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010295_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010296
10297
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010298# The cast to long int works around a bug in the HP C Compiler
10299# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10300# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10301# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010303$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010304if test "${ac_cv_sizeof_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010305 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010306else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010307 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 -050010308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010309else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010310 if test "$ac_cv_type_long_long" = yes; then
10311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010313{ as_fn_set_status 77
10314as_fn_error "cannot compute sizeof (long long)
10315See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010316 else
10317 ac_cv_sizeof_long_long=0
10318 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010319fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010320
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010321fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010323$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010324
10325
10326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010327cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010328#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010329_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010330
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010331
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010332SIZEOF_SHORT=$ac_cv_sizeof_short
10333SIZEOF_INT=$ac_cv_sizeof_int
10334SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010335SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10336
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010337
10338
10339
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010341$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010342if test "${ac_cv_c_bigendian+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010343 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010344else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010345 ac_cv_c_bigendian=unknown
10346 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010348/* end confdefs.h. */
10349#ifndef __APPLE_CC__
10350 not a universal capable compiler
10351 #endif
10352 typedef int dummy;
10353
10354_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010355if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010356
10357 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010358 # there are at least two -arch flags with different values.
10359 ac_arch=
10360 ac_prev=
10361 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10362 if test -n "$ac_prev"; then
10363 case $ac_word in
10364 i?86 | x86_64 | ppc | ppc64)
10365 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10366 ac_arch=$ac_word
10367 else
10368 ac_cv_c_bigendian=universal
10369 break
10370 fi
10371 ;;
10372 esac
10373 ac_prev=
10374 elif test "x$ac_word" = "x-arch"; then
10375 ac_prev=arch
10376 fi
10377 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010378fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380 if test $ac_cv_c_bigendian = unknown; then
10381 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010383/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010384#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010385 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010386
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010387int
10388main ()
10389{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010390#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10391 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10392 && LITTLE_ENDIAN)
10393 bogus endian macros
10394 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010395
10396 ;
10397 return 0;
10398}
10399_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010400if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010401 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010403/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010404#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010405 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010407int
10408main ()
10409{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010410#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010411 not big endian
10412 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010413
10414 ;
10415 return 0;
10416}
10417_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010418if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010419 ac_cv_c_bigendian=yes
10420else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010421 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010422fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010424fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426 fi
10427 if test $ac_cv_c_bigendian = unknown; then
10428 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010430/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010431#include <limits.h>
10432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010433int
10434main ()
10435{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010436#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10437 bogus endian macros
10438 #endif
10439
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010440 ;
10441 return 0;
10442}
10443_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010444if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010445 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010447/* end confdefs.h. */
10448#include <limits.h>
10449
10450int
10451main ()
10452{
10453#ifndef _BIG_ENDIAN
10454 not big endian
10455 #endif
10456
10457 ;
10458 return 0;
10459}
10460_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010461if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010462 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010463else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010464 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010465fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010467fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469 fi
10470 if test $ac_cv_c_bigendian = unknown; then
10471 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010472 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010473 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010475/* end confdefs.h. */
10476short int ascii_mm[] =
10477 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10478 short int ascii_ii[] =
10479 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10480 int use_ascii (int i) {
10481 return ascii_mm[i] + ascii_ii[i];
10482 }
10483 short int ebcdic_ii[] =
10484 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10485 short int ebcdic_mm[] =
10486 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10487 int use_ebcdic (int i) {
10488 return ebcdic_mm[i] + ebcdic_ii[i];
10489 }
10490 extern int foo;
10491
10492int
10493main ()
10494{
10495return use_ascii (foo) == use_ebcdic (foo);
10496 ;
10497 return 0;
10498}
10499_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010500if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010501 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10502 ac_cv_c_bigendian=yes
10503 fi
10504 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10505 if test "$ac_cv_c_bigendian" = unknown; then
10506 ac_cv_c_bigendian=no
10507 else
10508 # finding both strings is unlikely to happen, but who knows?
10509 ac_cv_c_bigendian=unknown
10510 fi
10511 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010512fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010514else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010516/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010517$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010518int
10519main ()
10520{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010521
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010522 /* Are we little or big endian? From Harbison&Steele. */
10523 union
10524 {
10525 long int l;
10526 char c[sizeof (long int)];
10527 } u;
10528 u.l = 1;
10529 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010530
10531 ;
10532 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010533}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010534_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010535if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010536 ac_cv_c_bigendian=no
10537else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010538 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010539fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10541 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010542fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010543
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010544 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010545fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010547$as_echo "$ac_cv_c_bigendian" >&6; }
10548 case $ac_cv_c_bigendian in #(
10549 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010550 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010551;; #(
10552 no)
10553 ;; #(
10554 universal)
10555
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010556$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010557
10558 ;; #(
10559 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010560 as_fn_error "unknown endianness
10561 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010562 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010563
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010564BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010565ASM_TYPES_HEADER=./asm_types.h
10566
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010567echo "/* These defines are needed for the public ext2fs.h header file */" \
10568 > public_config.h
10569if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10570 uniq tmp_config.$$ >> public_config.h
10571else
10572 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10573fi
10574if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10575 uniq tmp_config.$$ >> public_config.h
10576else
10577 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10578fi
10579rm -f tmp_config.$$
10580PUBLIC_CONFIG_HEADER=./public_config.h
10581
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010582for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010583do :
10584 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10585if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010586 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010587#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010588_ACEOF
10589
10590fi
10591
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010592done
10593
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010594ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10595if test "x$ac_cv_type_intptr_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010596
10597cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010598#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010599_ACEOF
10600
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010601
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010602fi
10603
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010604{ $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 +010010605$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010606if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010607 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010608else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010610/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010611#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010612int
10613main ()
10614{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010615struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010616 ;
10617 return 0;
10618}
10619_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010620if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010621 e2fsprogs_cv_struct_st_flags=yes
10622else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010623 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010624fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626fi
10627
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010629$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010630if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010632$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010633 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010634 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010635else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010637/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010638#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010639int
10640main ()
10641{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010642struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010643 ;
10644 return 0;
10645}
10646_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010647if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010648 e2fsprogs_cv_struct_st_flags_immut=yes
10649else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010650 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010651fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653fi
10654
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010656$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010657 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010658 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010659
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010660 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010661fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010662ac_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 -050010663 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010664"
10665if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010666
10667cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010668#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010669_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010670
10671fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010672
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010673if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010675$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010676if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010677 $as_echo_n "(cached) " >&6
10678else
10679 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010681/* end confdefs.h. */
10682
10683/* Override any GCC internal prototype to avoid an error.
10684 Use char because int might match the return type of a GCC
10685 builtin and then its argument prototype would still apply. */
10686#ifdef __cplusplus
10687extern "C"
10688#endif
10689char blkid_probe_all ();
10690int
10691main ()
10692{
10693return blkid_probe_all ();
10694 ;
10695 return 0;
10696}
10697_ACEOF
10698for ac_lib in '' blkid; do
10699 if test -z "$ac_lib"; then
10700 ac_res="none required"
10701 else
10702 ac_res=-l$ac_lib
10703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10704 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010705 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010706 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010707fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010708rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext
10710 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010711 break
10712fi
10713done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010714if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10715
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010716else
10717 ac_cv_search_blkid_probe_all=no
10718fi
10719rm conftest.$ac_ext
10720LIBS=$ac_func_search_save_LIBS
10721fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010723$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10724ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010725if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10727
10728fi
10729
10730fi
Theodore Ts'o9b3018a2011-08-11 14:56:49 -040010731for 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 sync_file_range posix_fadvise fallocate fallocate64 blkid_probe_get_topology mbstowcs backtrace
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010732do :
10733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10734ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10735eval as_val=\$$as_ac_var
10736 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010737 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010738#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010739_ACEOF
10740
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010741fi
10742done
10743
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010744SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010746$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010747if test "${ac_cv_lib_socket_socket+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010748 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010749else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010750 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010751LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010753/* end confdefs.h. */
10754
Theodore Ts'oe1052142006-10-21 21:46:47 -040010755/* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010758#ifdef __cplusplus
10759extern "C"
10760#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010761char socket ();
10762int
10763main ()
10764{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010765return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010766 ;
10767 return 0;
10768}
10769_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010770if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010771 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010772else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010773 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010774fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010775rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010777LIBS=$ac_check_lib_save_LIBS
10778fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010780$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010781if test "x$ac_cv_lib_socket_socket" = x""yes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010782 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010783fi
10784
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010785
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010787$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010788if test "${ac_cv_have_optreset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010789 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010790else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010792/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010793#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010794
10795_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010797 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010798 ac_cv_have_optreset=yes
10799else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010800 ac_cv_have_optreset=no
10801fi
10802rm -f conftest*
10803
10804fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010806$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010807if test $ac_cv_have_optreset = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010808 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010809
10810fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010811SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010812ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
10813if test "x$ac_cv_func_sem_init" = x""yes; then :
10814
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010815else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010817$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010818if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010819 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010820else
10821 ac_check_lib_save_LIBS=$LIBS
10822LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010824/* end confdefs.h. */
10825
10826/* Override any GCC internal prototype to avoid an error.
10827 Use char because int might match the return type of a GCC
10828 builtin and then its argument prototype would still apply. */
10829#ifdef __cplusplus
10830extern "C"
10831#endif
10832char sem_init ();
10833int
10834main ()
10835{
10836return sem_init ();
10837 ;
10838 return 0;
10839}
10840_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010841if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010842 ac_cv_lib_pthread_sem_init=yes
10843else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010844 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010845fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010846rm -f core conftest.err conftest.$ac_objext \
10847 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010848LIBS=$ac_check_lib_save_LIBS
10849fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010851$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010852if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
10853 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010854
10855 SEM_INIT_LIB=-lpthread
10856else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010858$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010859if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010860 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010861else
10862 ac_check_lib_save_LIBS=$LIBS
10863LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010865/* end confdefs.h. */
10866
10867/* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10870#ifdef __cplusplus
10871extern "C"
10872#endif
10873char sem_init ();
10874int
10875main ()
10876{
10877return sem_init ();
10878 ;
10879 return 0;
10880}
10881_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010882if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010883 ac_cv_lib_rt_sem_init=yes
10884else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010885 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010886fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010887rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010889LIBS=$ac_check_lib_save_LIBS
10890fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010892$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010893if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
10894 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010895
10896 SEM_INIT_LIB=-lrt
10897else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010899$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010900if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010901 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010902else
10903 ac_check_lib_save_LIBS=$LIBS
10904LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010906/* end confdefs.h. */
10907
10908/* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10911#ifdef __cplusplus
10912extern "C"
10913#endif
10914char sem_init ();
10915int
10916main ()
10917{
10918return sem_init ();
10919 ;
10920 return 0;
10921}
10922_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010923if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010924 ac_cv_lib_posix4_sem_init=yes
10925else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010926 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010927fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010928rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010930LIBS=$ac_check_lib_save_LIBS
10931fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010933$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010934if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
10935 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010936
10937 SEM_INIT_LIB=-lposix4
10938fi
10939
10940fi
10941
10942fi
10943
10944fi
10945
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010947$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040010948if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040010949 UNI_DIFF_OPTS=-u
10950else
10951 UNI_DIFF_OPTS=-c
10952fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010954$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040010955
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000010956case "$host_os" in
10957linux*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010958 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010959
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000010960 ;;
10961esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040010962LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040010963CYGWIN_CMT="#"
10964UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040010965case "$host_os" in
10966linux*)
10967 LINUX_CMT=
10968 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040010969cygwin)
10970 CYGWIN_CMT=
10971 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040010972 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040010973esac
10974
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010975
10976
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010977case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010978linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010979 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
10980 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010981 { $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 +010010982$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010983 fi
10984 ;;
10985esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010986case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010987linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010988 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010989 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010990 { $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 +010010991$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040010992 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010994$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040010995 mandir=/usr/share/man
10996 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010997 fi
10998;;
10999esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011000if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011001 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011002 root_prefix="$ac_default_prefix"
11003 else
11004 root_prefix="$prefix"
11005 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011006 root_bindir=$bindir
11007 root_sbindir=$sbindir
11008 root_libdir=$libdir
11009 root_sysconfdir=$sysconfdir
11010else
11011 root_bindir='${root_prefix}/bin'
11012 root_sbindir='${root_prefix}/sbin'
11013 root_libdir='${root_prefix}/lib'
11014 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011015fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011016if test "$bindir" != '${exec_prefix}/bin'; then
11017 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011019$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011020fi
11021if test "$sbindir" != '${exec_prefix}/sbin'; then
11022 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011024$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011025fi
11026if test "$libdir" != '${exec_prefix}/lib'; then
11027 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011029$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011030fi
11031if test "$sysconfdir" != '${prefix}/etc'; then
11032 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011034$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011035fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011036
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011037
11038
11039
11040
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011042$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011043if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011044 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011045else
11046 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011048/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011049#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011050int
11051main ()
11052{
Theodore Ts'oae851481997-04-29 18:13:24 +000011053fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011054 ;
11055 return 0;
11056}
11057_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011058if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011059 ac_cv_e2fsprogs_use_static=yes
11060else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011061 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011062fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011063rm -f core conftest.err conftest.$ac_objext \
11064 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011065LDFLAGS=$SAVE_LDFLAGS
11066fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011067
Theodore Ts'odefde781999-01-04 07:39:19 +000011068case "$host_os" in
11069solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011070 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011071;;
11072esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011074$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011075LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011076if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011077 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011078fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011079
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011080case "$host_os" in
11081darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011083$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011084 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011085
11086 ;;
11087esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011088SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11089ET_DIR=`cd ${srcdir}/lib/et; pwd`
11090
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011091
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011092if test "$cross_compiling" = yes ; then
11093 DO_TEST_SUITE=
11094else
11095 DO_TEST_SUITE=check
11096fi
11097
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011098INTL_FLAGS=
11099if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11100 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
11101fi
11102
Theodore Ts'odd947da2005-11-09 18:37:07 -040011103if test $cross_compiling = no; then
11104 BUILD_CFLAGS="$CFLAGS"
11105 BUILD_LDFLAGS="$LDFLAGS"
11106else
11107 BUILD_CFLAGS=
11108 BUILD_LDFLAGS=
11109fi
11110
11111
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011112test -d lib || mkdir lib
11113test -d include || mkdir include
11114test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011115test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011116for i in MCONFIG Makefile e2fsprogs.spec \
11117 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011118 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11119 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011120 lib/uuid/Makefile lib/uuid/uuid_types.h \
11121 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011122 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11123 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011124 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011125 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011126 resize/Makefile doc/Makefile intl/Makefile \
11127 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011128 if test -d `dirname ${srcdir}/$i` ; then
11129 outlist="$outlist $i"
11130 fi
11131done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011132ac_config_files="$ac_config_files $outlist"
11133
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011134cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011135# This file is a shell script that caches the results of configure
11136# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011137# scripts and configure runs, see configure's option --config-cache.
11138# It is not useful on other systems. If it contains results you don't
11139# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011140#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011141# config.status only pays attention to the cache file if you give it
11142# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011143#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011144# `ac_cv_env_foo' variables (set or unset) will be overridden when
11145# loading this file, other *unset* `ac_cv_foo' will be assigned the
11146# following values.
11147
11148_ACEOF
11149
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011150# The following way of writing the cache mishandles newlines in values,
11151# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011152# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011153# Ultrix sh set writes to stderr and can't be redirected directly,
11154# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011155(
11156 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11157 eval ac_val=\$$ac_var
11158 case $ac_val in #(
11159 *${as_nl}*)
11160 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011161 *_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 +010011162$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011163 esac
11164 case $ac_var in #(
11165 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011167 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011168 esac ;;
11169 esac
11170 done
11171
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011172 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011173 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11174 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011175 # `set' does not quote correctly, so add quotes: double-quote
11176 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011177 sed -n \
11178 "s/'/'\\\\''/g;
11179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011180 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011181 *)
11182 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011184 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011185 esac |
11186 sort
11187) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011188 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011189 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011190 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011191 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011192 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11193 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011194 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11195 :end' >>confcache
11196if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11197 if test -w "$cache_file"; then
11198 test "x$cache_file" != "x/dev/null" &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011199 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011200$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011201 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011202 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011203 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011204$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011205 fi
11206fi
11207rm -f confcache
11208
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011209test "x$prefix" = xNONE && prefix=$ac_default_prefix
11210# Let make expand exec_prefix.
11211test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11212
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011213# Transform confdefs.h into DEFS.
11214# Protect against shell expansion while executing Makefile rules.
11215# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011216#
11217# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040011218# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011219# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011220ac_script='
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011221:mline
11222/\\$/{
11223 N
11224 s,\\\n,,
11225 b mline
11226}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011227t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011228:clear
11229s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011230t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040011231s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011232t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040011233b any
11234:quote
11235s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11236s/\[/\\&/g
11237s/\]/\\&/g
11238s/\$/$$/g
11239H
11240:any
11241${
11242 g
11243 s/^\n//
11244 s/\n/ /g
11245 p
11246}
11247'
11248DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011249
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011250
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011251ac_libobjs=
11252ac_ltlibobjs=
11253for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11254 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011255 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011256 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011257 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11258 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011259 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11260 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011261done
11262LIBOBJS=$ac_libobjs
11263
11264LTLIBOBJS=$ac_ltlibobjs
11265
11266
11267
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011268
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011269: ${CONFIG_STATUS=./config.status}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011270ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011271ac_clean_files_save=$ac_clean_files
11272ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011273{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011274$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011275as_write_fail=0
11276cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011277#! $SHELL
11278# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011279# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011280# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011281# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011282
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011283debug=false
11284ac_cs_recheck=false
11285ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011286
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011287SHELL=\${CONFIG_SHELL-$SHELL}
11288export SHELL
11289_ASEOF
11290cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11291## -------------------- ##
11292## M4sh Initialization. ##
11293## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011294
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011295# Be more Bourne compatible
11296DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011297if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011298 emulate sh
11299 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011300 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011301 # is contrary to our usage. Disable this feature.
11302 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011303 setopt NO_GLOB_SUBST
11304else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011305 case `(set -o) 2>/dev/null` in #(
11306 *posix*) :
11307 set -o posix ;; #(
11308 *) :
11309 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011310esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011311fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011312
11313
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011314as_nl='
11315'
11316export as_nl
11317# Printing a long string crashes Solaris 7 /usr/bin/printf.
11318as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11319as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11320as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011321# Prefer a ksh shell builtin over an external printf program on Solaris,
11322# but without wasting forks for bash or zsh.
11323if test -z "$BASH_VERSION$ZSH_VERSION" \
11324 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11325 as_echo='print -r --'
11326 as_echo_n='print -rn --'
11327elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011328 as_echo='printf %s\n'
11329 as_echo_n='printf %s'
11330else
11331 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11332 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11333 as_echo_n='/usr/ucb/echo -n'
11334 else
11335 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11336 as_echo_n_body='eval
11337 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011338 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011339 *"$as_nl"*)
11340 expr "X$arg" : "X\\(.*\\)$as_nl";
11341 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11342 esac;
11343 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11344 '
11345 export as_echo_n_body
11346 as_echo_n='sh -c $as_echo_n_body as_echo'
11347 fi
11348 export as_echo_body
11349 as_echo='sh -c $as_echo_body as_echo'
11350fi
11351
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011352# The user is always right.
11353if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011354 PATH_SEPARATOR=:
11355 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11356 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11357 PATH_SEPARATOR=';'
11358 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011359fi
11360
Theodore Ts'oe1052142006-10-21 21:46:47 -040011361
11362# IFS
11363# We need space, tab and new line, in precisely that order. Quoting is
11364# there to prevent editors from complaining about space-tab.
11365# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11366# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011367IFS=" "" $as_nl"
11368
11369# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011370case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011371 *[\\/]* ) as_myself=$0 ;;
11372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011373for as_dir in $PATH
11374do
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11378 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011379IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380
Theodore Ts'oe1052142006-10-21 21:46:47 -040011381 ;;
11382esac
11383# We did not find ourselves, most probably we were run as `sh COMMAND'
11384# in which case we are not to be found in the path.
11385if test "x$as_myself" = x; then
11386 as_myself=$0
11387fi
11388if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011389 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011390 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011391fi
11392
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011393# Unset variables that we do not need and which cause bugs (e.g. in
11394# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11395# suppresses any "Segmentation fault" message there. '((' could
11396# trigger a bug in pdksh 5.2.14.
11397for as_var in BASH_ENV ENV MAIL MAILPATH
11398do eval test x\${$as_var+set} = xset \
11399 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011400done
11401PS1='$ '
11402PS2='> '
11403PS4='+ '
11404
11405# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011406LC_ALL=C
11407export LC_ALL
11408LANGUAGE=C
11409export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011410
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011411# CDPATH.
11412(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11413
11414
11415# as_fn_error ERROR [LINENO LOG_FD]
11416# ---------------------------------
11417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11419# script with status $?, using 1 if that was 0.
11420as_fn_error ()
11421{
11422 as_status=$?; test $as_status -eq 0 && as_status=1
11423 if test "$3"; then
11424 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11426 fi
11427 $as_echo "$as_me: error: $1" >&2
11428 as_fn_exit $as_status
11429} # as_fn_error
11430
11431
11432# as_fn_set_status STATUS
11433# -----------------------
11434# Set $? to STATUS, without forking.
11435as_fn_set_status ()
11436{
11437 return $1
11438} # as_fn_set_status
11439
11440# as_fn_exit STATUS
11441# -----------------
11442# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11443as_fn_exit ()
11444{
11445 set +e
11446 as_fn_set_status $1
11447 exit $1
11448} # as_fn_exit
11449
11450# as_fn_unset VAR
11451# ---------------
11452# Portably unset VAR.
11453as_fn_unset ()
11454{
11455 { eval $1=; unset $1;}
11456}
11457as_unset=as_fn_unset
11458# as_fn_append VAR VALUE
11459# ----------------------
11460# Append the text in VALUE to the end of the definition contained in VAR. Take
11461# advantage of any shell optimizations that allow amortized linear growth over
11462# repeated appends, instead of the typical quadratic growth present in naive
11463# implementations.
11464if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11465 eval 'as_fn_append ()
11466 {
11467 eval $1+=\$2
11468 }'
11469else
11470 as_fn_append ()
11471 {
11472 eval $1=\$$1\$2
11473 }
11474fi # as_fn_append
11475
11476# as_fn_arith ARG...
11477# ------------------
11478# Perform arithmetic evaluation on the ARGs, and store the result in the
11479# global $as_val. Take advantage of shells that can avoid forks. The arguments
11480# must be portable across $(()) and expr.
11481if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11482 eval 'as_fn_arith ()
11483 {
11484 as_val=$(( $* ))
11485 }'
11486else
11487 as_fn_arith ()
11488 {
11489 as_val=`expr "$@" || test $? -eq 1`
11490 }
11491fi # as_fn_arith
11492
11493
Theodore Ts'oe1052142006-10-21 21:46:47 -040011494if expr a : '\(a\)' >/dev/null 2>&1 &&
11495 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11496 as_expr=expr
11497else
11498 as_expr=false
11499fi
11500
11501if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11502 as_basename=basename
11503else
11504 as_basename=false
11505fi
11506
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011507if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11508 as_dirname=dirname
11509else
11510 as_dirname=false
11511fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011512
Theodore Ts'oe1052142006-10-21 21:46:47 -040011513as_me=`$as_basename -- "$0" ||
11514$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11515 X"$0" : 'X\(//\)$' \| \
11516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011517$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011518 sed '/^.*\/\([^/][^/]*\)\/*$/{
11519 s//\1/
11520 q
11521 }
11522 /^X\/\(\/\/\)$/{
11523 s//\1/
11524 q
11525 }
11526 /^X\/\(\/\).*/{
11527 s//\1/
11528 q
11529 }
11530 s/.*/./; q'`
11531
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011532# Avoid depending upon Character Ranges.
11533as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11534as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11535as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11536as_cr_digits='0123456789'
11537as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011538
11539ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011540case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011541-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011542 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011543 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011544 xy) ECHO_C='\c';;
11545 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11546 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011547 esac;;
11548*)
11549 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011550esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011551
11552rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011553if test -d conf$$.dir; then
11554 rm -f conf$$.dir/conf$$.file
11555else
11556 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011557 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011558fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011559if (echo >conf$$.file) 2>/dev/null; then
11560 if ln -s conf$$.file conf$$ 2>/dev/null; then
11561 as_ln_s='ln -s'
11562 # ... but there are two gotchas:
11563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11565 # In both cases, we have to default to `cp -p'.
11566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11567 as_ln_s='cp -p'
11568 elif ln conf$$.file conf$$ 2>/dev/null; then
11569 as_ln_s=ln
11570 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011572 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011573else
11574 as_ln_s='cp -p'
11575fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011576rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11577rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011578
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011579
11580# as_fn_mkdir_p
11581# -------------
11582# Create "$as_dir" as a directory, including parents if necessary.
11583as_fn_mkdir_p ()
11584{
11585
11586 case $as_dir in #(
11587 -*) as_dir=./$as_dir;;
11588 esac
11589 test -d "$as_dir" || eval $as_mkdir_p || {
11590 as_dirs=
11591 while :; do
11592 case $as_dir in #(
11593 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11594 *) as_qdir=$as_dir;;
11595 esac
11596 as_dirs="'$as_qdir' $as_dirs"
11597 as_dir=`$as_dirname -- "$as_dir" ||
11598$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11599 X"$as_dir" : 'X\(//\)[^/]' \| \
11600 X"$as_dir" : 'X\(//\)$' \| \
11601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11602$as_echo X"$as_dir" |
11603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11604 s//\1/
11605 q
11606 }
11607 /^X\(\/\/\)[^/].*/{
11608 s//\1/
11609 q
11610 }
11611 /^X\(\/\/\)$/{
11612 s//\1/
11613 q
11614 }
11615 /^X\(\/\).*/{
11616 s//\1/
11617 q
11618 }
11619 s/.*/./; q'`
11620 test -d "$as_dir" && break
11621 done
11622 test -z "$as_dirs" || eval "mkdir $as_dirs"
11623 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11624
11625
11626} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011627if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011628 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011629else
11630 test -d ./-p && rmdir ./-p
11631 as_mkdir_p=false
11632fi
11633
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011634if test -x / >/dev/null 2>&1; then
11635 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011636else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011637 if ls -dL / >/dev/null 2>&1; then
11638 as_ls_L_option=L
11639 else
11640 as_ls_L_option=
11641 fi
11642 as_test_x='
11643 eval sh -c '\''
11644 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011645 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011646 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011647 case $1 in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011648 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011649 esac;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011650 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011651 ???[sx]*):;;*)false;;esac;fi
11652 '\'' sh
11653 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011654fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011655as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011656
11657# Sed expression to map a string onto a valid CPP name.
11658as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11659
11660# Sed expression to map a string onto a valid variable name.
11661as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11662
11663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011664exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011665## ----------------------------------- ##
11666## Main body of $CONFIG_STATUS script. ##
11667## ----------------------------------- ##
11668_ASEOF
11669test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011670
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11672# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011673# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011674# values after options handling.
11675ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011676This file was extended by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011677generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011678
11679 CONFIG_FILES = $CONFIG_FILES
11680 CONFIG_HEADERS = $CONFIG_HEADERS
11681 CONFIG_LINKS = $CONFIG_LINKS
11682 CONFIG_COMMANDS = $CONFIG_COMMANDS
11683 $ $0 $@
11684
Theodore Ts'oe1052142006-10-21 21:46:47 -040011685on `(hostname || uname -n) 2>/dev/null | sed 1q`
11686"
11687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011688_ACEOF
11689
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011690case $ac_config_files in *"
11691"*) set x $ac_config_files; shift; ac_config_files=$*;;
11692esac
11693
11694
11695
11696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011697# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011698config_files="$ac_config_files"
11699config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011700
Theodore Ts'oe1052142006-10-21 21:46:47 -040011701_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011702
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011704ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011705\`$as_me' instantiates files and other configuration actions
11706from templates according to the current configuration. Unless the files
11707and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011708
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011709Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011710
11711 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011712 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011713 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011714 -q, --quiet, --silent
11715 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011716 -d, --debug don't remove temporary files
11717 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011718 --file=FILE[:TEMPLATE]
11719 instantiate the configuration file FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011720
11721Configuration files:
11722$config_files
11723
11724Configuration commands:
11725$config_commands
11726
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011727Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011728
Theodore Ts'oe1052142006-10-21 21:46:47 -040011729_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011731ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011732ac_cs_version="\\
11733config.status
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011734configured by $0, generated by GNU Autoconf 2.65,
11735 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011736
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011737Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011738This config.status script is free software; the Free Software Foundation
11739gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040011740
11741ac_pwd='$ac_pwd'
11742srcdir='$srcdir'
11743INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011744AWK='$AWK'
11745test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011746_ACEOF
11747
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11749# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011750ac_need_defaults=:
11751while test $# != 0
11752do
11753 case $1 in
11754 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011755 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11756 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011757 ac_shift=:
11758 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011759 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011760 ac_option=$1
11761 ac_optarg=$2
11762 ac_shift=shift
11763 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011764 esac
11765
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011766 case $ac_option in
11767 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011768 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11769 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011770 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011771 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011772 --config | --confi | --conf | --con | --co | --c )
11773 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011774 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011775 debug=: ;;
11776 --file | --fil | --fi | --f )
11777 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011778 case $ac_optarg in
11779 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11780 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011781 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011782 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011783 --he | --h | --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011784 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11786 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11787 ac_cs_silent=: ;;
11788
11789 # This is an error.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011790 -*) as_fn_error "unrecognized option: \`$1'
11791Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011792
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011793 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011794 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011795
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011796 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011797 shift
11798done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011799
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011800ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011801
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011802if $ac_cs_silent; then
11803 exec 6>/dev/null
11804 ac_configure_extra_args="$ac_configure_extra_args --silent"
11805fi
11806
11807_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011809if \$ac_cs_recheck; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011810 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11811 shift
11812 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11813 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011814 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011815 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011816fi
11817
11818_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011820exec 5>>config.log
11821{
11822 echo
11823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11824## Running $as_me. ##
11825_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011826 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011827} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011828
Theodore Ts'oe1052142006-10-21 21:46:47 -040011829_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011831#
Theodore Ts'oe1052142006-10-21 21:46:47 -040011832# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011833#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011834# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011835 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011836 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011837 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011838 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11839 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011840
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011841
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011842_ACEOF
11843
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011845
11846# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011847for ac_config_target in $ac_config_targets
11848do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011849 case $ac_config_target in
11850 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11851 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
11852
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011853 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011854 esac
11855done
11856
Theodore Ts'oe1052142006-10-21 21:46:47 -040011857
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011858# If the user did not use the arguments to specify the items to instantiate,
11859# then the envvar interface is used. Set only those that are not.
11860# We use the long form for the default assignment because of an extremely
11861# bizarre bug on SunOS 4.1.3.
11862if $ac_need_defaults; then
11863 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11864 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11865fi
11866
11867# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040011868# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011869# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011870# Hook for its removal unless debugging.
11871# Note that there is a small window in which the directory will not be cleaned:
11872# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011873$debug ||
11874{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011875 tmp=
11876 trap 'exit_status=$?
11877 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11878' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011879 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011880}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011881# Create a (secure) tmp directory for tmp files.
11882
11883{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011884 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011885 test -n "$tmp" && test -d "$tmp"
11886} ||
11887{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011888 tmp=./conf$$-$RANDOM
11889 (umask 077 && mkdir "$tmp")
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011890} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011891
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011892# Set up the scripts for CONFIG_FILES section.
11893# No need to generate them if there are no CONFIG_FILES.
11894# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011895if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011897if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11898 ac_cs_awk_getline=:
11899 ac_cs_awk_pipe_init=
11900 ac_cs_awk_read_file='
11901 while ((getline aline < (F[key])) > 0)
11902 print(aline)
11903 close(F[key])'
11904 ac_cs_awk_pipe_fini=
11905else
11906 ac_cs_awk_getline=false
11907 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11908 ac_cs_awk_read_file='
11909 print "|#_!!_#|"
11910 print "cat " F[key] " &&"
11911 '$ac_cs_awk_pipe_init
11912 # The final `:' finishes the AND list.
11913 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11914fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011915ac_cr=`echo X | tr X '\015'`
11916# On cygwin, bash can eat \r inside `` if the user requested igncr.
11917# But we know of no other shell where ac_cr would be empty at this
11918# point, so we can use a bashism as a fallback.
11919if test "x$ac_cr" = x; then
11920 eval ac_cr=\$\'\\r\'
11921fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011922ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11923if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011924 ac_cs_awk_cr='\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011925else
11926 ac_cs_awk_cr=$ac_cr
11927fi
11928
11929echo 'BEGIN {' >"$tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011930_ACEOF
11931
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011932# Create commands to substitute file output variables.
11933{
11934 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11935 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
11936 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11937 echo "_ACAWK" &&
11938 echo "_ACEOF"
11939} >conf$$files.sh &&
11940. ./conf$$files.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011941 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011942rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040011943
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011944{
11945 echo "cat >conf$$subs.awk <<_ACEOF" &&
11946 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11947 echo "_ACEOF"
11948} >conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011949 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011950ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011951ac_delim='%!_!# '
11952for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011953 . ./conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011954 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011955
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011956 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11957 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011958 break
11959 elif $ac_last_try; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011960 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011961 else
11962 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011963 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011964done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011965rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040011966
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11968cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040011969_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011970sed -n '
11971h
11972s/^/S["/; s/!.*/"]=/
11973p
11974g
11975s/^[^!]*!//
11976:repl
11977t repl
11978s/'"$ac_delim"'$//
11979t delim
11980:nl
11981h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011982s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011983t more1
11984s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11985p
11986n
11987b repl
11988:more1
11989s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11990p
11991g
11992s/.\{148\}//
11993t nl
11994:delim
11995h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011996s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011997t more2
11998s/["\\]/\\&/g; s/^/"/; s/$/"/
11999p
12000b
12001:more2
12002s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12003p
12004g
12005s/.\{148\}//
12006t delim
12007' <conf$$subs.awk | sed '
12008/^[^""]/{
12009 N
12010 s/\n//
12011}
12012' >>$CONFIG_STATUS || ac_write_fail=1
12013rm -f conf$$subs.awk
12014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12015_ACAWK
12016cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12017 for (key in S) S_is_set[key] = 1
12018 FS = ""
12019 \$ac_cs_awk_pipe_init
12020}
12021{
12022 line = $ 0
12023 nfields = split(line, field, "@")
12024 substed = 0
12025 len = length(field[1])
12026 for (i = 2; i < nfields; i++) {
12027 key = field[i]
12028 keylen = length(key)
12029 if (S_is_set[key]) {
12030 value = S[key]
12031 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12032 len += length(value) + length(field[++i])
12033 substed = 1
12034 } else
12035 len += 1 + keylen
12036 }
12037 if (nfields == 3 && !substed) {
12038 key = field[2]
12039 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12040 \$ac_cs_awk_read_file
12041 next
12042 }
12043 }
12044 print line
12045}
12046\$ac_cs_awk_pipe_fini
12047_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012048_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12050if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12051 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12052else
12053 cat
12054fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012055 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012056_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012057
12058# VPATH may cause trouble with some makes, so we remove $(srcdir),
12059# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12060# trailing colons and then remove the whole line if VPATH becomes empty
12061# (actually we leave an empty line to preserve line numbers).
12062if test "x$srcdir" = x.; then
12063 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12064s/:*\$(srcdir):*/:/
12065s/:*\${srcdir}:*/:/
12066s/:*@srcdir@:*/:/
12067s/^\([^=]*=[ ]*\):*/\1/
12068s/:*$//
12069s/^[^=]*=[ ]*$//
12070}'
12071fi
12072
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012074fi # test -n "$CONFIG_FILES"
12075
Theodore Ts'oe1052142006-10-21 21:46:47 -040012076
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012077eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12078shift
12079for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012080do
12081 case $ac_tag in
12082 :[FHLC]) ac_mode=$ac_tag; continue;;
12083 esac
12084 case $ac_mode$ac_tag in
12085 :[FHL]*:*);;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012086 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012087 :[FH]-) ac_tag=-:-;;
12088 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12089 esac
12090 ac_save_IFS=$IFS
12091 IFS=:
12092 set x $ac_tag
12093 IFS=$ac_save_IFS
12094 shift
12095 ac_file=$1
12096 shift
12097
12098 case $ac_mode in
12099 :L) ac_source=$1;;
12100 :[FH])
12101 ac_file_inputs=
12102 for ac_f
12103 do
12104 case $ac_f in
12105 -) ac_f="$tmp/stdin";;
12106 *) # Look for the file first in the build tree, then in the source tree
12107 # (if the path is not absolute). The absolute path cannot be DOS-style,
12108 # because $ac_f cannot contain `:'.
12109 test -f "$ac_f" ||
12110 case $ac_f in
12111 [\\/$]*) false;;
12112 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12113 esac ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012114 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012115 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012116 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012117 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012118 done
12119
12120 # Let's still pretend it is `configure' which instantiates (i.e., don't
12121 # use $as_me), people would be surprised to read:
12122 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012123 configure_input='Generated from '`
12124 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12125 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012126 if test x"$ac_file" != x-; then
12127 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012129$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012130 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012131 # Neutralize special characters interpreted by sed in replacement strings.
12132 case $configure_input in #(
12133 *\&* | *\|* | *\\* )
12134 ac_sed_conf_input=`$as_echo "$configure_input" |
12135 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12136 *) ac_sed_conf_input=$configure_input;;
12137 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012138
12139 case $ac_tag in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012140 *:-:* | *:-) cat >"$tmp/stdin" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012141 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012142 esac
12143 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012144 esac
12145
Theodore Ts'oe1052142006-10-21 21:46:47 -040012146 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012147$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12148 X"$ac_file" : 'X\(//\)[^/]' \| \
12149 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012151$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12153 s//\1/
12154 q
12155 }
12156 /^X\(\/\/\)[^/].*/{
12157 s//\1/
12158 q
12159 }
12160 /^X\(\/\/\)$/{
12161 s//\1/
12162 q
12163 }
12164 /^X\(\/\).*/{
12165 s//\1/
12166 q
12167 }
12168 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012169 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012170 ac_builddir=.
12171
Theodore Ts'oe1052142006-10-21 21:46:47 -040012172case "$ac_dir" in
12173.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12174*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012175 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012176 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012177 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012178 case $ac_top_builddir_sub in
12179 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12180 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12181 esac ;;
12182esac
12183ac_abs_top_builddir=$ac_pwd
12184ac_abs_builddir=$ac_pwd$ac_dir_suffix
12185# for backward compatibility:
12186ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012187
12188case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012189 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012190 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012191 ac_top_srcdir=$ac_top_builddir_sub
12192 ac_abs_top_srcdir=$ac_pwd ;;
12193 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012194 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012195 ac_top_srcdir=$srcdir
12196 ac_abs_top_srcdir=$srcdir ;;
12197 *) # Relative name.
12198 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12199 ac_top_srcdir=$ac_top_build_prefix$srcdir
12200 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012201esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012202ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012203
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204
Theodore Ts'oe1052142006-10-21 21:46:47 -040012205 case $ac_mode in
12206 :F)
12207 #
12208 # CONFIG_FILE
12209 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012210
12211 case $INSTALL in
12212 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012213 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012214 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012216
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012218# If the template does not know about datarootdir, expand it.
12219# FIXME: This hack should be removed a few years after 2.60.
12220ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012221ac_sed_dataroot='
12222/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012223 p
12224 q
12225}
12226/@datadir@/p
12227/@docdir@/p
12228/@infodir@/p
12229/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012230/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012231case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012232*datarootdir*) ac_datarootdir_seen=yes;;
12233*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012234 { $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 +010012235$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012236_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012238 ac_datarootdir_hack='
12239 s&@datadir@&$datadir&g
12240 s&@docdir@&$docdir&g
12241 s&@infodir@&$infodir&g
12242 s&@localedir@&$localedir&g
12243 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012244 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012245esac
12246_ACEOF
12247
12248# Neutralize VPATH when `$srcdir' = `.'.
12249# Shell code in configure.ac might set extrasub.
12250# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12252ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012253$extrasub
12254_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012256:t
12257/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012258s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012259s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012260s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012261s&@srcdir@&$ac_srcdir&;t t
12262s&@abs_srcdir@&$ac_abs_srcdir&;t t
12263s&@top_srcdir@&$ac_top_srcdir&;t t
12264s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12265s&@builddir@&$ac_builddir&;t t
12266s&@abs_builddir@&$ac_abs_builddir&;t t
12267s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12268s&@INSTALL@&$ac_INSTALL&;t t
12269$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012270"
12271eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12272if $ac_cs_awk_getline; then
12273 $AWK -f "$tmp/subs.awk"
12274else
12275 $AWK -f "$tmp/subs.awk" | $SHELL
12276fi >$tmp/out \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012277 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012278
Theodore Ts'oe1052142006-10-21 21:46:47 -040012279test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12280 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12281 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012282 { $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 -040012283which seems to be undefined. Please make sure it is defined." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012284$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012285which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012286
Theodore Ts'oe1052142006-10-21 21:46:47 -040012287 rm -f "$tmp/stdin"
12288 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012289 -) cat "$tmp/out" && rm -f "$tmp/out";;
12290 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12291 esac \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012292 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012293 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012294
12295
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012296 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012297$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012298 ;;
12299 esac
12300
12301
12302 case $ac_file$ac_mode in
12303 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012304 for ac_file in $CONFIG_FILES; do
12305 # Support "outfile[:infile[:infile...]]"
12306 case "$ac_file" in
12307 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012308 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012309 # PO directories have a Makefile.in generated from Makefile.in.in.
12310 case "$ac_file" in */Makefile.in)
12311 # Adjust a relative srcdir.
12312 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12313 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12314 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12315 # In autoconf-2.13 it is called $ac_given_srcdir.
12316 # In autoconf-2.50 it is called $srcdir.
12317 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12318 case "$ac_given_srcdir" in
12319 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12320 /*) top_srcdir="$ac_given_srcdir" ;;
12321 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12322 esac
12323 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12324 rm -f "$ac_dir/POTFILES"
12325 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12326 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 -050012327 POMAKEFILEDEPS="POTFILES.in"
12328 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012329 # on $ac_dir but don't depend on user-specified configuration
12330 # parameters.
12331 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12332 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012333 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012334 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12335 fi
12336 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12337 # Hide the ALL_LINGUAS assigment from automake.
12338 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012339 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12340 else
12341 # The set of available languages was given in configure.in.
12342 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012343 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012344 # Compute POFILES
12345 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12346 # Compute UPDATEPOFILES
12347 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12348 # Compute DUMMYPOFILES
12349 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12350 # Compute GMOFILES
12351 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012352 case "$ac_given_srcdir" in
12353 .) srcdirpre= ;;
12354 *) srcdirpre='$(srcdir)/' ;;
12355 esac
12356 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012357 UPDATEPOFILES=
12358 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012359 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012360 for lang in $ALL_LINGUAS; do
12361 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012362 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12363 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012364 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012365 done
12366 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12367 # environment variable.
12368 INST_LINGUAS=
12369 if test -n "$ALL_LINGUAS"; then
12370 for presentlang in $ALL_LINGUAS; do
12371 useit=no
12372 if test "%UNSET%" != "$LINGUAS"; then
12373 desiredlanguages="$LINGUAS"
12374 else
12375 desiredlanguages="$ALL_LINGUAS"
12376 fi
12377 for desiredlang in $desiredlanguages; do
12378 # Use the presentlang catalog if desiredlang is
12379 # a. equal to presentlang, or
12380 # b. a variant of presentlang (because in this case,
12381 # presentlang can be used as a fallback for messages
12382 # which are not translated in the desiredlang catalog).
12383 case "$desiredlang" in
12384 "$presentlang"*) useit=yes;;
12385 esac
12386 done
12387 if test $useit = yes; then
12388 INST_LINGUAS="$INST_LINGUAS $presentlang"
12389 fi
12390 done
12391 fi
12392 CATALOGS=
12393 if test -n "$INST_LINGUAS"; then
12394 for lang in $INST_LINGUAS; do
12395 CATALOGS="$CATALOGS $lang.gmo"
12396 done
12397 fi
12398 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012399 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 -040012400 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12401 if test -f "$f"; then
12402 case "$f" in
12403 *.orig | *.bak | *~) ;;
12404 *) cat "$f" >> "$ac_dir/Makefile" ;;
12405 esac
12406 fi
12407 done
12408 fi
12409 ;;
12410 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012411 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012412
Theodore Ts'oe1052142006-10-21 21:46:47 -040012413 esac
12414done # for ac_tag
12415
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012416
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012417as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012418_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012419ac_clean_files=$ac_clean_files_save
12420
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012421test $ac_write_fail = 0 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012422 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012423
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012424
12425# configure is writing to config.log, and then calls config.status.
12426# config.status does its own redirection, appending to config.log.
12427# Unfortunately, on DOS this fails, as config.log is still kept open
12428# by configure, so config.status won't be able to write to it; its
12429# output is simply discarded. So we exec the FD to /dev/null,
12430# effectively closing config.log, so it can be properly (re)opened and
12431# appended to by config.status. When coming back to configure, we
12432# need to make the FD available again.
12433if test "$no_create" != yes; then
12434 ac_cs_success=:
12435 ac_config_status_args=
12436 test "$silent" = yes &&
12437 ac_config_status_args="$ac_config_status_args --quiet"
12438 exec 5>/dev/null
12439 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12440 exec 5>>config.log
12441 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12442 # would make configure fail if this is the last instruction.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012443 $ac_cs_success || as_fn_exit $?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012444fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012445if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012447$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12448fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012449
Theodore Ts'oee683a12005-02-05 15:53:56 -050012450if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi