blob: ae599cd6e1620dee55304cc2d183d688df33eea9 [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
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400599INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100600DO_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
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400657EGREP
658GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100659RANLIB
660MSGMERGE
661XGETTEXT
662GMSGFMT
663MSGFMT
664USE_NLS
665MKINSTALLDIRS
666INSTALL_DATA
667INSTALL_SCRIPT
668INSTALL_PROGRAM
669SET_MAKE
670VERSION
671PACKAGE
672GETTEXT_PACKAGE
673UUIDD_CMT
674E2INITRD_MAN
675E2INITRD_PROG
676FSCK_MAN
677FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500678DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100679RESIZER_CMT
680IMAGER_CMT
681DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700682QUOTA_CMT
683DEPPROFILED_LIBQUOTA
684PROFILED_LIBQUOTA
685DEPSTATIC_LIBQUOTA
686STATIC_LIBQUOTA
687DEPLIBQUOTA
688LIBQUOTA
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100689BLKID_CMT
690DEPPROFILED_LIBBLKID
691PROFILED_LIBBLKID
692DEPSTATIC_LIBBLKID
693STATIC_LIBBLKID
694DEPLIBBLKID
695LIBBLKID
696UUID_CMT
697DEPPROFILED_LIBUUID
698PROFILED_LIBUUID
699DEPSTATIC_LIBUUID
700STATIC_LIBUUID
701DEPLIBUUID
702LIBUUID
703PKG_CONFIG
704TEST_IO_CMT
705PRIVATE_LIBS_CMT
706LDFLAG_DYNAMIC
707PROFILED_LIB_EXT
708STATIC_LIB_EXT
709LIB_EXT
710CHECKER_CMT
711PROFILE_CMT
712BSDLIB_CMT
713ELF_CMT
714HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400715Q
716E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400717LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400718SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400719LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100720MAINTAINER_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100721CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400722RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500723DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100724OBJEXT
725EXEEXT
726ac_ct_CC
727CPPFLAGS
728LDFLAGS
729CFLAGS
730CC
731host_os
732host_vendor
733host_cpu
734host
735build_os
736build_vendor
737build_cpu
738build
739E2FSPROGS_PKGVER
740E2FSPROGS_VERSION
741E2FSPROGS_DAY
742E2FSPROGS_MONTH
743E2FSPROGS_YEAR
744target_alias
745host_alias
746build_alias
747LIBS
748ECHO_T
749ECHO_N
750ECHO_C
751DEFS
752mandir
753localedir
754libdir
755psdir
756pdfdir
757dvidir
758htmldir
759infodir
760docdir
761oldincludedir
762includedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500774PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400782ac_subst_files='MCONFIG
783MAKEFILE_ELF
784MAKEFILE_BSDLIB
785MAKEFILE_PROFILE
786MAKEFILE_CHECKER
787MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400788ASM_TYPES_HEADER
789PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100790ac_user_opts='
791enable_option_checking
792with_diet_libc
793with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100794with_ccopts
795with_ldopts
796with_root_prefix
797enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400798enable_symlink_install
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400799enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400800enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400801enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100802enable_compression
803enable_htree
804enable_elf_shlibs
805enable_bsd_shlibs
806enable_profile
807enable_checker
808enable_jbd_debug
809enable_blkid_debug
810enable_testio_debug
811enable_libuuid
812enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500813enable_quota
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100814enable_debugfs
815enable_imager
816enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500817enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100818enable_fsck
819enable_e2initrd_helper
820enable_tls
821enable_uuidd
822enable_nls
823with_gnu_ld
824enable_rpath
825with_libiconv_prefix
826with_included_gettext
827with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400828with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100829'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400830 ac_precious_vars='build_alias
831host_alias
832target_alias
833CC
834CFLAGS
835LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400836LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400837CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400838CPP
839PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400840
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000841
842# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500843ac_init_help=
844ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100845ac_unrecognized_opts=
846ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000847# The variables have the same names as the options, with
848# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500849cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000850exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000851no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000852no_recursion=
853prefix=NONE
854program_prefix=NONE
855program_suffix=NONE
856program_transform_name=s,x,x,
857silent=
858site=
859srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000860verbose=
861x_includes=NONE
862x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500863
864# Installation directory options.
865# These are left unexpanded so users can "make install exec_prefix=/foo"
866# and all the variables that are supposed to be based on exec_prefix
867# by default will actually change.
868# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400869# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000870bindir='${exec_prefix}/bin'
871sbindir='${exec_prefix}/sbin'
872libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400873datarootdir='${prefix}/share'
874datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000875sysconfdir='${prefix}/etc'
876sharedstatedir='${prefix}/com'
877localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000878includedir='${prefix}/include'
879oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400880docdir='${datarootdir}/doc/${PACKAGE}'
881infodir='${datarootdir}/info'
882htmldir='${docdir}'
883dvidir='${docdir}'
884pdfdir='${docdir}'
885psdir='${docdir}'
886libdir='${exec_prefix}/lib'
887localedir='${datarootdir}/locale'
888mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000889
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000890ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400891ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000892for ac_option
893do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400896 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000897 ac_prev=
898 continue
899 fi
900
Theodore Ts'oe1052142006-10-21 21:46:47 -0400901 case $ac_option in
902 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *) ac_optarg=yes ;;
904 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000905
906 # Accept the important Cygnus configure options, so we can diagnose typos.
907
Theodore Ts'oe1052142006-10-21 21:46:47 -0400908 case $ac_dashdash$ac_option in
909 --)
910 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000911
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500915 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000916
917 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500918 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500920 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000921
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500927 cache_file=$ac_optarg ;;
928
929 --config-cache | -C)
930 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000931
Theodore Ts'oe1052142006-10-21 21:46:47 -0400932 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000933 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500935 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000936
Theodore Ts'oe1052142006-10-21 21:46:47 -0400937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
943
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000944 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000946 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500948 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953"enable_$ac_useropt"
954"*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400959
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
964
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000969
970 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000972 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500974 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979"enable_$ac_useropt"
980"*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500993 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001005
1006 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001007 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001008 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001009 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001010
Theodore Ts'oe1052142006-10-21 21:46:47 -04001011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001022 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001027 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001032 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001039 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001040
Theodore Ts'oe1052142006-10-21 21:46:47 -04001041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001046 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001047 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001051 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001056 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001057
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001063 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001077 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001078
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001082 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001089 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001096 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001113 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001114
Theodore Ts'oe1052142006-10-21 21:46:47 -04001115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001133 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001134
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001144 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001145
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001149 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001154 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001155
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001161 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001162
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001163 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001164 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001166 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001167
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1170
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001173
1174 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001176 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001178 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183"with_$ac_useropt"
1184"*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001189
1190 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001192 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001194 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199"with_$ac_useropt"
1200"*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001205
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1209
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001215 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001216
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001222 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001223
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001224 -*) as_fn_error "unrecognized option: \`$ac_option'
1225Try \`$0 --help' for more information."
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001226 ;;
1227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1234 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001235 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001236 export $ac_envvar ;;
1237
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001238 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001239 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001244 ;;
1245
1246 esac
1247done
1248
1249if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001251 as_fn_error "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001252fi
1253
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001254if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001257 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1260fi
1261
1262# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001263for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001267do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001268 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001276 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001279 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001280 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001281done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001282
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001283# There might be people who depend on the old broken behavior: `$host'
1284# used to hold the argument of --host etc.
1285# FIXME: To remove some day.
1286build=$build_alias
1287host=$host_alias
1288target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001289
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001290# FIXME: To remove some day.
1291if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001294 $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 -05001295 If a cross compiler is detected then cross compile mode will be used." >&2
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1298 fi
1299fi
1300
1301ac_tool_prefix=
1302test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304test "$silent" = yes && exec 6>/dev/null
1305
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001306
Theodore Ts'oe1052142006-10-21 21:46:47 -04001307ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308ac_ls_di=`ls -di .` &&
1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001310 as_fn_error "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001311test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001312 as_fn_error "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001313
1314
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001315# Find the source files, if location was not specified.
1316if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001318 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001342 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001343 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001344 srcdir=..
1345 fi
1346else
1347 ac_srcdir_defaulted=no
1348fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001349if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001351 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001352fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001353ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354ac_abs_confdir=`(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001356 pwd)`
1357# When building in place, set srcdir=.
1358if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1360fi
1361# Remove unnecessary trailing slashes from srcdir.
1362# Double slashes in file names in object file debugging info
1363# mess up M-x gdb in Emacs.
1364case $srcdir in
1365*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366esac
1367for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001373
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001374#
1375# Report the --help message.
1376#
1377if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381\`configure' configures this package to adapt to many kinds of systems.
1382
1383Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386VAR=VALUE. See below for descriptions of some of the useful variables.
1387
1388Defaults for the options are specified in brackets.
1389
1390Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001401Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001403 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001405 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001406
1407By default, \`make install' will install all the files in
1408\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410for instance \`--prefix=\$HOME'.
1411
1412For better control, use the options below.
1413
1414Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001434_ACEOF
1435
1436 cat <<\_ACEOF
1437
1438System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441_ACEOF
1442fi
1443
1444if test -n "$ac_init_help"; then
1445
1446 cat <<\_ACEOF
1447
1448Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001449 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001452 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001453 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001454 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001455 --enable-symlink-build use symlinks while building instead of hard links
1456 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001457 --enable-compression enable EXPERIMENTAL compression support
1458 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001459 --enable-elf-shlibs select ELF shared libraries
1460 --enable-bsd-shlibs select BSD shared libraries
1461 --enable-profile build profiling libraries
1462 --enable-checker build checker libraries
1463 --enable-jbd-debug enable journal debugging
1464 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001465 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001466 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001467 --disable-libblkid do not build private blkid library
Theodore Ts'o7becb202011-11-14 10:40:43 -05001468 --enable-libquota enable quota support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001469 --disable-debugfs disable support of debugfs program
1470 --disable-imager disable support of e2image program
1471 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001472 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001473 --enable-fsck build fsck wrapper program
1474 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001475 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001476 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001477 --disable-nls do not use Native Language Support
1478 --disable-rpath do not hardcode runtime library paths
1479
1480Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001483 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001484 --with-cc no longer supported, use CC= instead
1485 --with-ccopts no longer supported, use CFLAGS= instead
1486 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001487 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1488 --with-gnu-ld assume the C compiler uses GNU ld default=no
1489 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1490 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1491 --with-included-gettext use the GNU gettext library included here
1492 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1493 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001494 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001495
1496Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001501 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001503 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001504 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001505 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001506
1507Use these variables to override the choices made by `configure' or to help
1508it to find libraries and programs with nonstandard names/locations.
1509
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001510Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001511_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001512ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001513fi
1514
1515if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001518 test -d "$ac_dir" ||
1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001521 ac_builddir=.
1522
Theodore Ts'oe1052142006-10-21 21:46:47 -04001523case "$ac_dir" in
1524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001527 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 esac ;;
1533esac
1534ac_abs_top_builddir=$ac_pwd
1535ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536# for backward compatibility:
1537ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001538
1539case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001540 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001541 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001545 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1548 *) # Relative name.
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001552esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001554
Theodore Ts'oe1052142006-10-21 21:46:47 -04001555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001563 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001565 fi || ac_status=$?
1566 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001567 done
1568fi
1569
Theodore Ts'oe1052142006-10-21 21:46:47 -04001570test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001571if $ac_init_version; then
1572 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001573configure
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001574generated by GNU Autoconf 2.65
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001575
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001576Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001577This configure script is free software; the Free Software Foundation
1578gives unlimited permission to copy, distribute and modify it.
1579_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001580 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001581fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001582
1583## ------------------------ ##
1584## Autoconf initialization. ##
1585## ------------------------ ##
1586
1587# ac_fn_c_try_compile LINENO
1588# --------------------------
1589# Try to compile conftest.$ac_ext, and return whether this succeeded.
1590ac_fn_c_try_compile ()
1591{
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext
1594 if { { ac_try="$ac_compile"
1595case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_compile") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest.$ac_objext; then :
1613 ac_retval=0
1614else
1615 $as_echo "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=1
1619fi
1620 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001621 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001622
1623} # ac_fn_c_try_compile
1624
1625# ac_fn_c_try_link LINENO
1626# -----------------------
1627# Try to link conftest.$ac_ext, and return whether this succeeded.
1628ac_fn_c_try_link ()
1629{
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext conftest$ac_exeext
1632 if { { ac_try="$ac_link"
1633case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_link") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest$ac_exeext && {
1651 test "$cross_compiling" = yes ||
1652 $as_test_x conftest$ac_exeext
1653 }; then :
1654 ac_retval=0
1655else
1656 $as_echo "$as_me: failed program was:" >&5
1657sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1
1660fi
1661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1663 # interfere with the next link command; also delete a directory that is
1664 # left behind by Apple's compiler. We do this before executing the actions.
1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001667 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001668
1669} # ac_fn_c_try_link
1670
1671# ac_fn_c_try_cpp LINENO
1672# ----------------------
1673# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_cpp ()
1675{
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_cpp conftest.$ac_ext"
1678case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } >/dev/null && {
1693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 }; then :
1696 ac_retval=0
1697else
1698 $as_echo "$as_me: failed program was:" >&5
1699sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=1
1702fi
1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001704 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001705
1706} # ac_fn_c_try_cpp
1707
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001708# ac_fn_c_try_run LINENO
1709# ----------------------
1710# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711# that executables *can* be run.
1712ac_fn_c_try_run ()
1713{
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_link"
1716case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>&5
1723 ac_status=$?
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726 { { case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_try") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; }; }; then :
1736 ac_retval=0
1737else
1738 $as_echo "$as_me: program exited with status $ac_status" >&5
1739 $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=$ac_status
1743fi
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 as_fn_set_status $ac_retval
1747
1748} # ac_fn_c_try_run
1749
1750# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1751# -------------------------------------------
1752# Tests whether TYPE exists after having included INCLUDES, setting cache
1753# variable VAR accordingly.
1754ac_fn_c_check_type ()
1755{
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758$as_echo_n "checking for $2... " >&6; }
1759if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760 $as_echo_n "(cached) " >&6
1761else
1762 eval "$3=no"
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h. */
1765$4
1766int
1767main ()
1768{
1769if (sizeof ($2))
1770 return 0;
1771 ;
1772 return 0;
1773}
1774_ACEOF
1775if ac_fn_c_try_compile "$LINENO"; then :
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h. */
1778$4
1779int
1780main ()
1781{
1782if (sizeof (($2)))
1783 return 0;
1784 ;
1785 return 0;
1786}
1787_ACEOF
1788if ac_fn_c_try_compile "$LINENO"; then :
1789
1790else
1791 eval "$3=yes"
1792fi
1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796fi
1797eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799$as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801
1802} # ac_fn_c_check_type
1803
1804# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805# -------------------------------------------------------
1806# Tests whether HEADER exists and can be compiled using the include files in
1807# INCLUDES, setting the cache variable VAR accordingly.
1808ac_fn_c_check_header_compile ()
1809{
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814 $as_echo_n "(cached) " >&6
1815else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818$4
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822 eval "$3=yes"
1823else
1824 eval "$3=no"
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827fi
1828eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832
1833} # ac_fn_c_check_header_compile
1834
1835# ac_fn_c_check_func LINENO FUNC VAR
1836# ----------------------------------
1837# Tests whether FUNC exists, setting the cache variable VAR accordingly
1838ac_fn_c_check_func ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844 $as_echo_n "(cached) " >&6
1845else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850#define $2 innocuous_$2
1851
1852/* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1856
1857#ifdef __STDC__
1858# include <limits.h>
1859#else
1860# include <assert.h>
1861#endif
1862
1863#undef $2
1864
1865/* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868#ifdef __cplusplus
1869extern "C"
1870#endif
1871char $2 ();
1872/* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875#if defined __stub_$2 || defined __stub___$2
1876choke me
1877#endif
1878
1879int
1880main ()
1881{
1882return $2 ();
1883 ;
1884 return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889else
1890 eval "$3=no"
1891fi
1892rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899
1900} # ac_fn_c_check_func
1901
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001902# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1903# -------------------------------------------------------
1904# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1905# the include files in INCLUDES and setting the cache variable VAR
1906# accordingly.
1907ac_fn_c_check_header_mongrel ()
1908{
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
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
1915fi
1916eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918$as_echo "$ac_res" >&6; }
1919else
1920 # Is the header compilable?
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1922$as_echo_n "checking $2 usability... " >&6; }
1923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925$4
1926#include <$2>
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"; then :
1929 ac_header_compiler=yes
1930else
1931 ac_header_compiler=no
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1935$as_echo "$ac_header_compiler" >&6; }
1936
1937# Is the header present?
1938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1939$as_echo_n "checking $2 presence... " >&6; }
1940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h. */
1942#include <$2>
1943_ACEOF
1944if ac_fn_c_try_cpp "$LINENO"; then :
1945 ac_header_preproc=yes
1946else
1947 ac_header_preproc=no
1948fi
1949rm -f conftest.err conftest.$ac_ext
1950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1951$as_echo "$ac_header_preproc" >&6; }
1952
1953# So? What about this header?
1954case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1955 yes:no: )
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1957$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 ;;
1961 no:yes:* )
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1963$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1965$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1967$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1969$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 ;;
1973esac
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
1976if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977 $as_echo_n "(cached) " >&6
1978else
1979 eval "$3=\$ac_header_compiler"
1980fi
1981eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983$as_echo "$ac_res" >&6; }
1984fi
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986
1987} # ac_fn_c_check_header_mongrel
1988
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001989# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1990# --------------------------------------------
1991# Tries to find the compile-time value of EXPR in a program that includes
1992# INCLUDES, setting VAR accordingly. Returns whether the value could be
1993# computed
1994ac_fn_c_compute_int ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 if test "$cross_compiling" = yes; then
1998 # Depending upon the size, compute the lo and hi bounds.
1999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h. */
2001$4
2002int
2003main ()
2004{
2005static int test_array [1 - 2 * !(($2) >= 0)];
2006test_array [0] = 0
2007
2008 ;
2009 return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_lo=0 ac_mid=0
2014 while :; do
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$4
2018int
2019main ()
2020{
2021static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2022test_array [0] = 0
2023
2024 ;
2025 return 0;
2026}
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_hi=$ac_mid; break
2030else
2031 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2032 if test $ac_lo -le $ac_mid; then
2033 ac_lo= ac_hi=
2034 break
2035 fi
2036 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 done
2040else
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h. */
2043$4
2044int
2045main ()
2046{
2047static int test_array [1 - 2 * !(($2) < 0)];
2048test_array [0] = 0
2049
2050 ;
2051 return 0;
2052}
2053_ACEOF
2054if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_hi=-1 ac_mid=-1
2056 while :; do
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059$4
2060int
2061main ()
2062{
2063static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2064test_array [0] = 0
2065
2066 ;
2067 return 0;
2068}
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_lo=$ac_mid; break
2072else
2073 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2074 if test $ac_mid -le $ac_hi; then
2075 ac_lo= ac_hi=
2076 break
2077 fi
2078 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082else
2083 ac_lo= ac_hi=
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088# Binary search between lo and hi bounds.
2089while test "x$ac_lo" != "x$ac_hi"; do
2090 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h. */
2093$4
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2098test_array [0] = 0
2099
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_hi=$ac_mid
2106else
2107 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2108fi
2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110done
2111case $ac_lo in #((
2112?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2113'') ac_retval=1 ;;
2114esac
2115 else
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h. */
2118$4
2119static long int longval () { return $2; }
2120static unsigned long int ulongval () { return $2; }
2121#include <stdio.h>
2122#include <stdlib.h>
2123int
2124main ()
2125{
2126
2127 FILE *f = fopen ("conftest.val", "w");
2128 if (! f)
2129 return 1;
2130 if (($2) < 0)
2131 {
2132 long int i = longval ();
2133 if (i != ($2))
2134 return 1;
2135 fprintf (f, "%ld", i);
2136 }
2137 else
2138 {
2139 unsigned long int i = ulongval ();
2140 if (i != ($2))
2141 return 1;
2142 fprintf (f, "%lu", i);
2143 }
2144 /* Do not output a trailing newline, as this causes \r\n confusion
2145 on some platforms. */
2146 return ferror (f) || fclose (f) != 0;
2147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_run "$LINENO"; then :
2153 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2154else
2155 ac_retval=1
2156fi
2157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2158 conftest.$ac_objext conftest.beam conftest.$ac_ext
2159rm -f conftest.val
2160
2161 fi
2162 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002163 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002164
2165} # ac_fn_c_compute_int
2166
2167# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2168# ----------------------------------------------------
2169# Tries to find if the field MEMBER exists in type AGGR, after including
2170# INCLUDES, setting cache variable VAR accordingly.
2171ac_fn_c_check_member ()
2172{
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2175$as_echo_n "checking for $2.$3... " >&6; }
2176if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2177 $as_echo_n "(cached) " >&6
2178else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$5
2182int
2183main ()
2184{
2185static $2 ac_aggr;
2186if (ac_aggr.$3)
2187return 0;
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193 eval "$4=yes"
2194else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h. */
2197$5
2198int
2199main ()
2200{
2201static $2 ac_aggr;
2202if (sizeof ac_aggr.$3)
2203return 0;
2204 ;
2205 return 0;
2206}
2207_ACEOF
2208if ac_fn_c_try_compile "$LINENO"; then :
2209 eval "$4=yes"
2210else
2211 eval "$4=no"
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216fi
2217eval ac_res=\$$4
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221
2222} # ac_fn_c_check_member
2223
2224# ac_fn_c_check_decl LINENO SYMBOL VAR
2225# ------------------------------------
2226# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2227ac_fn_c_check_decl ()
2228{
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2231$as_echo_n "checking whether $2 is declared... " >&6; }
2232if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 $as_echo_n "(cached) " >&6
2234else
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h. */
2237$4
2238int
2239main ()
2240{
2241#ifndef $2
2242 (void) $2;
2243#endif
2244
2245 ;
2246 return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_compile "$LINENO"; then :
2250 eval "$3=yes"
2251else
2252 eval "$3=no"
2253fi
2254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255fi
2256eval ac_res=\$$3
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258$as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260
2261} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002262cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002263This file contains any messages produced by compilers while
2264running configure, to aid debugging if configure makes a mistake.
2265
2266It was created by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002267generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002268
2269 $ $0 $@
2270
2271_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002272exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002273{
2274cat <<_ASUNAME
2275## --------- ##
2276## Platform. ##
2277## --------- ##
2278
2279hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283uname -v = `(uname -v) 2>/dev/null || echo unknown`
2284
2285/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2287
2288/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2289/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2290/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002291/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002292/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2293/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2294/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2295
2296_ASUNAME
2297
2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299for as_dir in $PATH
2300do
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002303 $as_echo "PATH: $as_dir"
2304 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002305IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002306
2307} >&5
2308
2309cat >&5 <<_ACEOF
2310
2311
2312## ----------- ##
2313## Core tests. ##
2314## ----------- ##
2315
2316_ACEOF
2317
2318
2319# Keep a trace of the command line.
2320# Strip out --no-create and --no-recursion so they do not pile up.
2321# Strip out --silent because we don't want to record it for future runs.
2322# Also quote any args containing shell meta-characters.
2323# Make two passes to allow for proper duplicate-argument suppression.
2324ac_configure_args=
2325ac_configure_args0=
2326ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002327ac_must_keep_next=false
2328for ac_pass in 1 2
2329do
2330 for ac_arg
2331 do
2332 case $ac_arg in
2333 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2335 | -silent | --silent | --silen | --sile | --sil)
2336 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002337 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002338 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002339 esac
2340 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002341 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002342 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002343 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002344 if test $ac_must_keep_next = true; then
2345 ac_must_keep_next=false # Got value, back to normal.
2346 else
2347 case $ac_arg in
2348 *=* | --config-cache | -C | -disable-* | --disable-* \
2349 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2350 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2351 | -with-* | --with-* | -without-* | --without-* | --x)
2352 case "$ac_configure_args0 " in
2353 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2354 esac
2355 ;;
2356 -* ) ac_must_keep_next=true ;;
2357 esac
2358 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002359 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002360 ;;
2361 esac
2362 done
2363done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002364{ ac_configure_args0=; unset ac_configure_args0;}
2365{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002366
2367# When interrupted or exit'd, cleanup temporary files, and complete
2368# config.log. We remove comments because anyway the quotes in there
2369# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002370# WARNING: Use '\'' to represent an apostrophe within the trap.
2371# 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 -05002372trap 'exit_status=$?
2373 # Save into config.log some information that might help in debugging.
2374 {
2375 echo
2376
2377 cat <<\_ASBOX
2378## ---------------- ##
2379## Cache variables. ##
2380## ---------------- ##
2381_ASBOX
2382 echo
2383 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002384(
2385 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2386 eval ac_val=\$$ac_var
2387 case $ac_val in #(
2388 *${as_nl}*)
2389 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002390 *_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 +01002391$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002392 esac
2393 case $ac_var in #(
2394 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002396 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002397 esac ;;
2398 esac
2399 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002400 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002401 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2402 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002403 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002404 "s/'\''/'\''\\\\'\'''\''/g;
2405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2406 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002407 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002409 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002410 esac |
2411 sort
2412)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002413 echo
2414
2415 cat <<\_ASBOX
2416## ----------------- ##
2417## Output variables. ##
2418## ----------------- ##
2419_ASBOX
2420 echo
2421 for ac_var in $ac_subst_vars
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
2431 if test -n "$ac_subst_files"; then
2432 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04002433## ------------------- ##
2434## File substitutions. ##
2435## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002436_ASBOX
2437 echo
2438 for ac_var in $ac_subst_files
2439 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002440 eval ac_val=\$$ac_var
2441 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002442 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002443 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002444 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002445 done | sort
2446 echo
2447 fi
2448
2449 if test -s confdefs.h; then
2450 cat <<\_ASBOX
2451## ----------- ##
2452## confdefs.h. ##
2453## ----------- ##
2454_ASBOX
2455 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002456 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002457 echo
2458 fi
2459 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002460 $as_echo "$as_me: caught signal $ac_signal"
2461 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002462 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002463 rm -f core *.core core.conftest.* &&
2464 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002465 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002466' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002467for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002468 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002469done
2470ac_signal=0
2471
2472# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002473rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002474
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002475$as_echo "/* confdefs.h */" > confdefs.h
2476
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477# Predefined preprocessor variables.
2478
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_NAME "$PACKAGE_NAME"
2481_ACEOF
2482
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2485_ACEOF
2486
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_VERSION "$PACKAGE_VERSION"
2489_ACEOF
2490
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491cat >>confdefs.h <<_ACEOF
2492#define PACKAGE_STRING "$PACKAGE_STRING"
2493_ACEOF
2494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002495cat >>confdefs.h <<_ACEOF
2496#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2497_ACEOF
2498
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002499cat >>confdefs.h <<_ACEOF
2500#define PACKAGE_URL "$PACKAGE_URL"
2501_ACEOF
2502
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002503
2504# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002505# Prefer an explicitly selected file to automatically selected ones.
2506ac_site_file1=NONE
2507ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002508if test -n "$CONFIG_SITE"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002509 ac_site_file1=$CONFIG_SITE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002510elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002511 ac_site_file1=$prefix/share/config.site
2512 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002513else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002514 ac_site_file1=$ac_default_prefix/share/config.site
2515 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002516fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002517for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002518do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002519 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002520 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002522$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002523 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002524 . "$ac_site_file"
2525 fi
2526done
2527
2528if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002529 # Some versions of bash will fail to source /dev/null (special files
2530 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2531 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002533$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002534 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002535 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2536 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002537 esac
2538 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002541$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 >$cache_file
2543fi
2544
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002545as_fn_append ac_header_list " stdlib.h"
2546as_fn_append ac_header_list " unistd.h"
2547as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002548# Check that the precious variables saved in the cache have kept the same
2549# value.
2550ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002551for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002552 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2553 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002554 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2555 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002556 case $ac_old_set,$ac_new_set in
2557 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002558 { $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 +01002559$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 -05002560 ac_cache_corrupted=: ;;
2561 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002562 { $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 +01002563$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002564 ac_cache_corrupted=: ;;
2565 ,);;
2566 *)
2567 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002568 # differences in whitespace do not lead to failure.
2569 ac_old_val_w=`echo x $ac_old_val`
2570 ac_new_val_w=`echo x $ac_new_val`
2571 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002572 { $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 +01002573$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2574 ac_cache_corrupted=:
2575 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002576 { $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 +01002577$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2578 eval $ac_var=\$ac_old_val
2579 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002580 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002581$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002582 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002583$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002584 fi;;
2585 esac
2586 # Pass precious variables to config.status.
2587 if test "$ac_new_set" = set; then
2588 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002589 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002590 *) ac_arg=$ac_var=$ac_new_val ;;
2591 esac
2592 case " $ac_configure_args " in
2593 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002594 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002595 esac
2596 fi
2597done
2598if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002601 { $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 +01002602$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002603 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002604fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002605## -------------------- ##
2606## Main body of script. ##
2607## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002608
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002609ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002610ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002614
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002615
2616
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002617ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002618for ac_dir in config "$srcdir"/config; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002619 for ac_t in install-sh install.sh shtool; do
2620 if test -f "$ac_dir/$ac_t"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/$ac_t -c"
2623 break 2
2624 fi
2625 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002626done
2627if test -z "$ac_aux_dir"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002628 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 +00002629fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002630
2631# These three variables are undocumented and unsupported,
2632# and are intended to be withdrawn in a future Autoconf release.
2633# They can cause serious problems if a builder's source tree is in a directory
2634# whose full name contains unusual characters.
2635ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2636ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2637ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2638
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002639
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002640ac_config_headers="$ac_config_headers lib/config.h"
2641
2642
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002643MCONFIG=./MCONFIG
2644
Theodore Ts'o74becf31997-04-26 14:37:06 +00002645BINARY_TYPE=bin
2646E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2647 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2648DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2649 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002650E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002651MONTH=`echo $DATE | awk -F- '{print $2}'`
2652YEAR=`echo $DATE | awk -F- '{print $3}'`
2653
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002654if expr $YEAR ">" 1900 > /dev/null ; then
2655 E2FSPROGS_YEAR=$YEAR
2656elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002657 E2FSPROGS_YEAR=19$YEAR
2658else
2659 E2FSPROGS_YEAR=20$YEAR
2660fi
2661
2662case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002663Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2664Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2665Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2666Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2667May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2668Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2669Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2670Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2671Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2672Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2673Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2674Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002675*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002676$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002677esac
2678
Andreas Dilger927566a2006-11-12 19:41:25 -05002679base_ver=`echo $E2FSPROGS_VERSION | \
2680 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002681
2682date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2683
2684case $E2FSPROGS_VERSION in
2685*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002686 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002687 ;;
2688*)
2689 E2FSPROGS_PKGVER="$base_ver"
2690 ;;
2691esac
2692
2693unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002694{ $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 +01002695$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002697$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002698
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002699
2700
2701
Andreas Dilger927566a2006-11-12 19:41:25 -05002702
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002703# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002704$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002705 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002706
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002708$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002709if test "${ac_cv_build+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002710 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002711else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002712 ac_build_alias=$build_alias
2713test "x$ac_build_alias" = x &&
2714 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2715test "x$ac_build_alias" = x &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002716 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002717ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002718 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002719
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002720fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002722$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002723case $ac_cv_build in
2724*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002725*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002726esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002727build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002728ac_save_IFS=$IFS; IFS='-'
2729set x $ac_cv_build
2730shift
2731build_cpu=$1
2732build_vendor=$2
2733shift; shift
2734# Remember, the first character of IFS is used to create $*,
2735# except with old shells:
2736build_os=$*
2737IFS=$ac_save_IFS
2738case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002739
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002740
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002742$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002743if test "${ac_cv_host+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002744 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002745else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002746 if test "x$host_alias" = x; then
2747 ac_cv_host=$ac_cv_build
2748else
2749 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002750 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002751fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002752
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002753fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002755$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002756case $ac_cv_host in
2757*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002758*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002759esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002760host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002761ac_save_IFS=$IFS; IFS='-'
2762set x $ac_cv_host
2763shift
2764host_cpu=$1
2765host_vendor=$2
2766shift; shift
2767# Remember, the first character of IFS is used to create $*,
2768# except with old shells:
2769host_os=$*
2770IFS=$ac_save_IFS
2771case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002772
2773
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002774DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002775ac_ext=c
2776ac_cpp='$CPP $CPPFLAGS'
2777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2782set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002784$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002785if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002786 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002787else
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2790else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792for as_dir in $PATH
2793do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002796 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002797 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 -05002798 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002800 break 2
2801 fi
2802done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002803 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002804IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002805
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002806fi
2807fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002808CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002809if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002811$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002812else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002814$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002815fi
2816
Theodore Ts'oe1052142006-10-21 21:46:47 -04002817
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002818fi
2819if test -z "$ac_cv_prog_CC"; then
2820 ac_ct_CC=$CC
2821 # Extract the first word of "gcc", so it can be a program name with args.
2822set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002824$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002825if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002826 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002827else
2828 if test -n "$ac_ct_CC"; then
2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002836 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002837 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 -05002838 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002840 break 2
2841 fi
2842done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002843 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002844IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002845
2846fi
2847fi
2848ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002851$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002852else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002854$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002855fi
2856
Theodore Ts'oe1052142006-10-21 21:46:47 -04002857 if test "x$ac_ct_CC" = x; then
2858 CC=""
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002862{ $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 +01002863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002864ac_tool_warned=yes ;;
2865esac
2866 CC=$ac_ct_CC
2867 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002868else
2869 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002870fi
2871
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002872if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002873 if test -n "$ac_tool_prefix"; then
2874 # 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 -05002875set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002877$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002878if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002879 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002880else
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2883else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002889 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002890 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 -05002891 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002893 break 2
2894 fi
2895done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002896 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002897IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002898
2899fi
2900fi
2901CC=$ac_cv_prog_CC
2902if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002904$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002905else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002907$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002908fi
2909
Theodore Ts'oe1052142006-10-21 21:46:47 -04002910
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002911 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002912fi
2913if test -z "$CC"; then
2914 # Extract the first word of "cc", so it can be a program name with args.
2915set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002917$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002918if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002919 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002920else
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2923else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002924 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002930 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002931 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 -05002932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2933 ac_prog_rejected=yes
2934 continue
2935 fi
2936 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002938 break 2
2939 fi
2940done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002941 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002942IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002943
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002944if test $ac_prog_rejected = yes; then
2945 # We found a bogon in the path, so make sure we never use it.
2946 set dummy $ac_cv_prog_CC
2947 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002948 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002949 # We chose a different compiler from the bogus one.
2950 # However, it has the same basename, so the bogon will be chosen
2951 # first if we set CC to just the basename; use the full file name.
2952 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002953 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002954 fi
2955fi
2956fi
2957fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002958CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002959if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002961$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002962else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002964$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002965fi
2966
Theodore Ts'oe1052142006-10-21 21:46:47 -04002967
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002968fi
2969if test -z "$CC"; then
2970 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002971 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002972 do
2973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2974set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002976$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002977if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002978 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002979else
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002988 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002989 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 -05002990 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002992 break 2
2993 fi
2994done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002995 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002996IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002997
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002998fi
2999fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003000CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003001if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003003$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003004else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003006$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003007fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008
Theodore Ts'oe1052142006-10-21 21:46:47 -04003009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003010 test -n "$CC" && break
3011 done
3012fi
3013if test -z "$CC"; then
3014 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003015 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003016do
3017 # Extract the first word of "$ac_prog", so it can be a program name with args.
3018set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003020$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003021if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003022 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003023else
3024 if test -n "$ac_ct_CC"; then
3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026else
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003032 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003033 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 -05003034 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003037 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003039 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003040IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003041
3042fi
3043fi
3044ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003047$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003048else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003050$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003051fi
3052
Theodore Ts'oe1052142006-10-21 21:46:47 -04003053
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003054 test -n "$ac_ct_CC" && break
3055done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003056
Theodore Ts'oe1052142006-10-21 21:46:47 -04003057 if test "x$ac_ct_CC" = x; then
3058 CC=""
3059 else
3060 case $cross_compiling:$ac_tool_warned in
3061yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003062{ $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 +01003063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003064ac_tool_warned=yes ;;
3065esac
3066 CC=$ac_ct_CC
3067 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003068fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003070fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003071
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003072
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003073test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003075as_fn_error "no acceptable C compiler found in \$PATH
3076See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003077
3078# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003079$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003080set X $ac_compile
3081ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003082for ac_option in --version -v -V -qversion; do
3083 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003084case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089$as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003091 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003092 if test -s conftest.err; then
3093 sed '10a\
3094... rest of stderr output deleted ...
3095 10q' conftest.err >conftest.er1
3096 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003097 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003098 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }
3101done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003102
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003104/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003105
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003106int
3107main ()
3108{
3109
3110 ;
3111 return 0;
3112}
3113_ACEOF
3114ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003115ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003116# Try to create an executable without -o first, disregard a.out.
3117# It will help us diagnose broken compilers, and finding out an intuition
3118# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3120$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003121ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3122
3123# The possible output files:
3124ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3125
Theodore Ts'oe1052142006-10-21 21:46:47 -04003126ac_rmfiles=
3127for ac_file in $ac_files
3128do
3129 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3132 esac
3133done
3134rm -f $ac_rmfiles
3135
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003136if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003143 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003144 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003147 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3148# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3149# in a Makefile. We should not override ac_cv_exeext if it was cached,
3150# so that the user can short-circuit this test for compilers unknown to
3151# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003152for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003153do
3154 test -f "$ac_file" || continue
3155 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003157 ;;
3158 [ab].out )
3159 # We found the default executable, but exeext='' is most
3160 # certainly right.
3161 break;;
3162 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003163 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003164 then :; else
3165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 fi
3167 # We set ac_cv_exeext here because the later test for it is not
3168 # safe: cross compilers may not add the suffix if given an `-o'
3169 # argument, so we may need to know it at that point already.
3170 # Even if this section looks crufty: it has the advantage of
3171 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003172 break;;
3173 * )
3174 break;;
3175 esac
3176done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003177test "$ac_cv_exeext" = no && ac_cv_exeext=
3178
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003179else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003180 ac_file=''
3181fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003182if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184$as_echo "no" >&6; }
3185$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003186sed 's/^/| /' conftest.$ac_ext >&5
3187
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003188{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003190{ as_fn_set_status 77
3191as_fn_error "C compiler cannot create executables
3192See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003193else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003196fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3198$as_echo_n "checking for C compiler default output file name... " >&6; }
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3200$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003201ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003202
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003203rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003204ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003206$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003207if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003208case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003214 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003215 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003218 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3219# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3220# work properly (i.e., refer to `conftest.exe'), while it won't with
3221# `rm'.
3222for ac_file in conftest.exe conftest conftest.*; do
3223 test -f "$ac_file" || continue
3224 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003227 break;;
3228 * ) break;;
3229 esac
3230done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003231else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003234as_fn_error "cannot compute suffix of executables: cannot compile and link
3235See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003236fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003237rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003239$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003240
3241rm -f conftest.$ac_ext
3242EXEEXT=$ac_cv_exeext
3243ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h. */
3246#include <stdio.h>
3247int
3248main ()
3249{
3250FILE *f = fopen ("conftest.out", "w");
3251 return ferror (f) || fclose (f) != 0;
3252
3253 ;
3254 return 0;
3255}
3256_ACEOF
3257ac_clean_files="$ac_clean_files conftest.out"
3258# Check that the compiler produces executables we can run. If not, either
3259# the compiler is broken, or we cross compile.
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3261$as_echo_n "checking whether we are cross compiling... " >&6; }
3262if test "$cross_compiling" != yes; then
3263 { { ac_try="$ac_link"
3264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }
3274 if { ac_try='./conftest$ac_cv_exeext'
3275 { { case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_try") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; }; then
3285 cross_compiling=no
3286 else
3287 if test "$cross_compiling" = maybe; then
3288 cross_compiling=yes
3289 else
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292as_fn_error "cannot run C compiled programs.
3293If you meant to cross compile, use \`--host'.
3294See \`config.log' for more details." "$LINENO" 5; }
3295 fi
3296 fi
3297fi
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3299$as_echo "$cross_compiling" >&6; }
3300
3301rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3302ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003304$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003305if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003306 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003307else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003309/* end confdefs.h. */
3310
3311int
3312main ()
3313{
3314
3315 ;
3316 return 0;
3317}
3318_ACEOF
3319rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003320if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003321case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003327 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003328 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003331 for ac_file in conftest.o conftest.obj conftest.*; do
3332 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003333 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3336 break;;
3337 esac
3338done
3339else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003340 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003341sed 's/^/| /' conftest.$ac_ext >&5
3342
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003343{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003345as_fn_error "cannot compute suffix of object files: cannot compile
3346See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003347fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003348rm -f conftest.$ac_cv_objext conftest.$ac_ext
3349fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003351$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003352OBJEXT=$ac_cv_objext
3353ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003354{ $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 +01003355$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003356if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003357 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003358else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003360/* end confdefs.h. */
3361
3362int
3363main ()
3364{
3365#ifndef __GNUC__
3366 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003367#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003368
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003369 ;
3370 return 0;
3371}
3372_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003373if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003374 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003375else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003376 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003377fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003379ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003380
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003381fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003383$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3384if test $ac_compiler_gnu = yes; then
3385 GCC=yes
3386else
3387 GCC=
3388fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003389ac_test_CFLAGS=${CFLAGS+set}
3390ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003392$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003393if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003394 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003395else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003396 ac_save_c_werror_flag=$ac_c_werror_flag
3397 ac_c_werror_flag=yes
3398 ac_cv_prog_cc_g=no
3399 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003401/* end confdefs.h. */
3402
3403int
3404main ()
3405{
3406
3407 ;
3408 return 0;
3409}
3410_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003411if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003412 ac_cv_prog_cc_g=yes
3413else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003414 CFLAGS=""
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003416/* end confdefs.h. */
3417
3418int
3419main ()
3420{
3421
3422 ;
3423 return 0;
3424}
3425_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003426if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003427
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003428else
3429 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003430 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003432/* end confdefs.h. */
3433
3434int
3435main ()
3436{
3437
3438 ;
3439 return 0;
3440}
3441_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003442if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003443 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003444fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003446fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 ac_c_werror_flag=$ac_save_c_werror_flag
3451fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003453$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003454if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003455 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003456elif test $ac_cv_prog_cc_g = yes; then
3457 if test "$GCC" = yes; then
3458 CFLAGS="-g -O2"
3459 else
3460 CFLAGS="-g"
3461 fi
3462else
3463 if test "$GCC" = yes; then
3464 CFLAGS="-O2"
3465 else
3466 CFLAGS=
3467 fi
3468fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003470$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003471if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003472 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003473else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003474 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003475ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003477/* end confdefs.h. */
3478#include <stdarg.h>
3479#include <stdio.h>
3480#include <sys/types.h>
3481#include <sys/stat.h>
3482/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3483struct buf { int x; };
3484FILE * (*rcsopen) (struct buf *, struct stat *, int);
3485static char *e (p, i)
3486 char **p;
3487 int i;
3488{
3489 return p[i];
3490}
3491static char *f (char * (*g) (char **, int), char **p, ...)
3492{
3493 char *s;
3494 va_list v;
3495 va_start (v,p);
3496 s = g (p, va_arg (v,int));
3497 va_end (v);
3498 return s;
3499}
3500
3501/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3502 function prototypes and stuff, but not '\xHH' hex character constants.
3503 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003504 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003505 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3506 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003507 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003508int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3509
Theodore Ts'oe1052142006-10-21 21:46:47 -04003510/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3511 inside strings and character constants. */
3512#define FOO(x) 'x'
3513int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3514
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003515int test (int i, double x);
3516struct s1 {int (*f) (int a);};
3517struct s2 {int (*f) (double a);};
3518int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3519int argc;
3520char **argv;
3521int
3522main ()
3523{
3524return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3525 ;
3526 return 0;
3527}
3528_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003529for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3530 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003531do
3532 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003533 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003534 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003535fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003536rm -f core conftest.err conftest.$ac_objext
3537 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003538done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003539rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003540CC=$ac_save_CC
3541
3542fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003543# AC_CACHE_VAL
3544case "x$ac_cv_prog_cc_c89" in
3545 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003547$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003548 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003550$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003551 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003552 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003554$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003555esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003556if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003557
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003558fi
3559
3560ac_ext=c
3561ac_cpp='$CPP $CPPFLAGS'
3562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565
3566
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3568$as_echo_n "checking for dlopen in -ldl... " >&6; }
3569if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3571else
3572 ac_check_lib_save_LIBS=$LIBS
3573LIBS="-ldl $LIBS"
3574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h. */
3576
3577/* Override any GCC internal prototype to avoid an error.
3578 Use char because int might match the return type of a GCC
3579 builtin and then its argument prototype would still apply. */
3580#ifdef __cplusplus
3581extern "C"
3582#endif
3583char dlopen ();
3584int
3585main ()
3586{
3587return dlopen ();
3588 ;
3589 return 0;
3590}
3591_ACEOF
3592if ac_fn_c_try_link "$LINENO"; then :
3593 ac_cv_lib_dl_dlopen=yes
3594else
3595 ac_cv_lib_dl_dlopen=no
3596fi
3597rm -f core conftest.err conftest.$ac_objext \
3598 conftest$ac_exeext conftest.$ac_ext
3599LIBS=$ac_check_lib_save_LIBS
3600fi
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3602$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3603if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3604 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003605
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003606$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3607
3608fi
3609
3610
3611WITH_DIET_LIBC=
3612
3613# Check whether --with-diet-libc was given.
3614if test "${with_diet_libc+set}" = set; then :
3615 withval=$with_diet_libc; CC="diet cc -nostdinc"
3616WITH_DIET_LIBC=yes
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3618$as_echo "CC=$CC" >&6; }
3619fi
3620
3621# Check whether --with-cc was given.
3622if test "${with_cc+set}" = set; then :
3623 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3624fi
3625
3626
3627# Check whether --with-ccopts was given.
3628if test "${with_ccopts+set}" = set; then :
3629 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3630fi
3631
3632
3633# Check whether --with-ldopts was given.
3634if test "${with_ldopts+set}" = set; then :
3635 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3636fi
3637
3638ac_ext=c
3639ac_cpp='$CPP $CPPFLAGS'
3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3645set dummy ${ac_tool_prefix}gcc; ac_word=$2
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647$as_echo_n "checking for $ac_word... " >&6; }
3648if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650else
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653else
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH
3656do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3664 fi
3665done
3666 done
3667IFS=$as_save_IFS
3668
3669fi
3670fi
3671CC=$ac_cv_prog_CC
3672if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674$as_echo "$CC" >&6; }
3675else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677$as_echo "no" >&6; }
3678fi
3679
3680
3681fi
3682if test -z "$ac_cv_prog_CC"; then
3683 ac_ct_CC=$CC
3684 # Extract the first word of "gcc", so it can be a program name with args.
3685set dummy gcc; ac_word=$2
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687$as_echo_n "checking for $ac_word... " >&6; }
3688if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3690else
3691 if test -n "$ac_ct_CC"; then
3692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3693else
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_ac_ct_CC="gcc"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705done
3706 done
3707IFS=$as_save_IFS
3708
3709fi
3710fi
3711ac_ct_CC=$ac_cv_prog_ac_ct_CC
3712if test -n "$ac_ct_CC"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3714$as_echo "$ac_ct_CC" >&6; }
3715else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717$as_echo "no" >&6; }
3718fi
3719
3720 if test "x$ac_ct_CC" = x; then
3721 CC=""
3722 else
3723 case $cross_compiling:$ac_tool_warned in
3724yes:)
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727ac_tool_warned=yes ;;
3728esac
3729 CC=$ac_ct_CC
3730 fi
3731else
3732 CC="$ac_cv_prog_CC"
3733fi
3734
3735if test -z "$CC"; then
3736 if test -n "$ac_tool_prefix"; then
3737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3738set dummy ${ac_tool_prefix}cc; ac_word=$2
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740$as_echo_n "checking for $ac_word... " >&6; }
3741if test "${ac_cv_prog_CC+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3743else
3744 if test -n "$CC"; then
3745 ac_cv_prog_CC="$CC" # Let the user override the test.
3746else
3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH
3749do
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754 ac_cv_prog_CC="${ac_tool_prefix}cc"
3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 break 2
3757 fi
3758done
3759 done
3760IFS=$as_save_IFS
3761
3762fi
3763fi
3764CC=$ac_cv_prog_CC
3765if test -n "$CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3767$as_echo "$CC" >&6; }
3768else
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770$as_echo "no" >&6; }
3771fi
3772
3773
3774 fi
3775fi
3776if test -z "$CC"; then
3777 # Extract the first word of "cc", so it can be a program name with args.
3778set dummy cc; ac_word=$2
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780$as_echo_n "checking for $ac_word... " >&6; }
3781if test "${ac_cv_prog_CC+set}" = set; then :
3782 $as_echo_n "(cached) " >&6
3783else
3784 if test -n "$CC"; then
3785 ac_cv_prog_CC="$CC" # Let the user override the test.
3786else
3787 ac_prog_rejected=no
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3796 ac_prog_rejected=yes
3797 continue
3798 fi
3799 ac_cv_prog_CC="cc"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803done
3804 done
3805IFS=$as_save_IFS
3806
3807if test $ac_prog_rejected = yes; then
3808 # We found a bogon in the path, so make sure we never use it.
3809 set dummy $ac_cv_prog_CC
3810 shift
3811 if test $# != 0; then
3812 # We chose a different compiler from the bogus one.
3813 # However, it has the same basename, so the bogon will be chosen
3814 # first if we set CC to just the basename; use the full file name.
3815 shift
3816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3817 fi
3818fi
3819fi
3820fi
3821CC=$ac_cv_prog_CC
3822if test -n "$CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824$as_echo "$CC" >&6; }
3825else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827$as_echo "no" >&6; }
3828fi
3829
3830
3831fi
3832if test -z "$CC"; then
3833 if test -n "$ac_tool_prefix"; then
3834 for ac_prog in cl.exe
3835 do
3836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839$as_echo_n "checking for $ac_word... " >&6; }
3840if test "${ac_cv_prog_CC+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3842else
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC="$CC" # Let the user override the test.
3845else
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
3848do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857done
3858 done
3859IFS=$as_save_IFS
3860
3861fi
3862fi
3863CC=$ac_cv_prog_CC
3864if test -n "$CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866$as_echo "$CC" >&6; }
3867else
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869$as_echo "no" >&6; }
3870fi
3871
3872
3873 test -n "$CC" && break
3874 done
3875fi
3876if test -z "$CC"; then
3877 ac_ct_CC=$CC
3878 for ac_prog in cl.exe
3879do
3880 # Extract the first word of "$ac_prog", so it can be a program name with args.
3881set dummy $ac_prog; ac_word=$2
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883$as_echo_n "checking for $ac_word... " >&6; }
3884if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3886else
3887 if test -n "$ac_ct_CC"; then
3888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3889else
3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH
3892do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897 ac_cv_prog_ac_ct_CC="$ac_prog"
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901done
3902 done
3903IFS=$as_save_IFS
3904
3905fi
3906fi
3907ac_ct_CC=$ac_cv_prog_ac_ct_CC
3908if test -n "$ac_ct_CC"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3910$as_echo "$ac_ct_CC" >&6; }
3911else
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913$as_echo "no" >&6; }
3914fi
3915
3916
3917 test -n "$ac_ct_CC" && break
3918done
3919
3920 if test "x$ac_ct_CC" = x; then
3921 CC=""
3922 else
3923 case $cross_compiling:$ac_tool_warned in
3924yes:)
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3927ac_tool_warned=yes ;;
3928esac
3929 CC=$ac_ct_CC
3930 fi
3931fi
3932
3933fi
3934
3935
3936test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938as_fn_error "no acceptable C compiler found in \$PATH
3939See \`config.log' for more details." "$LINENO" 5; }
3940
3941# Provide some information about the compiler.
3942$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3943set X $ac_compile
3944ac_compiler=$2
3945for ac_option in --version -v -V -qversion; do
3946 { { ac_try="$ac_compiler $ac_option >&5"
3947case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950esac
3951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952$as_echo "$ac_try_echo"; } >&5
3953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3954 ac_status=$?
3955 if test -s conftest.err; then
3956 sed '10a\
3957... rest of stderr output deleted ...
3958 10q' conftest.err >conftest.er1
3959 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003960 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003961 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }
3964done
3965
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3967$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3968if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3969 $as_echo_n "(cached) " >&6
3970else
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972/* end confdefs.h. */
3973
3974int
3975main ()
3976{
3977#ifndef __GNUC__
3978 choke me
3979#endif
3980
3981 ;
3982 return 0;
3983}
3984_ACEOF
3985if ac_fn_c_try_compile "$LINENO"; then :
3986 ac_compiler_gnu=yes
3987else
3988 ac_compiler_gnu=no
3989fi
3990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991ac_cv_c_compiler_gnu=$ac_compiler_gnu
3992
3993fi
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3995$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3996if test $ac_compiler_gnu = yes; then
3997 GCC=yes
3998else
3999 GCC=
4000fi
4001ac_test_CFLAGS=${CFLAGS+set}
4002ac_save_CFLAGS=$CFLAGS
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4004$as_echo_n "checking whether $CC accepts -g... " >&6; }
4005if test "${ac_cv_prog_cc_g+set}" = set; then :
4006 $as_echo_n "(cached) " >&6
4007else
4008 ac_save_c_werror_flag=$ac_c_werror_flag
4009 ac_c_werror_flag=yes
4010 ac_cv_prog_cc_g=no
4011 CFLAGS="-g"
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013/* end confdefs.h. */
4014
4015int
4016main ()
4017{
4018
4019 ;
4020 return 0;
4021}
4022_ACEOF
4023if ac_fn_c_try_compile "$LINENO"; then :
4024 ac_cv_prog_cc_g=yes
4025else
4026 CFLAGS=""
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h. */
4029
4030int
4031main ()
4032{
4033
4034 ;
4035 return 0;
4036}
4037_ACEOF
4038if ac_fn_c_try_compile "$LINENO"; then :
4039
4040else
4041 ac_c_werror_flag=$ac_save_c_werror_flag
4042 CFLAGS="-g"
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044/* end confdefs.h. */
4045
4046int
4047main ()
4048{
4049
4050 ;
4051 return 0;
4052}
4053_ACEOF
4054if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_cv_prog_cc_g=yes
4056fi
4057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058fi
4059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060fi
4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 ac_c_werror_flag=$ac_save_c_werror_flag
4063fi
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4065$as_echo "$ac_cv_prog_cc_g" >&6; }
4066if test "$ac_test_CFLAGS" = set; then
4067 CFLAGS=$ac_save_CFLAGS
4068elif test $ac_cv_prog_cc_g = yes; then
4069 if test "$GCC" = yes; then
4070 CFLAGS="-g -O2"
4071 else
4072 CFLAGS="-g"
4073 fi
4074else
4075 if test "$GCC" = yes; then
4076 CFLAGS="-O2"
4077 else
4078 CFLAGS=
4079 fi
4080fi
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4082$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4083if test "${ac_cv_prog_cc_c89+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4085else
4086 ac_cv_prog_cc_c89=no
4087ac_save_CC=$CC
4088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089/* end confdefs.h. */
4090#include <stdarg.h>
4091#include <stdio.h>
4092#include <sys/types.h>
4093#include <sys/stat.h>
4094/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4095struct buf { int x; };
4096FILE * (*rcsopen) (struct buf *, struct stat *, int);
4097static char *e (p, i)
4098 char **p;
4099 int i;
4100{
4101 return p[i];
4102}
4103static char *f (char * (*g) (char **, int), char **p, ...)
4104{
4105 char *s;
4106 va_list v;
4107 va_start (v,p);
4108 s = g (p, va_arg (v,int));
4109 va_end (v);
4110 return s;
4111}
4112
4113/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4114 function prototypes and stuff, but not '\xHH' hex character constants.
4115 These don't provoke an error unfortunately, instead are silently treated
4116 as 'x'. The following induces an error, until -std is added to get
4117 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4118 array size at least. It's necessary to write '\x00'==0 to get something
4119 that's true only with -std. */
4120int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4121
4122/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4123 inside strings and character constants. */
4124#define FOO(x) 'x'
4125int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4126
4127int test (int i, double x);
4128struct s1 {int (*f) (int a);};
4129struct s2 {int (*f) (double a);};
4130int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4131int argc;
4132char **argv;
4133int
4134main ()
4135{
4136return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4137 ;
4138 return 0;
4139}
4140_ACEOF
4141for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4142 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4143do
4144 CC="$ac_save_CC $ac_arg"
4145 if ac_fn_c_try_compile "$LINENO"; then :
4146 ac_cv_prog_cc_c89=$ac_arg
4147fi
4148rm -f core conftest.err conftest.$ac_objext
4149 test "x$ac_cv_prog_cc_c89" != "xno" && break
4150done
4151rm -f conftest.$ac_ext
4152CC=$ac_save_CC
4153
4154fi
4155# AC_CACHE_VAL
4156case "x$ac_cv_prog_cc_c89" in
4157 x)
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4159$as_echo "none needed" >&6; } ;;
4160 xno)
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4162$as_echo "unsupported" >&6; } ;;
4163 *)
4164 CC="$CC $ac_cv_prog_cc_c89"
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4166$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4167esac
4168if test "x$ac_cv_prog_cc_c89" != xno; then :
4169
4170fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004171
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004172ac_ext=c
4173ac_cpp='$CPP $CPPFLAGS'
4174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004178if test "$GCC" = yes; then
4179 RDYNAMIC="-rdynamic"
4180
4181fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004182ac_ext=c
4183ac_cpp='$CPP $CPPFLAGS'
4184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004188$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004189# On Suns, sometimes $CPP names a directory.
4190if test -n "$CPP" && test -d "$CPP"; then
4191 CPP=
4192fi
4193if test -z "$CPP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004194 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004195 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004196else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004197 # Double quotes because CPP needs to be expanded
4198 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4199 do
4200 ac_preproc_ok=false
4201for ac_c_preproc_warn_flag in '' yes
4202do
4203 # Use a header file that comes with gcc, so configuring glibc
4204 # with a fresh cross-compiler works.
4205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4206 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004207 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004208 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004210/* end confdefs.h. */
4211#ifdef __STDC__
4212# include <limits.h>
4213#else
4214# include <assert.h>
4215#endif
4216 Syntax error
4217_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004218if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004219
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004220else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004221 # Broken: fails on valid input.
4222continue
4223fi
4224rm -f conftest.err conftest.$ac_ext
4225
Theodore Ts'oe1052142006-10-21 21:46:47 -04004226 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004227 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004229/* end confdefs.h. */
4230#include <ac_nonexistent.h>
4231_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004232if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004233 # Broken: success on invalid input.
4234continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004235else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004236 # Passes both tests.
4237ac_preproc_ok=:
4238break
4239fi
4240rm -f conftest.err conftest.$ac_ext
4241
4242done
4243# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4244rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004245if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004246 break
4247fi
4248
4249 done
4250 ac_cv_prog_CPP=$CPP
4251
4252fi
4253 CPP=$ac_cv_prog_CPP
4254else
4255 ac_cv_prog_CPP=$CPP
4256fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004258$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004259ac_preproc_ok=false
4260for ac_c_preproc_warn_flag in '' yes
4261do
4262 # Use a header file that comes with gcc, so configuring glibc
4263 # with a fresh cross-compiler works.
4264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4265 # <limits.h> exists even on freestanding compilers.
4266 # On the NeXT, cc -E runs the code through the compiler's parser,
4267 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004269/* end confdefs.h. */
4270#ifdef __STDC__
4271# include <limits.h>
4272#else
4273# include <assert.h>
4274#endif
4275 Syntax error
4276_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004277if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004278
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004279else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004280 # Broken: fails on valid input.
4281continue
4282fi
4283rm -f conftest.err conftest.$ac_ext
4284
Theodore Ts'oe1052142006-10-21 21:46:47 -04004285 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004286 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004288/* end confdefs.h. */
4289#include <ac_nonexistent.h>
4290_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004291if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004292 # Broken: success on invalid input.
4293continue
4294else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004295 # Passes both tests.
4296ac_preproc_ok=:
4297break
4298fi
4299rm -f conftest.err conftest.$ac_ext
4300
4301done
4302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4303rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004304if $ac_preproc_ok; then :
4305
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004306else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004309as_fn_error "C preprocessor \"$CPP\" fails sanity check
4310See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004311fi
4312
4313ac_ext=c
4314ac_cpp='$CPP $CPPFLAGS'
4315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004320$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004321if test "$GCC" = yes
4322then
4323 case "$host_cpu" in
4324 alpha) addcflags="-mieee" ;;
4325 esac
4326fi
4327if test "x$addcflags" != x
4328then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004330$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004331 CFLAGS="$addcflags $CFLAGS"
4332else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004334$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004335fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004336LIB_EXT=.a
4337STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004338PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004339
Theodore Ts'oe1052142006-10-21 21:46:47 -04004340# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004341if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004342 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004343else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004344 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004345fi
4346# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004347if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004348 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004349then
4350 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004352$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004353else
4354 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004356$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004357fi
4358
4359else
4360 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004362$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004363
Theodore Ts'oe1052142006-10-21 21:46:47 -04004364fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004365
Theodore Ts'oe1052142006-10-21 21:46:47 -04004366
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004367# Check whether --enable-symlink-install was given.
4368if test "${enable_symlink_install+set}" = set; then :
4369 enableval=$enable_symlink_install; if test "$enableval" = "no"
4370then
4371 LINK_INSTALL_FLAGS=-f
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4373$as_echo "Disabling symlinks for install" >&6; }
4374else
4375 LINK_INSTALL_FLAGS=-sf
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4377$as_echo "Enabling symlinks for install" >&6; }
4378fi
4379
4380else
4381 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4383$as_echo "Disabling symlinks for install by default" >&6; }
4384
4385fi
4386
4387
4388# Check whether --enable-symlink-relative-symlinks was given.
4389if test "${enable_symlink_relative_symlinks+set}" = set; then :
4390 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4391then
4392 SYMLINK_RELATIVE=
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4394$as_echo "Disabling relative symlinks for install" >&6; }
4395else
4396 SYMLINK_RELATIVE=--relative
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4398$as_echo "Enabling symlinks for install" >&6; }
4399fi
4400
4401else
4402 SYMLINK_RELATIVE=
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4404$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004405
4406fi
4407
4408
4409# Check whether --enable-symlink-build was given.
4410if test "${enable_symlink_build+set}" = set; then :
4411 enableval=$enable_symlink_build; if test "$enableval" = "no"
4412then
4413 LINK_BUILD_FLAGS=
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4415$as_echo "Disabling symlinks for build" >&6; }
4416else
4417 LINK_BUILD_FLAGS=-s
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4419$as_echo "Enabling symlinks for build" >&6; }
4420fi
4421
4422else
4423 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4425$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004426
4427fi
4428
4429
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004430# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004431if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004432 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4433then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004435$as_echo "Disabling verbose make commands" >&6; }
4436 E=@echo
4437 Q=@
4438else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004440$as_echo "Enabling verbose make commands" >&6; }
4441 E=@\\#
4442 Q=
4443fi
4444
4445else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004447$as_echo "Disabling verbose make commands" >&6; }
4448E=@echo
4449Q=@
4450
4451fi
4452
4453
4454
Theodore Ts'oe1052142006-10-21 21:46:47 -04004455# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004456if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004457 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004458then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004460$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004461else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004462
4463$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004466$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004468$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004469fi
4470
4471else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004473$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004474
Theodore Ts'oe1052142006-10-21 21:46:47 -04004475fi
4476
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004477
Theodore Ts'oe1052142006-10-21 21:46:47 -04004478# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004479if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004480 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004481then
4482 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004484$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004485else
4486 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004487 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004488
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004490$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004491fi
4492
4493else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004494 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004495$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004496
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004498$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004499
Theodore Ts'oe1052142006-10-21 21:46:47 -04004500fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004501
Theodore Ts'oe1052142006-10-21 21:46:47 -04004502
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004503E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004504LDFLAG_DYNAMIC=
4505PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004506# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004507if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004508 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004509then
4510 ELF_CMT=#
4511 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004513$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004514else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004515 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004516 ELF_CMT=
4517 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004518 case "$host_os" in
4519 solaris2.*)
4520 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4521 ;;
4522 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004523 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004524 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004525 PRIVATE_LIBS_CMT=#
4526 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004528$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004529fi
4530
4531else
4532 MAKEFILE_ELF=/dev/null
4533ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004535$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004536
Theodore Ts'oe1052142006-10-21 21:46:47 -04004537fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004538
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004539
Theodore Ts'oe1052142006-10-21 21:46:47 -04004540
4541# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004542if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004543 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004544then
4545 BSDLIB_CMT=#
4546 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004548$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004549else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004550 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004551 BSDLIB_CMT=
4552 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004553 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004554 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004555 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004556 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4557 LIB_EXT=.dylib
4558 ;;
4559 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004561$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004562fi
4563
4564else
4565 MAKEFILE_BSDLIB=/dev/null
4566BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004568$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004569
Theodore Ts'oe1052142006-10-21 21:46:47 -04004570fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004571
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004572
Theodore Ts'oe1052142006-10-21 21:46:47 -04004573
4574# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004575if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004576 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004577then
4578 PROFILE_CMT=#
4579 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004581$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004582else
4583 PROFILE_CMT=
4584 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4585 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004587$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004588fi
4589
4590else
4591 PROFILE_CMT=#
4592MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004594$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004595
Theodore Ts'oe1052142006-10-21 21:46:47 -04004596fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004597
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004598
Theodore Ts'oe1052142006-10-21 21:46:47 -04004599
4600# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004601if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004602 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004603then
4604 CHECKER_CMT=#
4605 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004607$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004608else
4609 CHECKER_CMT=
4610 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004612$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004613fi
4614
4615else
4616 CHECKER_CMT=#
4617MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004619$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004620
Theodore Ts'oe1052142006-10-21 21:46:47 -04004621fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004622
4623
4624
4625
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004626
Theodore Ts'oe1052142006-10-21 21:46:47 -04004627
Theodore Ts'o55da9872008-09-02 23:12:38 -04004628
4629
Theodore Ts'oe1052142006-10-21 21:46:47 -04004630# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004631if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004632 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004633then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004635$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004636else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004637
4638$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004639
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004641$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004642fi
4643
4644else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004646$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004647
Theodore Ts'oe1052142006-10-21 21:46:47 -04004648fi
4649
4650# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004651if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004652 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004653then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004655$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004656else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004657
4658$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004659
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004661$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004662fi
4663
4664else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004666$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004667
Theodore Ts'oe1052142006-10-21 21:46:47 -04004668fi
4669
4670# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004671if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004672 enableval=$enable_testio_debug;
4673if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004674then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004676$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004677 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004678else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004679 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004680 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004681
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004683$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004684fi
4685
4686else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004688$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004689$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004690
4691TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004692
Theodore Ts'oe1052142006-10-21 21:46:47 -04004693fi
4694
Theodore Ts'oaf773652008-09-01 11:27:27 -04004695
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004696
4697
4698if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4699 if test -n "$ac_tool_prefix"; then
4700 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4701set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004703$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004704if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004705 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004706else
4707 case $PKG_CONFIG in
4708 [\\/]* | ?:[\\/]*)
4709 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4710 ;;
4711 *)
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713for as_dir in $PATH
4714do
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004717 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004721 break 2
4722 fi
4723done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004724 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004725IFS=$as_save_IFS
4726
4727 ;;
4728esac
4729fi
4730PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4731if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004733$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004734else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004736$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004737fi
4738
4739
4740fi
4741if test -z "$ac_cv_path_PKG_CONFIG"; then
4742 ac_pt_PKG_CONFIG=$PKG_CONFIG
4743 # Extract the first word of "pkg-config", so it can be a program name with args.
4744set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004746$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004747if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004748 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004749else
4750 case $ac_pt_PKG_CONFIG in
4751 [\\/]* | ?:[\\/]*)
4752 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4753 ;;
4754 *)
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004760 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004764 break 2
4765 fi
4766done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004767 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004768IFS=$as_save_IFS
4769
4770 ;;
4771esac
4772fi
4773ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4774if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004776$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004777else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004779$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004780fi
4781
4782 if test "x$ac_pt_PKG_CONFIG" = x; then
4783 PKG_CONFIG=""
4784 else
4785 case $cross_compiling:$ac_tool_warned in
4786yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004787{ $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 +01004788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004789ac_tool_warned=yes ;;
4790esac
4791 PKG_CONFIG=$ac_pt_PKG_CONFIG
4792 fi
4793else
4794 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4795fi
4796
4797fi
4798if test -n "$PKG_CONFIG"; then
4799 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004800 { $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 +01004801$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004802 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004804$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004805 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004807$as_echo "no" >&6; }
4808 PKG_CONFIG=""
4809 fi
4810
4811fi
4812LIBUUID=
4813DEPLIBUUID=
4814STATIC_LIBUUID=
4815DEPSTATIC_LIBUUID=
4816PROFILED_LIBUUID=
4817DEPPROFILED_LIBUUID=
4818UUID_CMT=
4819# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004820if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004821 enableval=$enable_libuuid; if test "$enableval" = "no"
4822then
4823 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004824 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004825 fi
4826
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004828$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004829if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004830 $as_echo_n "(cached) " >&6
4831else
4832 ac_check_lib_save_LIBS=$LIBS
4833LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004835/* end confdefs.h. */
4836
4837/* Override any GCC internal prototype to avoid an error.
4838 Use char because int might match the return type of a GCC
4839 builtin and then its argument prototype would still apply. */
4840#ifdef __cplusplus
4841extern "C"
4842#endif
4843char uuid_generate ();
4844int
4845main ()
4846{
4847return uuid_generate ();
4848 ;
4849 return 0;
4850}
4851_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004852if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004853 ac_cv_lib_uuid_uuid_generate=yes
4854else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004855 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004856fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004857rm -f core conftest.err conftest.$ac_objext \
4858 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004859LIBS=$ac_check_lib_save_LIBS
4860fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004862$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004863if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004864 LIBUUID=`$PKG_CONFIG --libs uuid`;
4865 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4866else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004867 as_fn_error "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004868fi
4869
4870 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004872$as_echo "Disabling private uuid library" >&6; }
4873else
4874 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4875 DEPLIBUUID=$LIBUUID
4876 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4877 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4878 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4879 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004881$as_echo "Enabling private uuid library" >&6; }
4882fi
4883
4884else
4885 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4886DEPLIBUUID=$LIBUUID
4887STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4888DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4889PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4890DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004892$as_echo "Enabling private uuid library by default" >&6; }
4893
4894fi
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4906 if test -n "$ac_tool_prefix"; then
4907 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4908set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004910$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004911if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004912 $as_echo_n "(cached) " >&6
4913else
4914 case $PKG_CONFIG in
4915 [\\/]* | ?:[\\/]*)
4916 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4917 ;;
4918 *)
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004924 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004928 break 2
4929 fi
4930done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004931 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004932IFS=$as_save_IFS
4933
4934 ;;
4935esac
4936fi
4937PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4938if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004940$as_echo "$PKG_CONFIG" >&6; }
4941else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004943$as_echo "no" >&6; }
4944fi
4945
4946
4947fi
4948if test -z "$ac_cv_path_PKG_CONFIG"; then
4949 ac_pt_PKG_CONFIG=$PKG_CONFIG
4950 # Extract the first word of "pkg-config", so it can be a program name with args.
4951set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004953$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004954if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004955 $as_echo_n "(cached) " >&6
4956else
4957 case $ac_pt_PKG_CONFIG in
4958 [\\/]* | ?:[\\/]*)
4959 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4960 ;;
4961 *)
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963for as_dir in $PATH
4964do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004967 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004971 break 2
4972 fi
4973done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004974 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004975IFS=$as_save_IFS
4976
4977 ;;
4978esac
4979fi
4980ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4981if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004983$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4984else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004986$as_echo "no" >&6; }
4987fi
4988
4989 if test "x$ac_pt_PKG_CONFIG" = x; then
4990 PKG_CONFIG=""
4991 else
4992 case $cross_compiling:$ac_tool_warned in
4993yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004994{ $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 +01004995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4996ac_tool_warned=yes ;;
4997esac
4998 PKG_CONFIG=$ac_pt_PKG_CONFIG
4999 fi
5000else
5001 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5002fi
5003
5004fi
5005if test -n "$PKG_CONFIG"; then
5006 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005007 { $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 +01005008$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5009 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005011$as_echo "yes" >&6; }
5012 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005014$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005015 PKG_CONFIG=""
5016 fi
5017
5018fi
5019LIBBLKID=
5020DEPLIBBLKID=
5021STATIC_LIBBLKID=
5022DEPSTATIC_LIBBLKID=
5023PROFILED_LIBBLKID=
5024DEPPROFILED_LIBBLKID=
5025BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005026
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005027# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005028if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005029 enableval=$enable_libblkid; if test "$enableval" = "no"
5030then
5031 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005032 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005033 fi
5034
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005036$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005037if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005038 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005039else
5040 ac_check_lib_save_LIBS=$LIBS
5041LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005043/* end confdefs.h. */
5044
5045/* Override any GCC internal prototype to avoid an error.
5046 Use char because int might match the return type of a GCC
5047 builtin and then its argument prototype would still apply. */
5048#ifdef __cplusplus
5049extern "C"
5050#endif
5051char blkid_get_cache ();
5052int
5053main ()
5054{
5055return blkid_get_cache ();
5056 ;
5057 return 0;
5058}
5059_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005060if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005061 ac_cv_lib_blkid_blkid_get_cache=yes
5062else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005063 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005064fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005065rm -f core conftest.err conftest.$ac_objext \
5066 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005067LIBS=$ac_check_lib_save_LIBS
5068fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005070$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005071if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005072 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5073 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5074else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005075 as_fn_error "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005076fi
5077
5078 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005080$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005081else
5082 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5083 DEPLIBBLKID=$LIBBLKID
5084 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5085 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5086 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5087 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005088 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005089
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005091$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005092fi
5093
5094else
5095 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5096DEPLIBBLKID=$LIBBLKID
5097STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5098DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5099PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5100DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005101$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005102
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005104$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005105
5106fi
5107
5108
5109
5110
5111
5112
5113
5114
Aditya Kalif239fef2011-07-20 11:40:02 -07005115
5116
5117if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5120set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122$as_echo_n "checking for $ac_word... " >&6; }
5123if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
5125else
5126 case $PKG_CONFIG in
5127 [\\/]* | ?:[\\/]*)
5128 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5129 ;;
5130 *)
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132for as_dir in $PATH
5133do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5141 fi
5142done
5143 done
5144IFS=$as_save_IFS
5145
5146 ;;
5147esac
5148fi
5149PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5150if test -n "$PKG_CONFIG"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5152$as_echo "$PKG_CONFIG" >&6; }
5153else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155$as_echo "no" >&6; }
5156fi
5157
5158
5159fi
5160if test -z "$ac_cv_path_PKG_CONFIG"; then
5161 ac_pt_PKG_CONFIG=$PKG_CONFIG
5162 # Extract the first word of "pkg-config", so it can be a program name with args.
5163set dummy pkg-config; ac_word=$2
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165$as_echo_n "checking for $ac_word... " >&6; }
5166if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168else
5169 case $ac_pt_PKG_CONFIG in
5170 [\\/]* | ?:[\\/]*)
5171 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5172 ;;
5173 *)
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5184 fi
5185done
5186 done
5187IFS=$as_save_IFS
5188
5189 ;;
5190esac
5191fi
5192ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5193if test -n "$ac_pt_PKG_CONFIG"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5195$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5196else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198$as_echo "no" >&6; }
5199fi
5200
5201 if test "x$ac_pt_PKG_CONFIG" = x; then
5202 PKG_CONFIG=""
5203 else
5204 case $cross_compiling:$ac_tool_warned in
5205yes:)
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5208ac_tool_warned=yes ;;
5209esac
5210 PKG_CONFIG=$ac_pt_PKG_CONFIG
5211 fi
5212else
5213 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5214fi
5215
5216fi
5217if test -n "$PKG_CONFIG"; then
5218 _pkg_min_version=0.9.0
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5220$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5221 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223$as_echo "yes" >&6; }
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227 PKG_CONFIG=""
5228 fi
5229
5230fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005231
5232# Check whether --enable-quota was given.
5233if test "${enable_quota+set}" = set; then :
5234 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005235then
Theodore Ts'o7becb202011-11-14 10:40:43 -05005236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5237$as_echo "Disabling quota support" >&6; }
5238else
5239 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005240
Theodore Ts'o7becb202011-11-14 10:40:43 -05005241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5242$as_echo "Enabling quota support" >&6; }
Aditya Kalif239fef2011-07-20 11:40:02 -07005243fi
5244
5245else
Theodore Ts'o7becb202011-11-14 10:40:43 -05005246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5247$as_echo "Disabling quota support by default" >&6; }
5248
5249fi
5250
5251LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005252DEPLIBQUOTA=$LIBQUOTA
5253STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5254DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5255PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5256DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005257
5258
5259
5260
5261
5262
5263
Theodore Ts'oe1052142006-10-21 21:46:47 -04005264# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005265if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005266 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005267then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005269$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005270 DEBUGFS_CMT="#"
5271else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005272 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005274$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005275fi
5276
5277else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005279$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005280DEBUGFS_CMT=
5281
Theodore Ts'oe1052142006-10-21 21:46:47 -04005282fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005283
Theodore Ts'oe1052142006-10-21 21:46:47 -04005284
5285# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005286if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005287 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005288then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005290$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005291 IMAGER_CMT="#"
5292else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005293 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005295$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005296fi
5297
5298else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005300$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005301IMAGER_CMT=
5302
Theodore Ts'oe1052142006-10-21 21:46:47 -04005303fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005304
Theodore Ts'oe1052142006-10-21 21:46:47 -04005305
5306# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005307if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005308 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005309then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005311$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005312 RESIZER_CMT="#"
5313else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005314 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005316$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005317fi
5318
5319else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005321$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005322RESIZER_CMT=
5323
Theodore Ts'oe1052142006-10-21 21:46:47 -04005324fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005325
Theodore Ts'oe1052142006-10-21 21:46:47 -04005326
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005327# Check whether --enable-defrag was given.
5328if test "${enable_defrag+set}" = set; then :
5329 enableval=$enable_defrag; if test "$enableval" = "no"
5330then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5332$as_echo "Disabling e4defrag support" >&6; }
5333 DEFRAG_CMT="#"
5334else
5335 DEFRAG_CMT=
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5337$as_echo "Enabling e4defrag support" >&6; }
5338fi
5339
5340else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5342$as_echo "Enabling e4defrag support by default" >&6; }
5343DEFRAG_CMT=
5344
5345fi
5346
5347
Theodore Ts'oe1052142006-10-21 21:46:47 -04005348# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005349if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005350 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005351then
5352 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005354$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005355else
5356 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005358$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005359fi
5360
5361else
5362 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005363 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005364 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005366$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005367 ;;
5368 *)
5369 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005371$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005372esac
5373
Theodore Ts'oe1052142006-10-21 21:46:47 -04005374fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005375
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005376
Theodore Ts'oe1052142006-10-21 21:46:47 -04005377
5378# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005379if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005380 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005381then
5382 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005384$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005385else
5386 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005388$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005389fi
5390
5391else
5392 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005394$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005395
Theodore Ts'oe1052142006-10-21 21:46:47 -04005396fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005397
5398
Theodore Ts'oe1052142006-10-21 21:46:47 -04005399
Theodore Ts'o32493942007-12-31 10:45:01 -05005400# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005401if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005402 enableval=$enable_tls; if test "$enableval" = "no"
5403then
5404 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005406$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005407else
5408 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005410$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005411fi
5412
5413else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005414 if test -n "$WITH_DIET_LIBC"
5415then
5416 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005417 { $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 +01005418$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005419else
5420 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005422$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005423fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005424
5425fi
5426
5427if test "$try_tls" = "yes"
5428then
5429
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005431$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005432 if test "${ac_cv_tls+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005433 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005434else
5435
5436 ax_tls_keywords="__thread __declspec(thread) none"
5437 for ax_tls_keyword in $ax_tls_keywords; do
5438 case $ax_tls_keyword in
5439 none) ac_cv_tls=none ; break ;;
5440 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005442/* end confdefs.h. */
5443#include <stdlib.h>
5444 static void
5445 foo(void) {
5446 static $ax_tls_keyword int bar;
5447 exit(1);
5448 }
5449int
5450main ()
5451{
5452
5453 ;
5454 return 0;
5455}
5456_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005457if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005458 ac_cv_tls=$ax_tls_keyword ; break
5459else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005460 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005461
5462fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 esac
5465 done
5466
5467fi
5468
5469
5470 if test "$ac_cv_tls" != "none"; then
5471
5472cat >>confdefs.h <<_ACEOF
5473#define TLS $ac_cv_tls
5474_ACEOF
5475
5476 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005478$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005479
5480fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005481
Theodore Ts'o5610f992007-12-31 11:16:56 -05005482# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005483if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005484 enableval=$enable_uuidd; if test "$enableval" = "no"
5485then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005487$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005488 UUIDD_CMT="#"
5489else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005490 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005491
5492 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005494$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005495fi
5496
5497else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005498 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005499
5500UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005502$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005503
5504fi
5505
5506
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005507MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5508
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005509GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005510PACKAGE=e2fsprogs
5511VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005512VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005514cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005515#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005516_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005517
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005519cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005520#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005521_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005522
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005523
5524
5525
5526
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005528$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5529set x ${MAKE-make}
5530ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005531if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005532 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005533else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005534 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005535SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005536all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005537 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005538_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005539# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005540case `${MAKE-make} -f conftest.make 2>/dev/null` in
5541 *@@@%%%=?*=@@@%%%*)
5542 eval ac_cv_prog_make_${ac_make}_set=yes;;
5543 *)
5544 eval ac_cv_prog_make_${ac_make}_set=no;;
5545esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005546rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005547fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005548if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005550$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005551 SET_MAKE=
5552else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005554$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005555 SET_MAKE="MAKE=${MAKE-make}"
5556fi
5557
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005558# Find a good install program. We prefer a C program (faster),
5559# so one script is as good as another. But avoid the broken or
5560# incompatible versions:
5561# SysV /etc/install, /usr/sbin/install
5562# SunOS /usr/etc/install
5563# IRIX /sbin/install
5564# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005565# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005566# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5567# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5568# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005569# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005570# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005571# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005573$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005574if test -z "$INSTALL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005575if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005576 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005577else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005583 # Account for people who put trailing slashes in PATH elements.
5584case $as_dir/ in #((
5585 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005587 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005588 /usr/ucb/* ) ;;
5589 *)
5590 # OSF1 and SCO ODT 3.0 have their own names for install.
5591 # Don't use installbsd from OSF since it installs stuff as root
5592 # by default.
5593 for ac_prog in ginstall scoinst install; do
5594 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005595 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 -04005596 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005598 # AIX install. It has an incompatible calling convention.
5599 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005600 elif test $ac_prog = install &&
5601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5602 # program-specific install script used by HP pwplus--don't use.
5603 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005604 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005605 rm -rf conftest.one conftest.two conftest.dir
5606 echo one > conftest.one
5607 echo two > conftest.two
5608 mkdir conftest.dir
5609 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5610 test -s conftest.one && test -s conftest.two &&
5611 test -s conftest.dir/conftest.one &&
5612 test -s conftest.dir/conftest.two
5613 then
5614 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5615 break 3
5616 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005617 fi
5618 fi
5619 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005620 done
5621 ;;
5622esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005623
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005624 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005625IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005626
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005627rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005628
5629fi
5630 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005631 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005632 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005633 # As a last resort, use the slow shell script. Don't cache a
5634 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005635 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005636 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005637 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005638 fi
5639fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005641$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005642
5643# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5644# It thinks the first close brace ends the variable substitution.
5645test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5646
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005647test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005648
5649test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5650
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005651
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005652 MKINSTALLDIRS=
5653 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005654 case "$ac_aux_dir" in
5655 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5656 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5657 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005658 fi
5659 if test -z "$MKINSTALLDIRS"; then
5660 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5661 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005662
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005663
5664
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005666$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005667 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005668if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005669 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005670else
5671 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005672fi
5673
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005675$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005676
5677
5678
5679
5680
5681
5682# Prepare PATH_SEPARATOR.
5683# The user is always right.
5684if test "${PATH_SEPARATOR+set}" != set; then
5685 echo "#! /bin/sh" >conf$$.sh
5686 echo "exit 0" >>conf$$.sh
5687 chmod +x conf$$.sh
5688 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5689 PATH_SEPARATOR=';'
5690 else
5691 PATH_SEPARATOR=:
5692 fi
5693 rm -f conf$$.sh
5694fi
5695
5696# Find out how to test for executable files. Don't use a zero-byte file,
5697# as systems may use methods other than mode bits to determine executability.
5698cat >conf$$.file <<_ASEOF
5699#! /bin/sh
5700exit 0
5701_ASEOF
5702chmod +x conf$$.file
5703if test -x conf$$.file >/dev/null 2>&1; then
5704 ac_executable_p="test -x"
5705else
5706 ac_executable_p="test -f"
5707fi
5708rm -f conf$$.file
5709
5710# Extract the first word of "msgfmt", so it can be a program name with args.
5711set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005713$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005714if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005715 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005716else
5717 case "$MSGFMT" in
5718 [\\/]* | ?:[\\/]*)
5719 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5720 ;;
5721 *)
5722 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5723 for ac_dir in $PATH; do
5724 IFS="$ac_save_IFS"
5725 test -z "$ac_dir" && ac_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5728 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5729 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5730 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5731 break 2
5732 fi
5733 fi
5734 done
5735 done
5736 IFS="$ac_save_IFS"
5737 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5738 ;;
5739esac
5740fi
5741MSGFMT="$ac_cv_path_MSGFMT"
5742if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005744$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005745else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005747$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005748fi
5749
5750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5751set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005753$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005754if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005755 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005756else
5757 case $GMSGFMT in
5758 [\\/]* | ?:[\\/]*)
5759 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5760 ;;
5761 *)
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005767 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005768 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 -05005769 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005771 break 2
5772 fi
5773done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005774 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005775IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005776
5777 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5778 ;;
5779esac
5780fi
5781GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005782if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005784$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005785else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005787$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005788fi
5789
5790
5791
Theodore Ts'oe1052142006-10-21 21:46:47 -04005792
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005793# Prepare PATH_SEPARATOR.
5794# The user is always right.
5795if test "${PATH_SEPARATOR+set}" != set; then
5796 echo "#! /bin/sh" >conf$$.sh
5797 echo "exit 0" >>conf$$.sh
5798 chmod +x conf$$.sh
5799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5800 PATH_SEPARATOR=';'
5801 else
5802 PATH_SEPARATOR=:
5803 fi
5804 rm -f conf$$.sh
5805fi
5806
5807# Find out how to test for executable files. Don't use a zero-byte file,
5808# as systems may use methods other than mode bits to determine executability.
5809cat >conf$$.file <<_ASEOF
5810#! /bin/sh
5811exit 0
5812_ASEOF
5813chmod +x conf$$.file
5814if test -x conf$$.file >/dev/null 2>&1; then
5815 ac_executable_p="test -x"
5816else
5817 ac_executable_p="test -f"
5818fi
5819rm -f conf$$.file
5820
5821# Extract the first word of "xgettext", so it can be a program name with args.
5822set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005824$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005825if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005826 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005827else
5828 case "$XGETTEXT" in
5829 [\\/]* | ?:[\\/]*)
5830 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5831 ;;
5832 *)
5833 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5834 for ac_dir in $PATH; do
5835 IFS="$ac_save_IFS"
5836 test -z "$ac_dir" && ac_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5839 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5840 (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
5841 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5842 break 2
5843 fi
5844 fi
5845 done
5846 done
5847 IFS="$ac_save_IFS"
5848 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5849 ;;
5850esac
5851fi
5852XGETTEXT="$ac_cv_path_XGETTEXT"
5853if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005855$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005856else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005858$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005859fi
5860
5861 rm -f messages.po
5862
5863
5864# Prepare PATH_SEPARATOR.
5865# The user is always right.
5866if test "${PATH_SEPARATOR+set}" != set; then
5867 echo "#! /bin/sh" >conf$$.sh
5868 echo "exit 0" >>conf$$.sh
5869 chmod +x conf$$.sh
5870 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5871 PATH_SEPARATOR=';'
5872 else
5873 PATH_SEPARATOR=:
5874 fi
5875 rm -f conf$$.sh
5876fi
5877
5878# Find out how to test for executable files. Don't use a zero-byte file,
5879# as systems may use methods other than mode bits to determine executability.
5880cat >conf$$.file <<_ASEOF
5881#! /bin/sh
5882exit 0
5883_ASEOF
5884chmod +x conf$$.file
5885if test -x conf$$.file >/dev/null 2>&1; then
5886 ac_executable_p="test -x"
5887else
5888 ac_executable_p="test -f"
5889fi
5890rm -f conf$$.file
5891
5892# Extract the first word of "msgmerge", so it can be a program name with args.
5893set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005895$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005896if test "${ac_cv_path_MSGMERGE+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005897 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005898else
5899 case "$MSGMERGE" in
5900 [\\/]* | ?:[\\/]*)
5901 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5902 ;;
5903 *)
5904 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5905 for ac_dir in $PATH; do
5906 IFS="$ac_save_IFS"
5907 test -z "$ac_dir" && ac_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5910 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5911 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5912 break 2
5913 fi
5914 fi
5915 done
5916 done
5917 IFS="$ac_save_IFS"
5918 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5919 ;;
5920esac
5921fi
5922MSGMERGE="$ac_cv_path_MSGMERGE"
5923if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005925$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005926else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005928$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005929fi
5930
5931
5932 if test "$GMSGFMT" != ":"; then
5933 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5934 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5935 : ;
5936 else
5937 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005938 { $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 +01005939$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005940 GMSGFMT=":"
5941 fi
5942 fi
5943
5944 if test "$XGETTEXT" != ":"; then
5945 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5946 (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
5947 : ;
5948 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005949 { $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 +01005950$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005951 XGETTEXT=":"
5952 fi
5953 rm -f messages.po
5954 fi
5955
Theodore Ts'oe1052142006-10-21 21:46:47 -04005956 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005957
5958
5959if test -n "$ac_tool_prefix"; then
5960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5961set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005963$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005964if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005965 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005966else
5967 if test -n "$RANLIB"; then
5968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5969else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005975 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005976 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 -05005977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005979 break 2
5980 fi
5981done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005982 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005983IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005984
5985fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005986fi
5987RANLIB=$ac_cv_prog_RANLIB
5988if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005990$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005991else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005993$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005994fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005995
Theodore Ts'oe1052142006-10-21 21:46:47 -04005996
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005997fi
5998if test -z "$ac_cv_prog_RANLIB"; then
5999 ac_ct_RANLIB=$RANLIB
6000 # Extract the first word of "ranlib", so it can be a program name with args.
6001set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006003$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006004if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006005 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006006else
6007 if test -n "$ac_ct_RANLIB"; then
6008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006015 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006016 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 -05006017 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006019 break 2
6020 fi
6021done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006022 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006023IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006024
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006025fi
6026fi
6027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006030$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006031else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006033$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006034fi
6035
Theodore Ts'oe1052142006-10-21 21:46:47 -04006036 if test "x$ac_ct_RANLIB" = x; then
6037 RANLIB=":"
6038 else
6039 case $cross_compiling:$ac_tool_warned in
6040yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006041{ $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 +01006042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006043ac_tool_warned=yes ;;
6044esac
6045 RANLIB=$ac_ct_RANLIB
6046 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006047else
6048 RANLIB="$ac_cv_prog_RANLIB"
6049fi
6050
6051
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006053$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006054if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006055 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006056else
6057 ac_check_lib_save_LIBS=$LIBS
6058LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006060/* end confdefs.h. */
6061
Theodore Ts'oe1052142006-10-21 21:46:47 -04006062/* Override any GCC internal prototype to avoid an error.
6063 Use char because int might match the return type of a GCC
6064 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006065#ifdef __cplusplus
6066extern "C"
6067#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006068char strerror ();
6069int
6070main ()
6071{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006072return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006073 ;
6074 return 0;
6075}
6076_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006077if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006078 ac_cv_lib_cposix_strerror=yes
6079else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006080 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006081fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006082rm -f core conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006084LIBS=$ac_check_lib_save_LIBS
6085fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006087$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006088if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006089 LIBS="$LIBS -lcposix"
6090fi
6091
6092
6093
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006094
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6096$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6097if test "${ac_cv_path_GREP+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6099else
6100 if test -z "$GREP"; then
6101 ac_path_GREP_found=false
6102 # Loop through the user's path and test for each of PROGNAME-LIST
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6105do
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_prog in grep ggrep; do
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6112# Check for GNU ac_path_GREP and select it if it is found.
6113 # Check for GNU $ac_path_GREP
6114case `"$ac_path_GREP" --version 2>&1` in
6115*GNU*)
6116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6117*)
6118 ac_count=0
6119 $as_echo_n 0123456789 >"conftest.in"
6120 while :
6121 do
6122 cat "conftest.in" "conftest.in" >"conftest.tmp"
6123 mv "conftest.tmp" "conftest.in"
6124 cp "conftest.in" "conftest.nl"
6125 $as_echo 'GREP' >> "conftest.nl"
6126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6128 as_fn_arith $ac_count + 1 && ac_count=$as_val
6129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6130 # Best one so far, save it but keep looking for a better one
6131 ac_cv_path_GREP="$ac_path_GREP"
6132 ac_path_GREP_max=$ac_count
6133 fi
6134 # 10*(2^10) chars as input seems more than enough
6135 test $ac_count -gt 10 && break
6136 done
6137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6138esac
6139
6140 $ac_path_GREP_found && break 3
6141 done
6142 done
6143 done
6144IFS=$as_save_IFS
6145 if test -z "$ac_cv_path_GREP"; then
6146 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6147 fi
6148else
6149 ac_cv_path_GREP=$GREP
6150fi
6151
6152fi
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6154$as_echo "$ac_cv_path_GREP" >&6; }
6155 GREP="$ac_cv_path_GREP"
6156
6157
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6159$as_echo_n "checking for egrep... " >&6; }
6160if test "${ac_cv_path_EGREP+set}" = set; then :
6161 $as_echo_n "(cached) " >&6
6162else
6163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6164 then ac_cv_path_EGREP="$GREP -E"
6165 else
6166 if test -z "$EGREP"; then
6167 ac_path_EGREP_found=false
6168 # Loop through the user's path and test for each of PROGNAME-LIST
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6171do
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_prog in egrep; do
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6178# Check for GNU ac_path_EGREP and select it if it is found.
6179 # Check for GNU $ac_path_EGREP
6180case `"$ac_path_EGREP" --version 2>&1` in
6181*GNU*)
6182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6183*)
6184 ac_count=0
6185 $as_echo_n 0123456789 >"conftest.in"
6186 while :
6187 do
6188 cat "conftest.in" "conftest.in" >"conftest.tmp"
6189 mv "conftest.tmp" "conftest.in"
6190 cp "conftest.in" "conftest.nl"
6191 $as_echo 'EGREP' >> "conftest.nl"
6192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6194 as_fn_arith $ac_count + 1 && ac_count=$as_val
6195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6196 # Best one so far, save it but keep looking for a better one
6197 ac_cv_path_EGREP="$ac_path_EGREP"
6198 ac_path_EGREP_max=$ac_count
6199 fi
6200 # 10*(2^10) chars as input seems more than enough
6201 test $ac_count -gt 10 && break
6202 done
6203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6204esac
6205
6206 $ac_path_EGREP_found && break 3
6207 done
6208 done
6209 done
6210IFS=$as_save_IFS
6211 if test -z "$ac_cv_path_EGREP"; then
6212 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6213 fi
6214else
6215 ac_cv_path_EGREP=$EGREP
6216fi
6217
6218 fi
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6221$as_echo "$ac_cv_path_EGREP" >&6; }
6222 EGREP="$ac_cv_path_EGREP"
6223
6224
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6226$as_echo_n "checking for ANSI C header files... " >&6; }
6227if test "${ac_cv_header_stdc+set}" = set; then :
6228 $as_echo_n "(cached) " >&6
6229else
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231/* end confdefs.h. */
6232#include <stdlib.h>
6233#include <stdarg.h>
6234#include <string.h>
6235#include <float.h>
6236
6237int
6238main ()
6239{
6240
6241 ;
6242 return 0;
6243}
6244_ACEOF
6245if ac_fn_c_try_compile "$LINENO"; then :
6246 ac_cv_header_stdc=yes
6247else
6248 ac_cv_header_stdc=no
6249fi
6250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251
6252if test $ac_cv_header_stdc = yes; then
6253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255/* end confdefs.h. */
6256#include <string.h>
6257
6258_ACEOF
6259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260 $EGREP "memchr" >/dev/null 2>&1; then :
6261
6262else
6263 ac_cv_header_stdc=no
6264fi
6265rm -f conftest*
6266
6267fi
6268
6269if test $ac_cv_header_stdc = yes; then
6270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h. */
6273#include <stdlib.h>
6274
6275_ACEOF
6276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277 $EGREP "free" >/dev/null 2>&1; then :
6278
6279else
6280 ac_cv_header_stdc=no
6281fi
6282rm -f conftest*
6283
6284fi
6285
6286if test $ac_cv_header_stdc = yes; then
6287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6288 if test "$cross_compiling" = yes; then :
6289 :
6290else
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h. */
6293#include <ctype.h>
6294#include <stdlib.h>
6295#if ((' ' & 0x0FF) == 0x020)
6296# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6297# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6298#else
6299# define ISLOWER(c) \
6300 (('a' <= (c) && (c) <= 'i') \
6301 || ('j' <= (c) && (c) <= 'r') \
6302 || ('s' <= (c) && (c) <= 'z'))
6303# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6304#endif
6305
6306#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6307int
6308main ()
6309{
6310 int i;
6311 for (i = 0; i < 256; i++)
6312 if (XOR (islower (i), ISLOWER (i))
6313 || toupper (i) != TOUPPER (i))
6314 return 2;
6315 return 0;
6316}
6317_ACEOF
6318if ac_fn_c_try_run "$LINENO"; then :
6319
6320else
6321 ac_cv_header_stdc=no
6322fi
6323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6324 conftest.$ac_objext conftest.beam conftest.$ac_ext
6325fi
6326
6327fi
6328fi
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6330$as_echo "$ac_cv_header_stdc" >&6; }
6331if test $ac_cv_header_stdc = yes; then
6332
6333$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6334
6335fi
6336
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006338$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006339if test "${ac_cv_c_const+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006340 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006341else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006343/* end confdefs.h. */
6344
6345int
6346main ()
6347{
6348/* FIXME: Include the comments suggested by Paul. */
6349#ifndef __cplusplus
6350 /* Ultrix mips cc rejects this. */
6351 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006352 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006353 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006354 char const *const *pcpcc;
6355 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006356 /* NEC SVR4.0.2 mips cc rejects this. */
6357 struct point {int x, y;};
6358 static struct point const zero = {0,0};
6359 /* AIX XL C 1.02.0.0 rejects this.
6360 It does not let you subtract one const X* pointer from another in
6361 an arm of an if-expression whose if-part is not a constant
6362 expression */
6363 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006364 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006365 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006366 ++pcpcc;
6367 ppc = (char**) pcpcc;
6368 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006369 { /* SCO 3.2v4 cc rejects this. */
6370 char *t;
6371 char const *s = 0 ? (char *) 0 : (char const *) 0;
6372
6373 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006374 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006375 }
6376 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6377 int x[] = {25, 17};
6378 const int *foo = &x[0];
6379 ++foo;
6380 }
6381 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6382 typedef const int *iptr;
6383 iptr p = 0;
6384 ++p;
6385 }
6386 { /* AIX XL C 1.02.0.0 rejects this saying
6387 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6388 struct s { int j; const int *ap[3]; };
6389 struct s *b; b->j = 5;
6390 }
6391 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6392 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006393 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006394 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006395 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006396#endif
6397
6398 ;
6399 return 0;
6400}
6401_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006402if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006403 ac_cv_c_const=yes
6404else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006405 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006406fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006408fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006410$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006411if test $ac_cv_c_const = no; then
6412
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006413$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006414
6415fi
6416
6417
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006419$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006420if test "${bh_cv_c_signed+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006421 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006422else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006424/* end confdefs.h. */
6425
6426int
6427main ()
6428{
6429signed char x;
6430 ;
6431 return 0;
6432}
6433_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006434if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006435 bh_cv_c_signed=yes
6436else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006437 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006438fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006440fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006442$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006443 if test $bh_cv_c_signed = no; then
6444
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006445$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006446
6447 fi
6448
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006450$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006451if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006452 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006453else
6454 ac_cv_c_inline=no
6455for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006457/* end confdefs.h. */
6458#ifndef __cplusplus
6459typedef int foo_t;
6460static $ac_kw foo_t static_foo () {return 0; }
6461$ac_kw foo_t foo () {return 0; }
6462#endif
6463
6464_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006465if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006466 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006467fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006470done
6471
6472fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006474$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006475
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006476case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006477 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006478 *)
6479 case $ac_cv_c_inline in
6480 no) ac_val=;;
6481 *) ac_val=$ac_cv_c_inline;;
6482 esac
6483 cat >>confdefs.h <<_ACEOF
6484#ifndef __cplusplus
6485#define inline $ac_val
6486#endif
6487_ACEOF
6488 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006489esac
6490
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006491# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6492for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6493 inttypes.h stdint.h unistd.h
6494do :
6495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6496ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6497"
6498eval as_val=\$$as_ac_Header
6499 if test "x$as_val" = x""yes; then :
6500 cat >>confdefs.h <<_ACEOF
6501#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6502_ACEOF
6503
6504fi
6505
6506done
6507
6508
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006509ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6510if test "x$ac_cv_type_off_t" = x""yes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006511
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006512else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006513
6514cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006515#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006516_ACEOF
6517
6518fi
6519
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006520ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6521if test "x$ac_cv_type_size_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006522
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006523else
6524
6525cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006526#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006527_ACEOF
6528
6529fi
6530
6531
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006533$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006534if test "${ac_cv_type_long_long+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. */
6539long long ll = 1LL; int i = 63;
6540int
6541main ()
6542{
6543long long llmax = (long long) -1;
6544 return ll << i | ll >> i | llmax / ll | llmax % ll;
6545 ;
6546 return 0;
6547}
6548_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006549if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006550 ac_cv_type_long_long=yes
6551else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006552 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006553fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006554rm -f core conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006556fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006558$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006559 if test $ac_cv_type_long_long = yes; then
6560
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006561$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006562
6563 fi
6564
6565
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006567$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006568if test "${gt_cv_c_long_double+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006569 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006570else
6571 if test "$GCC" = yes; then
6572 gt_cv_c_long_double=yes
6573 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006575/* end confdefs.h. */
6576
6577 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6578 long double foo = 0.0;
6579 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6580 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6581
6582int
6583main ()
6584{
6585
6586 ;
6587 return 0;
6588}
6589_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006590if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006591 gt_cv_c_long_double=yes
6592else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006593 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006594fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006596 fi
6597fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006599$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006600 if test $gt_cv_c_long_double = yes; then
6601
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006602$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006603
6604 fi
6605
6606
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006608$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006609if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006610 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006611else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006613/* end confdefs.h. */
6614#include <stddef.h>
6615 wchar_t foo = (wchar_t)'\0';
6616int
6617main ()
6618{
6619
6620 ;
6621 return 0;
6622}
6623_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006624if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006625 gt_cv_c_wchar_t=yes
6626else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006627 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006628fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006630fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006632$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006633 if test $gt_cv_c_wchar_t = yes; then
6634
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006635$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636
6637 fi
6638
6639
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006641$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006642if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006643 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006644else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646/* end confdefs.h. */
6647#include <wchar.h>
6648 wint_t foo = (wchar_t)'\0';
6649int
6650main ()
6651{
6652
6653 ;
6654 return 0;
6655}
6656_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006657if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658 gt_cv_c_wint_t=yes
6659else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006660 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006663fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006665$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006666 if test $gt_cv_c_wint_t = yes; then
6667
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006668$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006669
6670 fi
6671
6672
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006674$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006675if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006676 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006679/* end confdefs.h. */
6680#include <sys/types.h>
6681#include <inttypes.h>
6682int
6683main ()
6684{
6685uintmax_t i = (uintmax_t) -1;
6686 ;
6687 return 0;
6688}
6689_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006690if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006691 jm_ac_cv_header_inttypes_h=yes
6692else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006693 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006694fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006696fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006698$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006699 if test $jm_ac_cv_header_inttypes_h = yes; then
6700
6701cat >>confdefs.h <<_ACEOF
6702#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6703_ACEOF
6704
6705 fi
6706
6707
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006709$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006710if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006711 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006712else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006714/* end confdefs.h. */
6715#include <sys/types.h>
6716#include <stdint.h>
6717int
6718main ()
6719{
6720uintmax_t i = (uintmax_t) -1;
6721 ;
6722 return 0;
6723}
6724_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006725if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006726 jm_ac_cv_header_stdint_h=yes
6727else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006728 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006729fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006731fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006733$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006734 if test $jm_ac_cv_header_stdint_h = yes; then
6735
6736cat >>confdefs.h <<_ACEOF
6737#define HAVE_STDINT_H_WITH_UINTMAX 1
6738_ACEOF
6739
6740 fi
6741
6742
6743
6744
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006746$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006747if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006748 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006749else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006751/* end confdefs.h. */
6752
6753#include <stddef.h>
6754#include <stdlib.h>
6755#if HAVE_STDINT_H_WITH_UINTMAX
6756#include <stdint.h>
6757#endif
6758#if HAVE_INTTYPES_H_WITH_UINTMAX
6759#include <inttypes.h>
6760#endif
6761
6762int
6763main ()
6764{
6765intmax_t x = -1;
6766 ;
6767 return 0;
6768}
6769_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006770if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006771 gt_cv_c_intmax_t=yes
6772else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006773 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006774fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006776fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006778$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006779 if test $gt_cv_c_intmax_t = yes; then
6780
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006781$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006782
6783 fi
6784
6785
6786
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006788$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006789if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006790 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006791else
6792
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006793 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006794
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006796/* end confdefs.h. */
6797
6798#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6799 notposix
6800#endif
6801
6802_ACEOF
6803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006804 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006805 gt_cv_func_printf_posix="guessing no"
6806else
6807 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006808fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006809rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006810
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006811
6812else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814/* end confdefs.h. */
6815
6816#include <stdio.h>
6817#include <string.h>
6818/* The string "%2$d %1$d", with dollar characters protected from the shell's
6819 dollar expansion (possibly an autoconf bug). */
6820static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6821static char buf[100];
6822int main ()
6823{
6824 sprintf (buf, format, 33, 55);
6825 return (strcmp (buf, "55 33") != 0);
6826}
6827_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006828if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006829 gt_cv_func_printf_posix=yes
6830else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006831 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006832fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6834 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006835fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006836
Theodore Ts'oe1052142006-10-21 21:46:47 -04006837
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006838fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006840$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006841 case $gt_cv_func_printf_posix in
6842 *yes)
6843
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006844$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006845
6846 ;;
6847 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006848
6849# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6850# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006852$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006853if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006854 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006855else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006857/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006858#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006859int
6860main ()
6861{
6862char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006863 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006864 ;
6865 return 0;
6866}
6867_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006868if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006869 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006870else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006871 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006872fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006873rm -f core conftest.err conftest.$ac_objext \
6874 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006875fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006877$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006878if test $ac_cv_working_alloca_h = yes; then
6879
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006880$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006881
6882fi
6883
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006885$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006886if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006887 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006888else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006890/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006891#ifdef __GNUC__
6892# define alloca __builtin_alloca
6893#else
6894# ifdef _MSC_VER
6895# include <malloc.h>
6896# define alloca _alloca
6897# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006898# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006899# include <alloca.h>
6900# else
6901# ifdef _AIX
6902 #pragma alloca
6903# else
6904# ifndef alloca /* predefined by HP cc +Olibcalls */
6905char *alloca ();
6906# endif
6907# endif
6908# endif
6909# endif
6910#endif
6911
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006912int
6913main ()
6914{
6915char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006916 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006917 ;
6918 return 0;
6919}
6920_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006921if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006922 ac_cv_func_alloca_works=yes
6923else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006924 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006925fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006926rm -f core conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006928fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006930$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006931
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006932if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006933
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006934$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006935
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006936else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006937 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6938# that cause trouble. Some versions do not even contain alloca or
6939# contain a buggy version. If you still want to use their alloca,
6940# use ar to extract alloca.o from them instead of compiling alloca.c.
6941
Theodore Ts'oe1052142006-10-21 21:46:47 -04006942ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006944$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006945
6946
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006948$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006949if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006950 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006951else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006953/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006954#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006955webecray
6956#else
6957wenotbecray
6958#endif
6959
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006960_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006962 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006963 ac_cv_os_cray=yes
6964else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006965 ac_cv_os_cray=no
6966fi
6967rm -f conftest*
6968
6969fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006971$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006972if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006973 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006975ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6976eval as_val=\$$as_ac_var
6977 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006978
6979cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006980#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006981_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006982
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006983 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006984fi
6985
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006986 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006987fi
6988
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006990$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006991if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006992 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006993else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006994 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006995 ac_cv_c_stack_direction=0
6996else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006998/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006999$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007000int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007001find_stack_direction ()
7002{
7003 static char *addr = 0;
7004 auto char dummy;
7005 if (addr == 0)
7006 {
7007 addr = &dummy;
7008 return find_stack_direction ();
7009 }
7010 else
7011 return (&dummy > addr) ? 1 : -1;
7012}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007013
7014int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007015main ()
7016{
Theodore Ts'oe1052142006-10-21 21:46:47 -04007017 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007018}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007019_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007020if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007021 ac_cv_c_stack_direction=1
7022else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007023 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007024fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7026 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007028
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007029fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007031$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007032cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007033#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007034_ACEOF
7035
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007036
7037fi
7038
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007039
7040
7041
7042 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007043do :
7044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007045ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7046"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007047eval as_val=\$$as_ac_Header
7048 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007049 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051_ACEOF
7052
7053fi
7054
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007055done
7056
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007057
7058
7059
7060
7061
7062
7063
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007064for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007065do :
7066 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7067if test "x$ac_cv_func_getpagesize" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007068 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007069#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070_ACEOF
7071
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007072fi
7073done
7074
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007076$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007077if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007078 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007079else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007080 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007081 ac_cv_func_mmap_fixed_mapped=no
7082else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007084/* end confdefs.h. */
7085$ac_includes_default
7086/* malloc might have been renamed as rpl_malloc. */
7087#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007088
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007089/* Thanks to Mike Haertel and Jim Avera for this test.
7090 Here is a matrix of mmap possibilities:
7091 mmap private not fixed
7092 mmap private fixed at somewhere currently unmapped
7093 mmap private fixed at somewhere already mapped
7094 mmap shared not fixed
7095 mmap shared fixed at somewhere currently unmapped
7096 mmap shared fixed at somewhere already mapped
7097 For private mappings, we should verify that changes cannot be read()
7098 back from the file, nor mmap's back from the file at a different
7099 address. (There have been systems where private was not correctly
7100 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007101 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007102 like early versions of FreeBSD and possibly contemporary NetBSD.)
7103 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007104 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007105
7106 Grep wants private fixed already mapped.
7107 The main things grep needs to know about mmap are:
7108 * does it exist and is it safe to write into the mmap'd area
7109 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007110
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007111#include <fcntl.h>
7112#include <sys/mman.h>
7113
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007114#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007115char *malloc ();
7116#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007117
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007118/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007119#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007120# ifdef _SC_PAGESIZE
7121# define getpagesize() sysconf(_SC_PAGESIZE)
7122# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007123# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007124# include <sys/param.h>
7125# ifdef EXEC_PAGESIZE
7126# define getpagesize() EXEC_PAGESIZE
7127# else /* no EXEC_PAGESIZE */
7128# ifdef NBPG
7129# define getpagesize() NBPG * CLSIZE
7130# ifndef CLSIZE
7131# define CLSIZE 1
7132# endif /* no CLSIZE */
7133# else /* no NBPG */
7134# ifdef NBPC
7135# define getpagesize() NBPC
7136# else /* no NBPC */
7137# ifdef PAGESIZE
7138# define getpagesize() PAGESIZE
7139# endif /* PAGESIZE */
7140# endif /* no NBPC */
7141# endif /* no NBPG */
7142# endif /* no EXEC_PAGESIZE */
7143# else /* no HAVE_SYS_PARAM_H */
7144# define getpagesize() 8192 /* punt totally */
7145# endif /* no HAVE_SYS_PARAM_H */
7146# endif /* no _SC_PAGESIZE */
7147
7148#endif /* no HAVE_GETPAGESIZE */
7149
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007150int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007151main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007152{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007153 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007154 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007155 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007156 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007157
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007158 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007159
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007160 /* First, make a file with some known garbage in it. */
7161 data = (char *) malloc (pagesize);
7162 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007163 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007164 for (i = 0; i < pagesize; ++i)
7165 *(data + i) = rand ();
7166 umask (0);
7167 fd = creat ("conftest.mmap", 0600);
7168 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007169 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007170 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007171 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007172 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007173
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007174 /* Next, check that the tail of a page is zero-filled. File must have
7175 non-zero length, otherwise we risk SIGBUS for entire page. */
7176 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7177 if (fd2 < 0)
7178 return 4;
7179 cdata2 = "";
7180 if (write (fd2, cdata2, 1) != 1)
7181 return 5;
7182 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7183 if (data2 == MAP_FAILED)
7184 return 6;
7185 for (i = 0; i < pagesize; ++i)
7186 if (*(data2 + i))
7187 return 7;
7188 close (fd2);
7189 if (munmap (data2, pagesize))
7190 return 8;
7191
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007192 /* Next, try to mmap the file at a fixed address which already has
7193 something else allocated at it. If we can, also make sure that
7194 we see the same garbage. */
7195 fd = open ("conftest.mmap", O_RDWR);
7196 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007197 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007198 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7199 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007200 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007201 for (i = 0; i < pagesize; ++i)
7202 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007203 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007204
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007205 /* Finally, make sure that changes to the mapped area do not
7206 percolate back to the file as seen by read(). (This is a bug on
7207 some variants of i386 svr4.0.) */
7208 for (i = 0; i < pagesize; ++i)
7209 *(data2 + i) = *(data2 + i) + 1;
7210 data3 = (char *) malloc (pagesize);
7211 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007212 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007213 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007214 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007215 for (i = 0; i < pagesize; ++i)
7216 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007217 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007218 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007219 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007220}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007221_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007222if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007223 ac_cv_func_mmap_fixed_mapped=yes
7224else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007225 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007226fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7228 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007229fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007231fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007233$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007234if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007235
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007236$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007237
7238fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007239rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007240
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007241
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007242 { $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 +01007243$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 -05007244if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007245 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007246else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007248/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007249
7250#include <features.h>
7251#ifdef __GNU_LIBRARY__
7252 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7253 Lucky GNU user
7254 #endif
7255#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007256
7257_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007259 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007260 ac_cv_gnu_library_2_1=yes
7261else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007262 ac_cv_gnu_library_2_1=no
7263fi
7264rm -f conftest*
7265
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007266
7267
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007268fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007270$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007271
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007272 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007273
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007275
7276
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007278$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007279if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007280 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007281else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007282
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007283 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007284
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007285 # Guess based on the CPU.
7286 case "$host_cpu" in
7287 alpha* | i3456786 | m68k | s390*)
7288 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7289 *)
7290 gt_cv_int_divbyzero_sigfpe="guessing no";;
7291 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007292
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007293else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007295/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007296
7297#include <stdlib.h>
7298#include <signal.h>
7299
7300static void
7301#ifdef __cplusplus
7302sigfpe_handler (int sig)
7303#else
7304sigfpe_handler (sig) int sig;
7305#endif
7306{
7307 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7308 exit (sig != SIGFPE);
7309}
7310
7311int x = 1;
7312int y = 0;
7313int z;
7314int nan;
7315
7316int main ()
7317{
7318 signal (SIGFPE, sigfpe_handler);
7319/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7320#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7321 signal (SIGTRAP, sigfpe_handler);
7322#endif
7323/* Linux/SPARC yields signal SIGILL. */
7324#if defined (__sparc__) && defined (__linux__)
7325 signal (SIGILL, sigfpe_handler);
7326#endif
7327
7328 z = x / y;
7329 nan = y / y;
7330 exit (1);
7331}
7332
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007333_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007334if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007335 gt_cv_int_divbyzero_sigfpe=yes
7336else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007337 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007338fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7340 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007341fi
7342
Theodore Ts'oe1052142006-10-21 21:46:47 -04007343
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007344fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007346$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007347 case "$gt_cv_int_divbyzero_sigfpe" in
7348 *yes) value=1;;
7349 *) value=0;;
7350 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007351
7352cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007353#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007354_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007355
7356
7357
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007359$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007360if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007361 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007362else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007364/* end confdefs.h. */
7365unsigned long long ull = 1ULL; int i = 63;
7366int
7367main ()
7368{
7369unsigned long long ullmax = (unsigned long long) -1;
7370 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7371 ;
7372 return 0;
7373}
7374_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007375if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007376 ac_cv_type_unsigned_long_long=yes
7377else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007378 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007379fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007380rm -f core conftest.err conftest.$ac_objext \
7381 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007382fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007384$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007385 if test $ac_cv_type_unsigned_long_long = yes; then
7386
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007387$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007388
7389 fi
7390
7391
7392
7393
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007394 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 -05007395
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007396 test $ac_cv_type_unsigned_long_long = yes \
7397 && ac_type='unsigned long long' \
7398 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007399
7400cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007401#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007402_ACEOF
7403
7404 else
7405
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007406$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007407
7408 fi
7409
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007410
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007412$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007413if test "${gt_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007414 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007415else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007416
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007418/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007419#include <sys/types.h>
7420#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007421int
7422main ()
7423{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007424
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007425 ;
7426 return 0;
7427}
7428_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007429if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007430 gt_cv_header_inttypes_h=yes
7431else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007432 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007433fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007435
7436fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007438$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007439 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007440
7441cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007442#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007443_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007444
7445 fi
7446
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007447
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007448
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007449 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007450 { $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 +01007451$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007452if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007453 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007454else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007455
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007457/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007458#include <inttypes.h>
7459#ifdef PRId32
7460char *p = PRId32;
7461#endif
7462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007463int
7464main ()
7465{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007467 ;
7468 return 0;
7469}
7470_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007471if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007472 gt_cv_inttypes_pri_broken=no
7473else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007474 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007475fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007477
7478fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007480$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007481 fi
7482 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007483
7484cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007485#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007486_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007487
7488 fi
7489
7490
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007491 for ac_header in stdint.h
7492do :
7493 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7494if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007495 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007496#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007497_ACEOF
7498
7499fi
7500
7501done
7502
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007504$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007505 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007507/* end confdefs.h. */
7508
7509#include <limits.h>
7510#if HAVE_STDINT_H
7511#include <stdint.h>
7512#endif
7513#ifdef SIZE_MAX
7514Found it
7515#endif
7516
7517_ACEOF
7518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007519 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007520 result=yes
7521fi
7522rm -f conftest*
7523
7524 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007525 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 -05007526
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007527else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007528 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007529fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007530
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007531
7532 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7533
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007534else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007535 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007537
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007538
7539 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7540
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007542 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007543fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007544
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007545
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007546 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007548/* end confdefs.h. */
7549#include <stddef.h>
7550 extern size_t foo;
7551 extern unsigned long foo;
7552
7553int
7554main ()
7555{
7556
7557 ;
7558 return 0;
7559}
7560_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007561if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007562 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007563fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007565 fi
7566 if test -z "$result"; then
7567 if test "$fits_in_uint" = 1; then
7568 result="$res_hi$res_lo"U
7569 else
7570 result="$res_hi$res_lo"UL
7571 fi
7572 else
7573 result='~(size_t)0'
7574 fi
7575 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007577$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007578 if test "$result" != yes; then
7579
7580cat >>confdefs.h <<_ACEOF
7581#define SIZE_MAX $result
7582_ACEOF
7583
7584 fi
7585
7586
7587
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007588 for ac_header in stdint.h
7589do :
7590 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7591if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007592 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007593#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007594_ACEOF
7595
7596fi
7597
7598done
7599
7600
7601
7602 if test "X$prefix" = "XNONE"; then
7603 acl_final_prefix="$ac_default_prefix"
7604 else
7605 acl_final_prefix="$prefix"
7606 fi
7607 if test "X$exec_prefix" = "XNONE"; then
7608 acl_final_exec_prefix='${prefix}'
7609 else
7610 acl_final_exec_prefix="$exec_prefix"
7611 fi
7612 acl_save_prefix="$prefix"
7613 prefix="$acl_final_prefix"
7614 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7615 prefix="$acl_save_prefix"
7616
7617
Theodore Ts'oe1052142006-10-21 21:46:47 -04007618# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007619if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007620 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007621else
7622 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007623fi
7624
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007625# Prepare PATH_SEPARATOR.
7626# The user is always right.
7627if test "${PATH_SEPARATOR+set}" != set; then
7628 echo "#! /bin/sh" >conf$$.sh
7629 echo "exit 0" >>conf$$.sh
7630 chmod +x conf$$.sh
7631 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7632 PATH_SEPARATOR=';'
7633 else
7634 PATH_SEPARATOR=:
7635 fi
7636 rm -f conf$$.sh
7637fi
7638ac_prog=ld
7639if test "$GCC" = yes; then
7640 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007642$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007643 case $host in
7644 *-*-mingw*)
7645 # gcc leaves a trailing carriage return which upsets mingw
7646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7647 *)
7648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7649 esac
7650 case $ac_prog in
7651 # Accept absolute paths.
7652 [\\/]* | [A-Za-z]:[\\/]*)
7653 re_direlt='/[^/][^/]*/\.\./'
7654 # Canonicalize the path of ld
7655 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7656 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7657 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7658 done
7659 test -z "$LD" && LD="$ac_prog"
7660 ;;
7661 "")
7662 # If it fails, then pretend we aren't using GCC.
7663 ac_prog=ld
7664 ;;
7665 *)
7666 # If it is relative, then search for the first ld in PATH.
7667 with_gnu_ld=unknown
7668 ;;
7669 esac
7670elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007672$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007673else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007675$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007676fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007677if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007678 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007679else
7680 if test -z "$LD"; then
7681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7682 for ac_dir in $PATH; do
7683 test -z "$ac_dir" && ac_dir=.
7684 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7685 acl_cv_path_LD="$ac_dir/$ac_prog"
7686 # Check to see if the program is GNU ld. I'd rather use --version,
7687 # but apparently some GNU ld's only accept -v.
7688 # Break only if it was the GNU/non-GNU ld that we prefer.
7689 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7690 *GNU* | *'with BFD'*)
7691 test "$with_gnu_ld" != no && break ;;
7692 *)
7693 test "$with_gnu_ld" != yes && break ;;
7694 esac
7695 fi
7696 done
7697 IFS="$ac_save_ifs"
7698else
7699 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7700fi
7701fi
7702
7703LD="$acl_cv_path_LD"
7704if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007706$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007707else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007709$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007710fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007711test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007713$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007714if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007715 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007716else
7717 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7718case `$LD -v 2>&1 </dev/null` in
7719*GNU* | *'with BFD'*)
7720 acl_cv_prog_gnu_ld=yes ;;
7721*)
7722 acl_cv_prog_gnu_ld=no ;;
7723esac
7724fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007726$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007727with_gnu_ld=$acl_cv_prog_gnu_ld
7728
7729
7730
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007732$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007733if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007734 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007735else
7736
7737 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7738 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7739 . ./conftest.sh
7740 rm -f ./conftest.sh
7741 acl_cv_rpath=done
7742
7743fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007745$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007746 wl="$acl_cv_wl"
7747 libext="$acl_cv_libext"
7748 shlibext="$acl_cv_shlibext"
7749 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7750 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7751 hardcode_direct="$acl_cv_hardcode_direct"
7752 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007753 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007754if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007755 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007756else
7757 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007758fi
7759
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007760
7761
7762
7763
7764
7765
7766
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007767 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007768
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007769 acl_save_prefix="$prefix"
7770 prefix="$acl_final_prefix"
7771 acl_save_exec_prefix="$exec_prefix"
7772 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007773
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007774 eval additional_includedir=\"$includedir\"
7775 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007776
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007777 exec_prefix="$acl_save_exec_prefix"
7778 prefix="$acl_save_prefix"
7779
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007780
Theodore Ts'oe1052142006-10-21 21:46:47 -04007781# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007782if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007783 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007784 if test "X$withval" = "Xno"; then
7785 use_additional=no
7786 else
7787 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007788
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007789 acl_save_prefix="$prefix"
7790 prefix="$acl_final_prefix"
7791 acl_save_exec_prefix="$exec_prefix"
7792 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007793
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007794 eval additional_includedir=\"$includedir\"
7795 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007796
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007797 exec_prefix="$acl_save_exec_prefix"
7798 prefix="$acl_save_prefix"
7799
7800 else
7801 additional_includedir="$withval/include"
7802 additional_libdir="$withval/lib"
7803 fi
7804 fi
7805
Theodore Ts'oe1052142006-10-21 21:46:47 -04007806fi
7807
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007808 LIBICONV=
7809 LTLIBICONV=
7810 INCICONV=
7811 rpathdirs=
7812 ltrpathdirs=
7813 names_already_handled=
7814 names_next_round='iconv '
7815 while test -n "$names_next_round"; do
7816 names_this_round="$names_next_round"
7817 names_next_round=
7818 for name in $names_this_round; do
7819 already_handled=
7820 for n in $names_already_handled; do
7821 if test "$n" = "$name"; then
7822 already_handled=yes
7823 break
7824 fi
7825 done
7826 if test -z "$already_handled"; then
7827 names_already_handled="$names_already_handled $name"
7828 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7829 eval value=\"\$HAVE_LIB$uppername\"
7830 if test -n "$value"; then
7831 if test "$value" = yes; then
7832 eval value=\"\$LIB$uppername\"
7833 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7834 eval value=\"\$LTLIB$uppername\"
7835 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7836 else
7837 :
7838 fi
7839 else
7840 found_dir=
7841 found_la=
7842 found_so=
7843 found_a=
7844 if test $use_additional = yes; then
7845 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7846 found_dir="$additional_libdir"
7847 found_so="$additional_libdir/lib$name.$shlibext"
7848 if test -f "$additional_libdir/lib$name.la"; then
7849 found_la="$additional_libdir/lib$name.la"
7850 fi
7851 else
7852 if test -f "$additional_libdir/lib$name.$libext"; then
7853 found_dir="$additional_libdir"
7854 found_a="$additional_libdir/lib$name.$libext"
7855 if test -f "$additional_libdir/lib$name.la"; then
7856 found_la="$additional_libdir/lib$name.la"
7857 fi
7858 fi
7859 fi
7860 fi
7861 if test "X$found_dir" = "X"; then
7862 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007863
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007864 acl_save_prefix="$prefix"
7865 prefix="$acl_final_prefix"
7866 acl_save_exec_prefix="$exec_prefix"
7867 exec_prefix="$acl_final_exec_prefix"
7868 eval x=\"$x\"
7869 exec_prefix="$acl_save_exec_prefix"
7870 prefix="$acl_save_prefix"
7871
7872 case "$x" in
7873 -L*)
7874 dir=`echo "X$x" | sed -e 's/^X-L//'`
7875 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7876 found_dir="$dir"
7877 found_so="$dir/lib$name.$shlibext"
7878 if test -f "$dir/lib$name.la"; then
7879 found_la="$dir/lib$name.la"
7880 fi
7881 else
7882 if test -f "$dir/lib$name.$libext"; then
7883 found_dir="$dir"
7884 found_a="$dir/lib$name.$libext"
7885 if test -f "$dir/lib$name.la"; then
7886 found_la="$dir/lib$name.la"
7887 fi
7888 fi
7889 fi
7890 ;;
7891 esac
7892 if test "X$found_dir" != "X"; then
7893 break
7894 fi
7895 done
7896 fi
7897 if test "X$found_dir" != "X"; then
7898 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7899 if test "X$found_so" != "X"; then
7900 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7901 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7902 else
7903 haveit=
7904 for x in $ltrpathdirs; do
7905 if test "X$x" = "X$found_dir"; then
7906 haveit=yes
7907 break
7908 fi
7909 done
7910 if test -z "$haveit"; then
7911 ltrpathdirs="$ltrpathdirs $found_dir"
7912 fi
7913 if test "$hardcode_direct" = yes; then
7914 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7915 else
7916 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7917 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7918 haveit=
7919 for x in $rpathdirs; do
7920 if test "X$x" = "X$found_dir"; then
7921 haveit=yes
7922 break
7923 fi
7924 done
7925 if test -z "$haveit"; then
7926 rpathdirs="$rpathdirs $found_dir"
7927 fi
7928 else
7929 haveit=
7930 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007931
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007932 acl_save_prefix="$prefix"
7933 prefix="$acl_final_prefix"
7934 acl_save_exec_prefix="$exec_prefix"
7935 exec_prefix="$acl_final_exec_prefix"
7936 eval x=\"$x\"
7937 exec_prefix="$acl_save_exec_prefix"
7938 prefix="$acl_save_prefix"
7939
7940 if test "X$x" = "X-L$found_dir"; then
7941 haveit=yes
7942 break
7943 fi
7944 done
7945 if test -z "$haveit"; then
7946 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7947 fi
7948 if test "$hardcode_minus_L" != no; then
7949 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7950 else
7951 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7952 fi
7953 fi
7954 fi
7955 fi
7956 else
7957 if test "X$found_a" != "X"; then
7958 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7959 else
7960 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7961 fi
7962 fi
7963 additional_includedir=
7964 case "$found_dir" in
7965 */lib | */lib/)
7966 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7967 additional_includedir="$basedir/include"
7968 ;;
7969 esac
7970 if test "X$additional_includedir" != "X"; then
7971 if test "X$additional_includedir" != "X/usr/include"; then
7972 haveit=
7973 if test "X$additional_includedir" = "X/usr/local/include"; then
7974 if test -n "$GCC"; then
7975 case $host_os in
7976 linux*) haveit=yes;;
7977 esac
7978 fi
7979 fi
7980 if test -z "$haveit"; then
7981 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007982
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007983 acl_save_prefix="$prefix"
7984 prefix="$acl_final_prefix"
7985 acl_save_exec_prefix="$exec_prefix"
7986 exec_prefix="$acl_final_exec_prefix"
7987 eval x=\"$x\"
7988 exec_prefix="$acl_save_exec_prefix"
7989 prefix="$acl_save_prefix"
7990
7991 if test "X$x" = "X-I$additional_includedir"; then
7992 haveit=yes
7993 break
7994 fi
7995 done
7996 if test -z "$haveit"; then
7997 if test -d "$additional_includedir"; then
7998 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7999 fi
8000 fi
8001 fi
8002 fi
8003 fi
8004 if test -n "$found_la"; then
8005 save_libdir="$libdir"
8006 case "$found_la" in
8007 */* | *\\*) . "$found_la" ;;
8008 *) . "./$found_la" ;;
8009 esac
8010 libdir="$save_libdir"
8011 for dep in $dependency_libs; do
8012 case "$dep" in
8013 -L*)
8014 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8015 if test "X$additional_libdir" != "X/usr/lib"; then
8016 haveit=
8017 if test "X$additional_libdir" = "X/usr/local/lib"; then
8018 if test -n "$GCC"; then
8019 case $host_os in
8020 linux*) haveit=yes;;
8021 esac
8022 fi
8023 fi
8024 if test -z "$haveit"; then
8025 haveit=
8026 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008027
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008028 acl_save_prefix="$prefix"
8029 prefix="$acl_final_prefix"
8030 acl_save_exec_prefix="$exec_prefix"
8031 exec_prefix="$acl_final_exec_prefix"
8032 eval x=\"$x\"
8033 exec_prefix="$acl_save_exec_prefix"
8034 prefix="$acl_save_prefix"
8035
8036 if test "X$x" = "X-L$additional_libdir"; then
8037 haveit=yes
8038 break
8039 fi
8040 done
8041 if test -z "$haveit"; then
8042 if test -d "$additional_libdir"; then
8043 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8044 fi
8045 fi
8046 haveit=
8047 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008048
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008049 acl_save_prefix="$prefix"
8050 prefix="$acl_final_prefix"
8051 acl_save_exec_prefix="$exec_prefix"
8052 exec_prefix="$acl_final_exec_prefix"
8053 eval x=\"$x\"
8054 exec_prefix="$acl_save_exec_prefix"
8055 prefix="$acl_save_prefix"
8056
8057 if test "X$x" = "X-L$additional_libdir"; then
8058 haveit=yes
8059 break
8060 fi
8061 done
8062 if test -z "$haveit"; then
8063 if test -d "$additional_libdir"; then
8064 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8065 fi
8066 fi
8067 fi
8068 fi
8069 ;;
8070 -R*)
8071 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8072 if test "$enable_rpath" != no; then
8073 haveit=
8074 for x in $rpathdirs; do
8075 if test "X$x" = "X$dir"; then
8076 haveit=yes
8077 break
8078 fi
8079 done
8080 if test -z "$haveit"; then
8081 rpathdirs="$rpathdirs $dir"
8082 fi
8083 haveit=
8084 for x in $ltrpathdirs; do
8085 if test "X$x" = "X$dir"; then
8086 haveit=yes
8087 break
8088 fi
8089 done
8090 if test -z "$haveit"; then
8091 ltrpathdirs="$ltrpathdirs $dir"
8092 fi
8093 fi
8094 ;;
8095 -l*)
8096 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8097 ;;
8098 *.la)
8099 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8100 ;;
8101 *)
8102 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8103 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8104 ;;
8105 esac
8106 done
8107 fi
8108 else
8109 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8110 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8111 fi
8112 fi
8113 fi
8114 done
8115 done
8116 if test "X$rpathdirs" != "X"; then
8117 if test -n "$hardcode_libdir_separator"; then
8118 alldirs=
8119 for found_dir in $rpathdirs; do
8120 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8121 done
8122 acl_save_libdir="$libdir"
8123 libdir="$alldirs"
8124 eval flag=\"$hardcode_libdir_flag_spec\"
8125 libdir="$acl_save_libdir"
8126 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8127 else
8128 for found_dir in $rpathdirs; do
8129 acl_save_libdir="$libdir"
8130 libdir="$found_dir"
8131 eval flag=\"$hardcode_libdir_flag_spec\"
8132 libdir="$acl_save_libdir"
8133 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8134 done
8135 fi
8136 fi
8137 if test "X$ltrpathdirs" != "X"; then
8138 for found_dir in $ltrpathdirs; do
8139 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8140 done
8141 fi
8142
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008143
8144
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008145
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008146
8147
8148
8149
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008150 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8151if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008152
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008153else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008154
8155$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008156
8157
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008158fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008159
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008160 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 -04008161stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008162do :
8163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8164ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8165eval as_val=\$$as_ac_Header
8166 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008167 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008168#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008169_ACEOF
8170
8171fi
8172
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008173done
8174
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008175 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008176mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8177strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8178__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008179do :
8180 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8181ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8182eval as_val=\$$as_ac_var
8183 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008184 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008185#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008186_ACEOF
8187
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008188fi
8189done
8190
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008191
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008192
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008194$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008195if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008196 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008197else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008199/* end confdefs.h. */
8200#include <stdio.h>
8201int
8202main ()
8203{
8204
8205#ifndef _snprintf
8206 char *p = (char *) _snprintf;
8207#endif
8208
8209 ;
8210 return 0;
8211}
8212_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008213if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008214 ac_cv_have_decl__snprintf=yes
8215else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008216 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008217fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008219fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008221$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008222 if test $ac_cv_have_decl__snprintf = yes; then
8223 gt_value=1
8224 else
8225 gt_value=0
8226 fi
8227
8228cat >>confdefs.h <<_ACEOF
8229#define HAVE_DECL__SNPRINTF $gt_value
8230_ACEOF
8231
8232
8233
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008235$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008236if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008237 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008238else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008240/* end confdefs.h. */
8241#include <stdio.h>
8242int
8243main ()
8244{
8245
8246#ifndef _snwprintf
8247 char *p = (char *) _snwprintf;
8248#endif
8249
8250 ;
8251 return 0;
8252}
8253_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008254if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008255 ac_cv_have_decl__snwprintf=yes
8256else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008257 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008258fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008260fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008262$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008263 if test $ac_cv_have_decl__snwprintf = yes; then
8264 gt_value=1
8265 else
8266 gt_value=0
8267 fi
8268
8269cat >>confdefs.h <<_ACEOF
8270#define HAVE_DECL__SNWPRINTF $gt_value
8271_ACEOF
8272
8273
8274
8275
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008277$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008278if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008279 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008280else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008282/* end confdefs.h. */
8283#include <stdio.h>
8284int
8285main ()
8286{
8287
8288#ifndef feof_unlocked
8289 char *p = (char *) feof_unlocked;
8290#endif
8291
8292 ;
8293 return 0;
8294}
8295_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008296if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008297 ac_cv_have_decl_feof_unlocked=yes
8298else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008299 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008300fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008302fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008304$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008305 if test $ac_cv_have_decl_feof_unlocked = yes; then
8306 gt_value=1
8307 else
8308 gt_value=0
8309 fi
8310
8311cat >>confdefs.h <<_ACEOF
8312#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8313_ACEOF
8314
8315
8316
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008318$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008319if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008320 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008321else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008323/* end confdefs.h. */
8324#include <stdio.h>
8325int
8326main ()
8327{
8328
8329#ifndef fgets_unlocked
8330 char *p = (char *) fgets_unlocked;
8331#endif
8332
8333 ;
8334 return 0;
8335}
8336_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008337if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008338 ac_cv_have_decl_fgets_unlocked=yes
8339else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008340 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008341fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008343fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008345$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008346 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8347 gt_value=1
8348 else
8349 gt_value=0
8350 fi
8351
8352cat >>confdefs.h <<_ACEOF
8353#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8354_ACEOF
8355
8356
8357
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008359$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008360if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008361 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008362else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008364/* end confdefs.h. */
8365#include <stdio.h>
8366int
8367main ()
8368{
8369
8370#ifndef getc_unlocked
8371 char *p = (char *) getc_unlocked;
8372#endif
8373
8374 ;
8375 return 0;
8376}
8377_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008378if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008379 ac_cv_have_decl_getc_unlocked=yes
8380else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008381 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008382fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008384fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008386$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008387 if test $ac_cv_have_decl_getc_unlocked = yes; then
8388 gt_value=1
8389 else
8390 gt_value=0
8391 fi
8392
8393cat >>confdefs.h <<_ACEOF
8394#define HAVE_DECL_GETC_UNLOCKED $gt_value
8395_ACEOF
8396
8397
8398
8399 case $gt_cv_func_printf_posix in
8400 *yes) HAVE_POSIX_PRINTF=1 ;;
8401 *) HAVE_POSIX_PRINTF=0 ;;
8402 esac
8403
8404 if test "$ac_cv_func_asprintf" = yes; then
8405 HAVE_ASPRINTF=1
8406 else
8407 HAVE_ASPRINTF=0
8408 fi
8409
8410 if test "$ac_cv_func_snprintf" = yes; then
8411 HAVE_SNPRINTF=1
8412 else
8413 HAVE_SNPRINTF=0
8414 fi
8415
8416 if test "$ac_cv_func_wprintf" = yes; then
8417 HAVE_WPRINTF=1
8418 else
8419 HAVE_WPRINTF=0
8420 fi
8421
8422
8423
8424
8425
8426
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008427
8428 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008429
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008430 for element in $INCICONV; do
8431 haveit=
8432 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008433
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008434 acl_save_prefix="$prefix"
8435 prefix="$acl_final_prefix"
8436 acl_save_exec_prefix="$exec_prefix"
8437 exec_prefix="$acl_final_exec_prefix"
8438 eval x=\"$x\"
8439 exec_prefix="$acl_save_exec_prefix"
8440 prefix="$acl_save_prefix"
8441
8442 if test "X$x" = "X$element"; then
8443 haveit=yes
8444 break
8445 fi
8446 done
8447 if test -z "$haveit"; then
8448 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8449 fi
8450 done
8451
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008452
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008454$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008455if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008456 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008457else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008458
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008459 am_cv_func_iconv="no, consider installing GNU libiconv"
8460 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008462/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008463#include <stdlib.h>
8464#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008465int
8466main ()
8467{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008468iconv_t cd = iconv_open("","");
8469 iconv(cd,NULL,NULL,NULL,NULL);
8470 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008471 ;
8472 return 0;
8473}
8474_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008475if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008476 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008477fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008478rm -f core conftest.err conftest.$ac_objext \
8479 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008480 if test "$am_cv_func_iconv" != yes; then
8481 am_save_LIBS="$LIBS"
8482 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008484/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008485#include <stdlib.h>
8486#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008487int
8488main ()
8489{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008490iconv_t cd = iconv_open("","");
8491 iconv(cd,NULL,NULL,NULL,NULL);
8492 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008493 ;
8494 return 0;
8495}
8496_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008497if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008498 am_cv_lib_iconv=yes
8499 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008500fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008501rm -f core conftest.err conftest.$ac_objext \
8502 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008503 LIBS="$am_save_LIBS"
8504 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008505
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008506fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008508$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008509 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008510
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008511$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008512
8513 fi
8514 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008516$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008518$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008519 else
8520 CPPFLAGS="$am_save_CPPFLAGS"
8521 LIBICONV=
8522 LTLIBICONV=
8523 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008524
8525
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008526
8527 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008529$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008530 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008531 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008532else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008533
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008535/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008536
8537#include <stdlib.h>
8538#include <iconv.h>
8539extern
8540#ifdef __cplusplus
8541"C"
8542#endif
8543#if defined(__STDC__) || defined(__cplusplus)
8544size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8545#else
8546size_t iconv();
8547#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008548
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008549int
8550main ()
8551{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008552
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008553 ;
8554 return 0;
8555}
8556_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008557if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008558 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008559else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008560 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008563 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 +00008564fi
8565
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008566 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008568 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008569$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008570 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008571
8572cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008573#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008574_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008575
8576 fi
8577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008578
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008580$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008581if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008582 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008583else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008585/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008586#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008587int
8588main ()
8589{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008590char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008591 ;
8592 return 0;
8593}
8594_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008595if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008596 am_cv_langinfo_codeset=yes
8597else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008598 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008599fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008600rm -f core conftest.err conftest.$ac_objext \
8601 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008602
8603fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008605$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008606 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008607
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008608$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008609
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008610 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008611
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008612 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008613
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008615$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008616if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008617 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008618else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008620/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008621#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008622int
8623main ()
8624{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008625return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008626 ;
8627 return 0;
8628}
8629_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008630if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008631 am_cv_val_LC_MESSAGES=yes
8632else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008633 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008634fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008635rm -f core conftest.err conftest.$ac_objext \
8636 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008637fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008639$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008640 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008641
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008642$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008643
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008644 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008645
8646 fi
8647
8648 for ac_prog in bison
8649do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008650 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008651set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008653$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008654if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008655 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008656else
8657 if test -n "$INTLBISON"; then
8658 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8659else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008665 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008666 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 -05008667 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008669 break 2
8670 fi
8671done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008672 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008673IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008674
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008675fi
8676fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008677INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008678if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008680$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008681else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008683$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008684fi
8685
Theodore Ts'oe1052142006-10-21 21:46:47 -04008686
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008687 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008688done
8689
8690 if test -z "$INTLBISON"; then
8691 ac_verc_fail=yes
8692 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008694$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008695 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8696 case $ac_prog_version in
8697 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8698 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8699 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8700 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8701 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008703$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008704 fi
8705 if test $ac_verc_fail = yes; then
8706 INTLBISON=:
8707 fi
8708
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008709
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008710
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008711
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008712
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008713
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008714
8715
8716
8717
8718
8719
8720
8721
8722
8723
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008725$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008726 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008727if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008728 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008729else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008730 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008731fi
8732
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008734$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008735
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008736
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008737
8738
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008739 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008740 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008741
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008742 LIBINTL=
8743 LTLIBINTL=
8744 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008745
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008746 if test "$USE_NLS" = "yes"; then
8747 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008748
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008750$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008751
Theodore Ts'oe1052142006-10-21 21:46:47 -04008752# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008753if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008754 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008755else
8756 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008757fi
8758
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008760$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008761
8762 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8763 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008764
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008765
8766
8767
8768
8769
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008771$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008772if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008773 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008774else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008776/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008777#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008778extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008779extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008780int
8781main ()
8782{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008783bindtextdomain ("", "");
8784return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008785 ;
8786 return 0;
8787}
8788_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008789if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008790 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008791else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008792 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008793fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008794rm -f core conftest.err conftest.$ac_objext \
8795 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008796fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008798$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008799
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008800 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008801
8802
8803
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008804 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008805
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008806 acl_save_prefix="$prefix"
8807 prefix="$acl_final_prefix"
8808 acl_save_exec_prefix="$exec_prefix"
8809 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008810
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008811 eval additional_includedir=\"$includedir\"
8812 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008813
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008814 exec_prefix="$acl_save_exec_prefix"
8815 prefix="$acl_save_prefix"
8816
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008817
Theodore Ts'oe1052142006-10-21 21:46:47 -04008818# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008819if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008820 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008821 if test "X$withval" = "Xno"; then
8822 use_additional=no
8823 else
8824 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008825
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008826 acl_save_prefix="$prefix"
8827 prefix="$acl_final_prefix"
8828 acl_save_exec_prefix="$exec_prefix"
8829 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008830
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008831 eval additional_includedir=\"$includedir\"
8832 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008833
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008834 exec_prefix="$acl_save_exec_prefix"
8835 prefix="$acl_save_prefix"
8836
8837 else
8838 additional_includedir="$withval/include"
8839 additional_libdir="$withval/lib"
8840 fi
8841 fi
8842
Theodore Ts'oe1052142006-10-21 21:46:47 -04008843fi
8844
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008845 LIBINTL=
8846 LTLIBINTL=
8847 INCINTL=
8848 rpathdirs=
8849 ltrpathdirs=
8850 names_already_handled=
8851 names_next_round='intl '
8852 while test -n "$names_next_round"; do
8853 names_this_round="$names_next_round"
8854 names_next_round=
8855 for name in $names_this_round; do
8856 already_handled=
8857 for n in $names_already_handled; do
8858 if test "$n" = "$name"; then
8859 already_handled=yes
8860 break
8861 fi
8862 done
8863 if test -z "$already_handled"; then
8864 names_already_handled="$names_already_handled $name"
8865 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8866 eval value=\"\$HAVE_LIB$uppername\"
8867 if test -n "$value"; then
8868 if test "$value" = yes; then
8869 eval value=\"\$LIB$uppername\"
8870 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8871 eval value=\"\$LTLIB$uppername\"
8872 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8873 else
8874 :
8875 fi
8876 else
8877 found_dir=
8878 found_la=
8879 found_so=
8880 found_a=
8881 if test $use_additional = yes; then
8882 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8883 found_dir="$additional_libdir"
8884 found_so="$additional_libdir/lib$name.$shlibext"
8885 if test -f "$additional_libdir/lib$name.la"; then
8886 found_la="$additional_libdir/lib$name.la"
8887 fi
8888 else
8889 if test -f "$additional_libdir/lib$name.$libext"; then
8890 found_dir="$additional_libdir"
8891 found_a="$additional_libdir/lib$name.$libext"
8892 if test -f "$additional_libdir/lib$name.la"; then
8893 found_la="$additional_libdir/lib$name.la"
8894 fi
8895 fi
8896 fi
8897 fi
8898 if test "X$found_dir" = "X"; then
8899 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008900
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008901 acl_save_prefix="$prefix"
8902 prefix="$acl_final_prefix"
8903 acl_save_exec_prefix="$exec_prefix"
8904 exec_prefix="$acl_final_exec_prefix"
8905 eval x=\"$x\"
8906 exec_prefix="$acl_save_exec_prefix"
8907 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008908
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008909 case "$x" in
8910 -L*)
8911 dir=`echo "X$x" | sed -e 's/^X-L//'`
8912 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8913 found_dir="$dir"
8914 found_so="$dir/lib$name.$shlibext"
8915 if test -f "$dir/lib$name.la"; then
8916 found_la="$dir/lib$name.la"
8917 fi
8918 else
8919 if test -f "$dir/lib$name.$libext"; then
8920 found_dir="$dir"
8921 found_a="$dir/lib$name.$libext"
8922 if test -f "$dir/lib$name.la"; then
8923 found_la="$dir/lib$name.la"
8924 fi
8925 fi
8926 fi
8927 ;;
8928 esac
8929 if test "X$found_dir" != "X"; then
8930 break
8931 fi
8932 done
8933 fi
8934 if test "X$found_dir" != "X"; then
8935 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8936 if test "X$found_so" != "X"; then
8937 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8938 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8939 else
8940 haveit=
8941 for x in $ltrpathdirs; do
8942 if test "X$x" = "X$found_dir"; then
8943 haveit=yes
8944 break
8945 fi
8946 done
8947 if test -z "$haveit"; then
8948 ltrpathdirs="$ltrpathdirs $found_dir"
8949 fi
8950 if test "$hardcode_direct" = yes; then
8951 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8952 else
8953 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8954 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8955 haveit=
8956 for x in $rpathdirs; do
8957 if test "X$x" = "X$found_dir"; then
8958 haveit=yes
8959 break
8960 fi
8961 done
8962 if test -z "$haveit"; then
8963 rpathdirs="$rpathdirs $found_dir"
8964 fi
8965 else
8966 haveit=
8967 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008968
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008969 acl_save_prefix="$prefix"
8970 prefix="$acl_final_prefix"
8971 acl_save_exec_prefix="$exec_prefix"
8972 exec_prefix="$acl_final_exec_prefix"
8973 eval x=\"$x\"
8974 exec_prefix="$acl_save_exec_prefix"
8975 prefix="$acl_save_prefix"
8976
8977 if test "X$x" = "X-L$found_dir"; then
8978 haveit=yes
8979 break
8980 fi
8981 done
8982 if test -z "$haveit"; then
8983 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8984 fi
8985 if test "$hardcode_minus_L" != no; then
8986 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8987 else
8988 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8989 fi
8990 fi
8991 fi
8992 fi
8993 else
8994 if test "X$found_a" != "X"; then
8995 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8996 else
8997 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8998 fi
8999 fi
9000 additional_includedir=
9001 case "$found_dir" in
9002 */lib | */lib/)
9003 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9004 additional_includedir="$basedir/include"
9005 ;;
9006 esac
9007 if test "X$additional_includedir" != "X"; then
9008 if test "X$additional_includedir" != "X/usr/include"; then
9009 haveit=
9010 if test "X$additional_includedir" = "X/usr/local/include"; then
9011 if test -n "$GCC"; then
9012 case $host_os in
9013 linux*) haveit=yes;;
9014 esac
9015 fi
9016 fi
9017 if test -z "$haveit"; then
9018 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009019
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009020 acl_save_prefix="$prefix"
9021 prefix="$acl_final_prefix"
9022 acl_save_exec_prefix="$exec_prefix"
9023 exec_prefix="$acl_final_exec_prefix"
9024 eval x=\"$x\"
9025 exec_prefix="$acl_save_exec_prefix"
9026 prefix="$acl_save_prefix"
9027
9028 if test "X$x" = "X-I$additional_includedir"; then
9029 haveit=yes
9030 break
9031 fi
9032 done
9033 if test -z "$haveit"; then
9034 if test -d "$additional_includedir"; then
9035 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9036 fi
9037 fi
9038 fi
9039 fi
9040 fi
9041 if test -n "$found_la"; then
9042 save_libdir="$libdir"
9043 case "$found_la" in
9044 */* | *\\*) . "$found_la" ;;
9045 *) . "./$found_la" ;;
9046 esac
9047 libdir="$save_libdir"
9048 for dep in $dependency_libs; do
9049 case "$dep" in
9050 -L*)
9051 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9052 if test "X$additional_libdir" != "X/usr/lib"; then
9053 haveit=
9054 if test "X$additional_libdir" = "X/usr/local/lib"; then
9055 if test -n "$GCC"; then
9056 case $host_os in
9057 linux*) haveit=yes;;
9058 esac
9059 fi
9060 fi
9061 if test -z "$haveit"; then
9062 haveit=
9063 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009064
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009065 acl_save_prefix="$prefix"
9066 prefix="$acl_final_prefix"
9067 acl_save_exec_prefix="$exec_prefix"
9068 exec_prefix="$acl_final_exec_prefix"
9069 eval x=\"$x\"
9070 exec_prefix="$acl_save_exec_prefix"
9071 prefix="$acl_save_prefix"
9072
9073 if test "X$x" = "X-L$additional_libdir"; then
9074 haveit=yes
9075 break
9076 fi
9077 done
9078 if test -z "$haveit"; then
9079 if test -d "$additional_libdir"; then
9080 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9081 fi
9082 fi
9083 haveit=
9084 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009085
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9090 eval x=\"$x\"
9091 exec_prefix="$acl_save_exec_prefix"
9092 prefix="$acl_save_prefix"
9093
9094 if test "X$x" = "X-L$additional_libdir"; then
9095 haveit=yes
9096 break
9097 fi
9098 done
9099 if test -z "$haveit"; then
9100 if test -d "$additional_libdir"; then
9101 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9102 fi
9103 fi
9104 fi
9105 fi
9106 ;;
9107 -R*)
9108 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9109 if test "$enable_rpath" != no; then
9110 haveit=
9111 for x in $rpathdirs; do
9112 if test "X$x" = "X$dir"; then
9113 haveit=yes
9114 break
9115 fi
9116 done
9117 if test -z "$haveit"; then
9118 rpathdirs="$rpathdirs $dir"
9119 fi
9120 haveit=
9121 for x in $ltrpathdirs; do
9122 if test "X$x" = "X$dir"; then
9123 haveit=yes
9124 break
9125 fi
9126 done
9127 if test -z "$haveit"; then
9128 ltrpathdirs="$ltrpathdirs $dir"
9129 fi
9130 fi
9131 ;;
9132 -l*)
9133 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9134 ;;
9135 *.la)
9136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9137 ;;
9138 *)
9139 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9140 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9141 ;;
9142 esac
9143 done
9144 fi
9145 else
9146 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9147 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9148 fi
9149 fi
9150 fi
9151 done
9152 done
9153 if test "X$rpathdirs" != "X"; then
9154 if test -n "$hardcode_libdir_separator"; then
9155 alldirs=
9156 for found_dir in $rpathdirs; do
9157 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9158 done
9159 acl_save_libdir="$libdir"
9160 libdir="$alldirs"
9161 eval flag=\"$hardcode_libdir_flag_spec\"
9162 libdir="$acl_save_libdir"
9163 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9164 else
9165 for found_dir in $rpathdirs; do
9166 acl_save_libdir="$libdir"
9167 libdir="$found_dir"
9168 eval flag=\"$hardcode_libdir_flag_spec\"
9169 libdir="$acl_save_libdir"
9170 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9171 done
9172 fi
9173 fi
9174 if test "X$ltrpathdirs" != "X"; then
9175 for found_dir in $ltrpathdirs; do
9176 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9177 done
9178 fi
9179
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009181$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009182if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009183 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009184else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009185 gt_save_CPPFLAGS="$CPPFLAGS"
9186 CPPFLAGS="$CPPFLAGS $INCINTL"
9187 gt_save_LIBS="$LIBS"
9188 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009190/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009191#include <libintl.h>
9192extern int _nl_msg_cat_cntr;
9193extern
9194#ifdef __cplusplus
9195"C"
9196#endif
9197const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009198int
9199main ()
9200{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009201bindtextdomain ("", "");
9202return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009203 ;
9204 return 0;
9205}
9206_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009207if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009208 gt_cv_func_gnugettext1_libintl=yes
9209else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009210 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009211fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009212rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009214 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9215 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009217/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009218#include <libintl.h>
9219extern int _nl_msg_cat_cntr;
9220extern
9221#ifdef __cplusplus
9222"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009223#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009224const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009225int
9226main ()
9227{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009228bindtextdomain ("", "");
9229return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009230 ;
9231 return 0;
9232}
9233_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009234if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009235 LIBINTL="$LIBINTL $LIBICONV"
9236 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9237 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009238
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009239fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009240rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009242 fi
9243 CPPFLAGS="$gt_save_CPPFLAGS"
9244 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009245fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009247$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009248 fi
9249
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009250 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9251 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009252 && test "$PACKAGE" != gettext-runtime \
9253 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009254 gt_use_preinstalled_gnugettext=yes
9255 else
9256 LIBINTL=
9257 LTLIBINTL=
9258 INCINTL=
9259 fi
9260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009261
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009262 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9263 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009264 fi
9265 fi
9266
9267 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009268 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009269 USE_INCLUDED_LIBINTL=yes
9270 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9271 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9272 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009273 fi
9274
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009275 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9276 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9277 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009278 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009279
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009280
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009281 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9282 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009283
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009284$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009285
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009286 else
9287 USE_NLS=no
9288 fi
9289 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009290
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009292$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009294$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009295 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009297$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009298 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9299 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9300 gt_source="external libintl"
9301 else
9302 gt_source="libc"
9303 fi
9304 else
9305 gt_source="included intl directory"
9306 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009308$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009309 fi
9310
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009311 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009312
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009313 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9314 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009316$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009318$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009319
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009320 for element in $INCINTL; do
9321 haveit=
9322 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009323
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009324 acl_save_prefix="$prefix"
9325 prefix="$acl_final_prefix"
9326 acl_save_exec_prefix="$exec_prefix"
9327 exec_prefix="$acl_final_exec_prefix"
9328 eval x=\"$x\"
9329 exec_prefix="$acl_save_exec_prefix"
9330 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009331
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009332 if test "X$x" = "X$element"; then
9333 haveit=yes
9334 break
9335 fi
9336 done
9337 if test -z "$haveit"; then
9338 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9339 fi
9340 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009341
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009342 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009343
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009344
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009345$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009346
9347
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009348$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009349
9350 fi
9351
9352 POSUB=po
9353 fi
9354
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009355
9356 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009357 BUILD_INCLUDED_LIBINTL=yes
9358 fi
9359
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009360
9361
9362
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009363
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009364 nls_cv_header_intl=
9365 nls_cv_header_libgt=
9366
9367 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009368
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009369
9370 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009371
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009372
9373 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009374
9375
9376 if test "$USE_INCLUDED_LIBINTL" = yes; then
9377 INTLOBJS="\$(GETTOBJS)"
9378 fi
9379
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009380
9381 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009382
9383
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009384
9385 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009386
9387
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009388
9389
9390
9391
9392
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009394$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9395set x ${MAKE-make}
9396ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009397if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009398 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009399else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009400 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009401SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009402all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009403 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009404_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009405# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009406case `${MAKE-make} -f conftest.make 2>/dev/null` in
9407 *@@@%%%=?*=@@@%%%*)
9408 eval ac_cv_prog_make_${ac_make}_set=yes;;
9409 *)
9410 eval ac_cv_prog_make_${ac_make}_set=no;;
9411esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009412rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009413fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009414if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009416$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009417 SET_MAKE=
9418else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009420$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009421 SET_MAKE="MAKE=${MAKE-make}"
9422fi
9423
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009425$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009426if test "${_cv_gnu_make_command+set}" = set; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009427 $as_echo_n "(cached) " >&6
9428else
9429 _cv_gnu_make_command='' ;
9430 for a in "$MAKE" make gmake gnumake ; do
9431 if test -z "$a" ; then continue ; fi ;
9432 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9433 _cv_gnu_make_command=$a ;
9434 break;
9435 fi
9436 done ;
9437
9438fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009440$as_echo "$_cv_gnu_make_command" >&6; } ;
9441 if test "x$_cv_gnu_make_command" != "x" ; then
9442 ifGNUmake='' ;
9443 ifNotGNUmake='#' ;
9444 else
9445 ifGNUmake='#' ;
9446 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009448$as_echo "\"Not found\"" >&6; };
9449 fi
9450
9451
9452
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009453# Extract the first word of "ln", so it can be a program name with args.
9454set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009456$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009457if test "${ac_cv_path_LN+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009458 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009459else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009460 case $LN in
9461 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009462 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9463 ;;
9464 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466for as_dir in $PATH
9467do
9468 IFS=$as_save_IFS
9469 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009470 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009471 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 -05009472 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009474 break 2
9475 fi
9476done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009477 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009478IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009479
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009480 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9481 ;;
9482esac
9483fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009484LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009485if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009487$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009488else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009490$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009491fi
9492
Theodore Ts'oe1052142006-10-21 21:46:47 -04009493
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009495$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009496LN_S=$as_ln_s
9497if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009499$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009500else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009502$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009503fi
9504
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009505# Extract the first word of "mv", so it can be a program name with args.
9506set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009508$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009509if test "${ac_cv_path_MV+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009510 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009511else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009512 case $MV in
9513 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009514 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9515 ;;
9516 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518for as_dir in $PATH
9519do
9520 IFS=$as_save_IFS
9521 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009522 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009523 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 -05009524 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009526 break 2
9527 fi
9528done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009529 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009530IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009531
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009532 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9533 ;;
9534esac
9535fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009536MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009537if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009539$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009540else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009542$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009543fi
9544
Theodore Ts'oe1052142006-10-21 21:46:47 -04009545
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009546# Extract the first word of "cp", so it can be a program name with args.
9547set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009549$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009550if test "${ac_cv_path_CP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009551 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009552else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009553 case $CP in
9554 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009555 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9556 ;;
9557 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559for as_dir in $PATH
9560do
9561 IFS=$as_save_IFS
9562 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009563 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009564 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 -05009565 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009567 break 2
9568 fi
9569done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009570 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009571IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009572
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009573 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9574 ;;
9575esac
9576fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009577CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009578if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009580$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009581else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009583$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009584fi
9585
Theodore Ts'oe1052142006-10-21 21:46:47 -04009586
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009587# Extract the first word of "rm", so it can be a program name with args.
9588set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009590$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009591if test "${ac_cv_path_RM+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009592 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009593else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009594 case $RM in
9595 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009596 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9597 ;;
9598 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600for as_dir in $PATH
9601do
9602 IFS=$as_save_IFS
9603 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009604 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009606 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009608 break 2
9609 fi
9610done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009611 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009612IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009613
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009614 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9615 ;;
9616esac
9617fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009618RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009619if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009621$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009622else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009624$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009625fi
9626
Theodore Ts'oe1052142006-10-21 21:46:47 -04009627
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009628# Extract the first word of "chmod", so it can be a program name with args.
9629set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009631$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009632if test "${ac_cv_path_CHMOD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009633 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009634else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009635 case $CHMOD in
9636 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009637 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9638 ;;
9639 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641for as_dir in $PATH
9642do
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009645 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009646 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 -05009647 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009649 break 2
9650 fi
9651done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009652 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009653IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009654
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009655 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9656 ;;
9657esac
9658fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009659CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009660if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009662$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009663else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009665$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009666fi
9667
Theodore Ts'oe1052142006-10-21 21:46:47 -04009668
Theodore Ts'o32237012005-01-17 19:13:39 -05009669for ac_prog in gawk mawk nawk awk
9670do
9671 # Extract the first word of "$ac_prog", so it can be a program name with args.
9672set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009674$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009675if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009676 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009677else
Theodore Ts'o32237012005-01-17 19:13:39 -05009678 if test -n "$AWK"; then
9679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9680else
9681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009682for as_dir in $PATH
9683do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009686 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009687 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 -05009688 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009690 break 2
9691 fi
9692done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009693 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009694IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009695
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009696fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009697fi
9698AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009699if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009701$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009702else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009704$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009705fi
9706
Theodore Ts'oe1052142006-10-21 21:46:47 -04009707
Theodore Ts'o32237012005-01-17 19:13:39 -05009708 test -n "$AWK" && break
9709done
9710
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009712$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009713if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009714 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009715else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009716 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9717 then ac_cv_path_EGREP="$GREP -E"
9718 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009719 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009720 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009721 # Loop through the user's path and test for each of PROGNAME-LIST
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009723for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9724do
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009727 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9730 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9731# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009732 # Check for GNU $ac_path_EGREP
9733case `"$ac_path_EGREP" --version 2>&1` in
9734*GNU*)
9735 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9736*)
9737 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009738 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009739 while :
9740 do
9741 cat "conftest.in" "conftest.in" >"conftest.tmp"
9742 mv "conftest.tmp" "conftest.in"
9743 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009744 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009745 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9746 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009747 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009748 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9749 # Best one so far, save it but keep looking for a better one
9750 ac_cv_path_EGREP="$ac_path_EGREP"
9751 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009752 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009753 # 10*(2^10) chars as input seems more than enough
9754 test $ac_count -gt 10 && break
9755 done
9756 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9757esac
9758
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009759 $ac_path_EGREP_found && break 3
9760 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009761 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009762 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009763IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009764 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009765 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 +01009766 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009767else
9768 ac_cv_path_EGREP=$EGREP
9769fi
9770
Theodore Ts'oe1052142006-10-21 21:46:47 -04009771 fi
9772fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009774$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009775 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009776
9777
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009778# Extract the first word of "sed", so it can be a program name with args.
9779set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009781$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009782if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009783 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009784else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009785 case $SED in
9786 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009787 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9788 ;;
9789 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791for as_dir in $PATH
9792do
9793 IFS=$as_save_IFS
9794 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009795 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009796 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 -05009797 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009799 break 2
9800 fi
9801done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009802 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009803IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009804
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009805 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9806 ;;
9807esac
9808fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009809SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009810if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009812$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009813else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009815$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009816fi
9817
Theodore Ts'oe1052142006-10-21 21:46:47 -04009818
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009819# Extract the first word of "perl", so it can be a program name with args.
9820set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009822$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009823if test "${ac_cv_path_PERL+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009824 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009825else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009826 case $PERL in
9827 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009828 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9829 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009830 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009831 as_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_path_PERL="$as_dir/$ac_word$ac_exec_ext"
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'o9d564f71999-07-03 20:25:58 +00009846 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9847 ;;
9848esac
9849fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009850PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009851if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009853$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009854else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009856$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009857fi
9858
Theodore Ts'oe1052142006-10-21 21:46:47 -04009859
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009860# Extract the first word of "ldconfig", so it can be a program name with args.
9861set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009863$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009864if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009865 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009866else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009867 case $LDCONFIG in
9868 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009869 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9870 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009871 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873for as_dir in $PATH
9874do
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009877 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009878 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 -05009879 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009881 break 2
9882 fi
9883done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009884 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009885IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009886
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009887 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9888 ;;
9889esac
9890fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009891LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009892if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009894$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009895else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009897$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009898fi
9899
Theodore Ts'oe1052142006-10-21 21:46:47 -04009900
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009901if test -n "$ac_tool_prefix"; then
9902 # 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 +00009903set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009905$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009906if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009907 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009908else
9909 if test -n "$AR"; then
9910 ac_cv_prog_AR="$AR" # Let the user override the test.
9911else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913for as_dir in $PATH
9914do
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009917 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009919 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009921 break 2
9922 fi
9923done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009924 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009925IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009926
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009927fi
9928fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009929AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009930if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009932$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009933else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009935$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009936fi
9937
Theodore Ts'oe1052142006-10-21 21:46:47 -04009938
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009939fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009940if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009941 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009942 # Extract the first word of "ar", so it can be a program name with args.
9943set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009945$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009946if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009947 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009948else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009949 if test -n "$ac_ct_AR"; then
9950 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009951else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953for as_dir in $PATH
9954do
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009957 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009959 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009961 break 2
9962 fi
9963done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009964 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009965IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009966
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009967fi
9968fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009969ac_ct_AR=$ac_cv_prog_ac_ct_AR
9970if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009972$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009973else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009975$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009976fi
9977
Theodore Ts'oe1052142006-10-21 21:46:47 -04009978 if test "x$ac_ct_AR" = x; then
9979 AR="ar"
9980 else
9981 case $cross_compiling:$ac_tool_warned in
9982yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009985ac_tool_warned=yes ;;
9986esac
9987 AR=$ac_ct_AR
9988 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009989else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009990 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009991fi
9992
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009993if test -n "$ac_tool_prefix"; then
9994 # 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 +00009995set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009997$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009998if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009999 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010000else
10001 if test -n "$RANLIB"; then
10002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10003else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005for as_dir in $PATH
10006do
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010009 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010010 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 -050010011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010013 break 2
10014 fi
10015done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010016 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010017IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010018
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010019fi
10020fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010021RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010022if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010024$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010025else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010027$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010028fi
10029
Theodore Ts'oe1052142006-10-21 21:46:47 -040010030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010031fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010032if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010033 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010034 # Extract the first word of "ranlib", so it can be a program name with args.
10035set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010037$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010038if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010039 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010040else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010041 if test -n "$ac_ct_RANLIB"; then
10042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010043else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045for as_dir in $PATH
10046do
10047 IFS=$as_save_IFS
10048 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010049 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010050 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 -050010051 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010053 break 2
10054 fi
10055done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010056 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010057IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010058
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010059fi
10060fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010061ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10062if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010064$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010065else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010067$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010068fi
10069
Theodore Ts'oe1052142006-10-21 21:46:47 -040010070 if test "x$ac_ct_RANLIB" = x; then
10071 RANLIB=":"
10072 else
10073 case $cross_compiling:$ac_tool_warned in
10074yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010075{ $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 +010010076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010077ac_tool_warned=yes ;;
10078esac
10079 RANLIB=$ac_ct_RANLIB
10080 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010081else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010082 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010083fi
10084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010085if test -n "$ac_tool_prefix"; then
10086 # 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 +000010087set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010089$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010090if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010091 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010092else
10093 if test -n "$STRIP"; then
10094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10095else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097for as_dir in $PATH
10098do
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010101 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010102 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 -050010103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010105 break 2
10106 fi
10107done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010108 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010109IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010110
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010111fi
10112fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010113STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010114if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010116$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010117else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010119$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010120fi
10121
Theodore Ts'oe1052142006-10-21 21:46:47 -040010122
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010123fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010124if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010125 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010126 # Extract the first word of "strip", so it can be a program name with args.
10127set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010129$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010130if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010131 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010132else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010133 if test -n "$ac_ct_STRIP"; then
10134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010135else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137for as_dir in $PATH
10138do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010141 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010142 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 -050010143 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010145 break 2
10146 fi
10147done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010148 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010149IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010150
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010151fi
10152fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10154if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010156$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010157else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010159$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010160fi
10161
Theodore Ts'oe1052142006-10-21 21:46:47 -040010162 if test "x$ac_ct_STRIP" = x; then
10163 STRIP=":"
10164 else
10165 case $cross_compiling:$ac_tool_warned in
10166yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010167{ $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 +010010168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010169ac_tool_warned=yes ;;
10170esac
10171 STRIP=$ac_ct_STRIP
10172 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010173else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010174 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010175fi
10176
Manish Katiyar7321d942008-04-14 17:20:03 +053010177# Extract the first word of "makeinfo", so it can be a program name with args.
10178set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010180$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010181if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010182 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010183else
10184 if test -n "$MAKEINFO"; then
10185 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10186else
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010192 for ac_exec_ext in '' $ac_executable_extensions; do
Manish Katiyar7321d942008-04-14 17:20:03 +053010193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10194 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010196 break 2
10197 fi
10198done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010199 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010200IFS=$as_save_IFS
10201
10202fi
10203fi
10204MAKEINFO=$ac_cv_prog_MAKEINFO
10205if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010207$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010208else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010210$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010211fi
10212
10213
10214if test "_$MAKEINFO" = "_"; then
10215 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10216else
10217 case "$MAKEINFO" in
10218 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010220*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010221$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010222*** Makeinfo is missing. Info documentation will not be built." >&2;}
10223 ;;
10224 *)
10225 ;;
10226 esac
10227fi
10228
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010229
Theodore Ts'o6c133521999-07-03 20:37:03 +000010230# See if we need a separate native compiler.
10231if test $cross_compiling = no; then
10232 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010233
Theodore Ts'o6c133521999-07-03 20:37:03 +000010234else
10235 for ac_prog in gcc cc
10236do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010237 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010238set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010240$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010241if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010242 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010243else
10244 if test -n "$BUILD_CC"; then
10245 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10246else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010249do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010252 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010253 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 -050010254 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010256 break 2
10257 fi
10258done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010259 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010260IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010262fi
10263fi
10264BUILD_CC=$ac_cv_prog_BUILD_CC
10265if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010267$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010268else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010270$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010271fi
10272
Theodore Ts'oe1052142006-10-21 21:46:47 -040010273
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010274 test -n "$BUILD_CC" && break
10275done
10276
10277fi
Mike Frysinger677fc912012-03-06 20:13:54 -050010278for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.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 -050010279do :
10280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10281ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10282eval as_val=\$$as_ac_Header
10283 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010284 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010285#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010286_ACEOF
10287
10288fi
10289
10290done
10291
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010292for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010293do :
10294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10295ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010296#if HAVE_SYS_QUEUE_H
10297#include <sys/queue.h>
10298#endif
10299
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010300"
10301eval as_val=\$$as_ac_Header
10302 if test "x$as_val" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010303 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010304#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010305_ACEOF
10306
10307fi
10308
10309done
10310
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010311for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010312do :
10313 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010314#if HAVE_SYS_TYPES_H
10315#include <sys/types.h>
10316#endif
10317#if HAVE_SYS_SOCKET
10318#include <sys/socket.h>
10319#endif
10320
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010321"
10322if test "x$ac_cv_header_net_if_h" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010323 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010324#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010325_ACEOF
10326
10327fi
10328
10329done
10330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010331for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010332do :
10333 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10334if test "x$ac_cv_func_vprintf" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010335 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010336#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010337_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010338
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010339ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10340if test "x$ac_cv_func__doprnt" = x""yes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010341
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010342$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010343
10344fi
10345
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010346fi
10347done
10348
10349
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010350ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10351"
10352if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010353
10354$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010355
10356fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010357
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010358ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10359"
10360if test "x$ac_cv_type_ssize_t" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010361
10362$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010363
Theodore Ts'offf45482003-04-13 00:44:19 -040010364fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010365
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010366ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10367"
10368if test "x$ac_cv_have_decl_llseek" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010369
10370$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010371
10372fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010373
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010374ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010375 #define _LARGEFILE64_SOURCE
10376 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010377"
10378if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010379
10380$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010381
10382fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010383
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010384# The cast to long int works around a bug in the HP C Compiler
10385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10387# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010389$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010390if test "${ac_cv_sizeof_short+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010391 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010392else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010393 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 -050010394
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010395else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010396 if test "$ac_cv_type_short" = yes; then
10397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010399{ as_fn_set_status 77
10400as_fn_error "cannot compute sizeof (short)
10401See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010402 else
10403 ac_cv_sizeof_short=0
10404 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010405fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010407fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010409$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010410
10411
10412
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010413cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010414#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010415_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010416
10417
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010418# The cast to long int works around a bug in the HP C Compiler
10419# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10420# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10421# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010423$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010424if test "${ac_cv_sizeof_int+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010425 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010426else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010427 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 -050010428
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010429else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010430 if test "$ac_cv_type_int" = yes; then
10431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010433{ as_fn_set_status 77
10434as_fn_error "cannot compute sizeof (int)
10435See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010436 else
10437 ac_cv_sizeof_int=0
10438 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010439fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010440
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010441fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010443$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010444
10445
10446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010447cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010448#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010449_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010450
10451
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010452# The cast to long int works around a bug in the HP C Compiler
10453# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10454# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10455# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010457$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010458if test "${ac_cv_sizeof_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010459 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010460else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010461 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 -050010462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010463else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010464 if test "$ac_cv_type_long" = yes; then
10465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010467{ as_fn_set_status 77
10468as_fn_error "cannot compute sizeof (long)
10469See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010470 else
10471 ac_cv_sizeof_long=0
10472 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010473fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010474
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010475fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010477$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010478
10479
10480
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010481cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010482#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010483_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010484
10485
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010486# The cast to long int works around a bug in the HP C Compiler
10487# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10488# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10489# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010491$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010492if test "${ac_cv_sizeof_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010493 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010494else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010495 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 -050010496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010497else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010498 if test "$ac_cv_type_long_long" = yes; then
10499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010501{ as_fn_set_status 77
10502as_fn_error "cannot compute sizeof (long long)
10503See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010504 else
10505 ac_cv_sizeof_long_long=0
10506 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010507fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010508
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010509fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010511$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010512
10513
10514
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010515cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010516#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010517_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010518
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010519
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010520SIZEOF_SHORT=$ac_cv_sizeof_short
10521SIZEOF_INT=$ac_cv_sizeof_int
10522SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010523SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10524
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010525
10526
10527
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010529$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010530if test "${ac_cv_c_bigendian+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010531 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010532else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010533 ac_cv_c_bigendian=unknown
10534 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010536/* end confdefs.h. */
10537#ifndef __APPLE_CC__
10538 not a universal capable compiler
10539 #endif
10540 typedef int dummy;
10541
10542_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010543if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010544
10545 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010546 # there are at least two -arch flags with different values.
10547 ac_arch=
10548 ac_prev=
10549 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10550 if test -n "$ac_prev"; then
10551 case $ac_word in
10552 i?86 | x86_64 | ppc | ppc64)
10553 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10554 ac_arch=$ac_word
10555 else
10556 ac_cv_c_bigendian=universal
10557 break
10558 fi
10559 ;;
10560 esac
10561 ac_prev=
10562 elif test "x$ac_word" = "x-arch"; then
10563 ac_prev=arch
10564 fi
10565 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010566fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568 if test $ac_cv_c_bigendian = unknown; then
10569 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010571/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010572#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010573 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010575int
10576main ()
10577{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010578#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10579 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10580 && LITTLE_ENDIAN)
10581 bogus endian macros
10582 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010583
10584 ;
10585 return 0;
10586}
10587_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010588if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010589 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010591/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010592#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010593 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010594
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010595int
10596main ()
10597{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010598#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010599 not big endian
10600 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010601
10602 ;
10603 return 0;
10604}
10605_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010606if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010607 ac_cv_c_bigendian=yes
10608else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010609 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010612fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614 fi
10615 if test $ac_cv_c_bigendian = unknown; then
10616 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010618/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010619#include <limits.h>
10620
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010621int
10622main ()
10623{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010624#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10625 bogus endian macros
10626 #endif
10627
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010628 ;
10629 return 0;
10630}
10631_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010632if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010633 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010635/* end confdefs.h. */
10636#include <limits.h>
10637
10638int
10639main ()
10640{
10641#ifndef _BIG_ENDIAN
10642 not big endian
10643 #endif
10644
10645 ;
10646 return 0;
10647}
10648_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010649if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010650 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010651else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010652 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010653fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010655fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10657 fi
10658 if test $ac_cv_c_bigendian = unknown; then
10659 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010660 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010661 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010663/* end confdefs.h. */
10664short int ascii_mm[] =
10665 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10666 short int ascii_ii[] =
10667 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10668 int use_ascii (int i) {
10669 return ascii_mm[i] + ascii_ii[i];
10670 }
10671 short int ebcdic_ii[] =
10672 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10673 short int ebcdic_mm[] =
10674 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10675 int use_ebcdic (int i) {
10676 return ebcdic_mm[i] + ebcdic_ii[i];
10677 }
10678 extern int foo;
10679
10680int
10681main ()
10682{
10683return use_ascii (foo) == use_ebcdic (foo);
10684 ;
10685 return 0;
10686}
10687_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010688if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010689 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10690 ac_cv_c_bigendian=yes
10691 fi
10692 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10693 if test "$ac_cv_c_bigendian" = unknown; then
10694 ac_cv_c_bigendian=no
10695 else
10696 # finding both strings is unlikely to happen, but who knows?
10697 ac_cv_c_bigendian=unknown
10698 fi
10699 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010700fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010702else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010704/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010705$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010706int
10707main ()
10708{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010709
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010710 /* Are we little or big endian? From Harbison&Steele. */
10711 union
10712 {
10713 long int l;
10714 char c[sizeof (long int)];
10715 } u;
10716 u.l = 1;
10717 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010718
10719 ;
10720 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010721}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010722_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010723if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010724 ac_cv_c_bigendian=no
10725else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010726 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010727fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10729 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010730fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010731
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010732 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010733fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010735$as_echo "$ac_cv_c_bigendian" >&6; }
10736 case $ac_cv_c_bigendian in #(
10737 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010738 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010739;; #(
10740 no)
10741 ;; #(
10742 universal)
10743
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010744$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010745
10746 ;; #(
10747 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010748 as_fn_error "unknown endianness
10749 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010750 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010751
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010752BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010753ASM_TYPES_HEADER=./asm_types.h
10754
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010755echo "/* These defines are needed for the public ext2fs.h header file */" \
10756 > public_config.h
10757if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10758 uniq tmp_config.$$ >> public_config.h
10759else
10760 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10761fi
10762if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10763 uniq tmp_config.$$ >> public_config.h
10764else
10765 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10766fi
10767rm -f tmp_config.$$
10768PUBLIC_CONFIG_HEADER=./public_config.h
10769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010770for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010771do :
10772 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10773if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010774 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010775#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010776_ACEOF
10777
10778fi
10779
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010780done
10781
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010782ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10783if test "x$ac_cv_type_intptr_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010784
10785cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010786#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010787_ACEOF
10788
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010789
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010790fi
10791
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010792{ $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 +010010793$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010794if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010795 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010796else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010798/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010799#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010800int
10801main ()
10802{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010803struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010804 ;
10805 return 0;
10806}
10807_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010808if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010809 e2fsprogs_cv_struct_st_flags=yes
10810else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010811 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010812fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10814fi
10815
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010817$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010818if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010820$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010821 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010822 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010823else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010825/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010826#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010827int
10828main ()
10829{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010830struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010831 ;
10832 return 0;
10833}
10834_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010835if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010836 e2fsprogs_cv_struct_st_flags_immut=yes
10837else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010838 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010839fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10841fi
10842
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010844$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010845 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010846
10847$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010848
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010849 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010850fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010851ac_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 -050010852 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010853"
10854if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010855
10856cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010857#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010858_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010859
10860fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010861
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010862if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010864$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010865if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010866 $as_echo_n "(cached) " >&6
10867else
10868 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010870/* end confdefs.h. */
10871
10872/* Override any GCC internal prototype to avoid an error.
10873 Use char because int might match the return type of a GCC
10874 builtin and then its argument prototype would still apply. */
10875#ifdef __cplusplus
10876extern "C"
10877#endif
10878char blkid_probe_all ();
10879int
10880main ()
10881{
10882return blkid_probe_all ();
10883 ;
10884 return 0;
10885}
10886_ACEOF
10887for ac_lib in '' blkid; do
10888 if test -z "$ac_lib"; then
10889 ac_res="none required"
10890 else
10891 ac_res=-l$ac_lib
10892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10893 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010894 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010895 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010896fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010897rm -f core conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext
10899 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010900 break
10901fi
10902done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010903if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10904
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010905else
10906 ac_cv_search_blkid_probe_all=no
10907fi
10908rm conftest.$ac_ext
10909LIBS=$ac_func_search_save_LIBS
10910fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010912$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10913ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010914if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10916
10917fi
10918
10919fi
Theodore Ts'ob24efa22012-04-05 15:31:09 -070010920for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl quotactl setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010921do :
10922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10923ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10924eval as_val=\$$as_ac_var
10925 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010926 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010927#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010928_ACEOF
10929
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010930fi
10931done
10932
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010933SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010935$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010936if test "${ac_cv_lib_socket_socket+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010937 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010938else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010939 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010940LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010942/* end confdefs.h. */
10943
Theodore Ts'oe1052142006-10-21 21:46:47 -040010944/* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010947#ifdef __cplusplus
10948extern "C"
10949#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010950char socket ();
10951int
10952main ()
10953{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010954return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010955 ;
10956 return 0;
10957}
10958_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010959if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010960 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010961else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010962 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010963fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010964rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010966LIBS=$ac_check_lib_save_LIBS
10967fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010969$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010970if test "x$ac_cv_lib_socket_socket" = x""yes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010971 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010972fi
10973
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010974
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010976$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010977if test "${ac_cv_have_optreset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010978 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010979else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010981/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010982#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010983
10984_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010986 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010987 ac_cv_have_optreset=yes
10988else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010989 ac_cv_have_optreset=no
10990fi
10991rm -f conftest*
10992
10993fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010995$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010996if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010997
10998$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010999
11000fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011001
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011002SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011003ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11004if test "x$ac_cv_func_sem_init" = x""yes; then :
11005
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011006else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011008$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011009if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011010 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011011else
11012 ac_check_lib_save_LIBS=$LIBS
11013LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011015/* end confdefs.h. */
11016
11017/* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11020#ifdef __cplusplus
11021extern "C"
11022#endif
11023char sem_init ();
11024int
11025main ()
11026{
11027return sem_init ();
11028 ;
11029 return 0;
11030}
11031_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011032if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011033 ac_cv_lib_pthread_sem_init=yes
11034else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011035 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011036fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011037rm -f core conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011039LIBS=$ac_check_lib_save_LIBS
11040fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011042$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011043if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11044 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011045
11046 SEM_INIT_LIB=-lpthread
11047else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011049$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011050if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011051 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011052else
11053 ac_check_lib_save_LIBS=$LIBS
11054LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011056/* end confdefs.h. */
11057
11058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11061#ifdef __cplusplus
11062extern "C"
11063#endif
11064char sem_init ();
11065int
11066main ()
11067{
11068return sem_init ();
11069 ;
11070 return 0;
11071}
11072_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011073if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011074 ac_cv_lib_rt_sem_init=yes
11075else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011076 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011077fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011078rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011080LIBS=$ac_check_lib_save_LIBS
11081fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011083$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011084if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11085 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011086
11087 SEM_INIT_LIB=-lrt
11088else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011090$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011091if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011092 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011093else
11094 ac_check_lib_save_LIBS=$LIBS
11095LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011097/* end confdefs.h. */
11098
11099/* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11102#ifdef __cplusplus
11103extern "C"
11104#endif
11105char sem_init ();
11106int
11107main ()
11108{
11109return sem_init ();
11110 ;
11111 return 0;
11112}
11113_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011114if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011115 ac_cv_lib_posix4_sem_init=yes
11116else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011117 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011118fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011119rm -f core conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011121LIBS=$ac_check_lib_save_LIBS
11122fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011124$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011125if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11126 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011127
11128 SEM_INIT_LIB=-lposix4
11129fi
11130
11131fi
11132
11133fi
11134
11135fi
11136
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011138$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011139if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011140 UNI_DIFF_OPTS=-u
11141else
11142 UNI_DIFF_OPTS=-c
11143fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011145$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011146
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011147case "$host_os" in
11148linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011149
11150$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011151
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011152 ;;
11153esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011154LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011155CYGWIN_CMT="#"
11156UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011157case "$host_os" in
11158linux*)
11159 LINUX_CMT=
11160 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011161cygwin)
11162 CYGWIN_CMT=
11163 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011164 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011165esac
11166
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011167
11168
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011169case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011170linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011171 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11172 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011173 { $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 +010011174$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011175 fi
11176 ;;
11177esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011178case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011179linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011180 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011181 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011182 { $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 +010011183$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011184 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011186$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011187 mandir=/usr/share/man
11188 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011189 fi
11190;;
11191esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011192if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011193 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011194 root_prefix="$ac_default_prefix"
11195 else
11196 root_prefix="$prefix"
11197 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011198 root_bindir=$bindir
11199 root_sbindir=$sbindir
11200 root_libdir=$libdir
11201 root_sysconfdir=$sysconfdir
11202else
11203 root_bindir='${root_prefix}/bin'
11204 root_sbindir='${root_prefix}/sbin'
11205 root_libdir='${root_prefix}/lib'
11206 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011207fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011208if test "$bindir" != '${exec_prefix}/bin'; then
11209 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011211$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011212fi
11213if test "$sbindir" != '${exec_prefix}/sbin'; then
11214 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011216$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011217fi
11218if test "$libdir" != '${exec_prefix}/lib'; then
11219 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011221$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011222fi
11223if test "$sysconfdir" != '${prefix}/etc'; then
11224 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011226$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011227fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011228
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011229
11230
11231
11232
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011233
11234# Check whether --with-multiarch was given.
11235if test "${with_multiarch+set}" = set; then :
11236 withval=$with_multiarch; libdir=$libdir/$withval
11237root_libdir=$root_libdir/$withval
11238
11239fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011241$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011242if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011243 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011244else
11245 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011247/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011248#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011249int
11250main ()
11251{
Theodore Ts'oae851481997-04-29 18:13:24 +000011252fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011253 ;
11254 return 0;
11255}
11256_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011257if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011258 ac_cv_e2fsprogs_use_static=yes
11259else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011260 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011261fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011262rm -f core conftest.err conftest.$ac_objext \
11263 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011264LDFLAGS=$SAVE_LDFLAGS
11265fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011266
Theodore Ts'odefde781999-01-04 07:39:19 +000011267case "$host_os" in
11268solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011269 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011270;;
11271esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011273$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011274LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011275if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011276 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011277fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011278
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011279case "$host_os" in
11280darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011282$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011283
11284$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011285
11286 ;;
11287esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011288SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11289ET_DIR=`cd ${srcdir}/lib/et; pwd`
11290
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011291
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011292if test "$cross_compiling" = yes ; then
11293 DO_TEST_SUITE=
11294else
11295 DO_TEST_SUITE=check
11296fi
11297
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011298INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11299if test -n "$CPPFLAGS" ; then
11300 INCLUDES="$INCLUDES $CPPFLAGS"
11301fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011302if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011303 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011304fi
11305
Theodore Ts'odd947da2005-11-09 18:37:07 -040011306if test $cross_compiling = no; then
11307 BUILD_CFLAGS="$CFLAGS"
11308 BUILD_LDFLAGS="$LDFLAGS"
11309else
11310 BUILD_CFLAGS=
11311 BUILD_LDFLAGS=
11312fi
11313
11314
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011315test -d lib || mkdir lib
11316test -d include || mkdir include
11317test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011318test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011319for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040011320 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011321 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11322 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011323 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011324 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011325 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11326 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011327 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011328 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011329 resize/Makefile doc/Makefile intl/Makefile \
11330 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011331 if test -d `dirname ${srcdir}/$i` ; then
11332 outlist="$outlist $i"
11333 fi
11334done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011335ac_config_files="$ac_config_files $outlist"
11336
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011337cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011338# This file is a shell script that caches the results of configure
11339# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011340# scripts and configure runs, see configure's option --config-cache.
11341# It is not useful on other systems. If it contains results you don't
11342# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011343#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011344# config.status only pays attention to the cache file if you give it
11345# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011346#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011347# `ac_cv_env_foo' variables (set or unset) will be overridden when
11348# loading this file, other *unset* `ac_cv_foo' will be assigned the
11349# following values.
11350
11351_ACEOF
11352
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011353# The following way of writing the cache mishandles newlines in values,
11354# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011355# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011356# Ultrix sh set writes to stderr and can't be redirected directly,
11357# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011358(
11359 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11360 eval ac_val=\$$ac_var
11361 case $ac_val in #(
11362 *${as_nl}*)
11363 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011364 *_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 +010011365$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011366 esac
11367 case $ac_var in #(
11368 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011369 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011370 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011371 esac ;;
11372 esac
11373 done
11374
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011375 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011376 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11377 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011378 # `set' does not quote correctly, so add quotes: double-quote
11379 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380 sed -n \
11381 "s/'/'\\\\''/g;
11382 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011383 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011384 *)
11385 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011386 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011387 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011388 esac |
11389 sort
11390) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011391 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011392 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011393 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011394 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011395 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11396 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011397 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11398 :end' >>confcache
11399if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11400 if test -w "$cache_file"; then
11401 test "x$cache_file" != "x/dev/null" &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011402 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011403$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011404 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011405 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011406 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011407$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011408 fi
11409fi
11410rm -f confcache
11411
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011412test "x$prefix" = xNONE && prefix=$ac_default_prefix
11413# Let make expand exec_prefix.
11414test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11415
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011416DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011418ac_libobjs=
11419ac_ltlibobjs=
11420for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11421 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011422 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011423 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011424 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11425 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011426 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11427 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011428done
11429LIBOBJS=$ac_libobjs
11430
11431LTLIBOBJS=$ac_ltlibobjs
11432
11433
11434
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011435
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011436: ${CONFIG_STATUS=./config.status}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011437ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011438ac_clean_files_save=$ac_clean_files
11439ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011440{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011441$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011442as_write_fail=0
11443cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011444#! $SHELL
11445# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011446# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011447# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011448# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011450debug=false
11451ac_cs_recheck=false
11452ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011453
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011454SHELL=\${CONFIG_SHELL-$SHELL}
11455export SHELL
11456_ASEOF
11457cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11458## -------------------- ##
11459## M4sh Initialization. ##
11460## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011461
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011462# Be more Bourne compatible
11463DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011464if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011465 emulate sh
11466 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011467 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011468 # is contrary to our usage. Disable this feature.
11469 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011470 setopt NO_GLOB_SUBST
11471else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011472 case `(set -o) 2>/dev/null` in #(
11473 *posix*) :
11474 set -o posix ;; #(
11475 *) :
11476 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011477esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011478fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011479
11480
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011481as_nl='
11482'
11483export as_nl
11484# Printing a long string crashes Solaris 7 /usr/bin/printf.
11485as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11486as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11487as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011488# Prefer a ksh shell builtin over an external printf program on Solaris,
11489# but without wasting forks for bash or zsh.
11490if test -z "$BASH_VERSION$ZSH_VERSION" \
11491 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11492 as_echo='print -r --'
11493 as_echo_n='print -rn --'
11494elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011495 as_echo='printf %s\n'
11496 as_echo_n='printf %s'
11497else
11498 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11499 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11500 as_echo_n='/usr/ucb/echo -n'
11501 else
11502 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11503 as_echo_n_body='eval
11504 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011505 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011506 *"$as_nl"*)
11507 expr "X$arg" : "X\\(.*\\)$as_nl";
11508 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11509 esac;
11510 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11511 '
11512 export as_echo_n_body
11513 as_echo_n='sh -c $as_echo_n_body as_echo'
11514 fi
11515 export as_echo_body
11516 as_echo='sh -c $as_echo_body as_echo'
11517fi
11518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011519# The user is always right.
11520if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011521 PATH_SEPARATOR=:
11522 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11523 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11524 PATH_SEPARATOR=';'
11525 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011526fi
11527
Theodore Ts'oe1052142006-10-21 21:46:47 -040011528
11529# IFS
11530# We need space, tab and new line, in precisely that order. Quoting is
11531# there to prevent editors from complaining about space-tab.
11532# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11533# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011534IFS=" "" $as_nl"
11535
11536# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011537case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011538 *[\\/]* ) as_myself=$0 ;;
11539 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011540for as_dir in $PATH
11541do
11542 IFS=$as_save_IFS
11543 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011544 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11545 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011546IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011547
Theodore Ts'oe1052142006-10-21 21:46:47 -040011548 ;;
11549esac
11550# We did not find ourselves, most probably we were run as `sh COMMAND'
11551# in which case we are not to be found in the path.
11552if test "x$as_myself" = x; then
11553 as_myself=$0
11554fi
11555if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011556 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011557 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011558fi
11559
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011560# Unset variables that we do not need and which cause bugs (e.g. in
11561# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11562# suppresses any "Segmentation fault" message there. '((' could
11563# trigger a bug in pdksh 5.2.14.
11564for as_var in BASH_ENV ENV MAIL MAILPATH
11565do eval test x\${$as_var+set} = xset \
11566 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011567done
11568PS1='$ '
11569PS2='> '
11570PS4='+ '
11571
11572# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011573LC_ALL=C
11574export LC_ALL
11575LANGUAGE=C
11576export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011577
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011578# CDPATH.
11579(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11580
11581
11582# as_fn_error ERROR [LINENO LOG_FD]
11583# ---------------------------------
11584# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11585# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11586# script with status $?, using 1 if that was 0.
11587as_fn_error ()
11588{
11589 as_status=$?; test $as_status -eq 0 && as_status=1
11590 if test "$3"; then
11591 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11592 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11593 fi
11594 $as_echo "$as_me: error: $1" >&2
11595 as_fn_exit $as_status
11596} # as_fn_error
11597
11598
11599# as_fn_set_status STATUS
11600# -----------------------
11601# Set $? to STATUS, without forking.
11602as_fn_set_status ()
11603{
11604 return $1
11605} # as_fn_set_status
11606
11607# as_fn_exit STATUS
11608# -----------------
11609# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11610as_fn_exit ()
11611{
11612 set +e
11613 as_fn_set_status $1
11614 exit $1
11615} # as_fn_exit
11616
11617# as_fn_unset VAR
11618# ---------------
11619# Portably unset VAR.
11620as_fn_unset ()
11621{
11622 { eval $1=; unset $1;}
11623}
11624as_unset=as_fn_unset
11625# as_fn_append VAR VALUE
11626# ----------------------
11627# Append the text in VALUE to the end of the definition contained in VAR. Take
11628# advantage of any shell optimizations that allow amortized linear growth over
11629# repeated appends, instead of the typical quadratic growth present in naive
11630# implementations.
11631if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11632 eval 'as_fn_append ()
11633 {
11634 eval $1+=\$2
11635 }'
11636else
11637 as_fn_append ()
11638 {
11639 eval $1=\$$1\$2
11640 }
11641fi # as_fn_append
11642
11643# as_fn_arith ARG...
11644# ------------------
11645# Perform arithmetic evaluation on the ARGs, and store the result in the
11646# global $as_val. Take advantage of shells that can avoid forks. The arguments
11647# must be portable across $(()) and expr.
11648if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11649 eval 'as_fn_arith ()
11650 {
11651 as_val=$(( $* ))
11652 }'
11653else
11654 as_fn_arith ()
11655 {
11656 as_val=`expr "$@" || test $? -eq 1`
11657 }
11658fi # as_fn_arith
11659
11660
Theodore Ts'oe1052142006-10-21 21:46:47 -040011661if expr a : '\(a\)' >/dev/null 2>&1 &&
11662 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11663 as_expr=expr
11664else
11665 as_expr=false
11666fi
11667
11668if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11669 as_basename=basename
11670else
11671 as_basename=false
11672fi
11673
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011674if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11675 as_dirname=dirname
11676else
11677 as_dirname=false
11678fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011679
Theodore Ts'oe1052142006-10-21 21:46:47 -040011680as_me=`$as_basename -- "$0" ||
11681$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11682 X"$0" : 'X\(//\)$' \| \
11683 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011684$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011685 sed '/^.*\/\([^/][^/]*\)\/*$/{
11686 s//\1/
11687 q
11688 }
11689 /^X\/\(\/\/\)$/{
11690 s//\1/
11691 q
11692 }
11693 /^X\/\(\/\).*/{
11694 s//\1/
11695 q
11696 }
11697 s/.*/./; q'`
11698
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011699# Avoid depending upon Character Ranges.
11700as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11701as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11702as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11703as_cr_digits='0123456789'
11704as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011705
11706ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011707case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011708-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011709 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011710 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011711 xy) ECHO_C='\c';;
11712 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11713 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011714 esac;;
11715*)
11716 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011717esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011718
11719rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011720if test -d conf$$.dir; then
11721 rm -f conf$$.dir/conf$$.file
11722else
11723 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011724 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011725fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011726if (echo >conf$$.file) 2>/dev/null; then
11727 if ln -s conf$$.file conf$$ 2>/dev/null; then
11728 as_ln_s='ln -s'
11729 # ... but there are two gotchas:
11730 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11731 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11732 # In both cases, we have to default to `cp -p'.
11733 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11734 as_ln_s='cp -p'
11735 elif ln conf$$.file conf$$ 2>/dev/null; then
11736 as_ln_s=ln
11737 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011738 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011739 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011740else
11741 as_ln_s='cp -p'
11742fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011743rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11744rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011745
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011746
11747# as_fn_mkdir_p
11748# -------------
11749# Create "$as_dir" as a directory, including parents if necessary.
11750as_fn_mkdir_p ()
11751{
11752
11753 case $as_dir in #(
11754 -*) as_dir=./$as_dir;;
11755 esac
11756 test -d "$as_dir" || eval $as_mkdir_p || {
11757 as_dirs=
11758 while :; do
11759 case $as_dir in #(
11760 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11761 *) as_qdir=$as_dir;;
11762 esac
11763 as_dirs="'$as_qdir' $as_dirs"
11764 as_dir=`$as_dirname -- "$as_dir" ||
11765$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11766 X"$as_dir" : 'X\(//\)[^/]' \| \
11767 X"$as_dir" : 'X\(//\)$' \| \
11768 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11769$as_echo X"$as_dir" |
11770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11771 s//\1/
11772 q
11773 }
11774 /^X\(\/\/\)[^/].*/{
11775 s//\1/
11776 q
11777 }
11778 /^X\(\/\/\)$/{
11779 s//\1/
11780 q
11781 }
11782 /^X\(\/\).*/{
11783 s//\1/
11784 q
11785 }
11786 s/.*/./; q'`
11787 test -d "$as_dir" && break
11788 done
11789 test -z "$as_dirs" || eval "mkdir $as_dirs"
11790 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11791
11792
11793} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011794if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011795 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011796else
11797 test -d ./-p && rmdir ./-p
11798 as_mkdir_p=false
11799fi
11800
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011801if test -x / >/dev/null 2>&1; then
11802 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011803else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011804 if ls -dL / >/dev/null 2>&1; then
11805 as_ls_L_option=L
11806 else
11807 as_ls_L_option=
11808 fi
11809 as_test_x='
11810 eval sh -c '\''
11811 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011812 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011813 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011814 case $1 in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011815 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011816 esac;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011817 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011818 ???[sx]*):;;*)false;;esac;fi
11819 '\'' sh
11820 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011821fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011822as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011823
11824# Sed expression to map a string onto a valid CPP name.
11825as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11826
11827# Sed expression to map a string onto a valid variable name.
11828as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11829
11830
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011831exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011832## ----------------------------------- ##
11833## Main body of $CONFIG_STATUS script. ##
11834## ----------------------------------- ##
11835_ASEOF
11836test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011837
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11839# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011840# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011841# values after options handling.
11842ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011843This file was extended by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011844generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011845
11846 CONFIG_FILES = $CONFIG_FILES
11847 CONFIG_HEADERS = $CONFIG_HEADERS
11848 CONFIG_LINKS = $CONFIG_LINKS
11849 CONFIG_COMMANDS = $CONFIG_COMMANDS
11850 $ $0 $@
11851
Theodore Ts'oe1052142006-10-21 21:46:47 -040011852on `(hostname || uname -n) 2>/dev/null | sed 1q`
11853"
11854
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011855_ACEOF
11856
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011857case $ac_config_files in *"
11858"*) set x $ac_config_files; shift; ac_config_files=$*;;
11859esac
11860
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011861case $ac_config_headers in *"
11862"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11863esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011864
11865
11866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011867# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011868config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011869config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011870config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011871
Theodore Ts'oe1052142006-10-21 21:46:47 -040011872_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011873
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011875ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011876\`$as_me' instantiates files and other configuration actions
11877from templates according to the current configuration. Unless the files
11878and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011879
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011880Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011881
11882 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011883 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011884 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011885 -q, --quiet, --silent
11886 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011887 -d, --debug don't remove temporary files
11888 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011889 --file=FILE[:TEMPLATE]
11890 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011891 --header=FILE[:TEMPLATE]
11892 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011893
11894Configuration files:
11895$config_files
11896
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011897Configuration headers:
11898$config_headers
11899
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011900Configuration commands:
11901$config_commands
11902
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011903Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011904
Theodore Ts'oe1052142006-10-21 21:46:47 -040011905_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011907ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011908ac_cs_version="\\
11909config.status
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011910configured by $0, generated by GNU Autoconf 2.65,
11911 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011912
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011913Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011914This config.status script is free software; the Free Software Foundation
11915gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040011916
11917ac_pwd='$ac_pwd'
11918srcdir='$srcdir'
11919INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011920AWK='$AWK'
11921test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011922_ACEOF
11923
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11925# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011926ac_need_defaults=:
11927while test $# != 0
11928do
11929 case $1 in
11930 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011933 ac_shift=:
11934 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011935 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936 ac_option=$1
11937 ac_optarg=$2
11938 ac_shift=shift
11939 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011940 esac
11941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011942 case $ac_option in
11943 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11945 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011947 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011948 --config | --confi | --conf | --con | --co | --c )
11949 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011950 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011951 debug=: ;;
11952 --file | --fil | --fi | --f )
11953 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011954 case $ac_optarg in
11955 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11956 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011957 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011958 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011959 --header | --heade | --head | --hea )
11960 $ac_shift
11961 case $ac_optarg in
11962 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11963 esac
11964 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11965 ac_need_defaults=false;;
11966 --he | --h)
11967 # Conflict between --help and --header
11968 as_fn_error "ambiguous option: \`$1'
11969Try \`$0 --help' for more information.";;
11970 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011971 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011972 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11973 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11974 ac_cs_silent=: ;;
11975
11976 # This is an error.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011977 -*) as_fn_error "unrecognized option: \`$1'
11978Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011979
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011980 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011981 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011982
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011983 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011984 shift
11985done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011986
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011987ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011988
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011989if $ac_cs_silent; then
11990 exec 6>/dev/null
11991 ac_configure_extra_args="$ac_configure_extra_args --silent"
11992fi
11993
11994_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011996if \$ac_cs_recheck; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011997 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11998 shift
11999 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12000 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012001 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012002 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012003fi
12004
12005_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012007exec 5>>config.log
12008{
12009 echo
12010 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12011## Running $as_me. ##
12012_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012013 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012014} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012015
Theodore Ts'oe1052142006-10-21 21:46:47 -040012016_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012018#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012019# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012021# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012022 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012023 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012024 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012025 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12026 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012027
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012028
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012029_ACEOF
12030
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012032
12033# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012034for ac_config_target in $ac_config_targets
12035do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012036 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012037 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012038 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12039 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12040
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012041 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042 esac
12043done
12044
Theodore Ts'oe1052142006-10-21 21:46:47 -040012045
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012046# If the user did not use the arguments to specify the items to instantiate,
12047# then the envvar interface is used. Set only those that are not.
12048# We use the long form for the default assignment because of an extremely
12049# bizarre bug on SunOS 4.1.3.
12050if $ac_need_defaults; then
12051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012053 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12054fi
12055
12056# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012057# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012058# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012059# Hook for its removal unless debugging.
12060# Note that there is a small window in which the directory will not be cleaned:
12061# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012062$debug ||
12063{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012064 tmp=
12065 trap 'exit_status=$?
12066 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12067' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012068 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012069}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012070# Create a (secure) tmp directory for tmp files.
12071
12072{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012074 test -n "$tmp" && test -d "$tmp"
12075} ||
12076{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012077 tmp=./conf$$-$RANDOM
12078 (umask 077 && mkdir "$tmp")
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012079} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012080
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012081# Set up the scripts for CONFIG_FILES section.
12082# No need to generate them if there are no CONFIG_FILES.
12083# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012084if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012085
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012086if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12087 ac_cs_awk_getline=:
12088 ac_cs_awk_pipe_init=
12089 ac_cs_awk_read_file='
12090 while ((getline aline < (F[key])) > 0)
12091 print(aline)
12092 close(F[key])'
12093 ac_cs_awk_pipe_fini=
12094else
12095 ac_cs_awk_getline=false
12096 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12097 ac_cs_awk_read_file='
12098 print "|#_!!_#|"
12099 print "cat " F[key] " &&"
12100 '$ac_cs_awk_pipe_init
12101 # The final `:' finishes the AND list.
12102 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12103fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012104ac_cr=`echo X | tr X '\015'`
12105# On cygwin, bash can eat \r inside `` if the user requested igncr.
12106# But we know of no other shell where ac_cr would be empty at this
12107# point, so we can use a bashism as a fallback.
12108if test "x$ac_cr" = x; then
12109 eval ac_cr=\$\'\\r\'
12110fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012111ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12112if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012113 ac_cs_awk_cr='\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012114else
12115 ac_cs_awk_cr=$ac_cr
12116fi
12117
12118echo 'BEGIN {' >"$tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012119_ACEOF
12120
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012121# Create commands to substitute file output variables.
12122{
12123 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12124 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12125 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12126 echo "_ACAWK" &&
12127 echo "_ACEOF"
12128} >conf$$files.sh &&
12129. ./conf$$files.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012130 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012131rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012132
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012133{
12134 echo "cat >conf$$subs.awk <<_ACEOF" &&
12135 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12136 echo "_ACEOF"
12137} >conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012138 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012139ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012140ac_delim='%!_!# '
12141for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012142 . ./conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012143 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012144
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012145 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12146 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012147 break
12148 elif $ac_last_try; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012149 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012150 else
12151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012152 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012153done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012154rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012155
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12157cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012158_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012159sed -n '
12160h
12161s/^/S["/; s/!.*/"]=/
12162p
12163g
12164s/^[^!]*!//
12165:repl
12166t repl
12167s/'"$ac_delim"'$//
12168t delim
12169:nl
12170h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012171s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012172t more1
12173s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12174p
12175n
12176b repl
12177:more1
12178s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12179p
12180g
12181s/.\{148\}//
12182t nl
12183:delim
12184h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012185s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012186t more2
12187s/["\\]/\\&/g; s/^/"/; s/$/"/
12188p
12189b
12190:more2
12191s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12192p
12193g
12194s/.\{148\}//
12195t delim
12196' <conf$$subs.awk | sed '
12197/^[^""]/{
12198 N
12199 s/\n//
12200}
12201' >>$CONFIG_STATUS || ac_write_fail=1
12202rm -f conf$$subs.awk
12203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12204_ACAWK
12205cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12206 for (key in S) S_is_set[key] = 1
12207 FS = ""
12208 \$ac_cs_awk_pipe_init
12209}
12210{
12211 line = $ 0
12212 nfields = split(line, field, "@")
12213 substed = 0
12214 len = length(field[1])
12215 for (i = 2; i < nfields; i++) {
12216 key = field[i]
12217 keylen = length(key)
12218 if (S_is_set[key]) {
12219 value = S[key]
12220 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12221 len += length(value) + length(field[++i])
12222 substed = 1
12223 } else
12224 len += 1 + keylen
12225 }
12226 if (nfields == 3 && !substed) {
12227 key = field[2]
12228 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12229 \$ac_cs_awk_read_file
12230 next
12231 }
12232 }
12233 print line
12234}
12235\$ac_cs_awk_pipe_fini
12236_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012237_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12239if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12240 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12241else
12242 cat
12243fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012244 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012245_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012246
12247# VPATH may cause trouble with some makes, so we remove $(srcdir),
12248# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12249# trailing colons and then remove the whole line if VPATH becomes empty
12250# (actually we leave an empty line to preserve line numbers).
12251if test "x$srcdir" = x.; then
12252 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12253s/:*\$(srcdir):*/:/
12254s/:*\${srcdir}:*/:/
12255s/:*@srcdir@:*/:/
12256s/^\([^=]*=[ ]*\):*/\1/
12257s/:*$//
12258s/^[^=]*=[ ]*$//
12259}'
12260fi
12261
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012263fi # test -n "$CONFIG_FILES"
12264
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012265# Set up the scripts for CONFIG_HEADERS section.
12266# No need to generate them if there are no CONFIG_HEADERS.
12267# This happens for instance with `./config.status Makefile'.
12268if test -n "$CONFIG_HEADERS"; then
12269cat >"$tmp/defines.awk" <<\_ACAWK ||
12270BEGIN {
12271_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012272
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012273# Transform confdefs.h into an awk script `defines.awk', embedded as
12274# here-document in config.status, that substitutes the proper values into
12275# config.h.in to produce config.h.
12276
12277# Create a delimiter string that does not exist in confdefs.h, to ease
12278# handling of long lines.
12279ac_delim='%!_!# '
12280for ac_last_try in false false :; do
12281 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12282 if test -z "$ac_t"; then
12283 break
12284 elif $ac_last_try; then
12285 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12286 else
12287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12288 fi
12289done
12290
12291# For the awk script, D is an array of macro values keyed by name,
12292# likewise P contains macro parameters if any. Preserve backslash
12293# newline sequences.
12294
12295ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12296sed -n '
12297s/.\{148\}/&'"$ac_delim"'/g
12298t rset
12299:rset
12300s/^[ ]*#[ ]*define[ ][ ]*/ /
12301t def
12302d
12303:def
12304s/\\$//
12305t bsnl
12306s/["\\]/\\&/g
12307s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12308D["\1"]=" \3"/p
12309s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12310d
12311:bsnl
12312s/["\\]/\\&/g
12313s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12314D["\1"]=" \3\\\\\\n"\\/p
12315t cont
12316s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12317t cont
12318d
12319:cont
12320n
12321s/.\{148\}/&'"$ac_delim"'/g
12322t clear
12323:clear
12324s/\\$//
12325t bsnlc
12326s/["\\]/\\&/g; s/^/"/; s/$/"/p
12327d
12328:bsnlc
12329s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12330b cont
12331' <confdefs.h | sed '
12332s/'"$ac_delim"'/"\\\
12333"/g' >>$CONFIG_STATUS || ac_write_fail=1
12334
12335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12336 for (key in D) D_is_set[key] = 1
12337 FS = ""
12338}
12339/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12340 line = \$ 0
12341 split(line, arg, " ")
12342 if (arg[1] == "#") {
12343 defundef = arg[2]
12344 mac1 = arg[3]
12345 } else {
12346 defundef = substr(arg[1], 2)
12347 mac1 = arg[2]
12348 }
12349 split(mac1, mac2, "(") #)
12350 macro = mac2[1]
12351 prefix = substr(line, 1, index(line, defundef) - 1)
12352 if (D_is_set[macro]) {
12353 # Preserve the white space surrounding the "#".
12354 print prefix "define", macro P[macro] D[macro]
12355 next
12356 } else {
12357 # Replace #undef with comments. This is necessary, for example,
12358 # in the case of _POSIX_SOURCE, which is predefined and required
12359 # on some systems where configure will not decide to define it.
12360 if (defundef == "undef") {
12361 print "/*", prefix defundef, macro, "*/"
12362 next
12363 }
12364 }
12365}
12366{ print }
12367_ACAWK
12368_ACEOF
12369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12370 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12371fi # test -n "$CONFIG_HEADERS"
12372
12373
12374eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012375shift
12376for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012377do
12378 case $ac_tag in
12379 :[FHLC]) ac_mode=$ac_tag; continue;;
12380 esac
12381 case $ac_mode$ac_tag in
12382 :[FHL]*:*);;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012383 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012384 :[FH]-) ac_tag=-:-;;
12385 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12386 esac
12387 ac_save_IFS=$IFS
12388 IFS=:
12389 set x $ac_tag
12390 IFS=$ac_save_IFS
12391 shift
12392 ac_file=$1
12393 shift
12394
12395 case $ac_mode in
12396 :L) ac_source=$1;;
12397 :[FH])
12398 ac_file_inputs=
12399 for ac_f
12400 do
12401 case $ac_f in
12402 -) ac_f="$tmp/stdin";;
12403 *) # Look for the file first in the build tree, then in the source tree
12404 # (if the path is not absolute). The absolute path cannot be DOS-style,
12405 # because $ac_f cannot contain `:'.
12406 test -f "$ac_f" ||
12407 case $ac_f in
12408 [\\/$]*) false;;
12409 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12410 esac ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012411 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012412 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012413 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012414 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012415 done
12416
12417 # Let's still pretend it is `configure' which instantiates (i.e., don't
12418 # use $as_me), people would be surprised to read:
12419 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012420 configure_input='Generated from '`
12421 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12422 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012423 if test x"$ac_file" != x-; then
12424 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012425 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012426$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012427 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012428 # Neutralize special characters interpreted by sed in replacement strings.
12429 case $configure_input in #(
12430 *\&* | *\|* | *\\* )
12431 ac_sed_conf_input=`$as_echo "$configure_input" |
12432 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12433 *) ac_sed_conf_input=$configure_input;;
12434 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012435
12436 case $ac_tag in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012437 *:-:* | *:-) cat >"$tmp/stdin" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012438 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012439 esac
12440 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012441 esac
12442
Theodore Ts'oe1052142006-10-21 21:46:47 -040012443 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12445 X"$ac_file" : 'X\(//\)[^/]' \| \
12446 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012447 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012448$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12450 s//\1/
12451 q
12452 }
12453 /^X\(\/\/\)[^/].*/{
12454 s//\1/
12455 q
12456 }
12457 /^X\(\/\/\)$/{
12458 s//\1/
12459 q
12460 }
12461 /^X\(\/\).*/{
12462 s//\1/
12463 q
12464 }
12465 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012466 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012467 ac_builddir=.
12468
Theodore Ts'oe1052142006-10-21 21:46:47 -040012469case "$ac_dir" in
12470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12471*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012473 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012475 case $ac_top_builddir_sub in
12476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12478 esac ;;
12479esac
12480ac_abs_top_builddir=$ac_pwd
12481ac_abs_builddir=$ac_pwd$ac_dir_suffix
12482# for backward compatibility:
12483ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012484
12485case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012486 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012487 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012488 ac_top_srcdir=$ac_top_builddir_sub
12489 ac_abs_top_srcdir=$ac_pwd ;;
12490 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012491 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012492 ac_top_srcdir=$srcdir
12493 ac_abs_top_srcdir=$srcdir ;;
12494 *) # Relative name.
12495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12496 ac_top_srcdir=$ac_top_build_prefix$srcdir
12497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012498esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012500
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012501
Theodore Ts'oe1052142006-10-21 21:46:47 -040012502 case $ac_mode in
12503 :F)
12504 #
12505 # CONFIG_FILE
12506 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012507
12508 case $INSTALL in
12509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012510 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012511 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012512_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012513
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012515# If the template does not know about datarootdir, expand it.
12516# FIXME: This hack should be removed a few years after 2.60.
12517ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012518ac_sed_dataroot='
12519/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012520 p
12521 q
12522}
12523/@datadir@/p
12524/@docdir@/p
12525/@infodir@/p
12526/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012527/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012528case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012529*datarootdir*) ac_datarootdir_seen=yes;;
12530*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012531 { $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 +010012532$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012533_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012535 ac_datarootdir_hack='
12536 s&@datadir@&$datadir&g
12537 s&@docdir@&$docdir&g
12538 s&@infodir@&$infodir&g
12539 s&@localedir@&$localedir&g
12540 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012541 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012542esac
12543_ACEOF
12544
12545# Neutralize VPATH when `$srcdir' = `.'.
12546# Shell code in configure.ac might set extrasub.
12547# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12549ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012550$extrasub
12551_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012553:t
12554/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012555s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012556s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012557s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012558s&@srcdir@&$ac_srcdir&;t t
12559s&@abs_srcdir@&$ac_abs_srcdir&;t t
12560s&@top_srcdir@&$ac_top_srcdir&;t t
12561s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12562s&@builddir@&$ac_builddir&;t t
12563s&@abs_builddir@&$ac_abs_builddir&;t t
12564s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12565s&@INSTALL@&$ac_INSTALL&;t t
12566$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012567"
12568eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12569if $ac_cs_awk_getline; then
12570 $AWK -f "$tmp/subs.awk"
12571else
12572 $AWK -f "$tmp/subs.awk" | $SHELL
12573fi >$tmp/out \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012574 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012575
Theodore Ts'oe1052142006-10-21 21:46:47 -040012576test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12577 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12578 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012579 { $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 -040012580which seems to be undefined. Please make sure it is defined." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012581$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012582which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012583
Theodore Ts'oe1052142006-10-21 21:46:47 -040012584 rm -f "$tmp/stdin"
12585 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012586 -) cat "$tmp/out" && rm -f "$tmp/out";;
12587 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12588 esac \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012589 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012590 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012591 :H)
12592 #
12593 # CONFIG_HEADER
12594 #
12595 if test x"$ac_file" != x-; then
12596 {
12597 $as_echo "/* $configure_input */" \
12598 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12599 } >"$tmp/config.h" \
12600 || as_fn_error "could not create $ac_file" "$LINENO" 5
12601 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12603$as_echo "$as_me: $ac_file is unchanged" >&6;}
12604 else
12605 rm -f "$ac_file"
12606 mv "$tmp/config.h" "$ac_file" \
12607 || as_fn_error "could not create $ac_file" "$LINENO" 5
12608 fi
12609 else
12610 $as_echo "/* $configure_input */" \
12611 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12612 || as_fn_error "could not create -" "$LINENO" 5
12613 fi
12614 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012615
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012616 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012617$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012618 ;;
12619 esac
12620
12621
12622 case $ac_file$ac_mode in
12623 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012624 for ac_file in $CONFIG_FILES; do
12625 # Support "outfile[:infile[:infile...]]"
12626 case "$ac_file" in
12627 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012628 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012629 # PO directories have a Makefile.in generated from Makefile.in.in.
12630 case "$ac_file" in */Makefile.in)
12631 # Adjust a relative srcdir.
12632 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12633 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12634 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12635 # In autoconf-2.13 it is called $ac_given_srcdir.
12636 # In autoconf-2.50 it is called $srcdir.
12637 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12638 case "$ac_given_srcdir" in
12639 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12640 /*) top_srcdir="$ac_given_srcdir" ;;
12641 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12642 esac
12643 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12644 rm -f "$ac_dir/POTFILES"
12645 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12646 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 -050012647 POMAKEFILEDEPS="POTFILES.in"
12648 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012649 # on $ac_dir but don't depend on user-specified configuration
12650 # parameters.
12651 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12652 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012653 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012654 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12655 fi
12656 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12657 # Hide the ALL_LINGUAS assigment from automake.
12658 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012659 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12660 else
12661 # The set of available languages was given in configure.in.
12662 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012663 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012664 # Compute POFILES
12665 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12666 # Compute UPDATEPOFILES
12667 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12668 # Compute DUMMYPOFILES
12669 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12670 # Compute GMOFILES
12671 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012672 case "$ac_given_srcdir" in
12673 .) srcdirpre= ;;
12674 *) srcdirpre='$(srcdir)/' ;;
12675 esac
12676 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012677 UPDATEPOFILES=
12678 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012679 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012680 for lang in $ALL_LINGUAS; do
12681 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012682 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12683 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012684 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012685 done
12686 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12687 # environment variable.
12688 INST_LINGUAS=
12689 if test -n "$ALL_LINGUAS"; then
12690 for presentlang in $ALL_LINGUAS; do
12691 useit=no
12692 if test "%UNSET%" != "$LINGUAS"; then
12693 desiredlanguages="$LINGUAS"
12694 else
12695 desiredlanguages="$ALL_LINGUAS"
12696 fi
12697 for desiredlang in $desiredlanguages; do
12698 # Use the presentlang catalog if desiredlang is
12699 # a. equal to presentlang, or
12700 # b. a variant of presentlang (because in this case,
12701 # presentlang can be used as a fallback for messages
12702 # which are not translated in the desiredlang catalog).
12703 case "$desiredlang" in
12704 "$presentlang"*) useit=yes;;
12705 esac
12706 done
12707 if test $useit = yes; then
12708 INST_LINGUAS="$INST_LINGUAS $presentlang"
12709 fi
12710 done
12711 fi
12712 CATALOGS=
12713 if test -n "$INST_LINGUAS"; then
12714 for lang in $INST_LINGUAS; do
12715 CATALOGS="$CATALOGS $lang.gmo"
12716 done
12717 fi
12718 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012719 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 -040012720 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12721 if test -f "$f"; then
12722 case "$f" in
12723 *.orig | *.bak | *~) ;;
12724 *) cat "$f" >> "$ac_dir/Makefile" ;;
12725 esac
12726 fi
12727 done
12728 fi
12729 ;;
12730 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012731 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012732
Theodore Ts'oe1052142006-10-21 21:46:47 -040012733 esac
12734done # for ac_tag
12735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012736
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012737as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012738_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012739ac_clean_files=$ac_clean_files_save
12740
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012741test $ac_write_fail = 0 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012742 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012743
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012744
12745# configure is writing to config.log, and then calls config.status.
12746# config.status does its own redirection, appending to config.log.
12747# Unfortunately, on DOS this fails, as config.log is still kept open
12748# by configure, so config.status won't be able to write to it; its
12749# output is simply discarded. So we exec the FD to /dev/null,
12750# effectively closing config.log, so it can be properly (re)opened and
12751# appended to by config.status. When coming back to configure, we
12752# need to make the FD available again.
12753if test "$no_create" != yes; then
12754 ac_cs_success=:
12755 ac_config_status_args=
12756 test "$silent" = yes &&
12757 ac_config_status_args="$ac_config_status_args --quiet"
12758 exec 5>/dev/null
12759 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12760 exec 5>>config.log
12761 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12762 # would make configure fail if this is the last instruction.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012763 $ac_cs_success || as_fn_exit $?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012764fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012765if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012767$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12768fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012769
Theodore Ts'oee683a12005-02-05 15:53:56 -050012770if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi