blob: aaeb1770e0985fce142905c4f17445125007c271 [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
676RESIZER_CMT
677IMAGER_CMT
678DEBUGFS_CMT
679BLKID_CMT
680DEPPROFILED_LIBBLKID
681PROFILED_LIBBLKID
682DEPSTATIC_LIBBLKID
683STATIC_LIBBLKID
684DEPLIBBLKID
685LIBBLKID
686UUID_CMT
687DEPPROFILED_LIBUUID
688PROFILED_LIBUUID
689DEPSTATIC_LIBUUID
690STATIC_LIBUUID
691DEPLIBUUID
692LIBUUID
693PKG_CONFIG
694TEST_IO_CMT
695PRIVATE_LIBS_CMT
696LDFLAG_DYNAMIC
697PROFILED_LIB_EXT
698STATIC_LIB_EXT
699LIB_EXT
700CHECKER_CMT
701PROFILE_CMT
702BSDLIB_CMT
703ELF_CMT
704HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400705Q
706E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400707LINK_BUILD_FLAGS
708LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100709MAINTAINER_CMT
710LINUX_INCLUDE
711EGREP
712GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100713CPP
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500714DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100715OBJEXT
716EXEEXT
717ac_ct_CC
718CPPFLAGS
719LDFLAGS
720CFLAGS
721CC
722host_os
723host_vendor
724host_cpu
725host
726build_os
727build_vendor
728build_cpu
729build
730E2FSPROGS_PKGVER
731E2FSPROGS_VERSION
732E2FSPROGS_DAY
733E2FSPROGS_MONTH
734E2FSPROGS_YEAR
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500765PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400773ac_subst_files='MCONFIG
774MAKEFILE_ELF
775MAKEFILE_BSDLIB
776MAKEFILE_PROFILE
777MAKEFILE_CHECKER
778MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400779ASM_TYPES_HEADER
780PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100781ac_user_opts='
782enable_option_checking
783with_diet_libc
784with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100785with_ccopts
786with_ldopts
787with_root_prefix
788enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400789enable_symlink_install
790enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400791enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100792enable_compression
793enable_htree
794enable_elf_shlibs
795enable_bsd_shlibs
796enable_profile
797enable_checker
798enable_jbd_debug
799enable_blkid_debug
800enable_testio_debug
801enable_libuuid
802enable_libblkid
803enable_debugfs
804enable_imager
805enable_resizer
806enable_fsck
807enable_e2initrd_helper
808enable_tls
809enable_uuidd
810enable_nls
811with_gnu_ld
812enable_rpath
813with_libiconv_prefix
814with_included_gettext
815with_libintl_prefix
816'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400817 ac_precious_vars='build_alias
818host_alias
819target_alias
820CC
821CFLAGS
822LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400823LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400824CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400825CPP
826PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400827
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000828
829# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500830ac_init_help=
831ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100832ac_unrecognized_opts=
833ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000834# The variables have the same names as the options, with
835# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500836cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000837exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000838no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000847verbose=
848x_includes=NONE
849x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400856# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000865includedir='${prefix}/include'
866oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400867docdir='${datarootdir}/doc/${PACKAGE}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000876
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000877ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400878ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000879for ac_option
880do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400883 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000884 ac_prev=
885 continue
886 fi
887
Theodore Ts'oe1052142006-10-21 21:46:47 -0400888 case $ac_option in
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *) ac_optarg=yes ;;
891 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000892
893 # Accept the important Cygnus configure options, so we can diagnose typos.
894
Theodore Ts'oe1052142006-10-21 21:46:47 -0400895 case $ac_dashdash$ac_option in
896 --)
897 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000898
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500902 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000903
904 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500905 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500907 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000908
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500914 cache_file=$ac_optarg ;;
915
916 --config-cache | -C)
917 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000918
Theodore Ts'oe1052142006-10-21 21:46:47 -0400919 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000920 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500922 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000923
Theodore Ts'oe1052142006-10-21 21:46:47 -0400924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
930
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000931 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000933 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500935 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940"enable_$ac_useropt"
941"*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400946
947 -docdir | --docdir | --docdi | --doc | --do)
948 ac_prev=docdir ;;
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 docdir=$ac_optarg ;;
951
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 ac_prev=dvidir ;;
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000956
957 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000959 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500961 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966"enable_$ac_useropt"
967"*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000972
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500980 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000981
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
985
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000992
993 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500994 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000995 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500996 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000997
Theodore Ts'oe1052142006-10-21 21:46:47 -0400998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1003
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001009 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001010
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001014 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001015
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001019 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001020
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001026 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001027
Theodore Ts'oe1052142006-10-21 21:46:47 -04001028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1032
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001033 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001034 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001038 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001039
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001043 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001044
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1048
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001050 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001051 no_create=yes ;;
1052
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1056
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001064 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001065
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001069 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001070
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001076 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001077
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001083 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001084
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001100 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001101
Theodore Ts'oe1052142006-10-21 21:46:47 -04001102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1106
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1111
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1115
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001120 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001121
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001131 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001132
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001136 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001137
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001141 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001142
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001148 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001149
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001151 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001153 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001154
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1157
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001160
1161 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001163 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001165 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170"with_$ac_useropt"
1171"*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001176
1177 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001179 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001181 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186"with_$ac_useropt"
1187"*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001192
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1196
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001202 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001203
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001209 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001210
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001211 -*) as_fn_error "unrecognized option: \`$ac_option'
1212Try \`$0 --help' for more information."
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001213 ;;
1214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1221 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001222 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001223 export $ac_envvar ;;
1224
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001225 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001226 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001230 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001231 ;;
1232
1233 esac
1234done
1235
1236if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001238 as_fn_error "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001239fi
1240
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001241if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001244 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1247fi
1248
1249# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001250for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001254do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001255 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001263 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001266 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001267 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001268done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001270# There might be people who depend on the old broken behavior: `$host'
1271# used to hold the argument of --host etc.
1272# FIXME: To remove some day.
1273build=$build_alias
1274host=$host_alias
1275target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001277# FIXME: To remove some day.
1278if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001281 $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 -05001282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1285 fi
1286fi
1287
1288ac_tool_prefix=
1289test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291test "$silent" = yes && exec 6>/dev/null
1292
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001293
Theodore Ts'oe1052142006-10-21 21:46:47 -04001294ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295ac_ls_di=`ls -di .` &&
1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001297 as_fn_error "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001298test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001299 as_fn_error "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001300
1301
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001302# Find the source files, if location was not specified.
1303if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001305 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\).*/{
1325 s//\1/
1326 q
1327 }
1328 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001329 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001330 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001331 srcdir=..
1332 fi
1333else
1334 ac_srcdir_defaulted=no
1335fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001336if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001338 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001339fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001340ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341ac_abs_confdir=`(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001343 pwd)`
1344# When building in place, set srcdir=.
1345if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1347fi
1348# Remove unnecessary trailing slashes from srcdir.
1349# Double slashes in file names in object file debugging info
1350# mess up M-x gdb in Emacs.
1351case $srcdir in
1352*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353esac
1354for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001360
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001361#
1362# Report the --help message.
1363#
1364if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
1368\`configure' configures this package to adapt to many kinds of systems.
1369
1370Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373VAR=VALUE. See below for descriptions of some of the useful variables.
1374
1375Defaults for the options are specified in brackets.
1376
1377Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001388Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001390 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001392 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001393
1394By default, \`make install' will install all the files in
1395\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397for instance \`--prefix=\$HOME'.
1398
1399For better control, use the options below.
1400
1401Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001421_ACEOF
1422
1423 cat <<\_ACEOF
1424
1425System types:
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428_ACEOF
1429fi
1430
1431if test -n "$ac_init_help"; then
1432
1433 cat <<\_ACEOF
1434
1435Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001436 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001439 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001440 --enable-symlink-install use symlinks when installing instead of hard links
1441 --enable-symlink-build use symlinks while building instead of hard links
1442 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001443 --enable-compression enable EXPERIMENTAL compression support
1444 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001445 --enable-elf-shlibs select ELF shared libraries
1446 --enable-bsd-shlibs select BSD shared libraries
1447 --enable-profile build profiling libraries
1448 --enable-checker build checker libraries
1449 --enable-jbd-debug enable journal debugging
1450 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001451 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001452 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001453 --disable-libblkid do not build private blkid library
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001454 --disable-debugfs disable support of debugfs program
1455 --disable-imager disable support of e2image program
1456 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001457 --enable-fsck build fsck wrapper program
1458 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001459 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001460 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001461 --disable-nls do not use Native Language Support
1462 --disable-rpath do not hardcode runtime library paths
1463
1464Optional Packages:
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001467 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001468 --with-cc no longer supported, use CC= instead
1469 --with-ccopts no longer supported, use CFLAGS= instead
1470 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001471 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1472 --with-gnu-ld assume the C compiler uses GNU ld default=no
1473 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1474 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1475 --with-included-gettext use the GNU gettext library included here
1476 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1477 --without-libintl-prefix don't search for libintl in includedir and libdir
1478
1479Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001484 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001486 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001487 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001488 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001489
1490Use these variables to override the choices made by `configure' or to help
1491it to find libraries and programs with nonstandard names/locations.
1492
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001493Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001494_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001495ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001496fi
1497
1498if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001504 ac_builddir=.
1505
Theodore Ts'oe1052142006-10-21 21:46:47 -04001506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001510 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001521
1522case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001523 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001524 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001528 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001535esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001537
Theodore Ts'oe1052142006-10-21 21:46:47 -04001538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001546 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001550 done
1551fi
1552
Theodore Ts'oe1052142006-10-21 21:46:47 -04001553test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001554if $ac_init_version; then
1555 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001556configure
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001557generated by GNU Autoconf 2.65
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001558
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001559Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001560This configure script is free software; the Free Software Foundation
1561gives unlimited permission to copy, distribute and modify it.
1562_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001563 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001564fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001565
1566## ------------------------ ##
1567## Autoconf initialization. ##
1568## ------------------------ ##
1569
1570# ac_fn_c_try_compile LINENO
1571# --------------------------
1572# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_compile ()
1574{
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597else
1598 $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602fi
1603 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001604 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001605
1606} # ac_fn_c_try_compile
1607
1608# ac_fn_c_try_link LINENO
1609# -----------------------
1610# Try to link conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_link ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext conftest$ac_exeext
1615 if { { ac_try="$ac_link"
1616case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621$as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_link") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest$ac_exeext && {
1634 test "$cross_compiling" = yes ||
1635 $as_test_x conftest$ac_exeext
1636 }; then :
1637 ac_retval=0
1638else
1639 $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643fi
1644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646 # interfere with the next link command; also delete a directory that is
1647 # left behind by Apple's compiler. We do this before executing the actions.
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001650 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001651
1652} # ac_fn_c_try_link
1653
1654# ac_fn_c_try_cpp LINENO
1655# ----------------------
1656# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_c_try_cpp ()
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1661case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } >/dev/null && {
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 }; then :
1679 ac_retval=0
1680else
1681 $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685fi
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001687 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001688
1689} # ac_fn_c_try_cpp
1690
1691# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1692# -------------------------------------------------------
1693# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1694# the include files in INCLUDES and setting the cache variable VAR
1695# accordingly.
1696ac_fn_c_check_header_mongrel ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; }
1702if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1703 $as_echo_n "(cached) " >&6
1704fi
1705eval ac_res=\$$3
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707$as_echo "$ac_res" >&6; }
1708else
1709 # Is the header compilable?
1710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1711$as_echo_n "checking $2 usability... " >&6; }
1712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h. */
1714$4
1715#include <$2>
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"; then :
1718 ac_header_compiler=yes
1719else
1720 ac_header_compiler=no
1721fi
1722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1724$as_echo "$ac_header_compiler" >&6; }
1725
1726# Is the header present?
1727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1728$as_echo_n "checking $2 presence... " >&6; }
1729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h. */
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_cpp "$LINENO"; then :
1734 ac_header_preproc=yes
1735else
1736 ac_header_preproc=no
1737fi
1738rm -f conftest.err conftest.$ac_ext
1739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1740$as_echo "$ac_header_preproc" >&6; }
1741
1742# So? What about this header?
1743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1744 yes:no: )
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1746$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1748$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1749 ;;
1750 no:yes:* )
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1752$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1754$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1756$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1758$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1760$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1761 ;;
1762esac
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1766 $as_echo_n "(cached) " >&6
1767else
1768 eval "$3=\$ac_header_compiler"
1769fi
1770eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772$as_echo "$ac_res" >&6; }
1773fi
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775
1776} # ac_fn_c_check_header_mongrel
1777
1778# ac_fn_c_try_run LINENO
1779# ----------------------
1780# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1781# that executables *can* be run.
1782ac_fn_c_try_run ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_link"
1786case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>&5
1793 ac_status=$?
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1796 { { case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_try") 2>&5
1803 ac_status=$?
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; }; }; then :
1806 ac_retval=0
1807else
1808 $as_echo "$as_me: program exited with status $ac_status" >&5
1809 $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=$ac_status
1813fi
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001816 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001817
1818} # ac_fn_c_try_run
1819
1820# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1821# -------------------------------------------------------
1822# Tests whether HEADER exists and can be compiled using the include files in
1823# INCLUDES, setting the cache variable VAR accordingly.
1824ac_fn_c_check_header_compile ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828$as_echo_n "checking for $2... " >&6; }
1829if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830 $as_echo_n "(cached) " >&6
1831else
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h. */
1834$4
1835#include <$2>
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838 eval "$3=yes"
1839else
1840 eval "$3=no"
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843fi
1844eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846$as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848
1849} # ac_fn_c_check_header_compile
1850
1851# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1852# -------------------------------------------
1853# Tests whether TYPE exists after having included INCLUDES, setting cache
1854# variable VAR accordingly.
1855ac_fn_c_check_type ()
1856{
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
1860if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1862else
1863 eval "$3=no"
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h. */
1866$4
1867int
1868main ()
1869{
1870if (sizeof ($2))
1871 return 0;
1872 ;
1873 return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_compile "$LINENO"; then :
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h. */
1879$4
1880int
1881main ()
1882{
1883if (sizeof (($2)))
1884 return 0;
1885 ;
1886 return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_compile "$LINENO"; then :
1890
1891else
1892 eval "$3=yes"
1893fi
1894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895fi
1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897fi
1898eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900$as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902
1903} # ac_fn_c_check_type
1904
1905# ac_fn_c_check_func LINENO FUNC VAR
1906# ----------------------------------
1907# Tests whether FUNC exists, setting the cache variable VAR accordingly
1908ac_fn_c_check_func ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912$as_echo_n "checking for $2... " >&6; }
1913if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 $as_echo_n "(cached) " >&6
1915else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h. */
1918/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1920#define $2 innocuous_$2
1921
1922/* System header to define __stub macros and hopefully few prototypes,
1923 which can conflict with char $2 (); below.
1924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1925 <limits.h> exists even on freestanding compilers. */
1926
1927#ifdef __STDC__
1928# include <limits.h>
1929#else
1930# include <assert.h>
1931#endif
1932
1933#undef $2
1934
1935/* Override any GCC internal prototype to avoid an error.
1936 Use char because int might match the return type of a GCC
1937 builtin and then its argument prototype would still apply. */
1938#ifdef __cplusplus
1939extern "C"
1940#endif
1941char $2 ();
1942/* The GNU C library defines this for functions which it implements
1943 to always fail with ENOSYS. Some functions are actually named
1944 something starting with __ and the normal name is an alias. */
1945#if defined __stub_$2 || defined __stub___$2
1946choke me
1947#endif
1948
1949int
1950main ()
1951{
1952return $2 ();
1953 ;
1954 return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_link "$LINENO"; then :
1958 eval "$3=yes"
1959else
1960 eval "$3=no"
1961fi
1962rm -f core conftest.err conftest.$ac_objext \
1963 conftest$ac_exeext conftest.$ac_ext
1964fi
1965eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967$as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1969
1970} # ac_fn_c_check_func
1971
1972# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1973# --------------------------------------------
1974# Tries to find the compile-time value of EXPR in a program that includes
1975# INCLUDES, setting VAR accordingly. Returns whether the value could be
1976# computed
1977ac_fn_c_compute_int ()
1978{
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if test "$cross_compiling" = yes; then
1981 # Depending upon the size, compute the lo and hi bounds.
1982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983/* end confdefs.h. */
1984$4
1985int
1986main ()
1987{
1988static int test_array [1 - 2 * !(($2) >= 0)];
1989test_array [0] = 0
1990
1991 ;
1992 return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_compile "$LINENO"; then :
1996 ac_lo=0 ac_mid=0
1997 while :; do
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h. */
2000$4
2001int
2002main ()
2003{
2004static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005test_array [0] = 0
2006
2007 ;
2008 return 0;
2009}
2010_ACEOF
2011if ac_fn_c_try_compile "$LINENO"; then :
2012 ac_hi=$ac_mid; break
2013else
2014 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2015 if test $ac_lo -le $ac_mid; then
2016 ac_lo= ac_hi=
2017 break
2018 fi
2019 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2020fi
2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 done
2023else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h. */
2026$4
2027int
2028main ()
2029{
2030static int test_array [1 - 2 * !(($2) < 0)];
2031test_array [0] = 0
2032
2033 ;
2034 return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_hi=-1 ac_mid=-1
2039 while :; do
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h. */
2042$4
2043int
2044main ()
2045{
2046static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2047test_array [0] = 0
2048
2049 ;
2050 return 0;
2051}
2052_ACEOF
2053if ac_fn_c_try_compile "$LINENO"; then :
2054 ac_lo=$ac_mid; break
2055else
2056 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2057 if test $ac_mid -le $ac_hi; then
2058 ac_lo= ac_hi=
2059 break
2060 fi
2061 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2062fi
2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 done
2065else
2066 ac_lo= ac_hi=
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071# Binary search between lo and hi bounds.
2072while test "x$ac_lo" != "x$ac_hi"; do
2073 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h. */
2076$4
2077int
2078main ()
2079{
2080static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2081test_array [0] = 0
2082
2083 ;
2084 return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_hi=$ac_mid
2089else
2090 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093done
2094case $ac_lo in #((
2095?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2096'') ac_retval=1 ;;
2097esac
2098 else
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h. */
2101$4
2102static long int longval () { return $2; }
2103static unsigned long int ulongval () { return $2; }
2104#include <stdio.h>
2105#include <stdlib.h>
2106int
2107main ()
2108{
2109
2110 FILE *f = fopen ("conftest.val", "w");
2111 if (! f)
2112 return 1;
2113 if (($2) < 0)
2114 {
2115 long int i = longval ();
2116 if (i != ($2))
2117 return 1;
2118 fprintf (f, "%ld", i);
2119 }
2120 else
2121 {
2122 unsigned long int i = ulongval ();
2123 if (i != ($2))
2124 return 1;
2125 fprintf (f, "%lu", i);
2126 }
2127 /* Do not output a trailing newline, as this causes \r\n confusion
2128 on some platforms. */
2129 return ferror (f) || fclose (f) != 0;
2130
2131 ;
2132 return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_run "$LINENO"; then :
2136 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2137else
2138 ac_retval=1
2139fi
2140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2141 conftest.$ac_objext conftest.beam conftest.$ac_ext
2142rm -f conftest.val
2143
2144 fi
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002146 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002147
2148} # ac_fn_c_compute_int
2149
2150# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2151# ----------------------------------------------------
2152# Tries to find if the field MEMBER exists in type AGGR, after including
2153# INCLUDES, setting cache variable VAR accordingly.
2154ac_fn_c_check_member ()
2155{
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2158$as_echo_n "checking for $2.$3... " >&6; }
2159if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2160 $as_echo_n "(cached) " >&6
2161else
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163/* end confdefs.h. */
2164$5
2165int
2166main ()
2167{
2168static $2 ac_aggr;
2169if (ac_aggr.$3)
2170return 0;
2171 ;
2172 return 0;
2173}
2174_ACEOF
2175if ac_fn_c_try_compile "$LINENO"; then :
2176 eval "$4=yes"
2177else
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179/* end confdefs.h. */
2180$5
2181int
2182main ()
2183{
2184static $2 ac_aggr;
2185if (sizeof ac_aggr.$3)
2186return 0;
2187 ;
2188 return 0;
2189}
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192 eval "$4=yes"
2193else
2194 eval "$4=no"
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199fi
2200eval ac_res=\$$4
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202$as_echo "$ac_res" >&6; }
2203 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2204
2205} # ac_fn_c_check_member
2206
2207# ac_fn_c_check_decl LINENO SYMBOL VAR
2208# ------------------------------------
2209# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2210ac_fn_c_check_decl ()
2211{
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2214$as_echo_n "checking whether $2 is declared... " >&6; }
2215if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2216 $as_echo_n "(cached) " >&6
2217else
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$4
2221int
2222main ()
2223{
2224#ifndef $2
2225 (void) $2;
2226#endif
2227
2228 ;
2229 return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233 eval "$3=yes"
2234else
2235 eval "$3=no"
2236fi
2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238fi
2239eval ac_res=\$$3
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241$as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2243
2244} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002245cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002246This file contains any messages produced by compilers while
2247running configure, to aid debugging if configure makes a mistake.
2248
2249It was created by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002250generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002251
2252 $ $0 $@
2253
2254_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002255exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002256{
2257cat <<_ASUNAME
2258## --------- ##
2259## Platform. ##
2260## --------- ##
2261
2262hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2263uname -m = `(uname -m) 2>/dev/null || echo unknown`
2264uname -r = `(uname -r) 2>/dev/null || echo unknown`
2265uname -s = `(uname -s) 2>/dev/null || echo unknown`
2266uname -v = `(uname -v) 2>/dev/null || echo unknown`
2267
2268/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2269/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2270
2271/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2272/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2273/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002274/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002275/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2276/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2277/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2278
2279_ASUNAME
2280
2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282for as_dir in $PATH
2283do
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002286 $as_echo "PATH: $as_dir"
2287 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002288IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002289
2290} >&5
2291
2292cat >&5 <<_ACEOF
2293
2294
2295## ----------- ##
2296## Core tests. ##
2297## ----------- ##
2298
2299_ACEOF
2300
2301
2302# Keep a trace of the command line.
2303# Strip out --no-create and --no-recursion so they do not pile up.
2304# Strip out --silent because we don't want to record it for future runs.
2305# Also quote any args containing shell meta-characters.
2306# Make two passes to allow for proper duplicate-argument suppression.
2307ac_configure_args=
2308ac_configure_args0=
2309ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002310ac_must_keep_next=false
2311for ac_pass in 1 2
2312do
2313 for ac_arg
2314 do
2315 case $ac_arg in
2316 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2318 | -silent | --silent | --silen | --sile | --sil)
2319 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002320 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002321 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002322 esac
2323 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002324 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002325 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002326 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002327 if test $ac_must_keep_next = true; then
2328 ac_must_keep_next=false # Got value, back to normal.
2329 else
2330 case $ac_arg in
2331 *=* | --config-cache | -C | -disable-* | --disable-* \
2332 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2333 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2334 | -with-* | --with-* | -without-* | --without-* | --x)
2335 case "$ac_configure_args0 " in
2336 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2337 esac
2338 ;;
2339 -* ) ac_must_keep_next=true ;;
2340 esac
2341 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002342 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002343 ;;
2344 esac
2345 done
2346done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002347{ ac_configure_args0=; unset ac_configure_args0;}
2348{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002349
2350# When interrupted or exit'd, cleanup temporary files, and complete
2351# config.log. We remove comments because anyway the quotes in there
2352# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002353# WARNING: Use '\'' to represent an apostrophe within the trap.
2354# 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 -05002355trap 'exit_status=$?
2356 # Save into config.log some information that might help in debugging.
2357 {
2358 echo
2359
2360 cat <<\_ASBOX
2361## ---------------- ##
2362## Cache variables. ##
2363## ---------------- ##
2364_ASBOX
2365 echo
2366 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002367(
2368 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2369 eval ac_val=\$$ac_var
2370 case $ac_val in #(
2371 *${as_nl}*)
2372 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002373 *_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 +01002374$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002375 esac
2376 case $ac_var in #(
2377 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002379 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002380 esac ;;
2381 esac
2382 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002383 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002384 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002386 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002387 "s/'\''/'\''\\\\'\'''\''/g;
2388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2389 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002390 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002392 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002393 esac |
2394 sort
2395)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002396 echo
2397
2398 cat <<\_ASBOX
2399## ----------------- ##
2400## Output variables. ##
2401## ----------------- ##
2402_ASBOX
2403 echo
2404 for ac_var in $ac_subst_vars
2405 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002406 eval ac_val=\$$ac_var
2407 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002409 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002410 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002411 done | sort
2412 echo
2413
2414 if test -n "$ac_subst_files"; then
2415 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04002416## ------------------- ##
2417## File substitutions. ##
2418## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002419_ASBOX
2420 echo
2421 for ac_var in $ac_subst_files
2422 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002423 eval ac_val=\$$ac_var
2424 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002426 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002427 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002428 done | sort
2429 echo
2430 fi
2431
2432 if test -s confdefs.h; then
2433 cat <<\_ASBOX
2434## ----------- ##
2435## confdefs.h. ##
2436## ----------- ##
2437_ASBOX
2438 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002439 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002440 echo
2441 fi
2442 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002443 $as_echo "$as_me: caught signal $ac_signal"
2444 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002445 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002446 rm -f core *.core core.conftest.* &&
2447 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002448 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002449' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002450for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002451 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002452done
2453ac_signal=0
2454
2455# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002456rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002457
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002458$as_echo "/* confdefs.h */" > confdefs.h
2459
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460# Predefined preprocessor variables.
2461
2462cat >>confdefs.h <<_ACEOF
2463#define PACKAGE_NAME "$PACKAGE_NAME"
2464_ACEOF
2465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002466cat >>confdefs.h <<_ACEOF
2467#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2468_ACEOF
2469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002470cat >>confdefs.h <<_ACEOF
2471#define PACKAGE_VERSION "$PACKAGE_VERSION"
2472_ACEOF
2473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_STRING "$PACKAGE_STRING"
2476_ACEOF
2477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2480_ACEOF
2481
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_URL "$PACKAGE_URL"
2484_ACEOF
2485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002486
2487# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002488# Prefer an explicitly selected file to automatically selected ones.
2489ac_site_file1=NONE
2490ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002491if test -n "$CONFIG_SITE"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002492 ac_site_file1=$CONFIG_SITE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002493elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002494 ac_site_file1=$prefix/share/config.site
2495 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002496else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002497 ac_site_file1=$ac_default_prefix/share/config.site
2498 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002499fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002500for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002501do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002502 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002503 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002504 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002505$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002506 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002507 . "$ac_site_file"
2508 fi
2509done
2510
2511if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002512 # Some versions of bash will fail to source /dev/null (special files
2513 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2514 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002515 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002516$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002517 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002518 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2519 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002520 esac
2521 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002522else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002524$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002525 >$cache_file
2526fi
2527
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002528as_fn_append ac_header_list " stdlib.h"
2529as_fn_append ac_header_list " unistd.h"
2530as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531# Check that the precious variables saved in the cache have kept the same
2532# value.
2533ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002534for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002535 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2536 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002537 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2538 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002539 case $ac_old_set,$ac_new_set in
2540 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002541 { $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 +01002542$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 -05002543 ac_cache_corrupted=: ;;
2544 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002545 { $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 +01002546$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002547 ac_cache_corrupted=: ;;
2548 ,);;
2549 *)
2550 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002551 # differences in whitespace do not lead to failure.
2552 ac_old_val_w=`echo x $ac_old_val`
2553 ac_new_val_w=`echo x $ac_new_val`
2554 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002555 { $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 +01002556$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2557 ac_cache_corrupted=:
2558 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002559 { $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 +01002560$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2561 eval $ac_var=\$ac_old_val
2562 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002563 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002564$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002565 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002566$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002567 fi;;
2568 esac
2569 # Pass precious variables to config.status.
2570 if test "$ac_new_set" = set; then
2571 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002572 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002573 *) ac_arg=$ac_var=$ac_new_val ;;
2574 esac
2575 case " $ac_configure_args " in
2576 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002577 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002578 esac
2579 fi
2580done
2581if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002584 { $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 +01002585$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002586 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002587fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002588## -------------------- ##
2589## Main body of script. ##
2590## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002591
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002592ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002593ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002597
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002598
2599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002600ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002601for ac_dir in config "$srcdir"/config; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002602 for ac_t in install-sh install.sh shtool; do
2603 if test -f "$ac_dir/$ac_t"; then
2604 ac_aux_dir=$ac_dir
2605 ac_install_sh="$ac_aux_dir/$ac_t -c"
2606 break 2
2607 fi
2608 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002609done
2610if test -z "$ac_aux_dir"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002611 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 +00002612fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002613
2614# These three variables are undocumented and unsupported,
2615# and are intended to be withdrawn in a future Autoconf release.
2616# They can cause serious problems if a builder's source tree is in a directory
2617# whose full name contains unusual characters.
2618ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2619ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2620ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2621
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002622
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002623MCONFIG=./MCONFIG
2624
Theodore Ts'o74becf31997-04-26 14:37:06 +00002625BINARY_TYPE=bin
2626E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2627 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2628DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2629 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002630E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002631MONTH=`echo $DATE | awk -F- '{print $2}'`
2632YEAR=`echo $DATE | awk -F- '{print $3}'`
2633
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002634if expr $YEAR ">" 1900 > /dev/null ; then
2635 E2FSPROGS_YEAR=$YEAR
2636elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002637 E2FSPROGS_YEAR=19$YEAR
2638else
2639 E2FSPROGS_YEAR=20$YEAR
2640fi
2641
2642case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002643Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2644Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2645Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2646Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2647May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2648Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2649Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2650Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2651Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2652Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2653Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2654Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002655*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002656$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002657esac
2658
Andreas Dilger927566a2006-11-12 19:41:25 -05002659base_ver=`echo $E2FSPROGS_VERSION | \
2660 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002661
2662date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2663
2664case $E2FSPROGS_VERSION in
2665*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002666 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002667 ;;
2668*)
2669 E2FSPROGS_PKGVER="$base_ver"
2670 ;;
2671esac
2672
2673unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002674{ $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 +01002675$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002677$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002678
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002679
2680
2681
Andreas Dilger927566a2006-11-12 19:41:25 -05002682
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002683# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002684$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002685 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002686
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002688$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002689if test "${ac_cv_build+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002690 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002691else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002692 ac_build_alias=$build_alias
2693test "x$ac_build_alias" = x &&
2694 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2695test "x$ac_build_alias" = x &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002696 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002697ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002698 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002699
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002700fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002702$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002703case $ac_cv_build in
2704*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002705*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002706esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002707build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002708ac_save_IFS=$IFS; IFS='-'
2709set x $ac_cv_build
2710shift
2711build_cpu=$1
2712build_vendor=$2
2713shift; shift
2714# Remember, the first character of IFS is used to create $*,
2715# except with old shells:
2716build_os=$*
2717IFS=$ac_save_IFS
2718case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002719
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002720
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002722$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002723if test "${ac_cv_host+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002724 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002725else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002726 if test "x$host_alias" = x; then
2727 ac_cv_host=$ac_cv_build
2728else
2729 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002730 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002731fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002732
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002733fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002735$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002736case $ac_cv_host in
2737*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002738*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002739esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002740host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002741ac_save_IFS=$IFS; IFS='-'
2742set x $ac_cv_host
2743shift
2744host_cpu=$1
2745host_vendor=$2
2746shift; shift
2747# Remember, the first character of IFS is used to create $*,
2748# except with old shells:
2749host_os=$*
2750IFS=$ac_save_IFS
2751case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002752
2753
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002754DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002755ac_ext=c
2756ac_cpp='$CPP $CPPFLAGS'
2757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760if test -n "$ac_tool_prefix"; then
2761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2762set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002764$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002765if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002766 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002767else
2768 if test -n "$CC"; then
2769 ac_cv_prog_CC="$CC" # Let the user override the test.
2770else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002776 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002777 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 -05002778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002780 break 2
2781 fi
2782done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002783 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002784IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002785
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002786fi
2787fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002788CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002789if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002791$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002792else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002794$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002795fi
2796
Theodore Ts'oe1052142006-10-21 21:46:47 -04002797
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002798fi
2799if test -z "$ac_cv_prog_CC"; then
2800 ac_ct_CC=$CC
2801 # Extract the first word of "gcc", so it can be a program name with args.
2802set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002804$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002805if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002806 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002807else
2808 if test -n "$ac_ct_CC"; then
2809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2810else
2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002816 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002817 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 -05002818 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002820 break 2
2821 fi
2822done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002823 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002824IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002825
2826fi
2827fi
2828ac_ct_CC=$ac_cv_prog_ac_ct_CC
2829if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002831$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002832else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002834$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002835fi
2836
Theodore Ts'oe1052142006-10-21 21:46:47 -04002837 if test "x$ac_ct_CC" = x; then
2838 CC=""
2839 else
2840 case $cross_compiling:$ac_tool_warned in
2841yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002842{ $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 +01002843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002844ac_tool_warned=yes ;;
2845esac
2846 CC=$ac_ct_CC
2847 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002848else
2849 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002850fi
2851
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002852if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002853 if test -n "$ac_tool_prefix"; then
2854 # 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 -05002855set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002857$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002858if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002859 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002860else
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2863else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002869 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002870 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 -05002871 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002873 break 2
2874 fi
2875done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002876 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002877IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002878
2879fi
2880fi
2881CC=$ac_cv_prog_CC
2882if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002884$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002885else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002887$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002888fi
2889
Theodore Ts'oe1052142006-10-21 21:46:47 -04002890
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002891 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002892fi
2893if test -z "$CC"; then
2894 # Extract the first word of "cc", so it can be a program name with args.
2895set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002897$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002898if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002899 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002900else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002904 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002910 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002911 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 -05002912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2913 ac_prog_rejected=yes
2914 continue
2915 fi
2916 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002918 break 2
2919 fi
2920done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002921 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002922IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002923
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002924if test $ac_prog_rejected = yes; then
2925 # We found a bogon in the path, so make sure we never use it.
2926 set dummy $ac_cv_prog_CC
2927 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002928 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002929 # We chose a different compiler from the bogus one.
2930 # However, it has the same basename, so the bogon will be chosen
2931 # first if we set CC to just the basename; use the full file name.
2932 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002934 fi
2935fi
2936fi
2937fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002938CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002939if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002941$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002942else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002944$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002945fi
2946
Theodore Ts'oe1052142006-10-21 21:46:47 -04002947
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002948fi
2949if test -z "$CC"; then
2950 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002951 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002952 do
2953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2954set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002956$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002957if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002958 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002959else
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2962else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002968 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002969 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 -05002970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002972 break 2
2973 fi
2974done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002975 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002976IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002977
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002978fi
2979fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002980CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002981if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002983$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002984else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002986$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002987fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002988
Theodore Ts'oe1052142006-10-21 21:46:47 -04002989
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002990 test -n "$CC" && break
2991 done
2992fi
2993if test -z "$CC"; then
2994 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002995 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002996do
2997 # Extract the first word of "$ac_prog", so it can be a program name with args.
2998set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003000$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003001if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003002 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003003else
3004 if test -n "$ac_ct_CC"; then
3005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3006else
3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003012 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003013 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 -05003014 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003016 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003017 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003018done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003019 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003020IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021
3022fi
3023fi
3024ac_ct_CC=$ac_cv_prog_ac_ct_CC
3025if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003027$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003028else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003030$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003031fi
3032
Theodore Ts'oe1052142006-10-21 21:46:47 -04003033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003034 test -n "$ac_ct_CC" && break
3035done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003036
Theodore Ts'oe1052142006-10-21 21:46:47 -04003037 if test "x$ac_ct_CC" = x; then
3038 CC=""
3039 else
3040 case $cross_compiling:$ac_tool_warned in
3041yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003042{ $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 +01003043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003044ac_tool_warned=yes ;;
3045esac
3046 CC=$ac_ct_CC
3047 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003048fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003050fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003051
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003052
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003053test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003055as_fn_error "no acceptable C compiler found in \$PATH
3056See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003057
3058# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003059$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003060set X $ac_compile
3061ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003062for ac_option in --version -v -V -qversion; do
3063 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003064case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069$as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003072 if test -s conftest.err; then
3073 sed '10a\
3074... rest of stderr output deleted ...
3075 10q' conftest.err >conftest.er1
3076 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003077 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003078 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }
3081done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003082
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003084/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003085
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003086int
3087main ()
3088{
3089
3090 ;
3091 return 0;
3092}
3093_ACEOF
3094ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003095ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003096# Try to create an executable without -o first, disregard a.out.
3097# It will help us diagnose broken compilers, and finding out an intuition
3098# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3100$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003101ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3102
3103# The possible output files:
3104ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3105
Theodore Ts'oe1052142006-10-21 21:46:47 -04003106ac_rmfiles=
3107for ac_file in $ac_files
3108do
3109 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003111 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3112 esac
3113done
3114rm -f $ac_rmfiles
3115
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003116if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003117case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003123 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003124 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003127 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3128# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3129# in a Makefile. We should not override ac_cv_exeext if it was cached,
3130# so that the user can short-circuit this test for compilers unknown to
3131# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003132for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003133do
3134 test -f "$ac_file" || continue
3135 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003137 ;;
3138 [ab].out )
3139 # We found the default executable, but exeext='' is most
3140 # certainly right.
3141 break;;
3142 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003143 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003144 then :; else
3145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3146 fi
3147 # We set ac_cv_exeext here because the later test for it is not
3148 # safe: cross compilers may not add the suffix if given an `-o'
3149 # argument, so we may need to know it at that point already.
3150 # Even if this section looks crufty: it has the advantage of
3151 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003152 break;;
3153 * )
3154 break;;
3155 esac
3156done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003157test "$ac_cv_exeext" = no && ac_cv_exeext=
3158
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003159else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003160 ac_file=''
3161fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003162if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164$as_echo "no" >&6; }
3165$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003166sed 's/^/| /' conftest.$ac_ext >&5
3167
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003168{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003170{ as_fn_set_status 77
3171as_fn_error "C compiler cannot create executables
3172See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003173else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003176fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3178$as_echo_n "checking for C compiler default output file name... " >&6; }
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3180$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003181ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003182
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003183rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003184ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003186$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003187if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003188case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003194 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003195 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200# work properly (i.e., refer to `conftest.exe'), while it won't with
3201# `rm'.
3202for ac_file in conftest.exe conftest conftest.*; do
3203 test -f "$ac_file" || continue
3204 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003207 break;;
3208 * ) break;;
3209 esac
3210done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003211else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003214as_fn_error "cannot compute suffix of executables: cannot compile and link
3215See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003216fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003217rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003219$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003220
3221rm -f conftest.$ac_ext
3222EXEEXT=$ac_cv_exeext
3223ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225/* end confdefs.h. */
3226#include <stdio.h>
3227int
3228main ()
3229{
3230FILE *f = fopen ("conftest.out", "w");
3231 return ferror (f) || fclose (f) != 0;
3232
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237ac_clean_files="$ac_clean_files conftest.out"
3238# Check that the compiler produces executables we can run. If not, either
3239# the compiler is broken, or we cross compile.
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3241$as_echo_n "checking whether we are cross compiling... " >&6; }
3242if test "$cross_compiling" != yes; then
3243 { { ac_try="$ac_link"
3244case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_link") 2>&5
3251 ac_status=$?
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }
3254 if { ac_try='./conftest$ac_cv_exeext'
3255 { { case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260$as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_try") 2>&5
3262 ac_status=$?
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; }; then
3265 cross_compiling=no
3266 else
3267 if test "$cross_compiling" = maybe; then
3268 cross_compiling=yes
3269 else
3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272as_fn_error "cannot run C compiled programs.
3273If you meant to cross compile, use \`--host'.
3274See \`config.log' for more details." "$LINENO" 5; }
3275 fi
3276 fi
3277fi
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3279$as_echo "$cross_compiling" >&6; }
3280
3281rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3282ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003284$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003285if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003286 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003287else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003289/* end confdefs.h. */
3290
3291int
3292main ()
3293{
3294
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003300if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003301case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003307 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003308 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003311 for ac_file in conftest.o conftest.obj conftest.*; do
3312 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003313 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003315 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3316 break;;
3317 esac
3318done
3319else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003320 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003321sed 's/^/| /' conftest.$ac_ext >&5
3322
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003325as_fn_error "cannot compute suffix of object files: cannot compile
3326See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003327fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003328rm -f conftest.$ac_cv_objext conftest.$ac_ext
3329fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003331$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003332OBJEXT=$ac_cv_objext
3333ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003334{ $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 +01003335$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003336if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003337 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003338else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003340/* end confdefs.h. */
3341
3342int
3343main ()
3344{
3345#ifndef __GNUC__
3346 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003347#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003348
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003349 ;
3350 return 0;
3351}
3352_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003353if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003354 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003355else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003356 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003357fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003359ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003360
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003361fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003363$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3364if test $ac_compiler_gnu = yes; then
3365 GCC=yes
3366else
3367 GCC=
3368fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003369ac_test_CFLAGS=${CFLAGS+set}
3370ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003372$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003373if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003374 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003375else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003376 ac_save_c_werror_flag=$ac_c_werror_flag
3377 ac_c_werror_flag=yes
3378 ac_cv_prog_cc_g=no
3379 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003381/* end confdefs.h. */
3382
3383int
3384main ()
3385{
3386
3387 ;
3388 return 0;
3389}
3390_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003391if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003392 ac_cv_prog_cc_g=yes
3393else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003394 CFLAGS=""
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003396/* end confdefs.h. */
3397
3398int
3399main ()
3400{
3401
3402 ;
3403 return 0;
3404}
3405_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003406if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003407
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003408else
3409 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003410 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003412/* end confdefs.h. */
3413
3414int
3415main ()
3416{
3417
3418 ;
3419 return 0;
3420}
3421_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003422if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003423 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003424fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 ac_c_werror_flag=$ac_save_c_werror_flag
3431fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003433$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003434if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003435 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003436elif test $ac_cv_prog_cc_g = yes; then
3437 if test "$GCC" = yes; then
3438 CFLAGS="-g -O2"
3439 else
3440 CFLAGS="-g"
3441 fi
3442else
3443 if test "$GCC" = yes; then
3444 CFLAGS="-O2"
3445 else
3446 CFLAGS=
3447 fi
3448fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003450$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003451if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003452 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003453else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003454 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003455ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003457/* end confdefs.h. */
3458#include <stdarg.h>
3459#include <stdio.h>
3460#include <sys/types.h>
3461#include <sys/stat.h>
3462/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3463struct buf { int x; };
3464FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465static char *e (p, i)
3466 char **p;
3467 int i;
3468{
3469 return p[i];
3470}
3471static char *f (char * (*g) (char **, int), char **p, ...)
3472{
3473 char *s;
3474 va_list v;
3475 va_start (v,p);
3476 s = g (p, va_arg (v,int));
3477 va_end (v);
3478 return s;
3479}
3480
3481/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3482 function prototypes and stuff, but not '\xHH' hex character constants.
3483 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003484 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3486 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003487 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003488int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489
Theodore Ts'oe1052142006-10-21 21:46:47 -04003490/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491 inside strings and character constants. */
3492#define FOO(x) 'x'
3493int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003495int test (int i, double x);
3496struct s1 {int (*f) (int a);};
3497struct s2 {int (*f) (double a);};
3498int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499int argc;
3500char **argv;
3501int
3502main ()
3503{
3504return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3505 ;
3506 return 0;
3507}
3508_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003509for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003511do
3512 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003513 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003514 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003515fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003516rm -f core conftest.err conftest.$ac_objext
3517 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003518done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003519rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003520CC=$ac_save_CC
3521
3522fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003523# AC_CACHE_VAL
3524case "x$ac_cv_prog_cc_c89" in
3525 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003527$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003528 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003530$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003531 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003532 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003534$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003535esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003536if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003537
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003538fi
3539
3540ac_ext=c
3541ac_cpp='$CPP $CPPFLAGS'
3542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545
3546
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3548$as_echo_n "checking for dlopen in -ldl... " >&6; }
3549if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3551else
3552 ac_check_lib_save_LIBS=$LIBS
3553LIBS="-ldl $LIBS"
3554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555/* end confdefs.h. */
3556
3557/* Override any GCC internal prototype to avoid an error.
3558 Use char because int might match the return type of a GCC
3559 builtin and then its argument prototype would still apply. */
3560#ifdef __cplusplus
3561extern "C"
3562#endif
3563char dlopen ();
3564int
3565main ()
3566{
3567return dlopen ();
3568 ;
3569 return 0;
3570}
3571_ACEOF
3572if ac_fn_c_try_link "$LINENO"; then :
3573 ac_cv_lib_dl_dlopen=yes
3574else
3575 ac_cv_lib_dl_dlopen=no
3576fi
3577rm -f core conftest.err conftest.$ac_objext \
3578 conftest$ac_exeext conftest.$ac_ext
3579LIBS=$ac_check_lib_save_LIBS
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3582$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3583if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3584 DLOPEN_LIB=-ldl
3585$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3586
3587fi
3588
3589
3590WITH_DIET_LIBC=
3591
3592# Check whether --with-diet-libc was given.
3593if test "${with_diet_libc+set}" = set; then :
3594 withval=$with_diet_libc; CC="diet cc -nostdinc"
3595WITH_DIET_LIBC=yes
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3597$as_echo "CC=$CC" >&6; }
3598fi
3599
3600# Check whether --with-cc was given.
3601if test "${with_cc+set}" = set; then :
3602 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3603fi
3604
3605
3606# Check whether --with-ccopts was given.
3607if test "${with_ccopts+set}" = set; then :
3608 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3609fi
3610
3611
3612# Check whether --with-ldopts was given.
3613if test "${with_ldopts+set}" = set; then :
3614 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3615fi
3616
3617ac_ext=c
3618ac_cpp='$CPP $CPPFLAGS'
3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622if test -n "$ac_tool_prefix"; then
3623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3624set dummy ${ac_tool_prefix}gcc; ac_word=$2
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626$as_echo_n "checking for $ac_word... " >&6; }
3627if test "${ac_cv_prog_CC+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3629else
3630 if test -n "$CC"; then
3631 ac_cv_prog_CC="$CC" # Let the user override the test.
3632else
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 break 2
3643 fi
3644done
3645 done
3646IFS=$as_save_IFS
3647
3648fi
3649fi
3650CC=$ac_cv_prog_CC
3651if test -n "$CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653$as_echo "$CC" >&6; }
3654else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656$as_echo "no" >&6; }
3657fi
3658
3659
3660fi
3661if test -z "$ac_cv_prog_CC"; then
3662 ac_ct_CC=$CC
3663 # Extract the first word of "gcc", so it can be a program name with args.
3664set dummy gcc; ac_word=$2
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666$as_echo_n "checking for $ac_word... " >&6; }
3667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3668 $as_echo_n "(cached) " >&6
3669else
3670 if test -n "$ac_ct_CC"; then
3671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3672else
3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674for as_dir in $PATH
3675do
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680 ac_cv_prog_ac_ct_CC="gcc"
3681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 break 2
3683 fi
3684done
3685 done
3686IFS=$as_save_IFS
3687
3688fi
3689fi
3690ac_ct_CC=$ac_cv_prog_ac_ct_CC
3691if test -n "$ac_ct_CC"; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3693$as_echo "$ac_ct_CC" >&6; }
3694else
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696$as_echo "no" >&6; }
3697fi
3698
3699 if test "x$ac_ct_CC" = x; then
3700 CC=""
3701 else
3702 case $cross_compiling:$ac_tool_warned in
3703yes:)
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3706ac_tool_warned=yes ;;
3707esac
3708 CC=$ac_ct_CC
3709 fi
3710else
3711 CC="$ac_cv_prog_CC"
3712fi
3713
3714if test -z "$CC"; then
3715 if test -n "$ac_tool_prefix"; then
3716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3717set dummy ${ac_tool_prefix}cc; ac_word=$2
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719$as_echo_n "checking for $ac_word... " >&6; }
3720if test "${ac_cv_prog_CC+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3722else
3723 if test -n "$CC"; then
3724 ac_cv_prog_CC="$CC" # Let the user override the test.
3725else
3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH
3728do
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_CC="${ac_tool_prefix}cc"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3736 fi
3737done
3738 done
3739IFS=$as_save_IFS
3740
3741fi
3742fi
3743CC=$ac_cv_prog_CC
3744if test -n "$CC"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746$as_echo "$CC" >&6; }
3747else
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749$as_echo "no" >&6; }
3750fi
3751
3752
3753 fi
3754fi
3755if test -z "$CC"; then
3756 # Extract the first word of "cc", so it can be a program name with args.
3757set dummy cc; ac_word=$2
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759$as_echo_n "checking for $ac_word... " >&6; }
3760if test "${ac_cv_prog_CC+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3762else
3763 if test -n "$CC"; then
3764 ac_cv_prog_CC="$CC" # Let the user override the test.
3765else
3766 ac_prog_rejected=no
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3775 ac_prog_rejected=yes
3776 continue
3777 fi
3778 ac_cv_prog_CC="cc"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782done
3783 done
3784IFS=$as_save_IFS
3785
3786if test $ac_prog_rejected = yes; then
3787 # We found a bogon in the path, so make sure we never use it.
3788 set dummy $ac_cv_prog_CC
3789 shift
3790 if test $# != 0; then
3791 # We chose a different compiler from the bogus one.
3792 # However, it has the same basename, so the bogon will be chosen
3793 # first if we set CC to just the basename; use the full file name.
3794 shift
3795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3796 fi
3797fi
3798fi
3799fi
3800CC=$ac_cv_prog_CC
3801if test -n "$CC"; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3803$as_echo "$CC" >&6; }
3804else
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806$as_echo "no" >&6; }
3807fi
3808
3809
3810fi
3811if test -z "$CC"; then
3812 if test -n "$ac_tool_prefix"; then
3813 for ac_prog in cl.exe
3814 do
3815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818$as_echo_n "checking for $ac_word... " >&6; }
3819if test "${ac_cv_prog_CC+set}" = set; then :
3820 $as_echo_n "(cached) " >&6
3821else
3822 if test -n "$CC"; then
3823 ac_cv_prog_CC="$CC" # Let the user override the test.
3824else
3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826for as_dir in $PATH
3827do
3828 IFS=$as_save_IFS
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834 break 2
3835 fi
3836done
3837 done
3838IFS=$as_save_IFS
3839
3840fi
3841fi
3842CC=$ac_cv_prog_CC
3843if test -n "$CC"; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845$as_echo "$CC" >&6; }
3846else
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848$as_echo "no" >&6; }
3849fi
3850
3851
3852 test -n "$CC" && break
3853 done
3854fi
3855if test -z "$CC"; then
3856 ac_ct_CC=$CC
3857 for ac_prog in cl.exe
3858do
3859 # Extract the first word of "$ac_prog", so it can be a program name with args.
3860set dummy $ac_prog; ac_word=$2
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862$as_echo_n "checking for $ac_word... " >&6; }
3863if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
3865else
3866 if test -n "$ac_ct_CC"; then
3867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3868else
3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870for as_dir in $PATH
3871do
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3876 ac_cv_prog_ac_ct_CC="$ac_prog"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 break 2
3879 fi
3880done
3881 done
3882IFS=$as_save_IFS
3883
3884fi
3885fi
3886ac_ct_CC=$ac_cv_prog_ac_ct_CC
3887if test -n "$ac_ct_CC"; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3889$as_echo "$ac_ct_CC" >&6; }
3890else
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892$as_echo "no" >&6; }
3893fi
3894
3895
3896 test -n "$ac_ct_CC" && break
3897done
3898
3899 if test "x$ac_ct_CC" = x; then
3900 CC=""
3901 else
3902 case $cross_compiling:$ac_tool_warned in
3903yes:)
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3906ac_tool_warned=yes ;;
3907esac
3908 CC=$ac_ct_CC
3909 fi
3910fi
3911
3912fi
3913
3914
3915test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917as_fn_error "no acceptable C compiler found in \$PATH
3918See \`config.log' for more details." "$LINENO" 5; }
3919
3920# Provide some information about the compiler.
3921$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3922set X $ac_compile
3923ac_compiler=$2
3924for ac_option in --version -v -V -qversion; do
3925 { { ac_try="$ac_compiler $ac_option >&5"
3926case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929esac
3930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931$as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3933 ac_status=$?
3934 if test -s conftest.err; then
3935 sed '10a\
3936... rest of stderr output deleted ...
3937 10q' conftest.err >conftest.er1
3938 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003939 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003940 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942 test $ac_status = 0; }
3943done
3944
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3946$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3947if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3949else
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951/* end confdefs.h. */
3952
3953int
3954main ()
3955{
3956#ifndef __GNUC__
3957 choke me
3958#endif
3959
3960 ;
3961 return 0;
3962}
3963_ACEOF
3964if ac_fn_c_try_compile "$LINENO"; then :
3965 ac_compiler_gnu=yes
3966else
3967 ac_compiler_gnu=no
3968fi
3969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970ac_cv_c_compiler_gnu=$ac_compiler_gnu
3971
3972fi
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3974$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3975if test $ac_compiler_gnu = yes; then
3976 GCC=yes
3977else
3978 GCC=
3979fi
3980ac_test_CFLAGS=${CFLAGS+set}
3981ac_save_CFLAGS=$CFLAGS
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3983$as_echo_n "checking whether $CC accepts -g... " >&6; }
3984if test "${ac_cv_prog_cc_g+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
3986else
3987 ac_save_c_werror_flag=$ac_c_werror_flag
3988 ac_c_werror_flag=yes
3989 ac_cv_prog_cc_g=no
3990 CFLAGS="-g"
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992/* end confdefs.h. */
3993
3994int
3995main ()
3996{
3997
3998 ;
3999 return 0;
4000}
4001_ACEOF
4002if ac_fn_c_try_compile "$LINENO"; then :
4003 ac_cv_prog_cc_g=yes
4004else
4005 CFLAGS=""
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007/* end confdefs.h. */
4008
4009int
4010main ()
4011{
4012
4013 ;
4014 return 0;
4015}
4016_ACEOF
4017if ac_fn_c_try_compile "$LINENO"; then :
4018
4019else
4020 ac_c_werror_flag=$ac_save_c_werror_flag
4021 CFLAGS="-g"
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023/* end confdefs.h. */
4024
4025int
4026main ()
4027{
4028
4029 ;
4030 return 0;
4031}
4032_ACEOF
4033if ac_fn_c_try_compile "$LINENO"; then :
4034 ac_cv_prog_cc_g=yes
4035fi
4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037fi
4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039fi
4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 ac_c_werror_flag=$ac_save_c_werror_flag
4042fi
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4044$as_echo "$ac_cv_prog_cc_g" >&6; }
4045if test "$ac_test_CFLAGS" = set; then
4046 CFLAGS=$ac_save_CFLAGS
4047elif test $ac_cv_prog_cc_g = yes; then
4048 if test "$GCC" = yes; then
4049 CFLAGS="-g -O2"
4050 else
4051 CFLAGS="-g"
4052 fi
4053else
4054 if test "$GCC" = yes; then
4055 CFLAGS="-O2"
4056 else
4057 CFLAGS=
4058 fi
4059fi
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4061$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4062if test "${ac_cv_prog_cc_c89+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4064else
4065 ac_cv_prog_cc_c89=no
4066ac_save_CC=$CC
4067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068/* end confdefs.h. */
4069#include <stdarg.h>
4070#include <stdio.h>
4071#include <sys/types.h>
4072#include <sys/stat.h>
4073/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4074struct buf { int x; };
4075FILE * (*rcsopen) (struct buf *, struct stat *, int);
4076static char *e (p, i)
4077 char **p;
4078 int i;
4079{
4080 return p[i];
4081}
4082static char *f (char * (*g) (char **, int), char **p, ...)
4083{
4084 char *s;
4085 va_list v;
4086 va_start (v,p);
4087 s = g (p, va_arg (v,int));
4088 va_end (v);
4089 return s;
4090}
4091
4092/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4093 function prototypes and stuff, but not '\xHH' hex character constants.
4094 These don't provoke an error unfortunately, instead are silently treated
4095 as 'x'. The following induces an error, until -std is added to get
4096 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4097 array size at least. It's necessary to write '\x00'==0 to get something
4098 that's true only with -std. */
4099int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4100
4101/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4102 inside strings and character constants. */
4103#define FOO(x) 'x'
4104int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4105
4106int test (int i, double x);
4107struct s1 {int (*f) (int a);};
4108struct s2 {int (*f) (double a);};
4109int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4110int argc;
4111char **argv;
4112int
4113main ()
4114{
4115return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4116 ;
4117 return 0;
4118}
4119_ACEOF
4120for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4121 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4122do
4123 CC="$ac_save_CC $ac_arg"
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_cv_prog_cc_c89=$ac_arg
4126fi
4127rm -f core conftest.err conftest.$ac_objext
4128 test "x$ac_cv_prog_cc_c89" != "xno" && break
4129done
4130rm -f conftest.$ac_ext
4131CC=$ac_save_CC
4132
4133fi
4134# AC_CACHE_VAL
4135case "x$ac_cv_prog_cc_c89" in
4136 x)
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4138$as_echo "none needed" >&6; } ;;
4139 xno)
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4141$as_echo "unsupported" >&6; } ;;
4142 *)
4143 CC="$CC $ac_cv_prog_cc_c89"
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4145$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4146esac
4147if test "x$ac_cv_prog_cc_c89" != xno; then :
4148
4149fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004150
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004151ac_ext=c
4152ac_cpp='$CPP $CPPFLAGS'
4153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004157ac_ext=c
4158ac_cpp='$CPP $CPPFLAGS'
4159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004163$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004164# On Suns, sometimes $CPP names a directory.
4165if test -n "$CPP" && test -d "$CPP"; then
4166 CPP=
4167fi
4168if test -z "$CPP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004169 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004170 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004171else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004172 # Double quotes because CPP needs to be expanded
4173 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4174 do
4175 ac_preproc_ok=false
4176for ac_c_preproc_warn_flag in '' yes
4177do
4178 # Use a header file that comes with gcc, so configuring glibc
4179 # with a fresh cross-compiler works.
4180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004182 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004183 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004185/* end confdefs.h. */
4186#ifdef __STDC__
4187# include <limits.h>
4188#else
4189# include <assert.h>
4190#endif
4191 Syntax error
4192_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004193if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004194
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004195else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004196 # Broken: fails on valid input.
4197continue
4198fi
4199rm -f conftest.err conftest.$ac_ext
4200
Theodore Ts'oe1052142006-10-21 21:46:47 -04004201 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004202 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004204/* end confdefs.h. */
4205#include <ac_nonexistent.h>
4206_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004207if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004208 # Broken: success on invalid input.
4209continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004210else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004211 # Passes both tests.
4212ac_preproc_ok=:
4213break
4214fi
4215rm -f conftest.err conftest.$ac_ext
4216
4217done
4218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004220if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004221 break
4222fi
4223
4224 done
4225 ac_cv_prog_CPP=$CPP
4226
4227fi
4228 CPP=$ac_cv_prog_CPP
4229else
4230 ac_cv_prog_CPP=$CPP
4231fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004233$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004234ac_preproc_ok=false
4235for ac_c_preproc_warn_flag in '' yes
4236do
4237 # Use a header file that comes with gcc, so configuring glibc
4238 # with a fresh cross-compiler works.
4239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4240 # <limits.h> exists even on freestanding compilers.
4241 # On the NeXT, cc -E runs the code through the compiler's parser,
4242 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004244/* end confdefs.h. */
4245#ifdef __STDC__
4246# include <limits.h>
4247#else
4248# include <assert.h>
4249#endif
4250 Syntax error
4251_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004252if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004253
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004254else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004255 # Broken: fails on valid input.
4256continue
4257fi
4258rm -f conftest.err conftest.$ac_ext
4259
Theodore Ts'oe1052142006-10-21 21:46:47 -04004260 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004261 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004263/* end confdefs.h. */
4264#include <ac_nonexistent.h>
4265_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004266if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004267 # Broken: success on invalid input.
4268continue
4269else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004270 # Passes both tests.
4271ac_preproc_ok=:
4272break
4273fi
4274rm -f conftest.err conftest.$ac_ext
4275
4276done
4277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4278rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004279if $ac_preproc_ok; then :
4280
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004281else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004284as_fn_error "C preprocessor \"$CPP\" fails sanity check
4285See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004286fi
4287
4288ac_ext=c
4289ac_cpp='$CPP $CPPFLAGS'
4290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293
4294
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004295{ $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 +01004296$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004297if test "${ac_cv_path_GREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004298 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004299else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004300 if test -z "$GREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004301 ac_path_GREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004302 # Loop through the user's path and test for each of PROGNAME-LIST
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04004304for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4305do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004308 for ac_prog in grep ggrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4311 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4312# Check for GNU ac_path_GREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004313 # Check for GNU $ac_path_GREP
4314case `"$ac_path_GREP" --version 2>&1` in
4315*GNU*)
4316 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4317*)
4318 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004319 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004320 while :
4321 do
4322 cat "conftest.in" "conftest.in" >"conftest.tmp"
4323 mv "conftest.tmp" "conftest.in"
4324 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004325 $as_echo 'GREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004326 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004328 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04004329 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4330 # Best one so far, save it but keep looking for a better one
4331 ac_cv_path_GREP="$ac_path_GREP"
4332 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004333 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004334 # 10*(2^10) chars as input seems more than enough
4335 test $ac_count -gt 10 && break
4336 done
4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4338esac
4339
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004340 $ac_path_GREP_found && break 3
4341 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004342 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004343 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004344IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004345 if test -z "$ac_cv_path_GREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004346 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 +01004347 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004348else
4349 ac_cv_path_GREP=$GREP
4350fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004351
Theodore Ts'oe1052142006-10-21 21:46:47 -04004352fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004354$as_echo "$ac_cv_path_GREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04004355 GREP="$ac_cv_path_GREP"
4356
4357
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004359$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004360if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004361 $as_echo_n "(cached) " >&6
Theodore Ts'oe1052142006-10-21 21:46:47 -04004362else
4363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4364 then ac_cv_path_EGREP="$GREP -E"
4365 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004366 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004367 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04004370for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004374 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4377 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4378# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004379 # Check for GNU $ac_path_EGREP
4380case `"$ac_path_EGREP" --version 2>&1` in
4381*GNU*)
4382 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4383*)
4384 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004385 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004386 while :
4387 do
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004391 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004394 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04004395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_EGREP="$ac_path_EGREP"
4398 ac_path_EGREP_max=$ac_count
4399 fi
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4402 done
4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404esac
4405
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004406 $ac_path_EGREP_found && break 3
4407 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004408 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004409 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004410IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004411 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004412 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 +01004413 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004414else
4415 ac_cv_path_EGREP=$EGREP
4416fi
4417
Theodore Ts'oe1052142006-10-21 21:46:47 -04004418 fi
4419fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004421$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04004422 EGREP="$ac_cv_path_EGREP"
4423
4424
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004426$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004427if test "${ac_cv_header_stdc+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004428 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004429else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004431/* end confdefs.h. */
4432#include <stdlib.h>
4433#include <stdarg.h>
4434#include <string.h>
4435#include <float.h>
4436
4437int
4438main ()
4439{
4440
4441 ;
4442 return 0;
4443}
4444_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004445if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004446 ac_cv_header_stdc=yes
4447else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004448 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004449fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004451
4452if test $ac_cv_header_stdc = yes; then
4453 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004455/* end confdefs.h. */
4456#include <string.h>
4457
4458_ACEOF
4459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004460 $EGREP "memchr" >/dev/null 2>&1; then :
4461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004462else
4463 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004464fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004465rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004466
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004467fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004468
4469if test $ac_cv_header_stdc = yes; then
4470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004472/* end confdefs.h. */
4473#include <stdlib.h>
4474
4475_ACEOF
4476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004477 $EGREP "free" >/dev/null 2>&1; then :
4478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004479else
4480 ac_cv_header_stdc=no
4481fi
4482rm -f conftest*
4483
4484fi
4485
4486if test $ac_cv_header_stdc = yes; then
4487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004488 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004489 :
4490else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004492/* end confdefs.h. */
4493#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04004494#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004495#if ((' ' & 0x0FF) == 0x020)
4496# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4497# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4498#else
4499# define ISLOWER(c) \
4500 (('a' <= (c) && (c) <= 'i') \
4501 || ('j' <= (c) && (c) <= 'r') \
4502 || ('s' <= (c) && (c) <= 'z'))
4503# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4504#endif
4505
4506#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4507int
4508main ()
4509{
4510 int i;
4511 for (i = 0; i < 256; i++)
4512 if (XOR (islower (i), ISLOWER (i))
4513 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04004514 return 2;
4515 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004516}
4517_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004518if ac_fn_c_try_run "$LINENO"; then :
4519
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004520else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004521 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004522fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4524 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004525fi
4526
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004527fi
4528fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004530$as_echo "$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004531if test $ac_cv_header_stdc = yes; then
4532
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004533$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004534
4535fi
4536
4537# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004538for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4539 inttypes.h stdint.h unistd.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004540do :
4541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4542ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4543"
4544eval as_val=\$$as_ac_Header
4545 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004546 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004547#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004548_ACEOF
4549
4550fi
4551
4552done
4553
4554
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004555ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4556if test "x$ac_cv_header_linux_fs_h" = x""yes; then :
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004557 linux_headers=yes
4558else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004559 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004560fi
4561
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004562
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00004563if test "$linux_headers" != yes; then
4564 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004565fi
4566
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004568$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004569if test "$GCC" = yes
4570then
4571 case "$host_cpu" in
4572 alpha) addcflags="-mieee" ;;
4573 esac
4574fi
4575if test "x$addcflags" != x
4576then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004578$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004579 CFLAGS="$addcflags $CFLAGS"
4580else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004582$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004583fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004584LIB_EXT=.a
4585STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004586PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004587
Theodore Ts'oe1052142006-10-21 21:46:47 -04004588# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004589if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004590 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004591else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004592 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004593fi
4594# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004595if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004596 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004597then
4598 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004600$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004601else
4602 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004604$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004605fi
4606
4607else
4608 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004610$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004611
Theodore Ts'oe1052142006-10-21 21:46:47 -04004612fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004613
Theodore Ts'oe1052142006-10-21 21:46:47 -04004614
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004615# Check whether --enable-symlink-install was given.
4616if test "${enable_symlink_install+set}" = set; then :
4617 enableval=$enable_symlink_install; if test "$enableval" = "no"
4618then
4619 LINK_INSTALL_FLAGS=-f
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4621$as_echo "Disabling symlinks for install" >&6; }
4622else
4623 LINK_INSTALL_FLAGS=-sf
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4625$as_echo "Enabling symlinks for install" >&6; }
4626fi
4627
4628else
4629 LINK_INSTALL_FLAGS=-f
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4631$as_echo "Disabling symlinks for install" >&6; }
4632
4633fi
4634
4635
4636# Check whether --enable-symlink-build was given.
4637if test "${enable_symlink_build+set}" = set; then :
4638 enableval=$enable_symlink_build; if test "$enableval" = "no"
4639then
4640 LINK_BUILD_FLAGS=
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4642$as_echo "Disabling symlinks for build" >&6; }
4643else
4644 LINK_BUILD_FLAGS=-s
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4646$as_echo "Enabling symlinks for build" >&6; }
4647fi
4648
4649else
4650 LINK_BUILD_FLAGS=
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4652$as_echo "Disabling symlinks for build" >&6; }
4653
4654fi
4655
4656
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004657# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004658if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004659 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4660then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004662$as_echo "Disabling verbose make commands" >&6; }
4663 E=@echo
4664 Q=@
4665else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004667$as_echo "Enabling verbose make commands" >&6; }
4668 E=@\\#
4669 Q=
4670fi
4671
4672else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004674$as_echo "Disabling verbose make commands" >&6; }
4675E=@echo
4676Q=@
4677
4678fi
4679
4680
4681
Theodore Ts'oe1052142006-10-21 21:46:47 -04004682# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004683if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004684 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004685then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004687$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004688else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004689 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004690
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004692$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004694$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004695fi
4696
4697else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004699$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004700
Theodore Ts'oe1052142006-10-21 21:46:47 -04004701fi
4702
4703# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004704if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004705 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004706then
4707 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004709$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004710else
4711 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004712 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004713
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004715$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004716fi
4717
4718else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004719 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004720$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004721
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004723$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004724
Theodore Ts'oe1052142006-10-21 21:46:47 -04004725fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004726
Theodore Ts'oe1052142006-10-21 21:46:47 -04004727
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004728E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004729LDFLAG_DYNAMIC=
4730PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004731# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004732if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004733 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004734then
4735 ELF_CMT=#
4736 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004738$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004739else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004740 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004741 ELF_CMT=
4742 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004743 case "$host_os" in
4744 solaris2.*)
4745 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4746 ;;
4747 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004748 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004749 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004750 PRIVATE_LIBS_CMT=#
4751 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004753$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004754fi
4755
4756else
4757 MAKEFILE_ELF=/dev/null
4758ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004760$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004761
Theodore Ts'oe1052142006-10-21 21:46:47 -04004762fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004763
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004764
Theodore Ts'oe1052142006-10-21 21:46:47 -04004765
4766# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004767if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004768 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004769then
4770 BSDLIB_CMT=#
4771 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004773$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004774else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004775 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004776 BSDLIB_CMT=
4777 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004778 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004779 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004780 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004781 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4782 LIB_EXT=.dylib
4783 ;;
4784 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004786$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004787fi
4788
4789else
4790 MAKEFILE_BSDLIB=/dev/null
4791BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004793$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004794
Theodore Ts'oe1052142006-10-21 21:46:47 -04004795fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004796
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004797
Theodore Ts'oe1052142006-10-21 21:46:47 -04004798
4799# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004800if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004801 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004802then
4803 PROFILE_CMT=#
4804 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004806$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004807else
4808 PROFILE_CMT=
4809 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4810 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004812$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004813fi
4814
4815else
4816 PROFILE_CMT=#
4817MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004819$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004820
Theodore Ts'oe1052142006-10-21 21:46:47 -04004821fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004822
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004823
Theodore Ts'oe1052142006-10-21 21:46:47 -04004824
4825# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004826if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004827 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004828then
4829 CHECKER_CMT=#
4830 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004832$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004833else
4834 CHECKER_CMT=
4835 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004837$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004838fi
4839
4840else
4841 CHECKER_CMT=#
4842MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004844$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004845
Theodore Ts'oe1052142006-10-21 21:46:47 -04004846fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004847
4848
4849
4850
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004851
Theodore Ts'oe1052142006-10-21 21:46:47 -04004852
Theodore Ts'o55da9872008-09-02 23:12:38 -04004853
4854
Theodore Ts'oe1052142006-10-21 21:46:47 -04004855# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004856if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004857 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004858then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004860$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004861else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004862 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004863
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004865$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004866fi
4867
4868else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004870$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004871
Theodore Ts'oe1052142006-10-21 21:46:47 -04004872fi
4873
4874# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004875if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004876 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004877then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004879$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004880else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004881 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004882
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004884$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004885fi
4886
4887else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004889$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004890
Theodore Ts'oe1052142006-10-21 21:46:47 -04004891fi
4892
4893# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004894if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004895 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004896then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004898$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004899 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004900else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004901 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004902 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004903
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004905$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004906fi
4907
4908else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004910$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004911$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004912
4913TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004914
Theodore Ts'oe1052142006-10-21 21:46:47 -04004915fi
4916
Theodore Ts'oaf773652008-09-01 11:27:27 -04004917
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004918
4919
4920if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4921 if test -n "$ac_tool_prefix"; then
4922 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4923set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004925$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004926if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004927 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004928else
4929 case $PKG_CONFIG in
4930 [\\/]* | ?:[\\/]*)
4931 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4932 ;;
4933 *)
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004939 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004943 break 2
4944 fi
4945done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004946 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004947IFS=$as_save_IFS
4948
4949 ;;
4950esac
4951fi
4952PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4953if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004955$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004956else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004958$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004959fi
4960
4961
4962fi
4963if test -z "$ac_cv_path_PKG_CONFIG"; then
4964 ac_pt_PKG_CONFIG=$PKG_CONFIG
4965 # Extract the first word of "pkg-config", so it can be a program name with args.
4966set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004968$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004969if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004970 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004971else
4972 case $ac_pt_PKG_CONFIG in
4973 [\\/]* | ?:[\\/]*)
4974 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4975 ;;
4976 *)
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004982 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004986 break 2
4987 fi
4988done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004989 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004990IFS=$as_save_IFS
4991
4992 ;;
4993esac
4994fi
4995ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4996if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004998$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004999else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005001$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005002fi
5003
5004 if test "x$ac_pt_PKG_CONFIG" = x; then
5005 PKG_CONFIG=""
5006 else
5007 case $cross_compiling:$ac_tool_warned in
5008yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005009{ $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 +01005010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005011ac_tool_warned=yes ;;
5012esac
5013 PKG_CONFIG=$ac_pt_PKG_CONFIG
5014 fi
5015else
5016 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5017fi
5018
5019fi
5020if test -n "$PKG_CONFIG"; then
5021 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005022 { $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 +01005023$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005024 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005026$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005027 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005029$as_echo "no" >&6; }
5030 PKG_CONFIG=""
5031 fi
5032
5033fi
5034LIBUUID=
5035DEPLIBUUID=
5036STATIC_LIBUUID=
5037DEPSTATIC_LIBUUID=
5038PROFILED_LIBUUID=
5039DEPPROFILED_LIBUUID=
5040UUID_CMT=
5041# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005042if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005043 enableval=$enable_libuuid; if test "$enableval" = "no"
5044then
5045 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005046 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005047 fi
5048
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005050$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005051if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005052 $as_echo_n "(cached) " >&6
5053else
5054 ac_check_lib_save_LIBS=$LIBS
5055LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005057/* end confdefs.h. */
5058
5059/* Override any GCC internal prototype to avoid an error.
5060 Use char because int might match the return type of a GCC
5061 builtin and then its argument prototype would still apply. */
5062#ifdef __cplusplus
5063extern "C"
5064#endif
5065char uuid_generate ();
5066int
5067main ()
5068{
5069return uuid_generate ();
5070 ;
5071 return 0;
5072}
5073_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005074if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005075 ac_cv_lib_uuid_uuid_generate=yes
5076else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005077 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005078fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005079rm -f core conftest.err conftest.$ac_objext \
5080 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005081LIBS=$ac_check_lib_save_LIBS
5082fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005084$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005085if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005086 LIBUUID=`$PKG_CONFIG --libs uuid`;
5087 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5088else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005089 as_fn_error "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005090fi
5091
5092 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005094$as_echo "Disabling private uuid library" >&6; }
5095else
5096 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5097 DEPLIBUUID=$LIBUUID
5098 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5099 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5100 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5101 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005103$as_echo "Enabling private uuid library" >&6; }
5104fi
5105
5106else
5107 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5108DEPLIBUUID=$LIBUUID
5109STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5110DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5111PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5112DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005114$as_echo "Enabling private uuid library by default" >&6; }
5115
5116fi
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5128 if test -n "$ac_tool_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5130set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005132$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005133if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005134 $as_echo_n "(cached) " >&6
5135else
5136 case $PKG_CONFIG in
5137 [\\/]* | ?:[\\/]*)
5138 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5139 ;;
5140 *)
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005146 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005150 break 2
5151 fi
5152done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005153 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005154IFS=$as_save_IFS
5155
5156 ;;
5157esac
5158fi
5159PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5160if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005162$as_echo "$PKG_CONFIG" >&6; }
5163else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005165$as_echo "no" >&6; }
5166fi
5167
5168
5169fi
5170if test -z "$ac_cv_path_PKG_CONFIG"; then
5171 ac_pt_PKG_CONFIG=$PKG_CONFIG
5172 # Extract the first word of "pkg-config", so it can be a program name with args.
5173set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005175$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005176if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005177 $as_echo_n "(cached) " >&6
5178else
5179 case $ac_pt_PKG_CONFIG in
5180 [\\/]* | ?:[\\/]*)
5181 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5182 ;;
5183 *)
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005189 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005193 break 2
5194 fi
5195done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005196 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005197IFS=$as_save_IFS
5198
5199 ;;
5200esac
5201fi
5202ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5203if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005205$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5206else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005208$as_echo "no" >&6; }
5209fi
5210
5211 if test "x$ac_pt_PKG_CONFIG" = x; then
5212 PKG_CONFIG=""
5213 else
5214 case $cross_compiling:$ac_tool_warned in
5215yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005216{ $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 +01005217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218ac_tool_warned=yes ;;
5219esac
5220 PKG_CONFIG=$ac_pt_PKG_CONFIG
5221 fi
5222else
5223 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5224fi
5225
5226fi
5227if test -n "$PKG_CONFIG"; then
5228 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005229 { $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 +01005230$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5231 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005233$as_echo "yes" >&6; }
5234 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005236$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005237 PKG_CONFIG=""
5238 fi
5239
5240fi
5241LIBBLKID=
5242DEPLIBBLKID=
5243STATIC_LIBBLKID=
5244DEPSTATIC_LIBBLKID=
5245PROFILED_LIBBLKID=
5246DEPPROFILED_LIBBLKID=
5247BLKID_CMT=
5248# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005249if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005250 enableval=$enable_libblkid; if test "$enableval" = "no"
5251then
5252 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005253 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005254 fi
5255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005257$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005258if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005259 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005260else
5261 ac_check_lib_save_LIBS=$LIBS
5262LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005264/* end confdefs.h. */
5265
5266/* Override any GCC internal prototype to avoid an error.
5267 Use char because int might match the return type of a GCC
5268 builtin and then its argument prototype would still apply. */
5269#ifdef __cplusplus
5270extern "C"
5271#endif
5272char blkid_get_cache ();
5273int
5274main ()
5275{
5276return blkid_get_cache ();
5277 ;
5278 return 0;
5279}
5280_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005281if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005282 ac_cv_lib_blkid_blkid_get_cache=yes
5283else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005284 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005285fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005286rm -f core conftest.err conftest.$ac_objext \
5287 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005288LIBS=$ac_check_lib_save_LIBS
5289fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005291$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005292if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005293 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5294 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5295else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005296 as_fn_error "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005297fi
5298
5299 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005301$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005302else
5303 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5304 DEPLIBBLKID=$LIBBLKID
5305 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5306 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5307 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5308 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005309 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005310
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005312$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005313fi
5314
5315else
5316 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5317DEPLIBBLKID=$LIBBLKID
5318STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5319DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5320PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5321DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005322$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005323
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005325$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005326
5327fi
5328
5329
5330
5331
5332
5333
5334
5335
Theodore Ts'oe1052142006-10-21 21:46:47 -04005336# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005337if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005338 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005339then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005341$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005342 DEBUGFS_CMT="#"
5343else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005344 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005346$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005347fi
5348
5349else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005351$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005352DEBUGFS_CMT=
5353
Theodore Ts'oe1052142006-10-21 21:46:47 -04005354fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005355
Theodore Ts'oe1052142006-10-21 21:46:47 -04005356
5357# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005358if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005359 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005360then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005362$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005363 IMAGER_CMT="#"
5364else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005365 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005367$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005368fi
5369
5370else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005372$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005373IMAGER_CMT=
5374
Theodore Ts'oe1052142006-10-21 21:46:47 -04005375fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005376
Theodore Ts'oe1052142006-10-21 21:46:47 -04005377
5378# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005379if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005380 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005381then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005383$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005384 RESIZER_CMT="#"
5385else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005386 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005388$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005389fi
5390
5391else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005393$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005394RESIZER_CMT=
5395
Theodore Ts'oe1052142006-10-21 21:46:47 -04005396fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005397
Theodore Ts'oe1052142006-10-21 21:46:47 -04005398
Theodore Ts'oe1052142006-10-21 21:46:47 -04005399# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005400if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005401 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005402then
5403 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005405$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005406else
5407 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005409$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005410fi
5411
5412else
5413 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005414 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005415 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005417$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005418 ;;
5419 *)
5420 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005422$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005423esac
5424
Theodore Ts'oe1052142006-10-21 21:46:47 -04005425fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005426
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005427
Theodore Ts'oe1052142006-10-21 21:46:47 -04005428
5429# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005430if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005431 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005432then
5433 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005435$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005436else
5437 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005439$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005440fi
5441
5442else
5443 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005445$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005446
Theodore Ts'oe1052142006-10-21 21:46:47 -04005447fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005448
5449
Theodore Ts'oe1052142006-10-21 21:46:47 -04005450
Theodore Ts'o32493942007-12-31 10:45:01 -05005451# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005452if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005453 enableval=$enable_tls; if test "$enableval" = "no"
5454then
5455 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005457$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005458else
5459 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005461$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005462fi
5463
5464else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005465 if test -n "$WITH_DIET_LIBC"
5466then
5467 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005468 { $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 +01005469$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005470else
5471 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005473$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005474fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005475
5476fi
5477
5478if test "$try_tls" = "yes"
5479then
5480
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005482$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005483 if test "${ac_cv_tls+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005484 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005485else
5486
5487 ax_tls_keywords="__thread __declspec(thread) none"
5488 for ax_tls_keyword in $ax_tls_keywords; do
5489 case $ax_tls_keyword in
5490 none) ac_cv_tls=none ; break ;;
5491 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005493/* end confdefs.h. */
5494#include <stdlib.h>
5495 static void
5496 foo(void) {
5497 static $ax_tls_keyword int bar;
5498 exit(1);
5499 }
5500int
5501main ()
5502{
5503
5504 ;
5505 return 0;
5506}
5507_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005508if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005509 ac_cv_tls=$ax_tls_keyword ; break
5510else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005511 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005512
5513fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515 esac
5516 done
5517
5518fi
5519
5520
5521 if test "$ac_cv_tls" != "none"; then
5522
5523cat >>confdefs.h <<_ACEOF
5524#define TLS $ac_cv_tls
5525_ACEOF
5526
5527 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005529$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005530
5531fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005532# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005533if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005534 enableval=$enable_uuidd; if test "$enableval" = "no"
5535then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005537$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005538 UUIDD_CMT="#"
5539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005540 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005541
5542 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005544$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005545fi
5546
5547else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005548 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005549
5550UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005552$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005553
5554fi
5555
5556
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005557MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005559GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005560PACKAGE=e2fsprogs
5561VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005562VERSION=0.14.1
5563cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005564#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005565_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005567cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005568#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005569_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005570
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005571
5572
5573
5574
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005576$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5577set x ${MAKE-make}
5578ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005579if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005580 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005581else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005582 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005583SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005584all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005585 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005586_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005587# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005588case `${MAKE-make} -f conftest.make 2>/dev/null` in
5589 *@@@%%%=?*=@@@%%%*)
5590 eval ac_cv_prog_make_${ac_make}_set=yes;;
5591 *)
5592 eval ac_cv_prog_make_${ac_make}_set=no;;
5593esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005594rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005595fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005596if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005598$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005599 SET_MAKE=
5600else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005602$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005603 SET_MAKE="MAKE=${MAKE-make}"
5604fi
5605
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005606# Find a good install program. We prefer a C program (faster),
5607# so one script is as good as another. But avoid the broken or
5608# incompatible versions:
5609# SysV /etc/install, /usr/sbin/install
5610# SunOS /usr/etc/install
5611# IRIX /sbin/install
5612# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005613# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005614# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5615# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5616# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005617# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005618# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005619# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005621$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005622if test -z "$INSTALL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005623if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005624 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005625else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005631 # Account for people who put trailing slashes in PATH elements.
5632case $as_dir/ in #((
5633 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005634 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005635 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005636 /usr/ucb/* ) ;;
5637 *)
5638 # OSF1 and SCO ODT 3.0 have their own names for install.
5639 # Don't use installbsd from OSF since it installs stuff as root
5640 # by default.
5641 for ac_prog in ginstall scoinst install; do
5642 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005643 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 -04005644 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005645 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005646 # AIX install. It has an incompatible calling convention.
5647 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005648 elif test $ac_prog = install &&
5649 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5650 # program-specific install script used by HP pwplus--don't use.
5651 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005652 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005653 rm -rf conftest.one conftest.two conftest.dir
5654 echo one > conftest.one
5655 echo two > conftest.two
5656 mkdir conftest.dir
5657 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5658 test -s conftest.one && test -s conftest.two &&
5659 test -s conftest.dir/conftest.one &&
5660 test -s conftest.dir/conftest.two
5661 then
5662 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5663 break 3
5664 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005665 fi
5666 fi
5667 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005668 done
5669 ;;
5670esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005671
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005672 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005673IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005674
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005675rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005676
5677fi
5678 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005679 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005680 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005681 # As a last resort, use the slow shell script. Don't cache a
5682 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005683 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005684 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005685 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005686 fi
5687fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005689$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005690
5691# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5692# It thinks the first close brace ends the variable substitution.
5693test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5694
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005695test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005696
5697test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5698
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005699
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005700 MKINSTALLDIRS=
5701 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005702 case "$ac_aux_dir" in
5703 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5704 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5705 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005706 fi
5707 if test -z "$MKINSTALLDIRS"; then
5708 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5709 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005711
5712
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005714$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005715 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005716if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005717 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005718else
5719 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005720fi
5721
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005723$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005724
5725
5726
5727
5728
5729
5730# Prepare PATH_SEPARATOR.
5731# The user is always right.
5732if test "${PATH_SEPARATOR+set}" != set; then
5733 echo "#! /bin/sh" >conf$$.sh
5734 echo "exit 0" >>conf$$.sh
5735 chmod +x conf$$.sh
5736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5737 PATH_SEPARATOR=';'
5738 else
5739 PATH_SEPARATOR=:
5740 fi
5741 rm -f conf$$.sh
5742fi
5743
5744# Find out how to test for executable files. Don't use a zero-byte file,
5745# as systems may use methods other than mode bits to determine executability.
5746cat >conf$$.file <<_ASEOF
5747#! /bin/sh
5748exit 0
5749_ASEOF
5750chmod +x conf$$.file
5751if test -x conf$$.file >/dev/null 2>&1; then
5752 ac_executable_p="test -x"
5753else
5754 ac_executable_p="test -f"
5755fi
5756rm -f conf$$.file
5757
5758# Extract the first word of "msgfmt", so it can be a program name with args.
5759set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005761$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005762if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005763 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005764else
5765 case "$MSGFMT" in
5766 [\\/]* | ?:[\\/]*)
5767 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5768 ;;
5769 *)
5770 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5771 for ac_dir in $PATH; do
5772 IFS="$ac_save_IFS"
5773 test -z "$ac_dir" && ac_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5776 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5777 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5778 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5779 break 2
5780 fi
5781 fi
5782 done
5783 done
5784 IFS="$ac_save_IFS"
5785 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5786 ;;
5787esac
5788fi
5789MSGFMT="$ac_cv_path_MSGFMT"
5790if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005792$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005793else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005795$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005796fi
5797
5798 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5799set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005801$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005802if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005803 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005804else
5805 case $GMSGFMT in
5806 [\\/]* | ?:[\\/]*)
5807 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5808 ;;
5809 *)
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005815 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005816 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 -05005817 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005819 break 2
5820 fi
5821done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005822 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005823IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005824
5825 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5826 ;;
5827esac
5828fi
5829GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005830if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005832$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005833else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005835$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005836fi
5837
5838
5839
Theodore Ts'oe1052142006-10-21 21:46:47 -04005840
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005841# Prepare PATH_SEPARATOR.
5842# The user is always right.
5843if test "${PATH_SEPARATOR+set}" != set; then
5844 echo "#! /bin/sh" >conf$$.sh
5845 echo "exit 0" >>conf$$.sh
5846 chmod +x conf$$.sh
5847 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5848 PATH_SEPARATOR=';'
5849 else
5850 PATH_SEPARATOR=:
5851 fi
5852 rm -f conf$$.sh
5853fi
5854
5855# Find out how to test for executable files. Don't use a zero-byte file,
5856# as systems may use methods other than mode bits to determine executability.
5857cat >conf$$.file <<_ASEOF
5858#! /bin/sh
5859exit 0
5860_ASEOF
5861chmod +x conf$$.file
5862if test -x conf$$.file >/dev/null 2>&1; then
5863 ac_executable_p="test -x"
5864else
5865 ac_executable_p="test -f"
5866fi
5867rm -f conf$$.file
5868
5869# Extract the first word of "xgettext", so it can be a program name with args.
5870set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005872$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005873if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005874 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005875else
5876 case "$XGETTEXT" in
5877 [\\/]* | ?:[\\/]*)
5878 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5879 ;;
5880 *)
5881 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5882 for ac_dir in $PATH; do
5883 IFS="$ac_save_IFS"
5884 test -z "$ac_dir" && ac_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5887 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5888 (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
5889 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5890 break 2
5891 fi
5892 fi
5893 done
5894 done
5895 IFS="$ac_save_IFS"
5896 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5897 ;;
5898esac
5899fi
5900XGETTEXT="$ac_cv_path_XGETTEXT"
5901if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005903$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005904else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005906$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005907fi
5908
5909 rm -f messages.po
5910
5911
5912# Prepare PATH_SEPARATOR.
5913# The user is always right.
5914if test "${PATH_SEPARATOR+set}" != set; then
5915 echo "#! /bin/sh" >conf$$.sh
5916 echo "exit 0" >>conf$$.sh
5917 chmod +x conf$$.sh
5918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5919 PATH_SEPARATOR=';'
5920 else
5921 PATH_SEPARATOR=:
5922 fi
5923 rm -f conf$$.sh
5924fi
5925
5926# Find out how to test for executable files. Don't use a zero-byte file,
5927# as systems may use methods other than mode bits to determine executability.
5928cat >conf$$.file <<_ASEOF
5929#! /bin/sh
5930exit 0
5931_ASEOF
5932chmod +x conf$$.file
5933if test -x conf$$.file >/dev/null 2>&1; then
5934 ac_executable_p="test -x"
5935else
5936 ac_executable_p="test -f"
5937fi
5938rm -f conf$$.file
5939
5940# Extract the first word of "msgmerge", so it can be a program name with args.
5941set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005943$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005944if test "${ac_cv_path_MSGMERGE+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005945 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005946else
5947 case "$MSGMERGE" in
5948 [\\/]* | ?:[\\/]*)
5949 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5950 ;;
5951 *)
5952 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5953 for ac_dir in $PATH; do
5954 IFS="$ac_save_IFS"
5955 test -z "$ac_dir" && ac_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5958 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5959 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5960 break 2
5961 fi
5962 fi
5963 done
5964 done
5965 IFS="$ac_save_IFS"
5966 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5967 ;;
5968esac
5969fi
5970MSGMERGE="$ac_cv_path_MSGMERGE"
5971if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005973$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005974else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005976$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005977fi
5978
5979
5980 if test "$GMSGFMT" != ":"; then
5981 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5982 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5983 : ;
5984 else
5985 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005986 { $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 +01005987$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005988 GMSGFMT=":"
5989 fi
5990 fi
5991
5992 if test "$XGETTEXT" != ":"; then
5993 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5994 (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
5995 : ;
5996 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005997 { $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 +01005998$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005999 XGETTEXT=":"
6000 fi
6001 rm -f messages.po
6002 fi
6003
Theodore Ts'oe1052142006-10-21 21:46:47 -04006004 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006005
6006
6007if test -n "$ac_tool_prefix"; then
6008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6009set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006011$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006012if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006013 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006014else
6015 if test -n "$RANLIB"; then
6016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006023 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006024 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 -05006025 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027 break 2
6028 fi
6029done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006030 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006031IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006032
6033fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006034fi
6035RANLIB=$ac_cv_prog_RANLIB
6036if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006038$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006039else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006041$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006042fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006043
Theodore Ts'oe1052142006-10-21 21:46:47 -04006044
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006045fi
6046if test -z "$ac_cv_prog_RANLIB"; then
6047 ac_ct_RANLIB=$RANLIB
6048 # Extract the first word of "ranlib", so it can be a program name with args.
6049set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006051$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006052if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006053 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006054else
6055 if test -n "$ac_ct_RANLIB"; then
6056 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006063 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006064 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 -05006065 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006067 break 2
6068 fi
6069done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006070 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006071IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006072
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006073fi
6074fi
6075ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6076if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006078$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006081$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006082fi
6083
Theodore Ts'oe1052142006-10-21 21:46:47 -04006084 if test "x$ac_ct_RANLIB" = x; then
6085 RANLIB=":"
6086 else
6087 case $cross_compiling:$ac_tool_warned in
6088yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006089{ $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 +01006090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006091ac_tool_warned=yes ;;
6092esac
6093 RANLIB=$ac_ct_RANLIB
6094 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006095else
6096 RANLIB="$ac_cv_prog_RANLIB"
6097fi
6098
6099
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006101$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006102if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006103 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006104else
6105 ac_check_lib_save_LIBS=$LIBS
6106LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006108/* end confdefs.h. */
6109
Theodore Ts'oe1052142006-10-21 21:46:47 -04006110/* Override any GCC internal prototype to avoid an error.
6111 Use char because int might match the return type of a GCC
6112 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006113#ifdef __cplusplus
6114extern "C"
6115#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006116char strerror ();
6117int
6118main ()
6119{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006120return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006121 ;
6122 return 0;
6123}
6124_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006125if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006126 ac_cv_lib_cposix_strerror=yes
6127else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006128 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006129fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006130rm -f core conftest.err conftest.$ac_objext \
6131 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006132LIBS=$ac_check_lib_save_LIBS
6133fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006135$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006136if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006137 LIBS="$LIBS -lcposix"
6138fi
6139
6140
6141
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006143$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006144if test "${ac_cv_c_const+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006145 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006146else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006148/* end confdefs.h. */
6149
6150int
6151main ()
6152{
6153/* FIXME: Include the comments suggested by Paul. */
6154#ifndef __cplusplus
6155 /* Ultrix mips cc rejects this. */
6156 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006157 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006158 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006159 char const *const *pcpcc;
6160 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006161 /* NEC SVR4.0.2 mips cc rejects this. */
6162 struct point {int x, y;};
6163 static struct point const zero = {0,0};
6164 /* AIX XL C 1.02.0.0 rejects this.
6165 It does not let you subtract one const X* pointer from another in
6166 an arm of an if-expression whose if-part is not a constant
6167 expression */
6168 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006169 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006170 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006171 ++pcpcc;
6172 ppc = (char**) pcpcc;
6173 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006174 { /* SCO 3.2v4 cc rejects this. */
6175 char *t;
6176 char const *s = 0 ? (char *) 0 : (char const *) 0;
6177
6178 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006179 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006180 }
6181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6182 int x[] = {25, 17};
6183 const int *foo = &x[0];
6184 ++foo;
6185 }
6186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6187 typedef const int *iptr;
6188 iptr p = 0;
6189 ++p;
6190 }
6191 { /* AIX XL C 1.02.0.0 rejects this saying
6192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6193 struct s { int j; const int *ap[3]; };
6194 struct s *b; b->j = 5;
6195 }
6196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6197 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006198 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006199 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006200 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006201#endif
6202
6203 ;
6204 return 0;
6205}
6206_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006207if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006208 ac_cv_c_const=yes
6209else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006210 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006211fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006213fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006215$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006216if test $ac_cv_c_const = no; then
6217
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006218$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006219
6220fi
6221
6222
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006224$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006225if test "${bh_cv_c_signed+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006226 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006227else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006229/* end confdefs.h. */
6230
6231int
6232main ()
6233{
6234signed char x;
6235 ;
6236 return 0;
6237}
6238_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006239if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006240 bh_cv_c_signed=yes
6241else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006242 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006243fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006245fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006247$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006248 if test $bh_cv_c_signed = no; then
6249
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006250$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006251
6252 fi
6253
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006255$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006256if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006257 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006258else
6259 ac_cv_c_inline=no
6260for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006262/* end confdefs.h. */
6263#ifndef __cplusplus
6264typedef int foo_t;
6265static $ac_kw foo_t static_foo () {return 0; }
6266$ac_kw foo_t foo () {return 0; }
6267#endif
6268
6269_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006270if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006271 ac_cv_c_inline=$ac_kw
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
6274 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275done
6276
6277fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006279$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006280
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006281case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006282 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006283 *)
6284 case $ac_cv_c_inline in
6285 no) ac_val=;;
6286 *) ac_val=$ac_cv_c_inline;;
6287 esac
6288 cat >>confdefs.h <<_ACEOF
6289#ifndef __cplusplus
6290#define inline $ac_val
6291#endif
6292_ACEOF
6293 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006294esac
6295
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006296ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6297if test "x$ac_cv_type_off_t" = x""yes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006298
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006299else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006300
6301cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006302#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006303_ACEOF
6304
6305fi
6306
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006307ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6308if test "x$ac_cv_type_size_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006310else
6311
6312cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006313#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006314_ACEOF
6315
6316fi
6317
6318
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006320$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006321if test "${ac_cv_type_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006322 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006323else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006325/* end confdefs.h. */
6326long long ll = 1LL; int i = 63;
6327int
6328main ()
6329{
6330long long llmax = (long long) -1;
6331 return ll << i | ll >> i | llmax / ll | llmax % ll;
6332 ;
6333 return 0;
6334}
6335_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006336if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006337 ac_cv_type_long_long=yes
6338else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006339 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006340fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006341rm -f core conftest.err conftest.$ac_objext \
6342 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006343fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006345$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006346 if test $ac_cv_type_long_long = yes; then
6347
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006348$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006349
6350 fi
6351
6352
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006354$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006355if test "${gt_cv_c_long_double+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006356 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006357else
6358 if test "$GCC" = yes; then
6359 gt_cv_c_long_double=yes
6360 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006362/* end confdefs.h. */
6363
6364 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6365 long double foo = 0.0;
6366 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6367 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6368
6369int
6370main ()
6371{
6372
6373 ;
6374 return 0;
6375}
6376_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006377if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006378 gt_cv_c_long_double=yes
6379else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006380 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006381fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006383 fi
6384fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006386$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006387 if test $gt_cv_c_long_double = yes; then
6388
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006389$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006390
6391 fi
6392
6393
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006395$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006396if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006397 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006398else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006400/* end confdefs.h. */
6401#include <stddef.h>
6402 wchar_t foo = (wchar_t)'\0';
6403int
6404main ()
6405{
6406
6407 ;
6408 return 0;
6409}
6410_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006411if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006412 gt_cv_c_wchar_t=yes
6413else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006414 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006415fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006417fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006419$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006420 if test $gt_cv_c_wchar_t = yes; then
6421
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006422$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006423
6424 fi
6425
6426
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006428$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006429if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006430 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006431else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006433/* end confdefs.h. */
6434#include <wchar.h>
6435 wint_t foo = (wchar_t)'\0';
6436int
6437main ()
6438{
6439
6440 ;
6441 return 0;
6442}
6443_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006444if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006445 gt_cv_c_wint_t=yes
6446else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006447 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006448fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006450fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006452$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006453 if test $gt_cv_c_wint_t = yes; then
6454
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006455$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006456
6457 fi
6458
6459
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006461$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006462if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006463 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006464else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006466/* end confdefs.h. */
6467#include <sys/types.h>
6468#include <inttypes.h>
6469int
6470main ()
6471{
6472uintmax_t i = (uintmax_t) -1;
6473 ;
6474 return 0;
6475}
6476_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006477if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006478 jm_ac_cv_header_inttypes_h=yes
6479else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006480 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006481fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006483fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006485$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486 if test $jm_ac_cv_header_inttypes_h = yes; then
6487
6488cat >>confdefs.h <<_ACEOF
6489#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6490_ACEOF
6491
6492 fi
6493
6494
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006496$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006497if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006498 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006499else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006501/* end confdefs.h. */
6502#include <sys/types.h>
6503#include <stdint.h>
6504int
6505main ()
6506{
6507uintmax_t i = (uintmax_t) -1;
6508 ;
6509 return 0;
6510}
6511_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006512if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006513 jm_ac_cv_header_stdint_h=yes
6514else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006515 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006516fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006518fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006520$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006521 if test $jm_ac_cv_header_stdint_h = yes; then
6522
6523cat >>confdefs.h <<_ACEOF
6524#define HAVE_STDINT_H_WITH_UINTMAX 1
6525_ACEOF
6526
6527 fi
6528
6529
6530
6531
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006533$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006534if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006535 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006536else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006538/* end confdefs.h. */
6539
6540#include <stddef.h>
6541#include <stdlib.h>
6542#if HAVE_STDINT_H_WITH_UINTMAX
6543#include <stdint.h>
6544#endif
6545#if HAVE_INTTYPES_H_WITH_UINTMAX
6546#include <inttypes.h>
6547#endif
6548
6549int
6550main ()
6551{
6552intmax_t x = -1;
6553 ;
6554 return 0;
6555}
6556_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006557if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006558 gt_cv_c_intmax_t=yes
6559else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006560 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006563fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006565$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006566 if test $gt_cv_c_intmax_t = yes; then
6567
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006568$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006569
6570 fi
6571
6572
6573
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006575$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006576if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006577 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006578else
6579
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006580 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006581
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006583/* end confdefs.h. */
6584
6585#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6586 notposix
6587#endif
6588
6589_ACEOF
6590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006591 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592 gt_cv_func_printf_posix="guessing no"
6593else
6594 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006595fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006596rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006597
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006598
6599else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006601/* end confdefs.h. */
6602
6603#include <stdio.h>
6604#include <string.h>
6605/* The string "%2$d %1$d", with dollar characters protected from the shell's
6606 dollar expansion (possibly an autoconf bug). */
6607static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6608static char buf[100];
6609int main ()
6610{
6611 sprintf (buf, format, 33, 55);
6612 return (strcmp (buf, "55 33") != 0);
6613}
6614_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006615if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006616 gt_cv_func_printf_posix=yes
6617else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006618 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006619fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6621 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006622fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006623
Theodore Ts'oe1052142006-10-21 21:46:47 -04006624
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006625fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006627$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006628 case $gt_cv_func_printf_posix in
6629 *yes)
6630
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006631$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006632
6633 ;;
6634 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006635
6636# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6637# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006639$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006640if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006641 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006642else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006644/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006645#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646int
6647main ()
6648{
6649char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006650 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006651 ;
6652 return 0;
6653}
6654_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006655if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006656 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006657else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006658 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006659fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006660rm -f core conftest.err conftest.$ac_objext \
6661 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006662fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006664$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006665if test $ac_cv_working_alloca_h = yes; then
6666
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006667$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006668
6669fi
6670
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006672$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006673if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006674 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006675else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006678#ifdef __GNUC__
6679# define alloca __builtin_alloca
6680#else
6681# ifdef _MSC_VER
6682# include <malloc.h>
6683# define alloca _alloca
6684# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006685# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006686# include <alloca.h>
6687# else
6688# ifdef _AIX
6689 #pragma alloca
6690# else
6691# ifndef alloca /* predefined by HP cc +Olibcalls */
6692char *alloca ();
6693# endif
6694# endif
6695# endif
6696# endif
6697#endif
6698
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006699int
6700main ()
6701{
6702char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006703 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006704 ;
6705 return 0;
6706}
6707_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006708if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006709 ac_cv_func_alloca_works=yes
6710else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006711 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006712fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006713rm -f core conftest.err conftest.$ac_objext \
6714 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006715fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006717$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006718
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006719if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006720
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006721$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006722
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006723else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006724 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6725# that cause trouble. Some versions do not even contain alloca or
6726# contain a buggy version. If you still want to use their alloca,
6727# use ar to extract alloca.o from them instead of compiling alloca.c.
6728
Theodore Ts'oe1052142006-10-21 21:46:47 -04006729ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006730
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006731$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732
6733
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006735$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006736if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006737 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006738else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006741#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006742webecray
6743#else
6744wenotbecray
6745#endif
6746
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006747_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006749 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006750 ac_cv_os_cray=yes
6751else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006752 ac_cv_os_cray=no
6753fi
6754rm -f conftest*
6755
6756fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006758$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006759if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006760 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006762ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6763eval as_val=\$$as_ac_var
6764 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006765
6766cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006767#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006768_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006770 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006771fi
6772
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006773 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006774fi
6775
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006777$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006778if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006779 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006780else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006781 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006782 ac_cv_c_stack_direction=0
6783else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006785/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006786$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006787int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006788find_stack_direction ()
6789{
6790 static char *addr = 0;
6791 auto char dummy;
6792 if (addr == 0)
6793 {
6794 addr = &dummy;
6795 return find_stack_direction ();
6796 }
6797 else
6798 return (&dummy > addr) ? 1 : -1;
6799}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006800
6801int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006802main ()
6803{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006804 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006805}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006806_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006807if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006808 ac_cv_c_stack_direction=1
6809else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006810 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006811fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6813 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006815
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006818$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006819cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006820#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006821_ACEOF
6822
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006823
6824fi
6825
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006826
6827
6828
6829 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006830do :
6831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006832ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6833"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006834eval as_val=\$$as_ac_Header
6835 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006836 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006837#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006838_ACEOF
6839
6840fi
6841
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006842done
6843
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006844
6845
6846
6847
6848
6849
6850
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006851for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006852do :
6853 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6854if test "x$ac_cv_func_getpagesize" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006855 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006856#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006857_ACEOF
6858
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006859fi
6860done
6861
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006863$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006864if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006865 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006866else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006867 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006868 ac_cv_func_mmap_fixed_mapped=no
6869else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006871/* end confdefs.h. */
6872$ac_includes_default
6873/* malloc might have been renamed as rpl_malloc. */
6874#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006875
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006876/* Thanks to Mike Haertel and Jim Avera for this test.
6877 Here is a matrix of mmap possibilities:
6878 mmap private not fixed
6879 mmap private fixed at somewhere currently unmapped
6880 mmap private fixed at somewhere already mapped
6881 mmap shared not fixed
6882 mmap shared fixed at somewhere currently unmapped
6883 mmap shared fixed at somewhere already mapped
6884 For private mappings, we should verify that changes cannot be read()
6885 back from the file, nor mmap's back from the file at a different
6886 address. (There have been systems where private was not correctly
6887 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006888 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006889 like early versions of FreeBSD and possibly contemporary NetBSD.)
6890 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006891 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006892
6893 Grep wants private fixed already mapped.
6894 The main things grep needs to know about mmap are:
6895 * does it exist and is it safe to write into the mmap'd area
6896 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006897
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006898#include <fcntl.h>
6899#include <sys/mman.h>
6900
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006901#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006902char *malloc ();
6903#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006904
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006905/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006906#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006907# ifdef _SC_PAGESIZE
6908# define getpagesize() sysconf(_SC_PAGESIZE)
6909# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006910# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006911# include <sys/param.h>
6912# ifdef EXEC_PAGESIZE
6913# define getpagesize() EXEC_PAGESIZE
6914# else /* no EXEC_PAGESIZE */
6915# ifdef NBPG
6916# define getpagesize() NBPG * CLSIZE
6917# ifndef CLSIZE
6918# define CLSIZE 1
6919# endif /* no CLSIZE */
6920# else /* no NBPG */
6921# ifdef NBPC
6922# define getpagesize() NBPC
6923# else /* no NBPC */
6924# ifdef PAGESIZE
6925# define getpagesize() PAGESIZE
6926# endif /* PAGESIZE */
6927# endif /* no NBPC */
6928# endif /* no NBPG */
6929# endif /* no EXEC_PAGESIZE */
6930# else /* no HAVE_SYS_PARAM_H */
6931# define getpagesize() 8192 /* punt totally */
6932# endif /* no HAVE_SYS_PARAM_H */
6933# endif /* no _SC_PAGESIZE */
6934
6935#endif /* no HAVE_GETPAGESIZE */
6936
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006937int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006938main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006939{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006940 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006941 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006942 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006943 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006944
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006945 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006946
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006947 /* First, make a file with some known garbage in it. */
6948 data = (char *) malloc (pagesize);
6949 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006950 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006951 for (i = 0; i < pagesize; ++i)
6952 *(data + i) = rand ();
6953 umask (0);
6954 fd = creat ("conftest.mmap", 0600);
6955 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006956 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006957 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006958 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006959 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006960
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006961 /* Next, check that the tail of a page is zero-filled. File must have
6962 non-zero length, otherwise we risk SIGBUS for entire page. */
6963 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6964 if (fd2 < 0)
6965 return 4;
6966 cdata2 = "";
6967 if (write (fd2, cdata2, 1) != 1)
6968 return 5;
6969 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6970 if (data2 == MAP_FAILED)
6971 return 6;
6972 for (i = 0; i < pagesize; ++i)
6973 if (*(data2 + i))
6974 return 7;
6975 close (fd2);
6976 if (munmap (data2, pagesize))
6977 return 8;
6978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979 /* Next, try to mmap the file at a fixed address which already has
6980 something else allocated at it. If we can, also make sure that
6981 we see the same garbage. */
6982 fd = open ("conftest.mmap", O_RDWR);
6983 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006984 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006985 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6986 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006987 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988 for (i = 0; i < pagesize; ++i)
6989 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006990 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006991
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992 /* Finally, make sure that changes to the mapped area do not
6993 percolate back to the file as seen by read(). (This is a bug on
6994 some variants of i386 svr4.0.) */
6995 for (i = 0; i < pagesize; ++i)
6996 *(data2 + i) = *(data2 + i) + 1;
6997 data3 = (char *) malloc (pagesize);
6998 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006999 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007000 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007001 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007002 for (i = 0; i < pagesize; ++i)
7003 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007004 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007005 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007006 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007007}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007008_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007009if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007010 ac_cv_func_mmap_fixed_mapped=yes
7011else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007012 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007013fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7015 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007016fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007017
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007018fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007020$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007021if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007022
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007023$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007024
7025fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007026rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007027
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007028
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007029 { $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 +01007030$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 -05007031if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007032 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007033else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007035/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007036
7037#include <features.h>
7038#ifdef __GNU_LIBRARY__
7039 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7040 Lucky GNU user
7041 #endif
7042#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007043
7044_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007046 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007047 ac_cv_gnu_library_2_1=yes
7048else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007049 ac_cv_gnu_library_2_1=no
7050fi
7051rm -f conftest*
7052
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007053
7054
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007055fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007057$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007058
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007059 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007060
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007061
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007062
7063
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007065$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007066if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007067 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007068else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007069
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007070 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007071
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007072 # Guess based on the CPU.
7073 case "$host_cpu" in
7074 alpha* | i3456786 | m68k | s390*)
7075 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7076 *)
7077 gt_cv_int_divbyzero_sigfpe="guessing no";;
7078 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007079
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007080else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007082/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007083
7084#include <stdlib.h>
7085#include <signal.h>
7086
7087static void
7088#ifdef __cplusplus
7089sigfpe_handler (int sig)
7090#else
7091sigfpe_handler (sig) int sig;
7092#endif
7093{
7094 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7095 exit (sig != SIGFPE);
7096}
7097
7098int x = 1;
7099int y = 0;
7100int z;
7101int nan;
7102
7103int main ()
7104{
7105 signal (SIGFPE, sigfpe_handler);
7106/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7107#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7108 signal (SIGTRAP, sigfpe_handler);
7109#endif
7110/* Linux/SPARC yields signal SIGILL. */
7111#if defined (__sparc__) && defined (__linux__)
7112 signal (SIGILL, sigfpe_handler);
7113#endif
7114
7115 z = x / y;
7116 nan = y / y;
7117 exit (1);
7118}
7119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007121if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007122 gt_cv_int_divbyzero_sigfpe=yes
7123else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007124 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007125fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007126rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7127 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007128fi
7129
Theodore Ts'oe1052142006-10-21 21:46:47 -04007130
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007131fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007133$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007134 case "$gt_cv_int_divbyzero_sigfpe" in
7135 *yes) value=1;;
7136 *) value=0;;
7137 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007138
7139cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007140#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007141_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007142
7143
7144
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007146$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007147if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007148 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007149else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007151/* end confdefs.h. */
7152unsigned long long ull = 1ULL; int i = 63;
7153int
7154main ()
7155{
7156unsigned long long ullmax = (unsigned long long) -1;
7157 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7158 ;
7159 return 0;
7160}
7161_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007162if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007163 ac_cv_type_unsigned_long_long=yes
7164else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007165 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007166fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007167rm -f core conftest.err conftest.$ac_objext \
7168 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007169fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007171$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007172 if test $ac_cv_type_unsigned_long_long = yes; then
7173
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007174$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007175
7176 fi
7177
7178
7179
7180
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007181 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 -05007182
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007183 test $ac_cv_type_unsigned_long_long = yes \
7184 && ac_type='unsigned long long' \
7185 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007186
7187cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007188#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007189_ACEOF
7190
7191 else
7192
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007193$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007194
7195 fi
7196
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007197
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007199$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007200if test "${gt_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007201 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007202else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007203
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007205/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007206#include <sys/types.h>
7207#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007208int
7209main ()
7210{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007211
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007212 ;
7213 return 0;
7214}
7215_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007216if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007217 gt_cv_header_inttypes_h=yes
7218else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007219 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007220fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007222
7223fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007225$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007226 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007227
7228cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007229#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007230_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007231
7232 fi
7233
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007234
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007235
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007236 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007237 { $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 +01007238$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007239if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007240 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007241else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007242
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007244/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007245#include <inttypes.h>
7246#ifdef PRId32
7247char *p = PRId32;
7248#endif
7249
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007250int
7251main ()
7252{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007253
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007254 ;
7255 return 0;
7256}
7257_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007258if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007259 gt_cv_inttypes_pri_broken=no
7260else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007261 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007262fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007264
7265fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007267$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007268 fi
7269 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007270
7271cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007272#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007273_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007274
7275 fi
7276
7277
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007278 for ac_header in stdint.h
7279do :
7280 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7281if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007282 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007283#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007284_ACEOF
7285
7286fi
7287
7288done
7289
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007291$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007292 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007294/* end confdefs.h. */
7295
7296#include <limits.h>
7297#if HAVE_STDINT_H
7298#include <stdint.h>
7299#endif
7300#ifdef SIZE_MAX
7301Found it
7302#endif
7303
7304_ACEOF
7305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007306 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007307 result=yes
7308fi
7309rm -f conftest*
7310
7311 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007312 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 -05007313
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007314else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007315 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007316fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007317
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007318
7319 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7320
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007321else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007322 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007323fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007324
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007325
7326 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7327
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007328else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007329 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007330fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007331
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007332
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007333 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007335/* end confdefs.h. */
7336#include <stddef.h>
7337 extern size_t foo;
7338 extern unsigned long foo;
7339
7340int
7341main ()
7342{
7343
7344 ;
7345 return 0;
7346}
7347_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007348if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007349 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007350fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007352 fi
7353 if test -z "$result"; then
7354 if test "$fits_in_uint" = 1; then
7355 result="$res_hi$res_lo"U
7356 else
7357 result="$res_hi$res_lo"UL
7358 fi
7359 else
7360 result='~(size_t)0'
7361 fi
7362 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007364$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007365 if test "$result" != yes; then
7366
7367cat >>confdefs.h <<_ACEOF
7368#define SIZE_MAX $result
7369_ACEOF
7370
7371 fi
7372
7373
7374
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007375 for ac_header in stdint.h
7376do :
7377 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7378if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007379 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007380#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007381_ACEOF
7382
7383fi
7384
7385done
7386
7387
7388
7389 if test "X$prefix" = "XNONE"; then
7390 acl_final_prefix="$ac_default_prefix"
7391 else
7392 acl_final_prefix="$prefix"
7393 fi
7394 if test "X$exec_prefix" = "XNONE"; then
7395 acl_final_exec_prefix='${prefix}'
7396 else
7397 acl_final_exec_prefix="$exec_prefix"
7398 fi
7399 acl_save_prefix="$prefix"
7400 prefix="$acl_final_prefix"
7401 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7402 prefix="$acl_save_prefix"
7403
7404
Theodore Ts'oe1052142006-10-21 21:46:47 -04007405# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007406if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007407 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007408else
7409 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007410fi
7411
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007412# Prepare PATH_SEPARATOR.
7413# The user is always right.
7414if test "${PATH_SEPARATOR+set}" != set; then
7415 echo "#! /bin/sh" >conf$$.sh
7416 echo "exit 0" >>conf$$.sh
7417 chmod +x conf$$.sh
7418 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7419 PATH_SEPARATOR=';'
7420 else
7421 PATH_SEPARATOR=:
7422 fi
7423 rm -f conf$$.sh
7424fi
7425ac_prog=ld
7426if test "$GCC" = yes; then
7427 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007429$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007430 case $host in
7431 *-*-mingw*)
7432 # gcc leaves a trailing carriage return which upsets mingw
7433 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7434 *)
7435 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7436 esac
7437 case $ac_prog in
7438 # Accept absolute paths.
7439 [\\/]* | [A-Za-z]:[\\/]*)
7440 re_direlt='/[^/][^/]*/\.\./'
7441 # Canonicalize the path of ld
7442 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7443 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7444 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7445 done
7446 test -z "$LD" && LD="$ac_prog"
7447 ;;
7448 "")
7449 # If it fails, then pretend we aren't using GCC.
7450 ac_prog=ld
7451 ;;
7452 *)
7453 # If it is relative, then search for the first ld in PATH.
7454 with_gnu_ld=unknown
7455 ;;
7456 esac
7457elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007459$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007460else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007462$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007463fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007464if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007465 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007466else
7467 if test -z "$LD"; then
7468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7469 for ac_dir in $PATH; do
7470 test -z "$ac_dir" && ac_dir=.
7471 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7472 acl_cv_path_LD="$ac_dir/$ac_prog"
7473 # Check to see if the program is GNU ld. I'd rather use --version,
7474 # but apparently some GNU ld's only accept -v.
7475 # Break only if it was the GNU/non-GNU ld that we prefer.
7476 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7477 *GNU* | *'with BFD'*)
7478 test "$with_gnu_ld" != no && break ;;
7479 *)
7480 test "$with_gnu_ld" != yes && break ;;
7481 esac
7482 fi
7483 done
7484 IFS="$ac_save_ifs"
7485else
7486 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7487fi
7488fi
7489
7490LD="$acl_cv_path_LD"
7491if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007493$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007494else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007496$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007497fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007498test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007500$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007501if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007502 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007503else
7504 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7505case `$LD -v 2>&1 </dev/null` in
7506*GNU* | *'with BFD'*)
7507 acl_cv_prog_gnu_ld=yes ;;
7508*)
7509 acl_cv_prog_gnu_ld=no ;;
7510esac
7511fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007513$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007514with_gnu_ld=$acl_cv_prog_gnu_ld
7515
7516
7517
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007519$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007520if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007521 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007522else
7523
7524 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7525 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7526 . ./conftest.sh
7527 rm -f ./conftest.sh
7528 acl_cv_rpath=done
7529
7530fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007532$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007533 wl="$acl_cv_wl"
7534 libext="$acl_cv_libext"
7535 shlibext="$acl_cv_shlibext"
7536 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7537 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7538 hardcode_direct="$acl_cv_hardcode_direct"
7539 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007540 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007541if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007542 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007543else
7544 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007545fi
7546
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007547
7548
7549
7550
7551
7552
7553
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007554 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007555
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007556 acl_save_prefix="$prefix"
7557 prefix="$acl_final_prefix"
7558 acl_save_exec_prefix="$exec_prefix"
7559 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007560
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007561 eval additional_includedir=\"$includedir\"
7562 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007563
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007564 exec_prefix="$acl_save_exec_prefix"
7565 prefix="$acl_save_prefix"
7566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007567
Theodore Ts'oe1052142006-10-21 21:46:47 -04007568# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007569if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007570 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007571 if test "X$withval" = "Xno"; then
7572 use_additional=no
7573 else
7574 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007575
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007576 acl_save_prefix="$prefix"
7577 prefix="$acl_final_prefix"
7578 acl_save_exec_prefix="$exec_prefix"
7579 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007580
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007581 eval additional_includedir=\"$includedir\"
7582 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007583
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007584 exec_prefix="$acl_save_exec_prefix"
7585 prefix="$acl_save_prefix"
7586
7587 else
7588 additional_includedir="$withval/include"
7589 additional_libdir="$withval/lib"
7590 fi
7591 fi
7592
Theodore Ts'oe1052142006-10-21 21:46:47 -04007593fi
7594
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007595 LIBICONV=
7596 LTLIBICONV=
7597 INCICONV=
7598 rpathdirs=
7599 ltrpathdirs=
7600 names_already_handled=
7601 names_next_round='iconv '
7602 while test -n "$names_next_round"; do
7603 names_this_round="$names_next_round"
7604 names_next_round=
7605 for name in $names_this_round; do
7606 already_handled=
7607 for n in $names_already_handled; do
7608 if test "$n" = "$name"; then
7609 already_handled=yes
7610 break
7611 fi
7612 done
7613 if test -z "$already_handled"; then
7614 names_already_handled="$names_already_handled $name"
7615 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7616 eval value=\"\$HAVE_LIB$uppername\"
7617 if test -n "$value"; then
7618 if test "$value" = yes; then
7619 eval value=\"\$LIB$uppername\"
7620 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7621 eval value=\"\$LTLIB$uppername\"
7622 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7623 else
7624 :
7625 fi
7626 else
7627 found_dir=
7628 found_la=
7629 found_so=
7630 found_a=
7631 if test $use_additional = yes; then
7632 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7633 found_dir="$additional_libdir"
7634 found_so="$additional_libdir/lib$name.$shlibext"
7635 if test -f "$additional_libdir/lib$name.la"; then
7636 found_la="$additional_libdir/lib$name.la"
7637 fi
7638 else
7639 if test -f "$additional_libdir/lib$name.$libext"; then
7640 found_dir="$additional_libdir"
7641 found_a="$additional_libdir/lib$name.$libext"
7642 if test -f "$additional_libdir/lib$name.la"; then
7643 found_la="$additional_libdir/lib$name.la"
7644 fi
7645 fi
7646 fi
7647 fi
7648 if test "X$found_dir" = "X"; then
7649 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007650
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007651 acl_save_prefix="$prefix"
7652 prefix="$acl_final_prefix"
7653 acl_save_exec_prefix="$exec_prefix"
7654 exec_prefix="$acl_final_exec_prefix"
7655 eval x=\"$x\"
7656 exec_prefix="$acl_save_exec_prefix"
7657 prefix="$acl_save_prefix"
7658
7659 case "$x" in
7660 -L*)
7661 dir=`echo "X$x" | sed -e 's/^X-L//'`
7662 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7663 found_dir="$dir"
7664 found_so="$dir/lib$name.$shlibext"
7665 if test -f "$dir/lib$name.la"; then
7666 found_la="$dir/lib$name.la"
7667 fi
7668 else
7669 if test -f "$dir/lib$name.$libext"; then
7670 found_dir="$dir"
7671 found_a="$dir/lib$name.$libext"
7672 if test -f "$dir/lib$name.la"; then
7673 found_la="$dir/lib$name.la"
7674 fi
7675 fi
7676 fi
7677 ;;
7678 esac
7679 if test "X$found_dir" != "X"; then
7680 break
7681 fi
7682 done
7683 fi
7684 if test "X$found_dir" != "X"; then
7685 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7686 if test "X$found_so" != "X"; then
7687 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7688 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7689 else
7690 haveit=
7691 for x in $ltrpathdirs; do
7692 if test "X$x" = "X$found_dir"; then
7693 haveit=yes
7694 break
7695 fi
7696 done
7697 if test -z "$haveit"; then
7698 ltrpathdirs="$ltrpathdirs $found_dir"
7699 fi
7700 if test "$hardcode_direct" = yes; then
7701 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7702 else
7703 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7704 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7705 haveit=
7706 for x in $rpathdirs; do
7707 if test "X$x" = "X$found_dir"; then
7708 haveit=yes
7709 break
7710 fi
7711 done
7712 if test -z "$haveit"; then
7713 rpathdirs="$rpathdirs $found_dir"
7714 fi
7715 else
7716 haveit=
7717 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007719 acl_save_prefix="$prefix"
7720 prefix="$acl_final_prefix"
7721 acl_save_exec_prefix="$exec_prefix"
7722 exec_prefix="$acl_final_exec_prefix"
7723 eval x=\"$x\"
7724 exec_prefix="$acl_save_exec_prefix"
7725 prefix="$acl_save_prefix"
7726
7727 if test "X$x" = "X-L$found_dir"; then
7728 haveit=yes
7729 break
7730 fi
7731 done
7732 if test -z "$haveit"; then
7733 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7734 fi
7735 if test "$hardcode_minus_L" != no; then
7736 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7737 else
7738 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7739 fi
7740 fi
7741 fi
7742 fi
7743 else
7744 if test "X$found_a" != "X"; then
7745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7746 else
7747 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7748 fi
7749 fi
7750 additional_includedir=
7751 case "$found_dir" in
7752 */lib | */lib/)
7753 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7754 additional_includedir="$basedir/include"
7755 ;;
7756 esac
7757 if test "X$additional_includedir" != "X"; then
7758 if test "X$additional_includedir" != "X/usr/include"; then
7759 haveit=
7760 if test "X$additional_includedir" = "X/usr/local/include"; then
7761 if test -n "$GCC"; then
7762 case $host_os in
7763 linux*) haveit=yes;;
7764 esac
7765 fi
7766 fi
7767 if test -z "$haveit"; then
7768 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007769
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007770 acl_save_prefix="$prefix"
7771 prefix="$acl_final_prefix"
7772 acl_save_exec_prefix="$exec_prefix"
7773 exec_prefix="$acl_final_exec_prefix"
7774 eval x=\"$x\"
7775 exec_prefix="$acl_save_exec_prefix"
7776 prefix="$acl_save_prefix"
7777
7778 if test "X$x" = "X-I$additional_includedir"; then
7779 haveit=yes
7780 break
7781 fi
7782 done
7783 if test -z "$haveit"; then
7784 if test -d "$additional_includedir"; then
7785 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7786 fi
7787 fi
7788 fi
7789 fi
7790 fi
7791 if test -n "$found_la"; then
7792 save_libdir="$libdir"
7793 case "$found_la" in
7794 */* | *\\*) . "$found_la" ;;
7795 *) . "./$found_la" ;;
7796 esac
7797 libdir="$save_libdir"
7798 for dep in $dependency_libs; do
7799 case "$dep" in
7800 -L*)
7801 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7802 if test "X$additional_libdir" != "X/usr/lib"; then
7803 haveit=
7804 if test "X$additional_libdir" = "X/usr/local/lib"; then
7805 if test -n "$GCC"; then
7806 case $host_os in
7807 linux*) haveit=yes;;
7808 esac
7809 fi
7810 fi
7811 if test -z "$haveit"; then
7812 haveit=
7813 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007814
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007815 acl_save_prefix="$prefix"
7816 prefix="$acl_final_prefix"
7817 acl_save_exec_prefix="$exec_prefix"
7818 exec_prefix="$acl_final_exec_prefix"
7819 eval x=\"$x\"
7820 exec_prefix="$acl_save_exec_prefix"
7821 prefix="$acl_save_prefix"
7822
7823 if test "X$x" = "X-L$additional_libdir"; then
7824 haveit=yes
7825 break
7826 fi
7827 done
7828 if test -z "$haveit"; then
7829 if test -d "$additional_libdir"; then
7830 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7831 fi
7832 fi
7833 haveit=
7834 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007835
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007836 acl_save_prefix="$prefix"
7837 prefix="$acl_final_prefix"
7838 acl_save_exec_prefix="$exec_prefix"
7839 exec_prefix="$acl_final_exec_prefix"
7840 eval x=\"$x\"
7841 exec_prefix="$acl_save_exec_prefix"
7842 prefix="$acl_save_prefix"
7843
7844 if test "X$x" = "X-L$additional_libdir"; then
7845 haveit=yes
7846 break
7847 fi
7848 done
7849 if test -z "$haveit"; then
7850 if test -d "$additional_libdir"; then
7851 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7852 fi
7853 fi
7854 fi
7855 fi
7856 ;;
7857 -R*)
7858 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7859 if test "$enable_rpath" != no; then
7860 haveit=
7861 for x in $rpathdirs; do
7862 if test "X$x" = "X$dir"; then
7863 haveit=yes
7864 break
7865 fi
7866 done
7867 if test -z "$haveit"; then
7868 rpathdirs="$rpathdirs $dir"
7869 fi
7870 haveit=
7871 for x in $ltrpathdirs; do
7872 if test "X$x" = "X$dir"; then
7873 haveit=yes
7874 break
7875 fi
7876 done
7877 if test -z "$haveit"; then
7878 ltrpathdirs="$ltrpathdirs $dir"
7879 fi
7880 fi
7881 ;;
7882 -l*)
7883 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7884 ;;
7885 *.la)
7886 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7887 ;;
7888 *)
7889 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7890 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7891 ;;
7892 esac
7893 done
7894 fi
7895 else
7896 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7897 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7898 fi
7899 fi
7900 fi
7901 done
7902 done
7903 if test "X$rpathdirs" != "X"; then
7904 if test -n "$hardcode_libdir_separator"; then
7905 alldirs=
7906 for found_dir in $rpathdirs; do
7907 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7908 done
7909 acl_save_libdir="$libdir"
7910 libdir="$alldirs"
7911 eval flag=\"$hardcode_libdir_flag_spec\"
7912 libdir="$acl_save_libdir"
7913 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7914 else
7915 for found_dir in $rpathdirs; do
7916 acl_save_libdir="$libdir"
7917 libdir="$found_dir"
7918 eval flag=\"$hardcode_libdir_flag_spec\"
7919 libdir="$acl_save_libdir"
7920 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7921 done
7922 fi
7923 fi
7924 if test "X$ltrpathdirs" != "X"; then
7925 for found_dir in $ltrpathdirs; do
7926 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7927 done
7928 fi
7929
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007930
7931
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007933
7934
7935
7936
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007937 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7938if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007939
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007940else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007941
7942$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007943
7944
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007945fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007946
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007947 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 -04007948stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007949do :
7950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7951ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7952eval as_val=\$$as_ac_Header
7953 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007954 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007955#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007956_ACEOF
7957
7958fi
7959
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007960done
7961
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007962 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007963mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7964strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7965__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007966do :
7967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7968ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7969eval as_val=\$$as_ac_var
7970 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007971 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007972#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007973_ACEOF
7974
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007975fi
7976done
7977
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007979
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007981$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007982if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007983 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007984else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007986/* end confdefs.h. */
7987#include <stdio.h>
7988int
7989main ()
7990{
7991
7992#ifndef _snprintf
7993 char *p = (char *) _snprintf;
7994#endif
7995
7996 ;
7997 return 0;
7998}
7999_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008000if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008001 ac_cv_have_decl__snprintf=yes
8002else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008003 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008004fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008006fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008008$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008009 if test $ac_cv_have_decl__snprintf = yes; then
8010 gt_value=1
8011 else
8012 gt_value=0
8013 fi
8014
8015cat >>confdefs.h <<_ACEOF
8016#define HAVE_DECL__SNPRINTF $gt_value
8017_ACEOF
8018
8019
8020
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008022$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008023if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008024 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008025else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008027/* end confdefs.h. */
8028#include <stdio.h>
8029int
8030main ()
8031{
8032
8033#ifndef _snwprintf
8034 char *p = (char *) _snwprintf;
8035#endif
8036
8037 ;
8038 return 0;
8039}
8040_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008041if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008042 ac_cv_have_decl__snwprintf=yes
8043else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008044 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008045fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008047fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008049$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008050 if test $ac_cv_have_decl__snwprintf = yes; then
8051 gt_value=1
8052 else
8053 gt_value=0
8054 fi
8055
8056cat >>confdefs.h <<_ACEOF
8057#define HAVE_DECL__SNWPRINTF $gt_value
8058_ACEOF
8059
8060
8061
8062
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008064$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008065if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008066 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008067else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008069/* end confdefs.h. */
8070#include <stdio.h>
8071int
8072main ()
8073{
8074
8075#ifndef feof_unlocked
8076 char *p = (char *) feof_unlocked;
8077#endif
8078
8079 ;
8080 return 0;
8081}
8082_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008083if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008084 ac_cv_have_decl_feof_unlocked=yes
8085else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008086 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008087fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008089fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008091$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008092 if test $ac_cv_have_decl_feof_unlocked = yes; then
8093 gt_value=1
8094 else
8095 gt_value=0
8096 fi
8097
8098cat >>confdefs.h <<_ACEOF
8099#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8100_ACEOF
8101
8102
8103
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008105$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008106if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008107 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008108else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008110/* end confdefs.h. */
8111#include <stdio.h>
8112int
8113main ()
8114{
8115
8116#ifndef fgets_unlocked
8117 char *p = (char *) fgets_unlocked;
8118#endif
8119
8120 ;
8121 return 0;
8122}
8123_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008124if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008125 ac_cv_have_decl_fgets_unlocked=yes
8126else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008127 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008128fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008130fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008132$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008133 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8134 gt_value=1
8135 else
8136 gt_value=0
8137 fi
8138
8139cat >>confdefs.h <<_ACEOF
8140#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8141_ACEOF
8142
8143
8144
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008146$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008147if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008148 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008149else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008151/* end confdefs.h. */
8152#include <stdio.h>
8153int
8154main ()
8155{
8156
8157#ifndef getc_unlocked
8158 char *p = (char *) getc_unlocked;
8159#endif
8160
8161 ;
8162 return 0;
8163}
8164_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008165if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008166 ac_cv_have_decl_getc_unlocked=yes
8167else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008168 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008169fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008171fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008173$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008174 if test $ac_cv_have_decl_getc_unlocked = yes; then
8175 gt_value=1
8176 else
8177 gt_value=0
8178 fi
8179
8180cat >>confdefs.h <<_ACEOF
8181#define HAVE_DECL_GETC_UNLOCKED $gt_value
8182_ACEOF
8183
8184
8185
8186 case $gt_cv_func_printf_posix in
8187 *yes) HAVE_POSIX_PRINTF=1 ;;
8188 *) HAVE_POSIX_PRINTF=0 ;;
8189 esac
8190
8191 if test "$ac_cv_func_asprintf" = yes; then
8192 HAVE_ASPRINTF=1
8193 else
8194 HAVE_ASPRINTF=0
8195 fi
8196
8197 if test "$ac_cv_func_snprintf" = yes; then
8198 HAVE_SNPRINTF=1
8199 else
8200 HAVE_SNPRINTF=0
8201 fi
8202
8203 if test "$ac_cv_func_wprintf" = yes; then
8204 HAVE_WPRINTF=1
8205 else
8206 HAVE_WPRINTF=0
8207 fi
8208
8209
8210
8211
8212
8213
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008214
8215 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008216
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008217 for element in $INCICONV; do
8218 haveit=
8219 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008220
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008221 acl_save_prefix="$prefix"
8222 prefix="$acl_final_prefix"
8223 acl_save_exec_prefix="$exec_prefix"
8224 exec_prefix="$acl_final_exec_prefix"
8225 eval x=\"$x\"
8226 exec_prefix="$acl_save_exec_prefix"
8227 prefix="$acl_save_prefix"
8228
8229 if test "X$x" = "X$element"; then
8230 haveit=yes
8231 break
8232 fi
8233 done
8234 if test -z "$haveit"; then
8235 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8236 fi
8237 done
8238
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008239
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008241$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008242if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008243 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008244else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008245
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008246 am_cv_func_iconv="no, consider installing GNU libiconv"
8247 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008249/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008250#include <stdlib.h>
8251#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008252int
8253main ()
8254{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008255iconv_t cd = iconv_open("","");
8256 iconv(cd,NULL,NULL,NULL,NULL);
8257 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008258 ;
8259 return 0;
8260}
8261_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008262if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008263 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008264fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008265rm -f core conftest.err conftest.$ac_objext \
8266 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008267 if test "$am_cv_func_iconv" != yes; then
8268 am_save_LIBS="$LIBS"
8269 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008271/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008272#include <stdlib.h>
8273#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008274int
8275main ()
8276{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008277iconv_t cd = iconv_open("","");
8278 iconv(cd,NULL,NULL,NULL,NULL);
8279 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008280 ;
8281 return 0;
8282}
8283_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008284if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008285 am_cv_lib_iconv=yes
8286 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008287fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008288rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008290 LIBS="$am_save_LIBS"
8291 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008293fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008295$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008296 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008297
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008298$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008299
8300 fi
8301 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008303$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008305$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008306 else
8307 CPPFLAGS="$am_save_CPPFLAGS"
8308 LIBICONV=
8309 LTLIBICONV=
8310 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008311
8312
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008313
8314 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008316$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008317 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008318 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008319else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008320
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008322/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008323
8324#include <stdlib.h>
8325#include <iconv.h>
8326extern
8327#ifdef __cplusplus
8328"C"
8329#endif
8330#if defined(__STDC__) || defined(__cplusplus)
8331size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8332#else
8333size_t iconv();
8334#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008335
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008336int
8337main ()
8338{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008339
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008340 ;
8341 return 0;
8342}
8343_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008344if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008345 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008346else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008347 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008348fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008350 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 +00008351fi
8352
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008353 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008355 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008356$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008357 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008358
8359cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008360#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008361_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008362
8363 fi
8364
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008365
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008367$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008368if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008369 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008370else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008372/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008373#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008374int
8375main ()
8376{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008377char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008378 ;
8379 return 0;
8380}
8381_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008382if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008383 am_cv_langinfo_codeset=yes
8384else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008385 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008386fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008387rm -f core conftest.err conftest.$ac_objext \
8388 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008389
8390fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008392$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008393 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008394
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008395$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008396
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008397 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008398
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008399 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008400
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008402$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008403if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008404 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008405else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008407/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008408#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008409int
8410main ()
8411{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008412return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008413 ;
8414 return 0;
8415}
8416_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008417if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008418 am_cv_val_LC_MESSAGES=yes
8419else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008420 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008421fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008422rm -f core conftest.err conftest.$ac_objext \
8423 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008424fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008426$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008427 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008428
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008429$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008430
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008431 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008432
8433 fi
8434
8435 for ac_prog in bison
8436do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008437 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008438set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008440$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008441if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008442 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008443else
8444 if test -n "$INTLBISON"; then
8445 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8446else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008452 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008453 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 -05008454 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008456 break 2
8457 fi
8458done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008459 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008460IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008461
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008462fi
8463fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008464INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008465if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008467$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008468else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008470$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008471fi
8472
Theodore Ts'oe1052142006-10-21 21:46:47 -04008473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008474 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008475done
8476
8477 if test -z "$INTLBISON"; then
8478 ac_verc_fail=yes
8479 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008481$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008482 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8483 case $ac_prog_version in
8484 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8485 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8486 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8487 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8488 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008490$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008491 fi
8492 if test $ac_verc_fail = yes; then
8493 INTLBISON=:
8494 fi
8495
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008496
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008497
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008498
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008499
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008500
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008501
8502
8503
8504
8505
8506
8507
8508
8509
8510
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008512$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008513 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008514if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008515 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008516else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008517 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008518fi
8519
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008521$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008522
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008524
8525
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008526 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008527 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008528
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008529 LIBINTL=
8530 LTLIBINTL=
8531 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008532
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008533 if test "$USE_NLS" = "yes"; then
8534 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008535
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008537$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008538
Theodore Ts'oe1052142006-10-21 21:46:47 -04008539# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008540if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008541 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008542else
8543 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008544fi
8545
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008547$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008548
8549 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8550 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008551
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008552
8553
8554
8555
8556
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008558$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008559if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008560 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008561else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008563/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008564#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008565extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008566extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008567int
8568main ()
8569{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008570bindtextdomain ("", "");
8571return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008572 ;
8573 return 0;
8574}
8575_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008576if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008577 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008578else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008579 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008580fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008581rm -f core conftest.err conftest.$ac_objext \
8582 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008583fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008585$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008586
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008587 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008588
8589
8590
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008591 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008592
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008593 acl_save_prefix="$prefix"
8594 prefix="$acl_final_prefix"
8595 acl_save_exec_prefix="$exec_prefix"
8596 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008597
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008598 eval additional_includedir=\"$includedir\"
8599 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008600
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008601 exec_prefix="$acl_save_exec_prefix"
8602 prefix="$acl_save_prefix"
8603
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008604
Theodore Ts'oe1052142006-10-21 21:46:47 -04008605# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008606if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008607 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008608 if test "X$withval" = "Xno"; then
8609 use_additional=no
8610 else
8611 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008612
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008613 acl_save_prefix="$prefix"
8614 prefix="$acl_final_prefix"
8615 acl_save_exec_prefix="$exec_prefix"
8616 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008617
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008618 eval additional_includedir=\"$includedir\"
8619 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008620
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008621 exec_prefix="$acl_save_exec_prefix"
8622 prefix="$acl_save_prefix"
8623
8624 else
8625 additional_includedir="$withval/include"
8626 additional_libdir="$withval/lib"
8627 fi
8628 fi
8629
Theodore Ts'oe1052142006-10-21 21:46:47 -04008630fi
8631
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008632 LIBINTL=
8633 LTLIBINTL=
8634 INCINTL=
8635 rpathdirs=
8636 ltrpathdirs=
8637 names_already_handled=
8638 names_next_round='intl '
8639 while test -n "$names_next_round"; do
8640 names_this_round="$names_next_round"
8641 names_next_round=
8642 for name in $names_this_round; do
8643 already_handled=
8644 for n in $names_already_handled; do
8645 if test "$n" = "$name"; then
8646 already_handled=yes
8647 break
8648 fi
8649 done
8650 if test -z "$already_handled"; then
8651 names_already_handled="$names_already_handled $name"
8652 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8653 eval value=\"\$HAVE_LIB$uppername\"
8654 if test -n "$value"; then
8655 if test "$value" = yes; then
8656 eval value=\"\$LIB$uppername\"
8657 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8658 eval value=\"\$LTLIB$uppername\"
8659 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8660 else
8661 :
8662 fi
8663 else
8664 found_dir=
8665 found_la=
8666 found_so=
8667 found_a=
8668 if test $use_additional = yes; then
8669 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8670 found_dir="$additional_libdir"
8671 found_so="$additional_libdir/lib$name.$shlibext"
8672 if test -f "$additional_libdir/lib$name.la"; then
8673 found_la="$additional_libdir/lib$name.la"
8674 fi
8675 else
8676 if test -f "$additional_libdir/lib$name.$libext"; then
8677 found_dir="$additional_libdir"
8678 found_a="$additional_libdir/lib$name.$libext"
8679 if test -f "$additional_libdir/lib$name.la"; then
8680 found_la="$additional_libdir/lib$name.la"
8681 fi
8682 fi
8683 fi
8684 fi
8685 if test "X$found_dir" = "X"; then
8686 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008687
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008688 acl_save_prefix="$prefix"
8689 prefix="$acl_final_prefix"
8690 acl_save_exec_prefix="$exec_prefix"
8691 exec_prefix="$acl_final_exec_prefix"
8692 eval x=\"$x\"
8693 exec_prefix="$acl_save_exec_prefix"
8694 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008695
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008696 case "$x" in
8697 -L*)
8698 dir=`echo "X$x" | sed -e 's/^X-L//'`
8699 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8700 found_dir="$dir"
8701 found_so="$dir/lib$name.$shlibext"
8702 if test -f "$dir/lib$name.la"; then
8703 found_la="$dir/lib$name.la"
8704 fi
8705 else
8706 if test -f "$dir/lib$name.$libext"; then
8707 found_dir="$dir"
8708 found_a="$dir/lib$name.$libext"
8709 if test -f "$dir/lib$name.la"; then
8710 found_la="$dir/lib$name.la"
8711 fi
8712 fi
8713 fi
8714 ;;
8715 esac
8716 if test "X$found_dir" != "X"; then
8717 break
8718 fi
8719 done
8720 fi
8721 if test "X$found_dir" != "X"; then
8722 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8723 if test "X$found_so" != "X"; then
8724 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8725 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8726 else
8727 haveit=
8728 for x in $ltrpathdirs; do
8729 if test "X$x" = "X$found_dir"; then
8730 haveit=yes
8731 break
8732 fi
8733 done
8734 if test -z "$haveit"; then
8735 ltrpathdirs="$ltrpathdirs $found_dir"
8736 fi
8737 if test "$hardcode_direct" = yes; then
8738 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8739 else
8740 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8741 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8742 haveit=
8743 for x in $rpathdirs; do
8744 if test "X$x" = "X$found_dir"; then
8745 haveit=yes
8746 break
8747 fi
8748 done
8749 if test -z "$haveit"; then
8750 rpathdirs="$rpathdirs $found_dir"
8751 fi
8752 else
8753 haveit=
8754 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008755
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008756 acl_save_prefix="$prefix"
8757 prefix="$acl_final_prefix"
8758 acl_save_exec_prefix="$exec_prefix"
8759 exec_prefix="$acl_final_exec_prefix"
8760 eval x=\"$x\"
8761 exec_prefix="$acl_save_exec_prefix"
8762 prefix="$acl_save_prefix"
8763
8764 if test "X$x" = "X-L$found_dir"; then
8765 haveit=yes
8766 break
8767 fi
8768 done
8769 if test -z "$haveit"; then
8770 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8771 fi
8772 if test "$hardcode_minus_L" != no; then
8773 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8774 else
8775 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8776 fi
8777 fi
8778 fi
8779 fi
8780 else
8781 if test "X$found_a" != "X"; then
8782 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8783 else
8784 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8785 fi
8786 fi
8787 additional_includedir=
8788 case "$found_dir" in
8789 */lib | */lib/)
8790 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8791 additional_includedir="$basedir/include"
8792 ;;
8793 esac
8794 if test "X$additional_includedir" != "X"; then
8795 if test "X$additional_includedir" != "X/usr/include"; then
8796 haveit=
8797 if test "X$additional_includedir" = "X/usr/local/include"; then
8798 if test -n "$GCC"; then
8799 case $host_os in
8800 linux*) haveit=yes;;
8801 esac
8802 fi
8803 fi
8804 if test -z "$haveit"; then
8805 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008806
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008807 acl_save_prefix="$prefix"
8808 prefix="$acl_final_prefix"
8809 acl_save_exec_prefix="$exec_prefix"
8810 exec_prefix="$acl_final_exec_prefix"
8811 eval x=\"$x\"
8812 exec_prefix="$acl_save_exec_prefix"
8813 prefix="$acl_save_prefix"
8814
8815 if test "X$x" = "X-I$additional_includedir"; then
8816 haveit=yes
8817 break
8818 fi
8819 done
8820 if test -z "$haveit"; then
8821 if test -d "$additional_includedir"; then
8822 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8823 fi
8824 fi
8825 fi
8826 fi
8827 fi
8828 if test -n "$found_la"; then
8829 save_libdir="$libdir"
8830 case "$found_la" in
8831 */* | *\\*) . "$found_la" ;;
8832 *) . "./$found_la" ;;
8833 esac
8834 libdir="$save_libdir"
8835 for dep in $dependency_libs; do
8836 case "$dep" in
8837 -L*)
8838 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8839 if test "X$additional_libdir" != "X/usr/lib"; then
8840 haveit=
8841 if test "X$additional_libdir" = "X/usr/local/lib"; then
8842 if test -n "$GCC"; then
8843 case $host_os in
8844 linux*) haveit=yes;;
8845 esac
8846 fi
8847 fi
8848 if test -z "$haveit"; then
8849 haveit=
8850 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008851
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008852 acl_save_prefix="$prefix"
8853 prefix="$acl_final_prefix"
8854 acl_save_exec_prefix="$exec_prefix"
8855 exec_prefix="$acl_final_exec_prefix"
8856 eval x=\"$x\"
8857 exec_prefix="$acl_save_exec_prefix"
8858 prefix="$acl_save_prefix"
8859
8860 if test "X$x" = "X-L$additional_libdir"; then
8861 haveit=yes
8862 break
8863 fi
8864 done
8865 if test -z "$haveit"; then
8866 if test -d "$additional_libdir"; then
8867 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8868 fi
8869 fi
8870 haveit=
8871 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008872
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008873 acl_save_prefix="$prefix"
8874 prefix="$acl_final_prefix"
8875 acl_save_exec_prefix="$exec_prefix"
8876 exec_prefix="$acl_final_exec_prefix"
8877 eval x=\"$x\"
8878 exec_prefix="$acl_save_exec_prefix"
8879 prefix="$acl_save_prefix"
8880
8881 if test "X$x" = "X-L$additional_libdir"; then
8882 haveit=yes
8883 break
8884 fi
8885 done
8886 if test -z "$haveit"; then
8887 if test -d "$additional_libdir"; then
8888 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8889 fi
8890 fi
8891 fi
8892 fi
8893 ;;
8894 -R*)
8895 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8896 if test "$enable_rpath" != no; then
8897 haveit=
8898 for x in $rpathdirs; do
8899 if test "X$x" = "X$dir"; then
8900 haveit=yes
8901 break
8902 fi
8903 done
8904 if test -z "$haveit"; then
8905 rpathdirs="$rpathdirs $dir"
8906 fi
8907 haveit=
8908 for x in $ltrpathdirs; do
8909 if test "X$x" = "X$dir"; then
8910 haveit=yes
8911 break
8912 fi
8913 done
8914 if test -z "$haveit"; then
8915 ltrpathdirs="$ltrpathdirs $dir"
8916 fi
8917 fi
8918 ;;
8919 -l*)
8920 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8921 ;;
8922 *.la)
8923 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8924 ;;
8925 *)
8926 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8927 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8928 ;;
8929 esac
8930 done
8931 fi
8932 else
8933 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8934 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8935 fi
8936 fi
8937 fi
8938 done
8939 done
8940 if test "X$rpathdirs" != "X"; then
8941 if test -n "$hardcode_libdir_separator"; then
8942 alldirs=
8943 for found_dir in $rpathdirs; do
8944 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8945 done
8946 acl_save_libdir="$libdir"
8947 libdir="$alldirs"
8948 eval flag=\"$hardcode_libdir_flag_spec\"
8949 libdir="$acl_save_libdir"
8950 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8951 else
8952 for found_dir in $rpathdirs; do
8953 acl_save_libdir="$libdir"
8954 libdir="$found_dir"
8955 eval flag=\"$hardcode_libdir_flag_spec\"
8956 libdir="$acl_save_libdir"
8957 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8958 done
8959 fi
8960 fi
8961 if test "X$ltrpathdirs" != "X"; then
8962 for found_dir in $ltrpathdirs; do
8963 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8964 done
8965 fi
8966
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008968$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008969if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008970 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008971else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008972 gt_save_CPPFLAGS="$CPPFLAGS"
8973 CPPFLAGS="$CPPFLAGS $INCINTL"
8974 gt_save_LIBS="$LIBS"
8975 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008977/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05008978#include <libintl.h>
8979extern int _nl_msg_cat_cntr;
8980extern
8981#ifdef __cplusplus
8982"C"
8983#endif
8984const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008985int
8986main ()
8987{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05008988bindtextdomain ("", "");
8989return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008990 ;
8991 return 0;
8992}
8993_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008994if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05008995 gt_cv_func_gnugettext1_libintl=yes
8996else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008997 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05008998fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008999rm -f core conftest.err conftest.$ac_objext \
9000 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009001 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9002 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009004/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009005#include <libintl.h>
9006extern int _nl_msg_cat_cntr;
9007extern
9008#ifdef __cplusplus
9009"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009010#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009011const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009012int
9013main ()
9014{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009015bindtextdomain ("", "");
9016return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009017 ;
9018 return 0;
9019}
9020_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009021if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009022 LIBINTL="$LIBINTL $LIBICONV"
9023 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9024 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009025
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009026fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009027rm -f core conftest.err conftest.$ac_objext \
9028 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009029 fi
9030 CPPFLAGS="$gt_save_CPPFLAGS"
9031 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009032fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009034$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009035 fi
9036
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009037 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9038 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009039 && test "$PACKAGE" != gettext-runtime \
9040 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009041 gt_use_preinstalled_gnugettext=yes
9042 else
9043 LIBINTL=
9044 LTLIBINTL=
9045 INCINTL=
9046 fi
9047
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009048
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009049 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9050 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009051 fi
9052 fi
9053
9054 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009055 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009056 USE_INCLUDED_LIBINTL=yes
9057 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9058 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9059 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009060 fi
9061
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009062 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9063 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9064 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009065 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009066
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009067
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009068 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9069 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009070
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009071$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009072
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009073 else
9074 USE_NLS=no
9075 fi
9076 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009077
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009079$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009081$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009082 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009084$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009085 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9086 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9087 gt_source="external libintl"
9088 else
9089 gt_source="libc"
9090 fi
9091 else
9092 gt_source="included intl directory"
9093 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009095$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009096 fi
9097
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009098 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009099
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009100 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9101 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009103$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009105$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009106
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009107 for element in $INCINTL; do
9108 haveit=
9109 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009110
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009111 acl_save_prefix="$prefix"
9112 prefix="$acl_final_prefix"
9113 acl_save_exec_prefix="$exec_prefix"
9114 exec_prefix="$acl_final_exec_prefix"
9115 eval x=\"$x\"
9116 exec_prefix="$acl_save_exec_prefix"
9117 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009118
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009119 if test "X$x" = "X$element"; then
9120 haveit=yes
9121 break
9122 fi
9123 done
9124 if test -z "$haveit"; then
9125 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9126 fi
9127 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009128
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009129 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009130
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009132$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009133
9134
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009135$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009136
9137 fi
9138
9139 POSUB=po
9140 fi
9141
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009142
9143 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009144 BUILD_INCLUDED_LIBINTL=yes
9145 fi
9146
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009147
9148
9149
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009150
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009151 nls_cv_header_intl=
9152 nls_cv_header_libgt=
9153
9154 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009155
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009156
9157 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009158
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009159
9160 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009161
9162
9163 if test "$USE_INCLUDED_LIBINTL" = yes; then
9164 INTLOBJS="\$(GETTOBJS)"
9165 fi
9166
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009167
9168 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009169
9170
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009171
9172 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009173
9174
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009175
9176
9177
9178
9179
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009181$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9182set x ${MAKE-make}
9183ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009184if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009185 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009186else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009187 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009188SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009189all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009190 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009191_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009192# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009193case `${MAKE-make} -f conftest.make 2>/dev/null` in
9194 *@@@%%%=?*=@@@%%%*)
9195 eval ac_cv_prog_make_${ac_make}_set=yes;;
9196 *)
9197 eval ac_cv_prog_make_${ac_make}_set=no;;
9198esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009199rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009200fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009201if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009203$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009204 SET_MAKE=
9205else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009207$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009208 SET_MAKE="MAKE=${MAKE-make}"
9209fi
9210
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009212$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009213if test "${_cv_gnu_make_command+set}" = set; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009214 $as_echo_n "(cached) " >&6
9215else
9216 _cv_gnu_make_command='' ;
9217 for a in "$MAKE" make gmake gnumake ; do
9218 if test -z "$a" ; then continue ; fi ;
9219 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9220 _cv_gnu_make_command=$a ;
9221 break;
9222 fi
9223 done ;
9224
9225fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009227$as_echo "$_cv_gnu_make_command" >&6; } ;
9228 if test "x$_cv_gnu_make_command" != "x" ; then
9229 ifGNUmake='' ;
9230 ifNotGNUmake='#' ;
9231 else
9232 ifGNUmake='#' ;
9233 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009235$as_echo "\"Not found\"" >&6; };
9236 fi
9237
9238
9239
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009240# Extract the first word of "ln", so it can be a program name with args.
9241set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009243$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009244if test "${ac_cv_path_LN+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009245 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009246else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009247 case $LN in
9248 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009249 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9250 ;;
9251 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253for as_dir in $PATH
9254do
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009257 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009258 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 -05009259 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009261 break 2
9262 fi
9263done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009264 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009265IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009266
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009267 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9268 ;;
9269esac
9270fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009271LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009272if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009274$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009275else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009277$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009278fi
9279
Theodore Ts'oe1052142006-10-21 21:46:47 -04009280
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009282$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009283LN_S=$as_ln_s
9284if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009286$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009287else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009289$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009290fi
9291
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009292# Extract the first word of "mv", so it can be a program name with args.
9293set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009295$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009296if test "${ac_cv_path_MV+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009297 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009298else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009299 case $MV in
9300 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009301 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9302 ;;
9303 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305for as_dir in $PATH
9306do
9307 IFS=$as_save_IFS
9308 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009309 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009310 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 -05009311 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009313 break 2
9314 fi
9315done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009316 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009317IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009318
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009319 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9320 ;;
9321esac
9322fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009323MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009324if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009326$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009327else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009329$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009330fi
9331
Theodore Ts'oe1052142006-10-21 21:46:47 -04009332
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009333# Extract the first word of "cp", so it can be a program name with args.
9334set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009336$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009337if test "${ac_cv_path_CP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009338 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009339else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009340 case $CP in
9341 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009342 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9343 ;;
9344 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346for as_dir in $PATH
9347do
9348 IFS=$as_save_IFS
9349 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009350 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009351 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 -05009352 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009354 break 2
9355 fi
9356done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009357 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009358IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009359
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009360 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9361 ;;
9362esac
9363fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009364CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009365if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009367$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009368else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009370$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009371fi
9372
Theodore Ts'oe1052142006-10-21 21:46:47 -04009373
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009374# Extract the first word of "rm", so it can be a program name with args.
9375set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009377$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009378if test "${ac_cv_path_RM+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009379 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009380else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009381 case $RM in
9382 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009383 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9384 ;;
9385 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387for as_dir in $PATH
9388do
9389 IFS=$as_save_IFS
9390 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009391 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009392 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 -05009393 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009395 break 2
9396 fi
9397done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009398 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009399IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009400
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009401 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9402 ;;
9403esac
9404fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009405RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009406if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009408$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009409else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009411$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009412fi
9413
Theodore Ts'oe1052142006-10-21 21:46:47 -04009414
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009415# Extract the first word of "chmod", so it can be a program name with args.
9416set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009418$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009419if test "${ac_cv_path_CHMOD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009420 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009421else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009422 case $CHMOD in
9423 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009424 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9425 ;;
9426 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428for as_dir in $PATH
9429do
9430 IFS=$as_save_IFS
9431 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009432 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009433 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 -05009434 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009436 break 2
9437 fi
9438done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009439 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009440IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009441
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009442 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9443 ;;
9444esac
9445fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009446CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009447if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009449$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009450else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009452$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009453fi
9454
Theodore Ts'oe1052142006-10-21 21:46:47 -04009455
Theodore Ts'o32237012005-01-17 19:13:39 -05009456for ac_prog in gawk mawk nawk awk
9457do
9458 # Extract the first word of "$ac_prog", so it can be a program name with args.
9459set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009461$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009462if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009463 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009464else
Theodore Ts'o32237012005-01-17 19:13:39 -05009465 if test -n "$AWK"; then
9466 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9467else
9468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009469for as_dir in $PATH
9470do
9471 IFS=$as_save_IFS
9472 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009473 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009474 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 -05009475 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009477 break 2
9478 fi
9479done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009480 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009481IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009482
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009483fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009484fi
9485AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009486if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009488$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009489else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009491$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009492fi
9493
Theodore Ts'oe1052142006-10-21 21:46:47 -04009494
Theodore Ts'o32237012005-01-17 19:13:39 -05009495 test -n "$AWK" && break
9496done
9497
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009499$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009500if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009501 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009502else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9504 then ac_cv_path_EGREP="$GREP -E"
9505 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009506 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009507 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009508 # Loop through the user's path and test for each of PROGNAME-LIST
9509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009510for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9511do
9512 IFS=$as_save_IFS
9513 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009514 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9517 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9518# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009519 # Check for GNU $ac_path_EGREP
9520case `"$ac_path_EGREP" --version 2>&1` in
9521*GNU*)
9522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9523*)
9524 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009525 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009526 while :
9527 do
9528 cat "conftest.in" "conftest.in" >"conftest.tmp"
9529 mv "conftest.tmp" "conftest.in"
9530 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009531 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009534 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9536 # Best one so far, save it but keep looking for a better one
9537 ac_cv_path_EGREP="$ac_path_EGREP"
9538 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009539 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009540 # 10*(2^10) chars as input seems more than enough
9541 test $ac_count -gt 10 && break
9542 done
9543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9544esac
9545
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009546 $ac_path_EGREP_found && break 3
9547 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009548 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009549 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009550IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009551 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009552 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 +01009553 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009554else
9555 ac_cv_path_EGREP=$EGREP
9556fi
9557
Theodore Ts'oe1052142006-10-21 21:46:47 -04009558 fi
9559fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009561$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009562 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009563
9564
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009565# Extract the first word of "sed", so it can be a program name with args.
9566set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009568$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009569if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009570 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009571else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009572 case $SED in
9573 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009574 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9575 ;;
9576 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578for as_dir in $PATH
9579do
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009582 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009583 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 -05009584 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009586 break 2
9587 fi
9588done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009589 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009590IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009591
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009592 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9593 ;;
9594esac
9595fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009596SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009597if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009599$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009600else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009602$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009603fi
9604
Theodore Ts'oe1052142006-10-21 21:46:47 -04009605
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009606# Extract the first word of "perl", so it can be a program name with args.
9607set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009609$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009610if test "${ac_cv_path_PERL+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009611 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009612else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009613 case $PERL in
9614 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009615 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9616 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009617 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619for as_dir in $PATH
9620do
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009623 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009624 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 -05009625 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009627 break 2
9628 fi
9629done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009630 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009631IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009632
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009633 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9634 ;;
9635esac
9636fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009637PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009638if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009640$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009641else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009643$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009644fi
9645
Theodore Ts'oe1052142006-10-21 21:46:47 -04009646
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009647# Extract the first word of "ldconfig", so it can be a program name with args.
9648set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009650$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009651if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009652 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009653else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009654 case $LDCONFIG in
9655 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009656 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9657 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009658 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660for as_dir in $PATH
9661do
9662 IFS=$as_save_IFS
9663 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009664 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009665 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 -05009666 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009668 break 2
9669 fi
9670done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009671 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009672IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009673
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009674 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9675 ;;
9676esac
9677fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009678LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009679if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009681$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009682else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009684$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009685fi
9686
Theodore Ts'oe1052142006-10-21 21:46:47 -04009687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009688if test -n "$ac_tool_prefix"; then
9689 # 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 +00009690set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009692$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009693if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009694 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009695else
9696 if test -n "$AR"; then
9697 ac_cv_prog_AR="$AR" # Let the user override the test.
9698else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $PATH
9701do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009704 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009705 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 -05009706 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009708 break 2
9709 fi
9710done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009711 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009712IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009713
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009714fi
9715fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009716AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009717if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009719$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009720else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009722$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009723fi
9724
Theodore Ts'oe1052142006-10-21 21:46:47 -04009725
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009726fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009727if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009728 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009729 # Extract the first word of "ar", so it can be a program name with args.
9730set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009732$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009733if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009734 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009735else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009736 if test -n "$ac_ct_AR"; then
9737 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009738else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740for as_dir in $PATH
9741do
9742 IFS=$as_save_IFS
9743 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009744 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009745 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 -05009746 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009748 break 2
9749 fi
9750done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009751 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009752IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009753
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009754fi
9755fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009756ac_ct_AR=$ac_cv_prog_ac_ct_AR
9757if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009759$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009760else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009762$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009763fi
9764
Theodore Ts'oe1052142006-10-21 21:46:47 -04009765 if test "x$ac_ct_AR" = x; then
9766 AR="ar"
9767 else
9768 case $cross_compiling:$ac_tool_warned in
9769yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009770{ $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 +01009771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009772ac_tool_warned=yes ;;
9773esac
9774 AR=$ac_ct_AR
9775 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009776else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009777 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009778fi
9779
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009780if test -n "$ac_tool_prefix"; then
9781 # 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 +00009782set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009784$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009785if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009786 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009787else
9788 if test -n "$RANLIB"; then
9789 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9790else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792for as_dir in $PATH
9793do
9794 IFS=$as_save_IFS
9795 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009796 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009797 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 -05009798 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009800 break 2
9801 fi
9802done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009803 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009804IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009805
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009806fi
9807fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009808RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009809if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009811$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009812else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009814$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009815fi
9816
Theodore Ts'oe1052142006-10-21 21:46:47 -04009817
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009818fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009819if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009820 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009821 # Extract the first word of "ranlib", so it can be a program name with args.
9822set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009824$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009825if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009826 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009827else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009828 if test -n "$ac_ct_RANLIB"; then
9829 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009830else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832for as_dir in $PATH
9833do
9834 IFS=$as_save_IFS
9835 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009836 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009837 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 -05009838 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009840 break 2
9841 fi
9842done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009843 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009844IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009845
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009846fi
9847fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009848ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9849if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009851$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009852else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009854$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009855fi
9856
Theodore Ts'oe1052142006-10-21 21:46:47 -04009857 if test "x$ac_ct_RANLIB" = x; then
9858 RANLIB=":"
9859 else
9860 case $cross_compiling:$ac_tool_warned in
9861yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009862{ $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 +01009863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009864ac_tool_warned=yes ;;
9865esac
9866 RANLIB=$ac_ct_RANLIB
9867 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009868else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009869 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009870fi
9871
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872if test -n "$ac_tool_prefix"; then
9873 # 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 +00009874set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009876$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009877if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009878 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009879else
9880 if test -n "$STRIP"; then
9881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9882else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884for as_dir in $PATH
9885do
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009888 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009889 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 -05009890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009892 break 2
9893 fi
9894done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009895 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009896IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009897
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009898fi
9899fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009900STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009901if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009903$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009904else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009906$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009907fi
9908
Theodore Ts'oe1052142006-10-21 21:46:47 -04009909
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009910fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009911if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009912 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009913 # Extract the first word of "strip", so it can be a program name with args.
9914set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009916$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009917if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009918 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009919else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009920 if test -n "$ac_ct_STRIP"; then
9921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009922else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009928 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009929 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 -05009930 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009932 break 2
9933 fi
9934done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009935 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009936IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009937
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009938fi
9939fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9941if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009943$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009944else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009946$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009947fi
9948
Theodore Ts'oe1052142006-10-21 21:46:47 -04009949 if test "x$ac_ct_STRIP" = x; then
9950 STRIP=":"
9951 else
9952 case $cross_compiling:$ac_tool_warned in
9953yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009954{ $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 +01009955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009956ac_tool_warned=yes ;;
9957esac
9958 STRIP=$ac_ct_STRIP
9959 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009960else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009961 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009962fi
9963
Manish Katiyar7321d942008-04-14 17:20:03 +05309964# Extract the first word of "makeinfo", so it can be a program name with args.
9965set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009967$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009968if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009969 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +05309970else
9971 if test -n "$MAKEINFO"; then
9972 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9973else
9974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975for as_dir in $PATH
9976do
9977 IFS=$as_save_IFS
9978 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009979 for ac_exec_ext in '' $ac_executable_extensions; do
Manish Katiyar7321d942008-04-14 17:20:03 +05309980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9981 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +05309983 break 2
9984 fi
9985done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009986 done
Manish Katiyar7321d942008-04-14 17:20:03 +05309987IFS=$as_save_IFS
9988
9989fi
9990fi
9991MAKEINFO=$ac_cv_prog_MAKEINFO
9992if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009994$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +05309995else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009997$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +05309998fi
9999
10000
10001if test "_$MAKEINFO" = "_"; then
10002 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10003else
10004 case "$MAKEINFO" in
10005 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010007*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010008$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010009*** Makeinfo is missing. Info documentation will not be built." >&2;}
10010 ;;
10011 *)
10012 ;;
10013 esac
10014fi
10015
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010016
Theodore Ts'o6c133521999-07-03 20:37:03 +000010017# See if we need a separate native compiler.
10018if test $cross_compiling = no; then
10019 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010020
Theodore Ts'o6c133521999-07-03 20:37:03 +000010021else
10022 for ac_prog in gcc cc
10023do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010024 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010025set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010027$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010028if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010029 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010030else
10031 if test -n "$BUILD_CC"; then
10032 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10033else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010036do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010039 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010040 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 -050010041 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010043 break 2
10044 fi
10045done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010046 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010047IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010048
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010049fi
10050fi
10051BUILD_CC=$ac_cv_prog_BUILD_CC
10052if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010054$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010055else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010057$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010058fi
10059
Theodore Ts'oe1052142006-10-21 21:46:47 -040010060
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010061 test -n "$BUILD_CC" && break
10062done
10063
10064fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010065for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010066do :
10067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10068ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10069eval as_val=\$$as_ac_Header
10070 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010071 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010072#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010073_ACEOF
10074
10075fi
10076
10077done
10078
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010079for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010080do :
10081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10082ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010083#if HAVE_SYS_QUEUE_H
10084#include <sys/queue.h>
10085#endif
10086
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010087"
10088eval as_val=\$$as_ac_Header
10089 if test "x$as_val" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010090 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010091#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010092_ACEOF
10093
10094fi
10095
10096done
10097
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010098for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010099do :
10100 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010101#if HAVE_SYS_TYPES_H
10102#include <sys/types.h>
10103#endif
10104#if HAVE_SYS_SOCKET
10105#include <sys/socket.h>
10106#endif
10107
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010108"
10109if test "x$ac_cv_header_net_if_h" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010110 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010111#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010112_ACEOF
10113
10114fi
10115
10116done
10117
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010118for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010119do :
10120 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10121if test "x$ac_cv_func_vprintf" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010122 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010123#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010124_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010125
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010126ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10127if test "x$ac_cv_func__doprnt" = x""yes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010128
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010129$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010130
10131fi
10132
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010133fi
10134done
10135
10136
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010137ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10138"
10139if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10140 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010141
10142fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010143
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010144ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10145"
10146if test "x$ac_cv_type_ssize_t" = x""yes; then :
10147 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010148
Theodore Ts'offf45482003-04-13 00:44:19 -040010149fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010150
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010151ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10152"
10153if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10154 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010155
10156fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010157
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010158ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010159 #define _LARGEFILE64_SOURCE
10160 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010161"
10162if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10163 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010164
10165fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010166
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010167# The cast to long int works around a bug in the HP C Compiler
10168# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10169# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10170# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010172$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010173if test "${ac_cv_sizeof_short+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010174 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010175else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010176 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 -050010177
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010178else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010179 if test "$ac_cv_type_short" = yes; then
10180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010182{ as_fn_set_status 77
10183as_fn_error "cannot compute sizeof (short)
10184See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010185 else
10186 ac_cv_sizeof_short=0
10187 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010188fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010189
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010190fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010192$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010193
10194
10195
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010196cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010197#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010198_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010199
10200
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010201# The cast to long int works around a bug in the HP C Compiler
10202# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10203# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10204# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010206$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010207if test "${ac_cv_sizeof_int+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010208 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010209else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010210 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 -050010211
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010212else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010213 if test "$ac_cv_type_int" = yes; then
10214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010216{ as_fn_set_status 77
10217as_fn_error "cannot compute sizeof (int)
10218See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010219 else
10220 ac_cv_sizeof_int=0
10221 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010222fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010224fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010226$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010227
10228
10229
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010230cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010231#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010232_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010233
10234
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010235# The cast to long int works around a bug in the HP C Compiler
10236# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10237# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10238# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010240$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010241if test "${ac_cv_sizeof_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010242 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010243else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010244 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 -050010245
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010246else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010247 if test "$ac_cv_type_long" = yes; then
10248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010250{ as_fn_set_status 77
10251as_fn_error "cannot compute sizeof (long)
10252See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010253 else
10254 ac_cv_sizeof_long=0
10255 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010256fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010258fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010260$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010261
10262
10263
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010264cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010265#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010266_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010267
10268
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010269# The cast to long int works around a bug in the HP C Compiler
10270# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10271# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10272# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010274$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010275if test "${ac_cv_sizeof_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010276 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010277else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010278 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 -050010279
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010280else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010281 if test "$ac_cv_type_long_long" = yes; then
10282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010284{ as_fn_set_status 77
10285as_fn_error "cannot compute sizeof (long long)
10286See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010287 else
10288 ac_cv_sizeof_long_long=0
10289 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010290fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010291
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010292fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010294$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010295
10296
10297
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010298cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010299#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010300_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010301
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010302
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010303SIZEOF_SHORT=$ac_cv_sizeof_short
10304SIZEOF_INT=$ac_cv_sizeof_int
10305SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010306SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10307
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010308
10309
10310
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010312$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010313if test "${ac_cv_c_bigendian+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010314 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010315else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010316 ac_cv_c_bigendian=unknown
10317 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010319/* end confdefs.h. */
10320#ifndef __APPLE_CC__
10321 not a universal capable compiler
10322 #endif
10323 typedef int dummy;
10324
10325_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010326if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010327
10328 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010329 # there are at least two -arch flags with different values.
10330 ac_arch=
10331 ac_prev=
10332 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10333 if test -n "$ac_prev"; then
10334 case $ac_word in
10335 i?86 | x86_64 | ppc | ppc64)
10336 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10337 ac_arch=$ac_word
10338 else
10339 ac_cv_c_bigendian=universal
10340 break
10341 fi
10342 ;;
10343 esac
10344 ac_prev=
10345 elif test "x$ac_word" = "x-arch"; then
10346 ac_prev=arch
10347 fi
10348 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010349fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351 if test $ac_cv_c_bigendian = unknown; then
10352 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010354/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010355#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010356 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010358int
10359main ()
10360{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010361#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10362 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10363 && LITTLE_ENDIAN)
10364 bogus endian macros
10365 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010366
10367 ;
10368 return 0;
10369}
10370_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010371if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010372 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010374/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010375#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010376 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010377
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010378int
10379main ()
10380{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010381#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010382 not big endian
10383 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010384
10385 ;
10386 return 0;
10387}
10388_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010389if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010390 ac_cv_c_bigendian=yes
10391else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010392 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010393fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010395fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 fi
10398 if test $ac_cv_c_bigendian = unknown; then
10399 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010401/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010402#include <limits.h>
10403
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010404int
10405main ()
10406{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010407#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10408 bogus endian macros
10409 #endif
10410
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010411 ;
10412 return 0;
10413}
10414_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010415if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010416 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010418/* end confdefs.h. */
10419#include <limits.h>
10420
10421int
10422main ()
10423{
10424#ifndef _BIG_ENDIAN
10425 not big endian
10426 #endif
10427
10428 ;
10429 return 0;
10430}
10431_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010432if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010433 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010434else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010435 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010436fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010438fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440 fi
10441 if test $ac_cv_c_bigendian = unknown; then
10442 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010443 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010444 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010446/* end confdefs.h. */
10447short int ascii_mm[] =
10448 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10449 short int ascii_ii[] =
10450 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10451 int use_ascii (int i) {
10452 return ascii_mm[i] + ascii_ii[i];
10453 }
10454 short int ebcdic_ii[] =
10455 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10456 short int ebcdic_mm[] =
10457 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10458 int use_ebcdic (int i) {
10459 return ebcdic_mm[i] + ebcdic_ii[i];
10460 }
10461 extern int foo;
10462
10463int
10464main ()
10465{
10466return use_ascii (foo) == use_ebcdic (foo);
10467 ;
10468 return 0;
10469}
10470_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010471if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010472 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10473 ac_cv_c_bigendian=yes
10474 fi
10475 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10476 if test "$ac_cv_c_bigendian" = unknown; then
10477 ac_cv_c_bigendian=no
10478 else
10479 # finding both strings is unlikely to happen, but who knows?
10480 ac_cv_c_bigendian=unknown
10481 fi
10482 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010483fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010485else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010487/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010488$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010489int
10490main ()
10491{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010492
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010493 /* Are we little or big endian? From Harbison&Steele. */
10494 union
10495 {
10496 long int l;
10497 char c[sizeof (long int)];
10498 } u;
10499 u.l = 1;
10500 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010501
10502 ;
10503 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010504}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010505_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010506if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010507 ac_cv_c_bigendian=no
10508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010509 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010510fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10512 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010513fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010514
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010515 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010516fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010518$as_echo "$ac_cv_c_bigendian" >&6; }
10519 case $ac_cv_c_bigendian in #(
10520 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010521 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010522;; #(
10523 no)
10524 ;; #(
10525 universal)
10526
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010527$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010528
10529 ;; #(
10530 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010531 as_fn_error "unknown endianness
10532 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010533 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010534
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010535BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010536ASM_TYPES_HEADER=./asm_types.h
10537
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010538echo "/* These defines are needed for the public ext2fs.h header file */" \
10539 > public_config.h
10540if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10541 uniq tmp_config.$$ >> public_config.h
10542else
10543 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10544fi
10545if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10546 uniq tmp_config.$$ >> public_config.h
10547else
10548 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10549fi
10550rm -f tmp_config.$$
10551PUBLIC_CONFIG_HEADER=./public_config.h
10552
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010553for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010554do :
10555 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10556if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010557 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010558#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010559_ACEOF
10560
10561fi
10562
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010563done
10564
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010565ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10566if test "x$ac_cv_type_intptr_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010567
10568cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010569#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010570_ACEOF
10571
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010573fi
10574
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010575{ $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 +010010576$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010577if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010578 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010579else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010581/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010582#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010583int
10584main ()
10585{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010586struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010587 ;
10588 return 0;
10589}
10590_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010591if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010592 e2fsprogs_cv_struct_st_flags=yes
10593else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010594 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010595fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597fi
10598
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010600$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010601if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010603$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010604 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010605 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010606else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010608/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010609#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010610int
10611main ()
10612{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010613struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010614 ;
10615 return 0;
10616}
10617_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010618if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010619 e2fsprogs_cv_struct_st_flags_immut=yes
10620else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010621 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010622fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624fi
10625
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010627$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010628 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010629 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010630
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010631 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010632fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010633ac_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 -050010634 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010635"
10636if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010637
10638cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010639#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010640_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010641
10642fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010643
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010644if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010646$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010647if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010648 $as_echo_n "(cached) " >&6
10649else
10650 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010652/* end confdefs.h. */
10653
10654/* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10657#ifdef __cplusplus
10658extern "C"
10659#endif
10660char blkid_probe_all ();
10661int
10662main ()
10663{
10664return blkid_probe_all ();
10665 ;
10666 return 0;
10667}
10668_ACEOF
10669for ac_lib in '' blkid; do
10670 if test -z "$ac_lib"; then
10671 ac_res="none required"
10672 else
10673 ac_res=-l$ac_lib
10674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10675 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010676 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010677 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010678fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010679rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext
10681 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010682 break
10683fi
10684done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010685if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10686
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010687else
10688 ac_cv_search_blkid_probe_all=no
10689fi
10690rm conftest.$ac_ext
10691LIBS=$ac_func_search_save_LIBS
10692fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010694$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10695ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010696if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10698
10699fi
10700
10701fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -040010702for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit blkid_probe_get_topology mbstowcs
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010703do :
10704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10705ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10706eval as_val=\$$as_ac_var
10707 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010708 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010709#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010710_ACEOF
10711
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010712fi
10713done
10714
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010715SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010717$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010718if test "${ac_cv_lib_socket_socket+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010719 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010720else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010721 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010722LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010724/* end confdefs.h. */
10725
Theodore Ts'oe1052142006-10-21 21:46:47 -040010726/* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010729#ifdef __cplusplus
10730extern "C"
10731#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010732char socket ();
10733int
10734main ()
10735{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010736return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010737 ;
10738 return 0;
10739}
10740_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010741if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010742 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010743else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010744 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010745fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010746rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010748LIBS=$ac_check_lib_save_LIBS
10749fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010751$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010752if test "x$ac_cv_lib_socket_socket" = x""yes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010753 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010754fi
10755
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010756
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010758$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010759if test "${ac_cv_have_optreset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010760 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010761else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010763/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010764#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010765
10766_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010768 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010769 ac_cv_have_optreset=yes
10770else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010771 ac_cv_have_optreset=no
10772fi
10773rm -f conftest*
10774
10775fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010777$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010778if test $ac_cv_have_optreset = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010779 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010780
10781fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010782SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010783ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
10784if test "x$ac_cv_func_sem_init" = x""yes; then :
10785
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010786else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010788$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010789if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010790 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010791else
10792 ac_check_lib_save_LIBS=$LIBS
10793LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010795/* end confdefs.h. */
10796
10797/* Override any GCC internal prototype to avoid an error.
10798 Use char because int might match the return type of a GCC
10799 builtin and then its argument prototype would still apply. */
10800#ifdef __cplusplus
10801extern "C"
10802#endif
10803char sem_init ();
10804int
10805main ()
10806{
10807return sem_init ();
10808 ;
10809 return 0;
10810}
10811_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010812if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010813 ac_cv_lib_pthread_sem_init=yes
10814else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010815 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010816fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010817rm -f core conftest.err conftest.$ac_objext \
10818 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010819LIBS=$ac_check_lib_save_LIBS
10820fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010822$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010823if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
10824 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010825
10826 SEM_INIT_LIB=-lpthread
10827else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010829$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010830if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010831 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010832else
10833 ac_check_lib_save_LIBS=$LIBS
10834LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010836/* end confdefs.h. */
10837
10838/* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10841#ifdef __cplusplus
10842extern "C"
10843#endif
10844char sem_init ();
10845int
10846main ()
10847{
10848return sem_init ();
10849 ;
10850 return 0;
10851}
10852_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010853if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010854 ac_cv_lib_rt_sem_init=yes
10855else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010856 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010857fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010858rm -f core conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010860LIBS=$ac_check_lib_save_LIBS
10861fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010863$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010864if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
10865 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010866
10867 SEM_INIT_LIB=-lrt
10868else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010870$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010871if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010872 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010873else
10874 ac_check_lib_save_LIBS=$LIBS
10875LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010877/* end confdefs.h. */
10878
10879/* Override any GCC internal prototype to avoid an error.
10880 Use char because int might match the return type of a GCC
10881 builtin and then its argument prototype would still apply. */
10882#ifdef __cplusplus
10883extern "C"
10884#endif
10885char sem_init ();
10886int
10887main ()
10888{
10889return sem_init ();
10890 ;
10891 return 0;
10892}
10893_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010894if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010895 ac_cv_lib_posix4_sem_init=yes
10896else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010897 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010898fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010899rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010901LIBS=$ac_check_lib_save_LIBS
10902fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010904$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010905if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
10906 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010907
10908 SEM_INIT_LIB=-lposix4
10909fi
10910
10911fi
10912
10913fi
10914
10915fi
10916
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010918$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040010919if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040010920 UNI_DIFF_OPTS=-u
10921else
10922 UNI_DIFF_OPTS=-c
10923fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010925$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040010926
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000010927case "$host_os" in
10928linux*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010929 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010930
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000010931 ;;
10932esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040010933LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040010934CYGWIN_CMT="#"
10935UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040010936case "$host_os" in
10937linux*)
10938 LINUX_CMT=
10939 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040010940cygwin)
10941 CYGWIN_CMT=
10942 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040010943 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040010944esac
10945
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010946
10947
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010948case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010949linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010950 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
10951 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010952 { $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 +010010953$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010954 fi
10955 ;;
10956esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010957case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010958linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010959 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010960 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010961 { $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 +010010962$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040010963 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010965$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040010966 mandir=/usr/share/man
10967 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010968 fi
10969;;
10970esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010971if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000010972 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010973 root_prefix="$ac_default_prefix"
10974 else
10975 root_prefix="$prefix"
10976 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040010977 root_bindir=$bindir
10978 root_sbindir=$sbindir
10979 root_libdir=$libdir
10980 root_sysconfdir=$sysconfdir
10981else
10982 root_bindir='${root_prefix}/bin'
10983 root_sbindir='${root_prefix}/sbin'
10984 root_libdir='${root_prefix}/lib'
10985 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010986fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050010987if test "$bindir" != '${exec_prefix}/bin'; then
10988 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010990$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050010991fi
10992if test "$sbindir" != '${exec_prefix}/sbin'; then
10993 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010995$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050010996fi
10997if test "$libdir" != '${exec_prefix}/lib'; then
10998 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011000$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011001fi
11002if test "$sysconfdir" != '${prefix}/etc'; then
11003 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011005$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011006fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011007
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011008
11009
11010
11011
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011013$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011014if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011015 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011016else
11017 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011019/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011020#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011021int
11022main ()
11023{
Theodore Ts'oae851481997-04-29 18:13:24 +000011024fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011025 ;
11026 return 0;
11027}
11028_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011029if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011030 ac_cv_e2fsprogs_use_static=yes
11031else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011032 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011033fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011034rm -f core conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011036LDFLAGS=$SAVE_LDFLAGS
11037fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011038
Theodore Ts'odefde781999-01-04 07:39:19 +000011039case "$host_os" in
11040solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011041 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011042;;
11043esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011045$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011046LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011047if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011048 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011049fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011050
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011051case "$host_os" in
11052darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011054$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011055 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011056
11057 ;;
11058esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011059SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11060ET_DIR=`cd ${srcdir}/lib/et; pwd`
11061
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011062
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011063if test "$cross_compiling" = yes ; then
11064 DO_TEST_SUITE=
11065else
11066 DO_TEST_SUITE=check
11067fi
11068
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011069INTL_FLAGS=
11070if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11071 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
11072fi
11073
Theodore Ts'odd947da2005-11-09 18:37:07 -040011074if test $cross_compiling = no; then
11075 BUILD_CFLAGS="$CFLAGS"
11076 BUILD_LDFLAGS="$LDFLAGS"
11077else
11078 BUILD_CFLAGS=
11079 BUILD_LDFLAGS=
11080fi
11081
11082
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011083test -d lib || mkdir lib
11084test -d include || mkdir include
11085test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011086test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011087for i in MCONFIG Makefile e2fsprogs.spec \
11088 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011089 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11090 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011091 lib/uuid/Makefile lib/uuid/uuid_types.h \
11092 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011093 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11094 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011095 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011096 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011097 resize/Makefile doc/Makefile intl/Makefile \
11098 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011099 if test -d `dirname ${srcdir}/$i` ; then
11100 outlist="$outlist $i"
11101 fi
11102done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011103ac_config_files="$ac_config_files $outlist"
11104
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011105cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011106# This file is a shell script that caches the results of configure
11107# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011108# scripts and configure runs, see configure's option --config-cache.
11109# It is not useful on other systems. If it contains results you don't
11110# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011111#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011112# config.status only pays attention to the cache file if you give it
11113# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011114#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011115# `ac_cv_env_foo' variables (set or unset) will be overridden when
11116# loading this file, other *unset* `ac_cv_foo' will be assigned the
11117# following values.
11118
11119_ACEOF
11120
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011121# The following way of writing the cache mishandles newlines in values,
11122# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011123# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011124# Ultrix sh set writes to stderr and can't be redirected directly,
11125# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011126(
11127 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11128 eval ac_val=\$$ac_var
11129 case $ac_val in #(
11130 *${as_nl}*)
11131 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011132 *_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 +010011133$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011134 esac
11135 case $ac_var in #(
11136 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011137 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011138 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011139 esac ;;
11140 esac
11141 done
11142
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011143 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011144 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11145 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011146 # `set' does not quote correctly, so add quotes: double-quote
11147 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011148 sed -n \
11149 "s/'/'\\\\''/g;
11150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011151 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011152 *)
11153 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011155 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011156 esac |
11157 sort
11158) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011159 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011160 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011161 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011162 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11164 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011165 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11166 :end' >>confcache
11167if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11168 if test -w "$cache_file"; then
11169 test "x$cache_file" != "x/dev/null" &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011170 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011171$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011172 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011173 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011174 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011175$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011176 fi
11177fi
11178rm -f confcache
11179
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011180test "x$prefix" = xNONE && prefix=$ac_default_prefix
11181# Let make expand exec_prefix.
11182test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11183
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011184# Transform confdefs.h into DEFS.
11185# Protect against shell expansion while executing Makefile rules.
11186# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011187#
11188# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040011189# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011190# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011191ac_script='
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011192:mline
11193/\\$/{
11194 N
11195 s,\\\n,,
11196 b mline
11197}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011198t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011199:clear
11200s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011201t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040011202s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011203t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040011204b any
11205:quote
11206s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11207s/\[/\\&/g
11208s/\]/\\&/g
11209s/\$/$$/g
11210H
11211:any
11212${
11213 g
11214 s/^\n//
11215 s/\n/ /g
11216 p
11217}
11218'
11219DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011220
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011221
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011222ac_libobjs=
11223ac_ltlibobjs=
11224for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11225 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011226 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011227 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011228 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11229 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011230 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11231 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011232done
11233LIBOBJS=$ac_libobjs
11234
11235LTLIBOBJS=$ac_ltlibobjs
11236
11237
11238
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011239
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011240: ${CONFIG_STATUS=./config.status}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011241ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011242ac_clean_files_save=$ac_clean_files
11243ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011244{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011245$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011246as_write_fail=0
11247cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011248#! $SHELL
11249# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011250# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011251# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011252# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011253
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011254debug=false
11255ac_cs_recheck=false
11256ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011257
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011258SHELL=\${CONFIG_SHELL-$SHELL}
11259export SHELL
11260_ASEOF
11261cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11262## -------------------- ##
11263## M4sh Initialization. ##
11264## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011265
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011266# Be more Bourne compatible
11267DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011268if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011269 emulate sh
11270 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011271 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011272 # is contrary to our usage. Disable this feature.
11273 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011274 setopt NO_GLOB_SUBST
11275else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011276 case `(set -o) 2>/dev/null` in #(
11277 *posix*) :
11278 set -o posix ;; #(
11279 *) :
11280 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011281esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011282fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011283
11284
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011285as_nl='
11286'
11287export as_nl
11288# Printing a long string crashes Solaris 7 /usr/bin/printf.
11289as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11290as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11291as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011292# Prefer a ksh shell builtin over an external printf program on Solaris,
11293# but without wasting forks for bash or zsh.
11294if test -z "$BASH_VERSION$ZSH_VERSION" \
11295 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11296 as_echo='print -r --'
11297 as_echo_n='print -rn --'
11298elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011299 as_echo='printf %s\n'
11300 as_echo_n='printf %s'
11301else
11302 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11303 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11304 as_echo_n='/usr/ucb/echo -n'
11305 else
11306 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11307 as_echo_n_body='eval
11308 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011309 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011310 *"$as_nl"*)
11311 expr "X$arg" : "X\\(.*\\)$as_nl";
11312 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11313 esac;
11314 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11315 '
11316 export as_echo_n_body
11317 as_echo_n='sh -c $as_echo_n_body as_echo'
11318 fi
11319 export as_echo_body
11320 as_echo='sh -c $as_echo_body as_echo'
11321fi
11322
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011323# The user is always right.
11324if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011325 PATH_SEPARATOR=:
11326 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11327 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11328 PATH_SEPARATOR=';'
11329 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011330fi
11331
Theodore Ts'oe1052142006-10-21 21:46:47 -040011332
11333# IFS
11334# We need space, tab and new line, in precisely that order. Quoting is
11335# there to prevent editors from complaining about space-tab.
11336# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11337# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011338IFS=" "" $as_nl"
11339
11340# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011341case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011342 *[\\/]* ) as_myself=$0 ;;
11343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011344for as_dir in $PATH
11345do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11349 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011350IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011351
Theodore Ts'oe1052142006-10-21 21:46:47 -040011352 ;;
11353esac
11354# We did not find ourselves, most probably we were run as `sh COMMAND'
11355# in which case we are not to be found in the path.
11356if test "x$as_myself" = x; then
11357 as_myself=$0
11358fi
11359if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011360 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011361 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011362fi
11363
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011364# Unset variables that we do not need and which cause bugs (e.g. in
11365# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11366# suppresses any "Segmentation fault" message there. '((' could
11367# trigger a bug in pdksh 5.2.14.
11368for as_var in BASH_ENV ENV MAIL MAILPATH
11369do eval test x\${$as_var+set} = xset \
11370 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011371done
11372PS1='$ '
11373PS2='> '
11374PS4='+ '
11375
11376# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011377LC_ALL=C
11378export LC_ALL
11379LANGUAGE=C
11380export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011381
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011382# CDPATH.
11383(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11384
11385
11386# as_fn_error ERROR [LINENO LOG_FD]
11387# ---------------------------------
11388# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11389# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11390# script with status $?, using 1 if that was 0.
11391as_fn_error ()
11392{
11393 as_status=$?; test $as_status -eq 0 && as_status=1
11394 if test "$3"; then
11395 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11396 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11397 fi
11398 $as_echo "$as_me: error: $1" >&2
11399 as_fn_exit $as_status
11400} # as_fn_error
11401
11402
11403# as_fn_set_status STATUS
11404# -----------------------
11405# Set $? to STATUS, without forking.
11406as_fn_set_status ()
11407{
11408 return $1
11409} # as_fn_set_status
11410
11411# as_fn_exit STATUS
11412# -----------------
11413# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11414as_fn_exit ()
11415{
11416 set +e
11417 as_fn_set_status $1
11418 exit $1
11419} # as_fn_exit
11420
11421# as_fn_unset VAR
11422# ---------------
11423# Portably unset VAR.
11424as_fn_unset ()
11425{
11426 { eval $1=; unset $1;}
11427}
11428as_unset=as_fn_unset
11429# as_fn_append VAR VALUE
11430# ----------------------
11431# Append the text in VALUE to the end of the definition contained in VAR. Take
11432# advantage of any shell optimizations that allow amortized linear growth over
11433# repeated appends, instead of the typical quadratic growth present in naive
11434# implementations.
11435if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11436 eval 'as_fn_append ()
11437 {
11438 eval $1+=\$2
11439 }'
11440else
11441 as_fn_append ()
11442 {
11443 eval $1=\$$1\$2
11444 }
11445fi # as_fn_append
11446
11447# as_fn_arith ARG...
11448# ------------------
11449# Perform arithmetic evaluation on the ARGs, and store the result in the
11450# global $as_val. Take advantage of shells that can avoid forks. The arguments
11451# must be portable across $(()) and expr.
11452if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11453 eval 'as_fn_arith ()
11454 {
11455 as_val=$(( $* ))
11456 }'
11457else
11458 as_fn_arith ()
11459 {
11460 as_val=`expr "$@" || test $? -eq 1`
11461 }
11462fi # as_fn_arith
11463
11464
Theodore Ts'oe1052142006-10-21 21:46:47 -040011465if expr a : '\(a\)' >/dev/null 2>&1 &&
11466 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11467 as_expr=expr
11468else
11469 as_expr=false
11470fi
11471
11472if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11473 as_basename=basename
11474else
11475 as_basename=false
11476fi
11477
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011478if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11479 as_dirname=dirname
11480else
11481 as_dirname=false
11482fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011483
Theodore Ts'oe1052142006-10-21 21:46:47 -040011484as_me=`$as_basename -- "$0" ||
11485$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11486 X"$0" : 'X\(//\)$' \| \
11487 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011488$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011489 sed '/^.*\/\([^/][^/]*\)\/*$/{
11490 s//\1/
11491 q
11492 }
11493 /^X\/\(\/\/\)$/{
11494 s//\1/
11495 q
11496 }
11497 /^X\/\(\/\).*/{
11498 s//\1/
11499 q
11500 }
11501 s/.*/./; q'`
11502
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011503# Avoid depending upon Character Ranges.
11504as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11505as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11506as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11507as_cr_digits='0123456789'
11508as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011509
11510ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011511case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011512-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011513 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011515 xy) ECHO_C='\c';;
11516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11517 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011518 esac;;
11519*)
11520 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011521esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011522
11523rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011524if test -d conf$$.dir; then
11525 rm -f conf$$.dir/conf$$.file
11526else
11527 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011528 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011529fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011530if (echo >conf$$.file) 2>/dev/null; then
11531 if ln -s conf$$.file conf$$ 2>/dev/null; then
11532 as_ln_s='ln -s'
11533 # ... but there are two gotchas:
11534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11536 # In both cases, we have to default to `cp -p'.
11537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11538 as_ln_s='cp -p'
11539 elif ln conf$$.file conf$$ 2>/dev/null; then
11540 as_ln_s=ln
11541 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011542 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011543 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011544else
11545 as_ln_s='cp -p'
11546fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11548rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011549
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011550
11551# as_fn_mkdir_p
11552# -------------
11553# Create "$as_dir" as a directory, including parents if necessary.
11554as_fn_mkdir_p ()
11555{
11556
11557 case $as_dir in #(
11558 -*) as_dir=./$as_dir;;
11559 esac
11560 test -d "$as_dir" || eval $as_mkdir_p || {
11561 as_dirs=
11562 while :; do
11563 case $as_dir in #(
11564 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11565 *) as_qdir=$as_dir;;
11566 esac
11567 as_dirs="'$as_qdir' $as_dirs"
11568 as_dir=`$as_dirname -- "$as_dir" ||
11569$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11570 X"$as_dir" : 'X\(//\)[^/]' \| \
11571 X"$as_dir" : 'X\(//\)$' \| \
11572 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11573$as_echo X"$as_dir" |
11574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11575 s//\1/
11576 q
11577 }
11578 /^X\(\/\/\)[^/].*/{
11579 s//\1/
11580 q
11581 }
11582 /^X\(\/\/\)$/{
11583 s//\1/
11584 q
11585 }
11586 /^X\(\/\).*/{
11587 s//\1/
11588 q
11589 }
11590 s/.*/./; q'`
11591 test -d "$as_dir" && break
11592 done
11593 test -z "$as_dirs" || eval "mkdir $as_dirs"
11594 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11595
11596
11597} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011598if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011599 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011600else
11601 test -d ./-p && rmdir ./-p
11602 as_mkdir_p=false
11603fi
11604
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011605if test -x / >/dev/null 2>&1; then
11606 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011607else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011608 if ls -dL / >/dev/null 2>&1; then
11609 as_ls_L_option=L
11610 else
11611 as_ls_L_option=
11612 fi
11613 as_test_x='
11614 eval sh -c '\''
11615 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011616 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011617 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011618 case $1 in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011619 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011620 esac;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011621 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011622 ???[sx]*):;;*)false;;esac;fi
11623 '\'' sh
11624 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011625fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011626as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011627
11628# Sed expression to map a string onto a valid CPP name.
11629as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11630
11631# Sed expression to map a string onto a valid variable name.
11632as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11633
11634
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011635exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011636## ----------------------------------- ##
11637## Main body of $CONFIG_STATUS script. ##
11638## ----------------------------------- ##
11639_ASEOF
11640test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011641
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11643# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011644# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011645# values after options handling.
11646ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011647This file was extended by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011648generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011649
11650 CONFIG_FILES = $CONFIG_FILES
11651 CONFIG_HEADERS = $CONFIG_HEADERS
11652 CONFIG_LINKS = $CONFIG_LINKS
11653 CONFIG_COMMANDS = $CONFIG_COMMANDS
11654 $ $0 $@
11655
Theodore Ts'oe1052142006-10-21 21:46:47 -040011656on `(hostname || uname -n) 2>/dev/null | sed 1q`
11657"
11658
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011659_ACEOF
11660
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011661case $ac_config_files in *"
11662"*) set x $ac_config_files; shift; ac_config_files=$*;;
11663esac
11664
11665
11666
11667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011668# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011669config_files="$ac_config_files"
11670config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011671
Theodore Ts'oe1052142006-10-21 21:46:47 -040011672_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011673
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011675ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011676\`$as_me' instantiates files and other configuration actions
11677from templates according to the current configuration. Unless the files
11678and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011679
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011680Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011681
11682 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011683 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011684 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011685 -q, --quiet, --silent
11686 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011687 -d, --debug don't remove temporary files
11688 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011689 --file=FILE[:TEMPLATE]
11690 instantiate the configuration file FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011691
11692Configuration files:
11693$config_files
11694
11695Configuration commands:
11696$config_commands
11697
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011698Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011699
Theodore Ts'oe1052142006-10-21 21:46:47 -040011700_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011702ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011703ac_cs_version="\\
11704config.status
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011705configured by $0, generated by GNU Autoconf 2.65,
11706 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011707
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011708Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011709This config.status script is free software; the Free Software Foundation
11710gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040011711
11712ac_pwd='$ac_pwd'
11713srcdir='$srcdir'
11714INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011715AWK='$AWK'
11716test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011717_ACEOF
11718
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11720# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011721ac_need_defaults=:
11722while test $# != 0
11723do
11724 case $1 in
11725 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011726 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11727 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011728 ac_shift=:
11729 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011730 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011731 ac_option=$1
11732 ac_optarg=$2
11733 ac_shift=shift
11734 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011735 esac
11736
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011737 case $ac_option in
11738 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011739 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11740 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011741 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011742 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011743 --config | --confi | --conf | --con | --co | --c )
11744 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011745 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011746 debug=: ;;
11747 --file | --fil | --fi | --f )
11748 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011749 case $ac_optarg in
11750 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11751 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011752 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011753 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011754 --he | --h | --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011755 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11757 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11758 ac_cs_silent=: ;;
11759
11760 # This is an error.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011761 -*) as_fn_error "unrecognized option: \`$1'
11762Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011763
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011764 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011765 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011766
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011767 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011768 shift
11769done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011770
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011771ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011772
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011773if $ac_cs_silent; then
11774 exec 6>/dev/null
11775 ac_configure_extra_args="$ac_configure_extra_args --silent"
11776fi
11777
11778_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011780if \$ac_cs_recheck; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011781 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11782 shift
11783 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11784 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011785 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011786 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011787fi
11788
11789_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011791exec 5>>config.log
11792{
11793 echo
11794 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11795## Running $as_me. ##
11796_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011797 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011798} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011799
Theodore Ts'oe1052142006-10-21 21:46:47 -040011800_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011802#
Theodore Ts'oe1052142006-10-21 21:46:47 -040011803# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011804#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011805# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011806 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011807 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011808 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011809 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11810 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011811
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011812
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011813_ACEOF
11814
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011816
11817# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011818for ac_config_target in $ac_config_targets
11819do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011820 case $ac_config_target in
11821 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11822 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
11823
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011824 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011825 esac
11826done
11827
Theodore Ts'oe1052142006-10-21 21:46:47 -040011828
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011829# If the user did not use the arguments to specify the items to instantiate,
11830# then the envvar interface is used. Set only those that are not.
11831# We use the long form for the default assignment because of an extremely
11832# bizarre bug on SunOS 4.1.3.
11833if $ac_need_defaults; then
11834 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11835 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11836fi
11837
11838# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040011839# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011840# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011841# Hook for its removal unless debugging.
11842# Note that there is a small window in which the directory will not be cleaned:
11843# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011844$debug ||
11845{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011846 tmp=
11847 trap 'exit_status=$?
11848 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11849' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011850 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011851}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011852# Create a (secure) tmp directory for tmp files.
11853
11854{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011855 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011856 test -n "$tmp" && test -d "$tmp"
11857} ||
11858{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011859 tmp=./conf$$-$RANDOM
11860 (umask 077 && mkdir "$tmp")
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011861} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011862
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011863# Set up the scripts for CONFIG_FILES section.
11864# No need to generate them if there are no CONFIG_FILES.
11865# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011866if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011867
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011868if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11869 ac_cs_awk_getline=:
11870 ac_cs_awk_pipe_init=
11871 ac_cs_awk_read_file='
11872 while ((getline aline < (F[key])) > 0)
11873 print(aline)
11874 close(F[key])'
11875 ac_cs_awk_pipe_fini=
11876else
11877 ac_cs_awk_getline=false
11878 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11879 ac_cs_awk_read_file='
11880 print "|#_!!_#|"
11881 print "cat " F[key] " &&"
11882 '$ac_cs_awk_pipe_init
11883 # The final `:' finishes the AND list.
11884 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11885fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011886ac_cr=`echo X | tr X '\015'`
11887# On cygwin, bash can eat \r inside `` if the user requested igncr.
11888# But we know of no other shell where ac_cr would be empty at this
11889# point, so we can use a bashism as a fallback.
11890if test "x$ac_cr" = x; then
11891 eval ac_cr=\$\'\\r\'
11892fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011893ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11894if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011895 ac_cs_awk_cr='\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011896else
11897 ac_cs_awk_cr=$ac_cr
11898fi
11899
11900echo 'BEGIN {' >"$tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011901_ACEOF
11902
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011903# Create commands to substitute file output variables.
11904{
11905 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11906 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
11907 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11908 echo "_ACAWK" &&
11909 echo "_ACEOF"
11910} >conf$$files.sh &&
11911. ./conf$$files.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011912 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011913rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040011914
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011915{
11916 echo "cat >conf$$subs.awk <<_ACEOF" &&
11917 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11918 echo "_ACEOF"
11919} >conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011920 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011921ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011922ac_delim='%!_!# '
11923for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011924 . ./conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011925 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011926
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011927 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11928 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011929 break
11930 elif $ac_last_try; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011931 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011932 else
11933 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011934 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011935done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011936rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040011937
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11939cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040011940_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011941sed -n '
11942h
11943s/^/S["/; s/!.*/"]=/
11944p
11945g
11946s/^[^!]*!//
11947:repl
11948t repl
11949s/'"$ac_delim"'$//
11950t delim
11951:nl
11952h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011953s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011954t more1
11955s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11956p
11957n
11958b repl
11959:more1
11960s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11961p
11962g
11963s/.\{148\}//
11964t nl
11965:delim
11966h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011967s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011968t more2
11969s/["\\]/\\&/g; s/^/"/; s/$/"/
11970p
11971b
11972:more2
11973s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11974p
11975g
11976s/.\{148\}//
11977t delim
11978' <conf$$subs.awk | sed '
11979/^[^""]/{
11980 N
11981 s/\n//
11982}
11983' >>$CONFIG_STATUS || ac_write_fail=1
11984rm -f conf$$subs.awk
11985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11986_ACAWK
11987cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11988 for (key in S) S_is_set[key] = 1
11989 FS = ""
11990 \$ac_cs_awk_pipe_init
11991}
11992{
11993 line = $ 0
11994 nfields = split(line, field, "@")
11995 substed = 0
11996 len = length(field[1])
11997 for (i = 2; i < nfields; i++) {
11998 key = field[i]
11999 keylen = length(key)
12000 if (S_is_set[key]) {
12001 value = S[key]
12002 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12003 len += length(value) + length(field[++i])
12004 substed = 1
12005 } else
12006 len += 1 + keylen
12007 }
12008 if (nfields == 3 && !substed) {
12009 key = field[2]
12010 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12011 \$ac_cs_awk_read_file
12012 next
12013 }
12014 }
12015 print line
12016}
12017\$ac_cs_awk_pipe_fini
12018_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012019_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12021if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12022 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12023else
12024 cat
12025fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012026 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012027_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012028
12029# VPATH may cause trouble with some makes, so we remove $(srcdir),
12030# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12031# trailing colons and then remove the whole line if VPATH becomes empty
12032# (actually we leave an empty line to preserve line numbers).
12033if test "x$srcdir" = x.; then
12034 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12035s/:*\$(srcdir):*/:/
12036s/:*\${srcdir}:*/:/
12037s/:*@srcdir@:*/:/
12038s/^\([^=]*=[ ]*\):*/\1/
12039s/:*$//
12040s/^[^=]*=[ ]*$//
12041}'
12042fi
12043
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012045fi # test -n "$CONFIG_FILES"
12046
Theodore Ts'oe1052142006-10-21 21:46:47 -040012047
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012048eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12049shift
12050for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012051do
12052 case $ac_tag in
12053 :[FHLC]) ac_mode=$ac_tag; continue;;
12054 esac
12055 case $ac_mode$ac_tag in
12056 :[FHL]*:*);;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012057 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012058 :[FH]-) ac_tag=-:-;;
12059 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12060 esac
12061 ac_save_IFS=$IFS
12062 IFS=:
12063 set x $ac_tag
12064 IFS=$ac_save_IFS
12065 shift
12066 ac_file=$1
12067 shift
12068
12069 case $ac_mode in
12070 :L) ac_source=$1;;
12071 :[FH])
12072 ac_file_inputs=
12073 for ac_f
12074 do
12075 case $ac_f in
12076 -) ac_f="$tmp/stdin";;
12077 *) # Look for the file first in the build tree, then in the source tree
12078 # (if the path is not absolute). The absolute path cannot be DOS-style,
12079 # because $ac_f cannot contain `:'.
12080 test -f "$ac_f" ||
12081 case $ac_f in
12082 [\\/$]*) false;;
12083 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12084 esac ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012085 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012086 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012087 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012088 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012089 done
12090
12091 # Let's still pretend it is `configure' which instantiates (i.e., don't
12092 # use $as_me), people would be surprised to read:
12093 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012094 configure_input='Generated from '`
12095 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12096 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012097 if test x"$ac_file" != x-; then
12098 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012100$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012101 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012102 # Neutralize special characters interpreted by sed in replacement strings.
12103 case $configure_input in #(
12104 *\&* | *\|* | *\\* )
12105 ac_sed_conf_input=`$as_echo "$configure_input" |
12106 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12107 *) ac_sed_conf_input=$configure_input;;
12108 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012109
12110 case $ac_tag in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012111 *:-:* | *:-) cat >"$tmp/stdin" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012112 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012113 esac
12114 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012115 esac
12116
Theodore Ts'oe1052142006-10-21 21:46:47 -040012117 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012118$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12119 X"$ac_file" : 'X\(//\)[^/]' \| \
12120 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012121 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012122$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12124 s//\1/
12125 q
12126 }
12127 /^X\(\/\/\)[^/].*/{
12128 s//\1/
12129 q
12130 }
12131 /^X\(\/\/\)$/{
12132 s//\1/
12133 q
12134 }
12135 /^X\(\/\).*/{
12136 s//\1/
12137 q
12138 }
12139 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012140 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012141 ac_builddir=.
12142
Theodore Ts'oe1052142006-10-21 21:46:47 -040012143case "$ac_dir" in
12144.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12145*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012146 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012147 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012148 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012149 case $ac_top_builddir_sub in
12150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12152 esac ;;
12153esac
12154ac_abs_top_builddir=$ac_pwd
12155ac_abs_builddir=$ac_pwd$ac_dir_suffix
12156# for backward compatibility:
12157ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012158
12159case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012160 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012161 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012162 ac_top_srcdir=$ac_top_builddir_sub
12163 ac_abs_top_srcdir=$ac_pwd ;;
12164 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012165 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012166 ac_top_srcdir=$srcdir
12167 ac_abs_top_srcdir=$srcdir ;;
12168 *) # Relative name.
12169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12170 ac_top_srcdir=$ac_top_build_prefix$srcdir
12171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012172esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012173ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012174
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012175
Theodore Ts'oe1052142006-10-21 21:46:47 -040012176 case $ac_mode in
12177 :F)
12178 #
12179 # CONFIG_FILE
12180 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012181
12182 case $INSTALL in
12183 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012184 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012185 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012186_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012187
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012189# If the template does not know about datarootdir, expand it.
12190# FIXME: This hack should be removed a few years after 2.60.
12191ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012192ac_sed_dataroot='
12193/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012194 p
12195 q
12196}
12197/@datadir@/p
12198/@docdir@/p
12199/@infodir@/p
12200/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012201/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012202case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012203*datarootdir*) ac_datarootdir_seen=yes;;
12204*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012205 { $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 +010012206$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012207_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012209 ac_datarootdir_hack='
12210 s&@datadir@&$datadir&g
12211 s&@docdir@&$docdir&g
12212 s&@infodir@&$infodir&g
12213 s&@localedir@&$localedir&g
12214 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012215 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012216esac
12217_ACEOF
12218
12219# Neutralize VPATH when `$srcdir' = `.'.
12220# Shell code in configure.ac might set extrasub.
12221# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12223ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012224$extrasub
12225_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012227:t
12228/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012229s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012230s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012231s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012232s&@srcdir@&$ac_srcdir&;t t
12233s&@abs_srcdir@&$ac_abs_srcdir&;t t
12234s&@top_srcdir@&$ac_top_srcdir&;t t
12235s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12236s&@builddir@&$ac_builddir&;t t
12237s&@abs_builddir@&$ac_abs_builddir&;t t
12238s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12239s&@INSTALL@&$ac_INSTALL&;t t
12240$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012241"
12242eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12243if $ac_cs_awk_getline; then
12244 $AWK -f "$tmp/subs.awk"
12245else
12246 $AWK -f "$tmp/subs.awk" | $SHELL
12247fi >$tmp/out \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012248 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012249
Theodore Ts'oe1052142006-10-21 21:46:47 -040012250test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12251 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12252 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012253 { $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 -040012254which seems to be undefined. Please make sure it is defined." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012255$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012256which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012257
Theodore Ts'oe1052142006-10-21 21:46:47 -040012258 rm -f "$tmp/stdin"
12259 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012260 -) cat "$tmp/out" && rm -f "$tmp/out";;
12261 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12262 esac \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012263 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012264 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012265
12266
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012267 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012268$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012269 ;;
12270 esac
12271
12272
12273 case $ac_file$ac_mode in
12274 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012275 for ac_file in $CONFIG_FILES; do
12276 # Support "outfile[:infile[:infile...]]"
12277 case "$ac_file" in
12278 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012279 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012280 # PO directories have a Makefile.in generated from Makefile.in.in.
12281 case "$ac_file" in */Makefile.in)
12282 # Adjust a relative srcdir.
12283 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12284 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12285 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12286 # In autoconf-2.13 it is called $ac_given_srcdir.
12287 # In autoconf-2.50 it is called $srcdir.
12288 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12289 case "$ac_given_srcdir" in
12290 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12291 /*) top_srcdir="$ac_given_srcdir" ;;
12292 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12293 esac
12294 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12295 rm -f "$ac_dir/POTFILES"
12296 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12297 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 -050012298 POMAKEFILEDEPS="POTFILES.in"
12299 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012300 # on $ac_dir but don't depend on user-specified configuration
12301 # parameters.
12302 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12303 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012304 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012305 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12306 fi
12307 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12308 # Hide the ALL_LINGUAS assigment from automake.
12309 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012310 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12311 else
12312 # The set of available languages was given in configure.in.
12313 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012314 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012315 # Compute POFILES
12316 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12317 # Compute UPDATEPOFILES
12318 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12319 # Compute DUMMYPOFILES
12320 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12321 # Compute GMOFILES
12322 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012323 case "$ac_given_srcdir" in
12324 .) srcdirpre= ;;
12325 *) srcdirpre='$(srcdir)/' ;;
12326 esac
12327 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012328 UPDATEPOFILES=
12329 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012330 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012331 for lang in $ALL_LINGUAS; do
12332 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012333 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12334 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012335 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012336 done
12337 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12338 # environment variable.
12339 INST_LINGUAS=
12340 if test -n "$ALL_LINGUAS"; then
12341 for presentlang in $ALL_LINGUAS; do
12342 useit=no
12343 if test "%UNSET%" != "$LINGUAS"; then
12344 desiredlanguages="$LINGUAS"
12345 else
12346 desiredlanguages="$ALL_LINGUAS"
12347 fi
12348 for desiredlang in $desiredlanguages; do
12349 # Use the presentlang catalog if desiredlang is
12350 # a. equal to presentlang, or
12351 # b. a variant of presentlang (because in this case,
12352 # presentlang can be used as a fallback for messages
12353 # which are not translated in the desiredlang catalog).
12354 case "$desiredlang" in
12355 "$presentlang"*) useit=yes;;
12356 esac
12357 done
12358 if test $useit = yes; then
12359 INST_LINGUAS="$INST_LINGUAS $presentlang"
12360 fi
12361 done
12362 fi
12363 CATALOGS=
12364 if test -n "$INST_LINGUAS"; then
12365 for lang in $INST_LINGUAS; do
12366 CATALOGS="$CATALOGS $lang.gmo"
12367 done
12368 fi
12369 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012370 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 -040012371 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12372 if test -f "$f"; then
12373 case "$f" in
12374 *.orig | *.bak | *~) ;;
12375 *) cat "$f" >> "$ac_dir/Makefile" ;;
12376 esac
12377 fi
12378 done
12379 fi
12380 ;;
12381 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012382 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012383
Theodore Ts'oe1052142006-10-21 21:46:47 -040012384 esac
12385done # for ac_tag
12386
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012387
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012388as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012389_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012390ac_clean_files=$ac_clean_files_save
12391
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012392test $ac_write_fail = 0 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012393 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012394
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012395
12396# configure is writing to config.log, and then calls config.status.
12397# config.status does its own redirection, appending to config.log.
12398# Unfortunately, on DOS this fails, as config.log is still kept open
12399# by configure, so config.status won't be able to write to it; its
12400# output is simply discarded. So we exec the FD to /dev/null,
12401# effectively closing config.log, so it can be properly (re)opened and
12402# appended to by config.status. When coming back to configure, we
12403# need to make the FD available again.
12404if test "$no_create" != yes; then
12405 ac_cs_success=:
12406 ac_config_status_args=
12407 test "$silent" = yes &&
12408 ac_config_status_args="$ac_config_status_args --quiet"
12409 exec 5>/dev/null
12410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12411 exec 5>>config.log
12412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12413 # would make configure fail if this is the last instruction.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012414 $ac_cs_success || as_fn_exit $?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012415fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012416if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012418$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12419fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012420
Theodore Ts'oee683a12005-02-05 15:53:56 -050012421if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi