blob: 1b0ee6206fae0742b8f1be92b07fcd39055c2ffe [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'o91d11da2012-09-06 23:01:14 -04003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018 emulate sh
19 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040023 setopt NO_GLOB_SUBST
24else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040030esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032
33
Scott James Remnant39fd3d42009-05-14 13:03:25 +010034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010048 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050058 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010059 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040090as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050091case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500101
Theodore Ts'oe1052142006-10-21 21:46:47 -0400102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500111 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400112fi
113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500356
357
358} # as_fn_mkdir_p
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500414 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400415 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500416 as_fn_exit $as_status
417} # as_fn_error
418
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437
Theodore Ts'oe1052142006-10-21 21:46:47 -0400438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100442$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463
464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500474 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500482 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500486 { $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 -0500487
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500496 # Exit status is that of the last command.
497 exit
498}
499
Theodore Ts'oe1052142006-10-21 21:46:47 -0400500ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500501case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500503 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400508 esac;;
509*)
510 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500512
513rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100518 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400526 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400528 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400535 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500539
540if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500541 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559
560# Name of the host.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565#
566# Initializations.
567#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000568ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400569ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500570ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400571LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500583PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <sys/types.h>
591#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400592#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593# include <sys/stat.h>
594#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400595#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596# include <stdlib.h>
597# include <stddef.h>
598#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400599# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600# include <stdlib.h>
601# endif
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500605# include <memory.h>
606# endif
607# include <string.h>
608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500610# include <strings.h>
611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400614#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400618#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500619# include <unistd.h>
620#endif"
621
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400622ac_header_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100623ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400624LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100625BUILD_LDFLAGS
626BUILD_CFLAGS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400627INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100628DO_TEST_SUITE
629ET_DIR
630SS_DIR
631LDFLAG_STATIC
632root_sysconfdir
633root_libdir
634root_sbindir
635root_bindir
636root_prefix
637UNIX_CMT
638CYGWIN_CMT
639LINUX_CMT
640UNI_DIFF_OPTS
641SEM_INIT_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100642SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400643SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100644SIZEOF_LONG_LONG
645SIZEOF_LONG
646SIZEOF_INT
647SIZEOF_SHORT
648BUILD_CC
649MAKEINFO
650STRIP
651AR
652LDCONFIG
653PERL
654SED
655AWK
656CHMOD
657RM
658CP
659MV
660LN_S
661LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400662ifNotGNUmake
663ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100664BINARY_TYPE
665POSUB
666LTLIBINTL
667LIBINTL
668INTLLIBS
669INTL_LIBTOOL_SUFFIX_PREFIX
670INTLOBJS
671GENCAT
672INSTOBJEXT
673DATADIRNAME
674CATOBJEXT
675USE_INCLUDED_LIBINTL
676BUILD_INCLUDED_LIBINTL
677INTLBISON
678LTLIBICONV
679LIBICONV
680HAVE_WPRINTF
681HAVE_SNPRINTF
682HAVE_ASPRINTF
683HAVE_POSIX_PRINTF
684GLIBC21
685ALLOCA
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400686EGREP
687GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100688RANLIB
689MSGMERGE
690XGETTEXT
691GMSGFMT
692MSGFMT
693USE_NLS
694MKINSTALLDIRS
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698SET_MAKE
699VERSION
700PACKAGE
701GETTEXT_PACKAGE
702UUIDD_CMT
703E2INITRD_MAN
704E2INITRD_PROG
705FSCK_MAN
706FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500707DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100708RESIZER_CMT
709IMAGER_CMT
710DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700711QUOTA_CMT
712DEPPROFILED_LIBQUOTA
713PROFILED_LIBQUOTA
714DEPSTATIC_LIBQUOTA
715STATIC_LIBQUOTA
716DEPLIBQUOTA
717LIBQUOTA
Eric Sandeenf5589f42013-10-14 08:54:15 -0400718QUOTA_MAN_COMMENT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100719BLKID_CMT
720DEPPROFILED_LIBBLKID
721PROFILED_LIBBLKID
722DEPSTATIC_LIBBLKID
723STATIC_LIBBLKID
724DEPLIBBLKID
725LIBBLKID
726UUID_CMT
727DEPPROFILED_LIBUUID
728PROFILED_LIBUUID
729DEPSTATIC_LIBUUID
730STATIC_LIBUUID
731DEPLIBUUID
732LIBUUID
733PKG_CONFIG
734TEST_IO_CMT
735PRIVATE_LIBS_CMT
736LDFLAG_DYNAMIC
737PROFILED_LIB_EXT
738STATIC_LIB_EXT
739LIB_EXT
740CHECKER_CMT
741PROFILE_CMT
742BSDLIB_CMT
743ELF_CMT
744HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400745Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400746ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400747E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400748LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400749SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400750LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100751MAINTAINER_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100752CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400753RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500754DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100755OBJEXT
756EXEEXT
757ac_ct_CC
758CPPFLAGS
759LDFLAGS
760CFLAGS
761CC
762host_os
763host_vendor
764host_cpu
765host
766build_os
767build_vendor
768build_cpu
769build
770E2FSPROGS_PKGVER
771E2FSPROGS_VERSION
772E2FSPROGS_DAY
773E2FSPROGS_MONTH
774E2FSPROGS_YEAR
775target_alias
776host_alias
777build_alias
778LIBS
779ECHO_T
780ECHO_N
781ECHO_C
782DEFS
783mandir
784localedir
785libdir
786psdir
787pdfdir
788dvidir
789htmldir
790infodir
791docdir
792oldincludedir
793includedir
794localstatedir
795sharedstatedir
796sysconfdir
797datadir
798datarootdir
799libexecdir
800sbindir
801bindir
802program_transform_name
803prefix
804exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500805PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100806PACKAGE_BUGREPORT
807PACKAGE_STRING
808PACKAGE_VERSION
809PACKAGE_TARNAME
810PACKAGE_NAME
811PATH_SEPARATOR
812SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400813ac_subst_files='MCONFIG
814MAKEFILE_ELF
815MAKEFILE_BSDLIB
816MAKEFILE_PROFILE
817MAKEFILE_CHECKER
818MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400819ASM_TYPES_HEADER
820PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100821ac_user_opts='
822enable_option_checking
823with_diet_libc
824with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100825with_ccopts
826with_ldopts
827with_root_prefix
828enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400829enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400830enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400831enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400832enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400833enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100834enable_compression
835enable_htree
836enable_elf_shlibs
837enable_bsd_shlibs
838enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500839enable_gcov
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100840enable_checker
841enable_jbd_debug
842enable_blkid_debug
843enable_testio_debug
844enable_libuuid
845enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500846enable_quota
Theodore Ts'o3df60142013-06-16 16:14:40 -0400847enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100848enable_debugfs
849enable_imager
850enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500851enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100852enable_fsck
853enable_e2initrd_helper
854enable_tls
855enable_uuidd
856enable_nls
857with_gnu_ld
858enable_rpath
859with_libiconv_prefix
860with_included_gettext
861with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400862with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100863'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400864 ac_precious_vars='build_alias
865host_alias
866target_alias
867CC
868CFLAGS
869LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400870LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400871CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400872CPP
873PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400874
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000875
876# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500877ac_init_help=
878ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100879ac_unrecognized_opts=
880ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000881# The variables have the same names as the options, with
882# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500883cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000884exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000885no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000886no_recursion=
887prefix=NONE
888program_prefix=NONE
889program_suffix=NONE
890program_transform_name=s,x,x,
891silent=
892site=
893srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000894verbose=
895x_includes=NONE
896x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500897
898# Installation directory options.
899# These are left unexpanded so users can "make install exec_prefix=/foo"
900# and all the variables that are supposed to be based on exec_prefix
901# by default will actually change.
902# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400903# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000904bindir='${exec_prefix}/bin'
905sbindir='${exec_prefix}/sbin'
906libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400907datarootdir='${prefix}/share'
908datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000909sysconfdir='${prefix}/etc'
910sharedstatedir='${prefix}/com'
911localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000912includedir='${prefix}/include'
913oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400914docdir='${datarootdir}/doc/${PACKAGE}'
915infodir='${datarootdir}/info'
916htmldir='${docdir}'
917dvidir='${docdir}'
918pdfdir='${docdir}'
919psdir='${docdir}'
920libdir='${exec_prefix}/lib'
921localedir='${datarootdir}/locale'
922mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000923
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000924ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400925ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000926for ac_option
927do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000928 # If the previous option needs an argument, assign it.
929 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400930 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000931 ac_prev=
932 continue
933 fi
934
Theodore Ts'oe1052142006-10-21 21:46:47 -0400935 case $ac_option in
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400936 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937 *=) ac_optarg= ;;
938 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400939 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000940
941 # Accept the important Cygnus configure options, so we can diagnose typos.
942
Theodore Ts'oe1052142006-10-21 21:46:47 -0400943 case $ac_dashdash$ac_option in
944 --)
945 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000946
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 ac_prev=bindir ;;
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500950 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000951
952 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500953 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500955 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000956
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500962 cache_file=$ac_optarg ;;
963
964 --config-cache | -C)
965 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000966
Theodore Ts'oe1052142006-10-21 21:46:47 -0400967 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000968 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500970 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000971
Theodore Ts'oe1052142006-10-21 21:46:47 -0400972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
978
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000979 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000981 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400983 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988"enable_$ac_useropt"
989"*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400994
995 -docdir | --docdir | --docdi | --doc | --do)
996 ac_prev=docdir ;;
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 docdir=$ac_optarg ;;
999
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001 ac_prev=dvidir ;;
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001004
1005 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001007 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001009 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1013 *"
1014"enable_$ac_useropt"
1015"*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001020
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001028 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001029
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1032 with_gas=yes ;;
1033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001040
1041 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001042 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001043 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001044 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001045
Theodore Ts'oe1052142006-10-21 21:46:47 -04001046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 ac_prev=htmldir ;;
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 | --ht=*)
1050 htmldir=$ac_optarg ;;
1051
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001057 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001058
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 ac_prev=infodir ;;
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001062 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001063
1064 -libdir | --libdir | --libdi | --libd)
1065 ac_prev=libdir ;;
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001067 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001068
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001074 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001075
Theodore Ts'oe1052142006-10-21 21:46:47 -04001076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1080
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001081 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001082 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001086 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001087
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 ac_prev=mandir ;;
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001091 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001092
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1095 with_fp=no ;;
1096
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001098 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001099 no_create=yes ;;
1100
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 no_recursion=yes ;;
1104
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001112 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001113
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 ac_prev=prefix ;;
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001117 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001118
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001124 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001125
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001131 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001132
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001148 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001149
Theodore Ts'oe1052142006-10-21 21:46:47 -04001150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 ac_prev=pdfdir ;;
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1154
1155 -psdir | --psdir | --psdi | --psd | --ps)
1156 ac_prev=psdir ;;
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 psdir=$ac_optarg ;;
1159
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1162 silent=yes ;;
1163
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 ac_prev=sbindir ;;
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001168 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001169
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1173 | --sha | --sh)
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001179 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001180
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001181 -site | --site | --sit)
1182 ac_prev=site ;;
1183 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001184 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001185
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 ac_prev=srcdir ;;
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001189 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001190
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001196 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001197
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001198 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001199 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001201 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001202
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 verbose=yes ;;
1205
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001208
1209 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001211 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001213 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218"with_$ac_useropt"
1219"*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001224
1225 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001227 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001229 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234"with_$ac_useropt"
1235"*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001240
1241 --x)
1242 # Obsolete; use --with-x.
1243 with_x=yes ;;
1244
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001250 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001251
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001257 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001258
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001259 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001261 ;;
1262
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001269 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001270 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001271 export $ac_envvar ;;
1272
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001273 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001274 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001279 ;;
1280
1281 esac
1282done
1283
1284if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001286 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001287fi
1288
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001289if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1291 no) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 esac
1295fi
1296
1297# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001298for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001302do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001303 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001304 # Remove trailing slashes.
1305 case $ac_val in
1306 */ )
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1309 esac
1310 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001311 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001314 esac
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001316done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001317
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001318# There might be people who depend on the old broken behavior: `$host'
1319# used to hold the argument of --host etc.
1320# FIXME: To remove some day.
1321build=$build_alias
1322host=$host_alias
1323target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001324
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001325# FIXME: To remove some day.
1326if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1331 fi
1332fi
1333
1334ac_tool_prefix=
1335test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337test "$silent" = yes && exec 6>/dev/null
1338
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001339
Theodore Ts'oe1052142006-10-21 21:46:47 -04001340ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341ac_ls_di=`ls -di .` &&
1342ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001343 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001344test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001345 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001346
1347
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001348# Find the source files, if location was not specified.
1349if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001351 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)[^/].*/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\).*/{
1371 s//\1/
1372 q
1373 }
1374 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001375 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001376 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001377 srcdir=..
1378 fi
1379else
1380 ac_srcdir_defaulted=no
1381fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001382if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001385fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001386ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387ac_abs_confdir=`(
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001389 pwd)`
1390# When building in place, set srcdir=.
1391if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 srcdir=.
1393fi
1394# Remove unnecessary trailing slashes from srcdir.
1395# Double slashes in file names in object file debugging info
1396# mess up M-x gdb in Emacs.
1397case $srcdir in
1398*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399esac
1400for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001407#
1408# Report the --help message.
1409#
1410if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1413 cat <<_ACEOF
1414\`configure' configures this package to adapt to many kinds of systems.
1415
1416Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419VAR=VALUE. See below for descriptions of some of the useful variables.
1420
1421Defaults for the options are specified in brackets.
1422
1423Configuration:
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001428 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001434Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001436 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001438 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001439
1440By default, \`make install' will install all the files in
1441\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443for instance \`--prefix=\$HOME'.
1444
1445For better control, use the options below.
1446
1447Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001467_ACEOF
1468
1469 cat <<\_ACEOF
1470
1471System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474_ACEOF
1475fi
1476
1477if test -n "$ac_init_help"; then
1478
1479 cat <<\_ACEOF
1480
1481Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001482 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001485 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001486 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001487 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001488
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001489 --enable-symlink-build use symlinks while building instead of hard links
1490 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001491 --enable-compression enable EXPERIMENTAL compression support
1492 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001493 --enable-elf-shlibs select ELF shared libraries
1494 --enable-bsd-shlibs select BSD shared libraries
1495 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001496 --enable-gcov build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001497 --enable-checker build checker libraries
1498 --enable-jbd-debug enable journal debugging
1499 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001500 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001501 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001502 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001503 --enable-quota enable quota support
Theodore Ts'o3df60142013-06-16 16:14:40 -04001504 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001505 --disable-debugfs disable support of debugfs program
1506 --disable-imager disable support of e2image program
1507 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001508 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001509 --enable-fsck build fsck wrapper program
1510 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001511 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001512 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001513 --disable-nls do not use Native Language Support
1514 --disable-rpath do not hardcode runtime library paths
1515
1516Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001519 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001520 --with-cc no longer supported, use CC= instead
1521 --with-ccopts no longer supported, use CFLAGS= instead
1522 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001523 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1524 --with-gnu-ld assume the C compiler uses GNU ld default=no
1525 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1526 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1527 --with-included-gettext use the GNU gettext library included here
1528 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1529 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001530 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001531
1532Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001537 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001539 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001540 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001541 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001542
1543Use these variables to override the choices made by `configure' or to help
1544it to find libraries and programs with nonstandard names/locations.
1545
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001546Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001547_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001548ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001549fi
1550
1551if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001557 ac_builddir=.
1558
Theodore Ts'oe1052142006-10-21 21:46:47 -04001559case "$ac_dir" in
1560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001563 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569esac
1570ac_abs_top_builddir=$ac_pwd
1571ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572# for backward compatibility:
1573ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001574
1575case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001576 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001577 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001581 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001588esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001590
Theodore Ts'oe1052142006-10-21 21:46:47 -04001591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001599 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001601 fi || ac_status=$?
1602 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001603 done
1604fi
1605
Theodore Ts'oe1052142006-10-21 21:46:47 -04001606test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001607if $ac_init_version; then
1608 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001609configure
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001610generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001611
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001612Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001613This configure script is free software; the Free Software Foundation
1614gives unlimited permission to copy, distribute and modify it.
1615_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001616 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001617fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001618
1619## ------------------------ ##
1620## Autoconf initialization. ##
1621## ------------------------ ##
1622
1623# ac_fn_c_try_compile LINENO
1624# --------------------------
1625# Try to compile conftest.$ac_ext, and return whether this succeeded.
1626ac_fn_c_try_compile ()
1627{
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1631case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1649 ac_retval=0
1650else
1651 $as_echo "$as_me: failed program was:" >&5
1652sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001657 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001658
1659} # ac_fn_c_try_compile
1660
1661# ac_fn_c_try_link LINENO
1662# -----------------------
1663# Try to link conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_link ()
1665{
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest$ac_exeext
1668 if { { ac_try="$ac_link"
1669case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest$ac_exeext && {
1687 test "$cross_compiling" = yes ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001688 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001689 }; then :
1690 ac_retval=0
1691else
1692 $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696fi
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001703 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001704
1705} # ac_fn_c_try_link
1706
1707# ac_fn_c_try_cpp LINENO
1708# ----------------------
1709# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_cpp ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_cpp conftest.$ac_ext"
1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001728 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 }; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001740 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001741
1742} # ac_fn_c_try_cpp
1743
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001744# ac_fn_c_try_run LINENO
1745# ----------------------
1746# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747# that executables *can* be run.
1748ac_fn_c_try_run ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762 { { case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_try") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; }; }; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: program exited with status $ac_status" >&5
1775 $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=$ac_status
1779fi
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001782 as_fn_set_status $ac_retval
1783
1784} # ac_fn_c_try_run
1785
1786# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1787# -------------------------------------------
1788# Tests whether TYPE exists after having included INCLUDES, setting cache
1789# variable VAR accordingly.
1790ac_fn_c_check_type ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001795if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001796 $as_echo_n "(cached) " >&6
1797else
1798 eval "$3=no"
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h. */
1801$4
1802int
1803main ()
1804{
1805if (sizeof ($2))
1806 return 0;
1807 ;
1808 return 0;
1809}
1810_ACEOF
1811if ac_fn_c_try_compile "$LINENO"; then :
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h. */
1814$4
1815int
1816main ()
1817{
1818if (sizeof (($2)))
1819 return 0;
1820 ;
1821 return 0;
1822}
1823_ACEOF
1824if ac_fn_c_try_compile "$LINENO"; then :
1825
1826else
1827 eval "$3=yes"
1828fi
1829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830fi
1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832fi
1833eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001837
1838} # ac_fn_c_check_type
1839
1840# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841# -------------------------------------------------------
1842# Tests whether HEADER exists and can be compiled using the include files in
1843# INCLUDES, setting the cache variable VAR accordingly.
1844ac_fn_c_check_header_compile ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001849if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001850 $as_echo_n "(cached) " >&6
1851else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h. */
1854$4
1855#include <$2>
1856_ACEOF
1857if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859else
1860 eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863fi
1864eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001868
1869} # ac_fn_c_check_header_compile
1870
1871# ac_fn_c_check_func LINENO FUNC VAR
1872# ----------------------------------
1873# Tests whether FUNC exists, setting the cache variable VAR accordingly
1874ac_fn_c_check_func ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001879if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001880 $as_echo_n "(cached) " >&6
1881else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886#define $2 innocuous_$2
1887
1888/* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1892
1893#ifdef __STDC__
1894# include <limits.h>
1895#else
1896# include <assert.h>
1897#endif
1898
1899#undef $2
1900
1901/* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1904#ifdef __cplusplus
1905extern "C"
1906#endif
1907char $2 ();
1908/* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911#if defined __stub_$2 || defined __stub___$2
1912choke me
1913#endif
1914
1915int
1916main ()
1917{
1918return $2 ();
1919 ;
1920 return 0;
1921}
1922_ACEOF
1923if ac_fn_c_try_link "$LINENO"; then :
1924 eval "$3=yes"
1925else
1926 eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1930fi
1931eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001935
1936} # ac_fn_c_check_func
1937
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001938# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1939# -------------------------------------------------------
1940# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1941# the include files in INCLUDES and setting the cache variable VAR
1942# accordingly.
1943ac_fn_c_check_header_mongrel ()
1944{
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001946 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001949if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001950 $as_echo_n "(cached) " >&6
1951fi
1952eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955else
1956 # Is the header compilable?
1957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1958$as_echo_n "checking $2 usability... " >&6; }
1959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h. */
1961$4
1962#include <$2>
1963_ACEOF
1964if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_header_compiler=yes
1966else
1967 ac_header_compiler=no
1968fi
1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1971$as_echo "$ac_header_compiler" >&6; }
1972
1973# Is the header present?
1974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1975$as_echo_n "checking $2 presence... " >&6; }
1976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h. */
1978#include <$2>
1979_ACEOF
1980if ac_fn_c_try_cpp "$LINENO"; then :
1981 ac_header_preproc=yes
1982else
1983 ac_header_preproc=no
1984fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001985rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1987$as_echo "$ac_header_preproc" >&6; }
1988
1989# So? What about this header?
1990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1991 yes:no: )
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1993$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 ;;
1997 no:yes:* )
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1999$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2001$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2003$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2005$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 ;;
2009esac
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002012if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002013 $as_echo_n "(cached) " >&6
2014else
2015 eval "$3=\$ac_header_compiler"
2016fi
2017eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019$as_echo "$ac_res" >&6; }
2020fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002022
2023} # ac_fn_c_check_header_mongrel
2024
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002025# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2026# --------------------------------------------
2027# Tries to find the compile-time value of EXPR in a program that includes
2028# INCLUDES, setting VAR accordingly. Returns whether the value could be
2029# computed
2030ac_fn_c_compute_int ()
2031{
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 if test "$cross_compiling" = yes; then
2034 # Depending upon the size, compute the lo and hi bounds.
2035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h. */
2037$4
2038int
2039main ()
2040{
2041static int test_array [1 - 2 * !(($2) >= 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002042test_array [0] = 0;
2043return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002044
2045 ;
2046 return 0;
2047}
2048_ACEOF
2049if ac_fn_c_try_compile "$LINENO"; then :
2050 ac_lo=0 ac_mid=0
2051 while :; do
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h. */
2054$4
2055int
2056main ()
2057{
2058static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002059test_array [0] = 0;
2060return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002061
2062 ;
2063 return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_compile "$LINENO"; then :
2067 ac_hi=$ac_mid; break
2068else
2069 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2070 if test $ac_lo -le $ac_mid; then
2071 ac_lo= ac_hi=
2072 break
2073 fi
2074 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2075fi
2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 done
2078else
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h. */
2081$4
2082int
2083main ()
2084{
2085static int test_array [1 - 2 * !(($2) < 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002086test_array [0] = 0;
2087return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002088
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=-1 ac_mid=-1
2095 while :; do
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h. */
2098$4
2099int
2100main ()
2101{
2102static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002103test_array [0] = 0;
2104return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002105
2106 ;
2107 return 0;
2108}
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_lo=$ac_mid; break
2112else
2113 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2114 if test $ac_mid -le $ac_hi; then
2115 ac_lo= ac_hi=
2116 break
2117 fi
2118 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 done
2122else
2123 ac_lo= ac_hi=
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126fi
2127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128# Binary search between lo and hi bounds.
2129while test "x$ac_lo" != "x$ac_hi"; do
2130 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h. */
2133$4
2134int
2135main ()
2136{
2137static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002138test_array [0] = 0;
2139return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002140
2141 ;
2142 return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_hi=$ac_mid
2147else
2148 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2149fi
2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151done
2152case $ac_lo in #((
2153?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2154'') ac_retval=1 ;;
2155esac
2156 else
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h. */
2159$4
2160static long int longval () { return $2; }
2161static unsigned long int ulongval () { return $2; }
2162#include <stdio.h>
2163#include <stdlib.h>
2164int
2165main ()
2166{
2167
2168 FILE *f = fopen ("conftest.val", "w");
2169 if (! f)
2170 return 1;
2171 if (($2) < 0)
2172 {
2173 long int i = longval ();
2174 if (i != ($2))
2175 return 1;
2176 fprintf (f, "%ld", i);
2177 }
2178 else
2179 {
2180 unsigned long int i = ulongval ();
2181 if (i != ($2))
2182 return 1;
2183 fprintf (f, "%lu", i);
2184 }
2185 /* Do not output a trailing newline, as this causes \r\n confusion
2186 on some platforms. */
2187 return ferror (f) || fclose (f) != 0;
2188
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193if ac_fn_c_try_run "$LINENO"; then :
2194 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2195else
2196 ac_retval=1
2197fi
2198rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2199 conftest.$ac_objext conftest.beam conftest.$ac_ext
2200rm -f conftest.val
2201
2202 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002204 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002205
2206} # ac_fn_c_compute_int
2207
2208# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2209# ----------------------------------------------------
2210# Tries to find if the field MEMBER exists in type AGGR, after including
2211# INCLUDES, setting cache variable VAR accordingly.
2212ac_fn_c_check_member ()
2213{
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2216$as_echo_n "checking for $2.$3... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002217if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002218 $as_echo_n "(cached) " >&6
2219else
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221/* end confdefs.h. */
2222$5
2223int
2224main ()
2225{
2226static $2 ac_aggr;
2227if (ac_aggr.$3)
2228return 0;
2229 ;
2230 return 0;
2231}
2232_ACEOF
2233if ac_fn_c_try_compile "$LINENO"; then :
2234 eval "$4=yes"
2235else
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237/* end confdefs.h. */
2238$5
2239int
2240main ()
2241{
2242static $2 ac_aggr;
2243if (sizeof ac_aggr.$3)
2244return 0;
2245 ;
2246 return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_compile "$LINENO"; then :
2250 eval "$4=yes"
2251else
2252 eval "$4=no"
2253fi
2254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255fi
2256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257fi
2258eval ac_res=\$$4
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002262
2263} # ac_fn_c_check_member
2264
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002265# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2266# ---------------------------------------------
2267# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2268# accordingly.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002269ac_fn_c_check_decl ()
2270{
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002272 as_decl_name=`echo $2|sed 's/ *(.*//'`
2273 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2275$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2276if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002277 $as_echo_n "(cached) " >&6
2278else
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280/* end confdefs.h. */
2281$4
2282int
2283main ()
2284{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002285#ifndef $as_decl_name
2286#ifdef __cplusplus
2287 (void) $as_decl_use;
2288#else
2289 (void) $as_decl_name;
2290#endif
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002291#endif
2292
2293 ;
2294 return 0;
2295}
2296_ACEOF
2297if ac_fn_c_try_compile "$LINENO"; then :
2298 eval "$3=yes"
2299else
2300 eval "$3=no"
2301fi
2302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303fi
2304eval ac_res=\$$3
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002308
2309} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002310cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002311This file contains any messages produced by compilers while
2312running configure, to aid debugging if configure makes a mistake.
2313
2314It was created by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002315generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002316
2317 $ $0 $@
2318
2319_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002320exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002321{
2322cat <<_ASUNAME
2323## --------- ##
2324## Platform. ##
2325## --------- ##
2326
2327hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2328uname -m = `(uname -m) 2>/dev/null || echo unknown`
2329uname -r = `(uname -r) 2>/dev/null || echo unknown`
2330uname -s = `(uname -s) 2>/dev/null || echo unknown`
2331uname -v = `(uname -v) 2>/dev/null || echo unknown`
2332
2333/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2334/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2335
2336/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2337/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2338/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002339/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002340/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2341/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2342/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2343
2344_ASUNAME
2345
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002351 $as_echo "PATH: $as_dir"
2352 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002353IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002354
2355} >&5
2356
2357cat >&5 <<_ACEOF
2358
2359
2360## ----------- ##
2361## Core tests. ##
2362## ----------- ##
2363
2364_ACEOF
2365
2366
2367# Keep a trace of the command line.
2368# Strip out --no-create and --no-recursion so they do not pile up.
2369# Strip out --silent because we don't want to record it for future runs.
2370# Also quote any args containing shell meta-characters.
2371# Make two passes to allow for proper duplicate-argument suppression.
2372ac_configure_args=
2373ac_configure_args0=
2374ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002375ac_must_keep_next=false
2376for ac_pass in 1 2
2377do
2378 for ac_arg
2379 do
2380 case $ac_arg in
2381 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2383 | -silent | --silent | --silen | --sile | --sil)
2384 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002385 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002386 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002387 esac
2388 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002389 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002390 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002391 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002392 if test $ac_must_keep_next = true; then
2393 ac_must_keep_next=false # Got value, back to normal.
2394 else
2395 case $ac_arg in
2396 *=* | --config-cache | -C | -disable-* | --disable-* \
2397 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2398 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2399 | -with-* | --with-* | -without-* | --without-* | --x)
2400 case "$ac_configure_args0 " in
2401 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2402 esac
2403 ;;
2404 -* ) ac_must_keep_next=true ;;
2405 esac
2406 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002407 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002408 ;;
2409 esac
2410 done
2411done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002412{ ac_configure_args0=; unset ac_configure_args0;}
2413{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002414
2415# When interrupted or exit'd, cleanup temporary files, and complete
2416# config.log. We remove comments because anyway the quotes in there
2417# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002418# WARNING: Use '\'' to represent an apostrophe within the trap.
2419# 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 -05002420trap 'exit_status=$?
2421 # Save into config.log some information that might help in debugging.
2422 {
2423 echo
2424
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002425 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002426## Cache variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002427## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002428 echo
2429 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002430(
2431 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2432 eval ac_val=\$$ac_var
2433 case $ac_val in #(
2434 *${as_nl}*)
2435 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002436 *_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 +01002437$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002438 esac
2439 case $ac_var in #(
2440 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002442 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002443 esac ;;
2444 esac
2445 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002446 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002447 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2448 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002449 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002450 "s/'\''/'\''\\\\'\'''\''/g;
2451 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2452 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002453 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002454 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002455 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002456 esac |
2457 sort
2458)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002459 echo
2460
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002461 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002462## Output variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002463## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002464 echo
2465 for ac_var in $ac_subst_vars
2466 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002467 eval ac_val=\$$ac_var
2468 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002469 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002470 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002471 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002472 done | sort
2473 echo
2474
2475 if test -n "$ac_subst_files"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002476 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002477## File substitutions. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002478## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002479 echo
2480 for ac_var in $ac_subst_files
2481 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002482 eval ac_val=\$$ac_var
2483 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002484 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002485 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002486 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002487 done | sort
2488 echo
2489 fi
2490
2491 if test -s confdefs.h; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002492 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002493## confdefs.h. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002494## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002495 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002496 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002497 echo
2498 fi
2499 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002500 $as_echo "$as_me: caught signal $ac_signal"
2501 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002502 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002503 rm -f core *.core core.conftest.* &&
2504 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002505 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002506' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002507for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002508 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002509done
2510ac_signal=0
2511
2512# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002513rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002514
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002515$as_echo "/* confdefs.h */" > confdefs.h
2516
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002517# Predefined preprocessor variables.
2518
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_NAME "$PACKAGE_NAME"
2521_ACEOF
2522
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2525_ACEOF
2526
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002527cat >>confdefs.h <<_ACEOF
2528#define PACKAGE_VERSION "$PACKAGE_VERSION"
2529_ACEOF
2530
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531cat >>confdefs.h <<_ACEOF
2532#define PACKAGE_STRING "$PACKAGE_STRING"
2533_ACEOF
2534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002535cat >>confdefs.h <<_ACEOF
2536#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2537_ACEOF
2538
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002539cat >>confdefs.h <<_ACEOF
2540#define PACKAGE_URL "$PACKAGE_URL"
2541_ACEOF
2542
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543
2544# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002545# Prefer an explicitly selected file to automatically selected ones.
2546ac_site_file1=NONE
2547ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002548if test -n "$CONFIG_SITE"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002549 # We do not want a PATH search for config.site.
2550 case $CONFIG_SITE in #((
2551 -*) ac_site_file1=./$CONFIG_SITE;;
2552 */*) ac_site_file1=$CONFIG_SITE;;
2553 *) ac_site_file1=./$CONFIG_SITE;;
2554 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002555elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002556 ac_site_file1=$prefix/share/config.site
2557 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002558else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002559 ac_site_file1=$ac_default_prefix/share/config.site
2560 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002561fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002562for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002563do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002564 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002565 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002566 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002567$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002568 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002569 . "$ac_site_file" \
2570 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2572as_fn_error $? "failed to load site script $ac_site_file
2573See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002574 fi
2575done
2576
2577if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002578 # Some versions of bash will fail to source /dev/null (special files
2579 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2580 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002582$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002583 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002584 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2585 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002586 esac
2587 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002588else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002590$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002591 >$cache_file
2592fi
2593
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002594as_fn_append ac_header_list " stdlib.h"
2595as_fn_append ac_header_list " unistd.h"
2596as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002597# Check that the precious variables saved in the cache have kept the same
2598# value.
2599ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002600for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002601 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2602 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002603 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2604 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002605 case $ac_old_set,$ac_new_set in
2606 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002607 { $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 +01002608$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 -05002609 ac_cache_corrupted=: ;;
2610 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002611 { $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 +01002612$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002613 ac_cache_corrupted=: ;;
2614 ,);;
2615 *)
2616 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002617 # differences in whitespace do not lead to failure.
2618 ac_old_val_w=`echo x $ac_old_val`
2619 ac_new_val_w=`echo x $ac_new_val`
2620 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002621 { $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 +01002622$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2623 ac_cache_corrupted=:
2624 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002625 { $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 +01002626$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2627 eval $ac_var=\$ac_old_val
2628 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002629 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002630$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002631 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002632$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002633 fi;;
2634 esac
2635 # Pass precious variables to config.status.
2636 if test "$ac_new_set" = set; then
2637 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002638 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002639 *) ac_arg=$ac_var=$ac_new_val ;;
2640 esac
2641 case " $ac_configure_args " in
2642 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002643 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002644 esac
2645 fi
2646done
2647if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002650 { $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 +01002651$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002652 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002653fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002654## -------------------- ##
2655## Main body of script. ##
2656## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002657
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002658ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002659ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002664
2665
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002666ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002667for ac_dir in config "$srcdir"/config; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002668 if test -f "$ac_dir/install-sh"; then
2669 ac_aux_dir=$ac_dir
2670 ac_install_sh="$ac_aux_dir/install-sh -c"
2671 break
2672 elif test -f "$ac_dir/install.sh"; then
2673 ac_aux_dir=$ac_dir
2674 ac_install_sh="$ac_aux_dir/install.sh -c"
2675 break
2676 elif test -f "$ac_dir/shtool"; then
2677 ac_aux_dir=$ac_dir
2678 ac_install_sh="$ac_aux_dir/shtool install -c"
2679 break
2680 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002681done
2682if test -z "$ac_aux_dir"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002683 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 +00002684fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002685
2686# These three variables are undocumented and unsupported,
2687# and are intended to be withdrawn in a future Autoconf release.
2688# They can cause serious problems if a builder's source tree is in a directory
2689# whose full name contains unusual characters.
2690ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2691ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2692ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2693
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002694
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002695ac_config_headers="$ac_config_headers lib/config.h"
2696
2697
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002698MCONFIG=./MCONFIG
2699
Theodore Ts'o74becf31997-04-26 14:37:06 +00002700BINARY_TYPE=bin
2701E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2702 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2703DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2704 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002705E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002706MONTH=`echo $DATE | awk -F- '{print $2}'`
2707YEAR=`echo $DATE | awk -F- '{print $3}'`
2708
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002709if expr $YEAR ">" 1900 > /dev/null ; then
2710 E2FSPROGS_YEAR=$YEAR
2711elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002712 E2FSPROGS_YEAR=19$YEAR
2713else
2714 E2FSPROGS_YEAR=20$YEAR
2715fi
2716
2717case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002718Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2719Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2720Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2721Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2722May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2723Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2724Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2725Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2726Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2727Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2728Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2729Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002730*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002731$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002732esac
2733
Andreas Dilger927566a2006-11-12 19:41:25 -05002734base_ver=`echo $E2FSPROGS_VERSION | \
2735 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002736
2737date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2738
2739case $E2FSPROGS_VERSION in
2740*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002741 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002742 ;;
2743*)
2744 E2FSPROGS_PKGVER="$base_ver"
2745 ;;
2746esac
2747
2748unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002749{ $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 +01002750$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002752$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002753
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002754
2755
2756
Andreas Dilger927566a2006-11-12 19:41:25 -05002757
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002758WITH_DIET_LIBC=
2759
2760# Check whether --with-diet-libc was given.
2761if test "${with_diet_libc+set}" = set; then :
2762 withval=$with_diet_libc; CC="diet cc -nostdinc"
2763WITH_DIET_LIBC=yes
2764if test -z "$LIBS"
2765then
2766 LIBS="-lcompat"
2767else
2768 LIBS="$LIBS -lcompat"
2769fi
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2771$as_echo "CC=$CC" >&6; }
2772fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002773# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002774$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002775 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002776
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002778$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002779if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002780 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002781else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002782 ac_build_alias=$build_alias
2783test "x$ac_build_alias" = x &&
2784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2785test "x$ac_build_alias" = x &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002787ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002789
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002790fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002792$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002793case $ac_cv_build in
2794*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002795*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002796esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002797build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002798ac_save_IFS=$IFS; IFS='-'
2799set x $ac_cv_build
2800shift
2801build_cpu=$1
2802build_vendor=$2
2803shift; shift
2804# Remember, the first character of IFS is used to create $*,
2805# except with old shells:
2806build_os=$*
2807IFS=$ac_save_IFS
2808case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002809
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002810
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002812$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002813if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002814 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002815else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002816 if test "x$host_alias" = x; then
2817 ac_cv_host=$ac_cv_build
2818else
2819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002820 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002821fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002822
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002823fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002825$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002826case $ac_cv_host in
2827*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002828*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002829esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002830host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002831ac_save_IFS=$IFS; IFS='-'
2832set x $ac_cv_host
2833shift
2834host_cpu=$1
2835host_vendor=$2
2836shift; shift
2837# Remember, the first character of IFS is used to create $*,
2838# except with old shells:
2839host_os=$*
2840IFS=$ac_save_IFS
2841case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002842
2843
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002844DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002845ac_ext=c
2846ac_cpp='$CPP $CPPFLAGS'
2847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850if test -n "$ac_tool_prefix"; then
2851 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2852set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002854$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002855if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002856 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002857else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002866 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002868 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002870 break 2
2871 fi
2872done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002873 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002874IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002875
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002876fi
2877fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002878CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002879if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002881$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002882else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002884$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002885fi
2886
Theodore Ts'oe1052142006-10-21 21:46:47 -04002887
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002888fi
2889if test -z "$ac_cv_prog_CC"; then
2890 ac_ct_CC=$CC
2891 # Extract the first word of "gcc", so it can be a program name with args.
2892set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002894$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002895if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002896 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002897else
2898 if test -n "$ac_ct_CC"; then
2899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002906 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002908 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002910 break 2
2911 fi
2912done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002913 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002914IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002915
2916fi
2917fi
2918ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002921$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002922else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002924$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002925fi
2926
Theodore Ts'oe1052142006-10-21 21:46:47 -04002927 if test "x$ac_ct_CC" = x; then
2928 CC=""
2929 else
2930 case $cross_compiling:$ac_tool_warned in
2931yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002932{ $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 +01002933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002934ac_tool_warned=yes ;;
2935esac
2936 CC=$ac_ct_CC
2937 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002938else
2939 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002940fi
2941
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002942if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002943 if test -n "$ac_tool_prefix"; then
2944 # 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 -05002945set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002947$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002948if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002949 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002950else
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2953else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002959 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002963 break 2
2964 fi
2965done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002966 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002967IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002968
2969fi
2970fi
2971CC=$ac_cv_prog_CC
2972if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002974$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002975else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002977$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002978fi
2979
Theodore Ts'oe1052142006-10-21 21:46:47 -04002980
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002981 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002982fi
2983if test -z "$CC"; then
2984 # Extract the first word of "cc", so it can be a program name with args.
2985set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002987$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002988if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002989 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002990else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002994 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH
2997do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003000 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003002 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3003 ac_prog_rejected=yes
3004 continue
3005 fi
3006 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008 break 2
3009 fi
3010done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003011 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003012IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003013
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003014if test $ac_prog_rejected = yes; then
3015 # We found a bogon in the path, so make sure we never use it.
3016 set dummy $ac_cv_prog_CC
3017 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003018 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003019 # We chose a different compiler from the bogus one.
3020 # However, it has the same basename, so the bogon will be chosen
3021 # first if we set CC to just the basename; use the full file name.
3022 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003023 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003024 fi
3025fi
3026fi
3027fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003028CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003029if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003031$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003032else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003034$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003035fi
3036
Theodore Ts'oe1052142006-10-21 21:46:47 -04003037
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038fi
3039if test -z "$CC"; then
3040 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003041 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042 do
3043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003046$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003047if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003048 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003049else
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3052else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003058 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003062 break 2
3063 fi
3064done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003065 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003066IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003067
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003068fi
3069fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003070CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003071if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003073$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003074else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003076$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003077fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003078
Theodore Ts'oe1052142006-10-21 21:46:47 -04003079
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003080 test -n "$CC" && break
3081 done
3082fi
3083if test -z "$CC"; then
3084 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003085 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003086do
3087 # Extract the first word of "$ac_prog", so it can be a program name with args.
3088set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003090$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003091if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003092 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003093else
3094 if test -n "$ac_ct_CC"; then
3095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3096else
3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098for as_dir in $PATH
3099do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003102 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003104 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003106 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003107 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003108done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003109 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003110IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003111
3112fi
3113fi
3114ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003117$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003120$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003121fi
3122
Theodore Ts'oe1052142006-10-21 21:46:47 -04003123
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003124 test -n "$ac_ct_CC" && break
3125done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003126
Theodore Ts'oe1052142006-10-21 21:46:47 -04003127 if test "x$ac_ct_CC" = x; then
3128 CC=""
3129 else
3130 case $cross_compiling:$ac_tool_warned in
3131yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003132{ $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 +01003133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003134ac_tool_warned=yes ;;
3135esac
3136 CC=$ac_ct_CC
3137 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003138fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003139
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003140fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003141
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003142
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003143test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003145as_fn_error $? "no acceptable C compiler found in \$PATH
3146See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003147
3148# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003149$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003150set X $ac_compile
3151ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003152for ac_option in --version -v -V -qversion; do
3153 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003154case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159$as_echo "$ac_try_echo"; } >&5
3160 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003161 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003162 if test -s conftest.err; then
3163 sed '10a\
3164... rest of stderr output deleted ...
3165 10q' conftest.err >conftest.er1
3166 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003167 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003168 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }
3171done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003172
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003174/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003175
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003176int
3177main ()
3178{
3179
3180 ;
3181 return 0;
3182}
3183_ACEOF
3184ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003185ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003186# Try to create an executable without -o first, disregard a.out.
3187# It will help us diagnose broken compilers, and finding out an intuition
3188# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3190$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003191ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3192
3193# The possible output files:
3194ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3195
Theodore Ts'oe1052142006-10-21 21:46:47 -04003196ac_rmfiles=
3197for ac_file in $ac_files
3198do
3199 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003201 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3202 esac
3203done
3204rm -f $ac_rmfiles
3205
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003206if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003207case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003213 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003214 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003217 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3218# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3219# in a Makefile. We should not override ac_cv_exeext if it was cached,
3220# so that the user can short-circuit this test for compilers unknown to
3221# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003222for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003223do
3224 test -f "$ac_file" || continue
3225 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003227 ;;
3228 [ab].out )
3229 # We found the default executable, but exeext='' is most
3230 # certainly right.
3231 break;;
3232 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003233 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003234 then :; else
3235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236 fi
3237 # We set ac_cv_exeext here because the later test for it is not
3238 # safe: cross compilers may not add the suffix if given an `-o'
3239 # argument, so we may need to know it at that point already.
3240 # Even if this section looks crufty: it has the advantage of
3241 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003242 break;;
3243 * )
3244 break;;
3245 esac
3246done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003247test "$ac_cv_exeext" = no && ac_cv_exeext=
3248
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003249else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003250 ac_file=''
3251fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003252if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003256sed 's/^/| /' conftest.$ac_ext >&5
3257
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003258{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003260as_fn_error 77 "C compiler cannot create executables
3261See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003262else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003265fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3267$as_echo_n "checking for C compiler default output file name... " >&6; }
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3269$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003270ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003271
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003272rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003273ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003275$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003276if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003277case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003283 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003284 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003287 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3288# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3289# work properly (i.e., refer to `conftest.exe'), while it won't with
3290# `rm'.
3291for ac_file in conftest.exe conftest conftest.*; do
3292 test -f "$ac_file" || continue
3293 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003295 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003296 break;;
3297 * ) break;;
3298 esac
3299done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003300else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003303as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3304See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003305fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003306rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003308$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003309
3310rm -f conftest.$ac_ext
3311EXEEXT=$ac_cv_exeext
3312ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314/* end confdefs.h. */
3315#include <stdio.h>
3316int
3317main ()
3318{
3319FILE *f = fopen ("conftest.out", "w");
3320 return ferror (f) || fclose (f) != 0;
3321
3322 ;
3323 return 0;
3324}
3325_ACEOF
3326ac_clean_files="$ac_clean_files conftest.out"
3327# Check that the compiler produces executables we can run. If not, either
3328# the compiler is broken, or we cross compile.
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3330$as_echo_n "checking whether we are cross compiling... " >&6; }
3331if test "$cross_compiling" != yes; then
3332 { { ac_try="$ac_link"
3333case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336esac
3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338$as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_link") 2>&5
3340 ac_status=$?
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }
3343 if { ac_try='./conftest$ac_cv_exeext'
3344 { { case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347esac
3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_try") 2>&5
3351 ac_status=$?
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }; }; then
3354 cross_compiling=no
3355 else
3356 if test "$cross_compiling" = maybe; then
3357 cross_compiling=yes
3358 else
3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003361as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003362If you meant to cross compile, use \`--host'.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003363See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003364 fi
3365 fi
3366fi
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3368$as_echo "$cross_compiling" >&6; }
3369
3370rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3371ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003373$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003374if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003375 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003376else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003378/* end confdefs.h. */
3379
3380int
3381main ()
3382{
3383
3384 ;
3385 return 0;
3386}
3387_ACEOF
3388rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003389if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003390case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003396 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003397 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003400 for ac_file in conftest.o conftest.obj conftest.*; do
3401 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003402 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003404 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3405 break;;
3406 esac
3407done
3408else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003409 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003410sed 's/^/| /' conftest.$ac_ext >&5
3411
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003412{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003414as_fn_error $? "cannot compute suffix of object files: cannot compile
3415See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003416fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003417rm -f conftest.$ac_cv_objext conftest.$ac_ext
3418fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003420$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003421OBJEXT=$ac_cv_objext
3422ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003423{ $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 +01003424$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003425if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003426 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003427else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003429/* end confdefs.h. */
3430
3431int
3432main ()
3433{
3434#ifndef __GNUC__
3435 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003436#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003437
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003438 ;
3439 return 0;
3440}
3441_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003442if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003443 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003444else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003445 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003446fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003448ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003450fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003452$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3453if test $ac_compiler_gnu = yes; then
3454 GCC=yes
3455else
3456 GCC=
3457fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003458ac_test_CFLAGS=${CFLAGS+set}
3459ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003461$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003462if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003463 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003464else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003465 ac_save_c_werror_flag=$ac_c_werror_flag
3466 ac_c_werror_flag=yes
3467 ac_cv_prog_cc_g=no
3468 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003470/* end confdefs.h. */
3471
3472int
3473main ()
3474{
3475
3476 ;
3477 return 0;
3478}
3479_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003480if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003481 ac_cv_prog_cc_g=yes
3482else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003483 CFLAGS=""
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003485/* end confdefs.h. */
3486
3487int
3488main ()
3489{
3490
3491 ;
3492 return 0;
3493}
3494_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003495if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003496
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003497else
3498 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003499 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003501/* end confdefs.h. */
3502
3503int
3504main ()
3505{
3506
3507 ;
3508 return 0;
3509}
3510_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003511if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003512 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003513fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003515fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 ac_c_werror_flag=$ac_save_c_werror_flag
3520fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003522$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003523if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003524 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003525elif test $ac_cv_prog_cc_g = yes; then
3526 if test "$GCC" = yes; then
3527 CFLAGS="-g -O2"
3528 else
3529 CFLAGS="-g"
3530 fi
3531else
3532 if test "$GCC" = yes; then
3533 CFLAGS="-O2"
3534 else
3535 CFLAGS=
3536 fi
3537fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003539$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003540if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003541 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003542else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003543 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003544ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003546/* end confdefs.h. */
3547#include <stdarg.h>
3548#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003549struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003550/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3551struct buf { int x; };
3552FILE * (*rcsopen) (struct buf *, struct stat *, int);
3553static char *e (p, i)
3554 char **p;
3555 int i;
3556{
3557 return p[i];
3558}
3559static char *f (char * (*g) (char **, int), char **p, ...)
3560{
3561 char *s;
3562 va_list v;
3563 va_start (v,p);
3564 s = g (p, va_arg (v,int));
3565 va_end (v);
3566 return s;
3567}
3568
3569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3570 function prototypes and stuff, but not '\xHH' hex character constants.
3571 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003572 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3574 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003575 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003576int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3577
Theodore Ts'oe1052142006-10-21 21:46:47 -04003578/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3579 inside strings and character constants. */
3580#define FOO(x) 'x'
3581int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003583int test (int i, double x);
3584struct s1 {int (*f) (int a);};
3585struct s2 {int (*f) (double a);};
3586int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3587int argc;
3588char **argv;
3589int
3590main ()
3591{
3592return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3593 ;
3594 return 0;
3595}
3596_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003597for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3598 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003599do
3600 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003601 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003602 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003603fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003604rm -f core conftest.err conftest.$ac_objext
3605 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003606done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003607rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003608CC=$ac_save_CC
3609
3610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003611# AC_CACHE_VAL
3612case "x$ac_cv_prog_cc_c89" in
3613 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003615$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003616 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003618$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003619 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003620 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003622$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003623esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003624if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003625
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003626fi
3627
3628ac_ext=c
3629ac_cpp='$CPP $CPPFLAGS'
3630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633
3634
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3636$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003637if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003638 $as_echo_n "(cached) " >&6
3639else
3640 ac_check_lib_save_LIBS=$LIBS
3641LIBS="-ldl $LIBS"
3642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h. */
3644
3645/* Override any GCC internal prototype to avoid an error.
3646 Use char because int might match the return type of a GCC
3647 builtin and then its argument prototype would still apply. */
3648#ifdef __cplusplus
3649extern "C"
3650#endif
3651char dlopen ();
3652int
3653main ()
3654{
3655return dlopen ();
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660if ac_fn_c_try_link "$LINENO"; then :
3661 ac_cv_lib_dl_dlopen=yes
3662else
3663 ac_cv_lib_dl_dlopen=no
3664fi
3665rm -f core conftest.err conftest.$ac_objext \
3666 conftest$ac_exeext conftest.$ac_ext
3667LIBS=$ac_check_lib_save_LIBS
3668fi
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3670$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003671if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003672 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003673
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003674$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3675
3676fi
3677
3678
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003679
3680# Check whether --with-cc was given.
3681if test "${with_cc+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003682 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003683fi
3684
3685
3686# Check whether --with-ccopts was given.
3687if test "${with_ccopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003688 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003689fi
3690
3691
3692# Check whether --with-ldopts was given.
3693if test "${with_ldopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003694 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003695fi
3696
3697ac_ext=c
3698ac_cpp='$CPP $CPPFLAGS'
3699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702if test -n "$ac_tool_prefix"; then
3703 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3704set dummy ${ac_tool_prefix}gcc; ac_word=$2
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003707if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003708 $as_echo_n "(cached) " >&6
3709else
3710 if test -n "$CC"; then
3711 ac_cv_prog_CC="$CC" # Let the user override the test.
3712else
3713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714for as_dir in $PATH
3715do
3716 IFS=$as_save_IFS
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003720 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 break 2
3723 fi
3724done
3725 done
3726IFS=$as_save_IFS
3727
3728fi
3729fi
3730CC=$ac_cv_prog_CC
3731if test -n "$CC"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733$as_echo "$CC" >&6; }
3734else
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736$as_echo "no" >&6; }
3737fi
3738
3739
3740fi
3741if test -z "$ac_cv_prog_CC"; then
3742 ac_ct_CC=$CC
3743 # Extract the first word of "gcc", so it can be a program name with args.
3744set dummy gcc; ac_word=$2
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003747if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003748 $as_echo_n "(cached) " >&6
3749else
3750 if test -n "$ac_ct_CC"; then
3751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3752else
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH
3755do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003760 ac_cv_prog_ac_ct_CC="gcc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3763 fi
3764done
3765 done
3766IFS=$as_save_IFS
3767
3768fi
3769fi
3770ac_ct_CC=$ac_cv_prog_ac_ct_CC
3771if test -n "$ac_ct_CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3773$as_echo "$ac_ct_CC" >&6; }
3774else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776$as_echo "no" >&6; }
3777fi
3778
3779 if test "x$ac_ct_CC" = x; then
3780 CC=""
3781 else
3782 case $cross_compiling:$ac_tool_warned in
3783yes:)
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786ac_tool_warned=yes ;;
3787esac
3788 CC=$ac_ct_CC
3789 fi
3790else
3791 CC="$ac_cv_prog_CC"
3792fi
3793
3794if test -z "$CC"; then
3795 if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3797set dummy ${ac_tool_prefix}cc; ac_word=$2
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003800if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003801 $as_echo_n "(cached) " >&6
3802else
3803 if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3805else
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003813 ac_cv_prog_CC="${ac_tool_prefix}cc"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3816 fi
3817done
3818 done
3819IFS=$as_save_IFS
3820
3821fi
3822fi
3823CC=$ac_cv_prog_CC
3824if test -n "$CC"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826$as_echo "$CC" >&6; }
3827else
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829$as_echo "no" >&6; }
3830fi
3831
3832
3833 fi
3834fi
3835if test -z "$CC"; then
3836 # Extract the first word of "cc", so it can be a program name with args.
3837set dummy cc; 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003840if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003841 $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
3846 ac_prog_rejected=no
3847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848for as_dir in $PATH
3849do
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003854 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3855 ac_prog_rejected=yes
3856 continue
3857 fi
3858 ac_cv_prog_CC="cc"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862done
3863 done
3864IFS=$as_save_IFS
3865
3866if test $ac_prog_rejected = yes; then
3867 # We found a bogon in the path, so make sure we never use it.
3868 set dummy $ac_cv_prog_CC
3869 shift
3870 if test $# != 0; then
3871 # We chose a different compiler from the bogus one.
3872 # However, it has the same basename, so the bogon will be chosen
3873 # first if we set CC to just the basename; use the full file name.
3874 shift
3875 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3876 fi
3877fi
3878fi
3879fi
3880CC=$ac_cv_prog_CC
3881if test -n "$CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883$as_echo "$CC" >&6; }
3884else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886$as_echo "no" >&6; }
3887fi
3888
3889
3890fi
3891if test -z "$CC"; then
3892 if test -n "$ac_tool_prefix"; then
3893 for ac_prog in cl.exe
3894 do
3895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3896set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003899if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003900 $as_echo_n "(cached) " >&6
3901else
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC="$CC" # Let the user override the test.
3904else
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003912 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916done
3917 done
3918IFS=$as_save_IFS
3919
3920fi
3921fi
3922CC=$ac_cv_prog_CC
3923if test -n "$CC"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925$as_echo "$CC" >&6; }
3926else
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928$as_echo "no" >&6; }
3929fi
3930
3931
3932 test -n "$CC" && break
3933 done
3934fi
3935if test -z "$CC"; then
3936 ac_ct_CC=$CC
3937 for ac_prog in cl.exe
3938do
3939 # Extract the first word of "$ac_prog", so it can be a program name with args.
3940set dummy $ac_prog; ac_word=$2
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003943if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003944 $as_echo_n "(cached) " >&6
3945else
3946 if test -n "$ac_ct_CC"; then
3947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3948else
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003956 ac_cv_prog_ac_ct_CC="$ac_prog"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960done
3961 done
3962IFS=$as_save_IFS
3963
3964fi
3965fi
3966ac_ct_CC=$ac_cv_prog_ac_ct_CC
3967if test -n "$ac_ct_CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3969$as_echo "$ac_ct_CC" >&6; }
3970else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
3973fi
3974
3975
3976 test -n "$ac_ct_CC" && break
3977done
3978
3979 if test "x$ac_ct_CC" = x; then
3980 CC=""
3981 else
3982 case $cross_compiling:$ac_tool_warned in
3983yes:)
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3986ac_tool_warned=yes ;;
3987esac
3988 CC=$ac_ct_CC
3989 fi
3990fi
3991
3992fi
3993
3994
3995test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003997as_fn_error $? "no acceptable C compiler found in \$PATH
3998See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003999
4000# Provide some information about the compiler.
4001$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4002set X $ac_compile
4003ac_compiler=$2
4004for ac_option in --version -v -V -qversion; do
4005 { { ac_try="$ac_compiler $ac_option >&5"
4006case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009esac
4010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011$as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4013 ac_status=$?
4014 if test -s conftest.err; then
4015 sed '10a\
4016... rest of stderr output deleted ...
4017 10q' conftest.err >conftest.er1
4018 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004019 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004020 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }
4023done
4024
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4026$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004027if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004028 $as_echo_n "(cached) " >&6
4029else
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h. */
4032
4033int
4034main ()
4035{
4036#ifndef __GNUC__
4037 choke me
4038#endif
4039
4040 ;
4041 return 0;
4042}
4043_ACEOF
4044if ac_fn_c_try_compile "$LINENO"; then :
4045 ac_compiler_gnu=yes
4046else
4047 ac_compiler_gnu=no
4048fi
4049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050ac_cv_c_compiler_gnu=$ac_compiler_gnu
4051
4052fi
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4054$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4055if test $ac_compiler_gnu = yes; then
4056 GCC=yes
4057else
4058 GCC=
4059fi
4060ac_test_CFLAGS=${CFLAGS+set}
4061ac_save_CFLAGS=$CFLAGS
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4063$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004064if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004065 $as_echo_n "(cached) " >&6
4066else
4067 ac_save_c_werror_flag=$ac_c_werror_flag
4068 ac_c_werror_flag=yes
4069 ac_cv_prog_cc_g=no
4070 CFLAGS="-g"
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072/* end confdefs.h. */
4073
4074int
4075main ()
4076{
4077
4078 ;
4079 return 0;
4080}
4081_ACEOF
4082if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_cv_prog_cc_g=yes
4084else
4085 CFLAGS=""
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h. */
4088
4089int
4090main ()
4091{
4092
4093 ;
4094 return 0;
4095}
4096_ACEOF
4097if ac_fn_c_try_compile "$LINENO"; then :
4098
4099else
4100 ac_c_werror_flag=$ac_save_c_werror_flag
4101 CFLAGS="-g"
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103/* end confdefs.h. */
4104
4105int
4106main ()
4107{
4108
4109 ;
4110 return 0;
4111}
4112_ACEOF
4113if ac_fn_c_try_compile "$LINENO"; then :
4114 ac_cv_prog_cc_g=yes
4115fi
4116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117fi
4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119fi
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 ac_c_werror_flag=$ac_save_c_werror_flag
4122fi
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4124$as_echo "$ac_cv_prog_cc_g" >&6; }
4125if test "$ac_test_CFLAGS" = set; then
4126 CFLAGS=$ac_save_CFLAGS
4127elif test $ac_cv_prog_cc_g = yes; then
4128 if test "$GCC" = yes; then
4129 CFLAGS="-g -O2"
4130 else
4131 CFLAGS="-g"
4132 fi
4133else
4134 if test "$GCC" = yes; then
4135 CFLAGS="-O2"
4136 else
4137 CFLAGS=
4138 fi
4139fi
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4141$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004142if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004143 $as_echo_n "(cached) " >&6
4144else
4145 ac_cv_prog_cc_c89=no
4146ac_save_CC=$CC
4147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h. */
4149#include <stdarg.h>
4150#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004151struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004152/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4153struct buf { int x; };
4154FILE * (*rcsopen) (struct buf *, struct stat *, int);
4155static char *e (p, i)
4156 char **p;
4157 int i;
4158{
4159 return p[i];
4160}
4161static char *f (char * (*g) (char **, int), char **p, ...)
4162{
4163 char *s;
4164 va_list v;
4165 va_start (v,p);
4166 s = g (p, va_arg (v,int));
4167 va_end (v);
4168 return s;
4169}
4170
4171/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4172 function prototypes and stuff, but not '\xHH' hex character constants.
4173 These don't provoke an error unfortunately, instead are silently treated
4174 as 'x'. The following induces an error, until -std is added to get
4175 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4176 array size at least. It's necessary to write '\x00'==0 to get something
4177 that's true only with -std. */
4178int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4179
4180/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4181 inside strings and character constants. */
4182#define FOO(x) 'x'
4183int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4184
4185int test (int i, double x);
4186struct s1 {int (*f) (int a);};
4187struct s2 {int (*f) (double a);};
4188int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4189int argc;
4190char **argv;
4191int
4192main ()
4193{
4194return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4195 ;
4196 return 0;
4197}
4198_ACEOF
4199for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4200 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4201do
4202 CC="$ac_save_CC $ac_arg"
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_prog_cc_c89=$ac_arg
4205fi
4206rm -f core conftest.err conftest.$ac_objext
4207 test "x$ac_cv_prog_cc_c89" != "xno" && break
4208done
4209rm -f conftest.$ac_ext
4210CC=$ac_save_CC
4211
4212fi
4213# AC_CACHE_VAL
4214case "x$ac_cv_prog_cc_c89" in
4215 x)
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4217$as_echo "none needed" >&6; } ;;
4218 xno)
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4220$as_echo "unsupported" >&6; } ;;
4221 *)
4222 CC="$CC $ac_cv_prog_cc_c89"
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4224$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4225esac
4226if test "x$ac_cv_prog_cc_c89" != xno; then :
4227
4228fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004229
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004230ac_ext=c
4231ac_cpp='$CPP $CPPFLAGS'
4232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004236if test "$GCC" = yes; then
4237 RDYNAMIC="-rdynamic"
4238
4239fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004240ac_ext=c
4241ac_cpp='$CPP $CPPFLAGS'
4242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004246$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004247# On Suns, sometimes $CPP names a directory.
4248if test -n "$CPP" && test -d "$CPP"; then
4249 CPP=
4250fi
4251if test -z "$CPP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004252 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004253 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004254else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004255 # Double quotes because CPP needs to be expanded
4256 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4257 do
4258 ac_preproc_ok=false
4259for ac_c_preproc_warn_flag in '' yes
4260do
4261 # Use a header file that comes with gcc, so configuring glibc
4262 # with a fresh cross-compiler works.
4263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4264 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004265 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004266 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004268/* end confdefs.h. */
4269#ifdef __STDC__
4270# include <limits.h>
4271#else
4272# include <assert.h>
4273#endif
4274 Syntax error
4275_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004276if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004277
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004278else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004279 # Broken: fails on valid input.
4280continue
4281fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004282rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283
Theodore Ts'oe1052142006-10-21 21:46:47 -04004284 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004285 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004287/* end confdefs.h. */
4288#include <ac_nonexistent.h>
4289_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004290if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004291 # Broken: success on invalid input.
4292continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004293else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004294 # Passes both tests.
4295ac_preproc_ok=:
4296break
4297fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004298rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004299
4300done
4301# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004302rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004303if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004304 break
4305fi
4306
4307 done
4308 ac_cv_prog_CPP=$CPP
4309
4310fi
4311 CPP=$ac_cv_prog_CPP
4312else
4313 ac_cv_prog_CPP=$CPP
4314fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004316$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004317ac_preproc_ok=false
4318for ac_c_preproc_warn_flag in '' yes
4319do
4320 # Use a header file that comes with gcc, so configuring glibc
4321 # with a fresh cross-compiler works.
4322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4323 # <limits.h> exists even on freestanding compilers.
4324 # On the NeXT, cc -E runs the code through the compiler's parser,
4325 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004327/* end confdefs.h. */
4328#ifdef __STDC__
4329# include <limits.h>
4330#else
4331# include <assert.h>
4332#endif
4333 Syntax error
4334_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004335if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004336
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004337else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004338 # Broken: fails on valid input.
4339continue
4340fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004341rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004342
Theodore Ts'oe1052142006-10-21 21:46:47 -04004343 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004344 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004346/* end confdefs.h. */
4347#include <ac_nonexistent.h>
4348_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004349if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004350 # Broken: success on invalid input.
4351continue
4352else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004353 # Passes both tests.
4354ac_preproc_ok=:
4355break
4356fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004357rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004358
4359done
4360# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004361rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004362if $ac_preproc_ok; then :
4363
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004364else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004367as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4368See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004369fi
4370
4371ac_ext=c
4372ac_cpp='$CPP $CPPFLAGS'
4373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004378$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004379if test "$GCC" = yes
4380then
4381 case "$host_cpu" in
4382 alpha) addcflags="-mieee" ;;
4383 esac
4384fi
4385if test "x$addcflags" != x
4386then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004388$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004389 CFLAGS="$addcflags $CFLAGS"
4390else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004392$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004393fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004394LIB_EXT=.a
4395STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004396PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004397
Theodore Ts'oe1052142006-10-21 21:46:47 -04004398# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004399if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004400 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004401else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004402 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004403fi
4404# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004405if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004406 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004407then
4408 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004410$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004411else
4412 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004414$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004415fi
4416
4417else
4418 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004420$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004421
Theodore Ts'oe1052142006-10-21 21:46:47 -04004422fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004423
Theodore Ts'oe1052142006-10-21 21:46:47 -04004424
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004425# Check whether --enable-symlink-install was given.
4426if test "${enable_symlink_install+set}" = set; then :
4427 enableval=$enable_symlink_install; if test "$enableval" = "no"
4428then
4429 LINK_INSTALL_FLAGS=-f
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4431$as_echo "Disabling symlinks for install" >&6; }
4432else
4433 LINK_INSTALL_FLAGS=-sf
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4435$as_echo "Enabling symlinks for install" >&6; }
4436fi
4437
4438else
4439 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4441$as_echo "Disabling symlinks for install by default" >&6; }
4442
4443fi
4444
4445
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004446relative_symlink_defined=
4447# Check whether --enable-relative-symlinks was given.
4448if test "${enable_relative_symlinks+set}" = set; then :
4449 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004450then
4451 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004452 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4454$as_echo "Disabling relative symlinks for install" >&6; }
4455else
4456 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004457 relative_symlink_defined=yes
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4459$as_echo "Enabling relative symlinks for install" >&6; }
4460fi
4461fi
4462
4463# Check whether --enable-symlink-relative-symlinks was given.
4464if test "${enable_symlink_relative_symlinks+set}" = set; then :
4465 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4466then
4467 SYMLINK_RELATIVE=yes
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4469$as_echo "Disabling relative symlinks for install" >&6; }
4470else
4471 SYMLINK_RELATIVE=--relative
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4473$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004474fi
4475
4476else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004477 if test -z "$relative_symlink_defined"
4478then
4479 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4481$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004482fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004483
4484fi
4485
4486
4487# Check whether --enable-symlink-build was given.
4488if test "${enable_symlink_build+set}" = set; then :
4489 enableval=$enable_symlink_build; if test "$enableval" = "no"
4490then
4491 LINK_BUILD_FLAGS=
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4493$as_echo "Disabling symlinks for build" >&6; }
4494else
4495 LINK_BUILD_FLAGS=-s
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4497$as_echo "Enabling symlinks for build" >&6; }
4498fi
4499
4500else
4501 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4503$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004504
4505fi
4506
4507
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004508# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004509if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004510 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4511then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004513$as_echo "Disabling verbose make commands" >&6; }
4514 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004515 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004516 Q=@
4517else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004519$as_echo "Enabling verbose make commands" >&6; }
4520 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004521 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004522 Q=
4523fi
4524
4525else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004527$as_echo "Disabling verbose make commands" >&6; }
4528E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004529ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004530Q=@
4531
4532fi
4533
4534
4535
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004536
Theodore Ts'oe1052142006-10-21 21:46:47 -04004537# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004538if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004539 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004540then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004542$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004543else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004544
4545$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004546
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004548$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004550$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004551fi
4552
4553else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004555$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004556
Theodore Ts'oe1052142006-10-21 21:46:47 -04004557fi
4558
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004559
Theodore Ts'oe1052142006-10-21 21:46:47 -04004560# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004561if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004562 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004563then
4564 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004566$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004567else
4568 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004569 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004570
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004572$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004573fi
4574
4575else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004576 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004577$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004578
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004580$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004581
Theodore Ts'oe1052142006-10-21 21:46:47 -04004582fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004583
Theodore Ts'oe1052142006-10-21 21:46:47 -04004584
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004585E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004586LDFLAG_DYNAMIC=
4587PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004588# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004589if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004590 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004591then
4592 ELF_CMT=#
4593 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004595$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004596else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004597 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004598 ELF_CMT=
4599 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004600 case "$host_os" in
4601 solaris2.*)
4602 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4603 ;;
4604 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004605 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004606 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004607 PRIVATE_LIBS_CMT=#
4608 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004610$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004611fi
4612
4613else
4614 MAKEFILE_ELF=/dev/null
4615ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004617$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004618
Theodore Ts'oe1052142006-10-21 21:46:47 -04004619fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004620
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004621
Theodore Ts'oe1052142006-10-21 21:46:47 -04004622
4623# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004624if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004625 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004626then
4627 BSDLIB_CMT=#
4628 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004630$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004631else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004632 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004633 BSDLIB_CMT=
4634 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004635 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004636 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004637 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004638 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4639 LIB_EXT=.dylib
4640 ;;
4641 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004643$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004644fi
4645
4646else
4647 MAKEFILE_BSDLIB=/dev/null
4648BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004650$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004651
Theodore Ts'oe1052142006-10-21 21:46:47 -04004652fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004653
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004654
Theodore Ts'oe1052142006-10-21 21:46:47 -04004655
4656# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004657if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004658 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004659then
4660 PROFILE_CMT=#
4661 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004663$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004664else
4665 PROFILE_CMT=
4666 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4667 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004669$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004670fi
4671
4672else
4673 PROFILE_CMT=#
4674MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004676$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004677
Theodore Ts'oe1052142006-10-21 21:46:47 -04004678fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004679
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004680
Theodore Ts'oe1052142006-10-21 21:46:47 -04004681
Theodore Ts'ofedfb272014-02-23 00:17:09 -05004682# Check whether --enable-gcov was given.
4683if test "${enable_gcov+set}" = set; then :
4684 enableval=$enable_gcov; if test "$enableval" = "yes"
4685then
4686 CFLAGS="-g -fprofile-arcs -ftest-coverage"
4687 LDFLAGS="-fprofile-arcs -ftest-coverage"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4689$as_echo "Enabling gcov support" >&6; }
4690fi
4691
4692fi
4693
Theodore Ts'oe1052142006-10-21 21:46:47 -04004694# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004695if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004696 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004697then
4698 CHECKER_CMT=#
4699 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004701$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004702else
4703 CHECKER_CMT=
4704 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004706$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004707fi
4708
4709else
4710 CHECKER_CMT=#
4711MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004713$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004714
Theodore Ts'oe1052142006-10-21 21:46:47 -04004715fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004716
4717
4718
4719
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004720
Theodore Ts'oe1052142006-10-21 21:46:47 -04004721
Theodore Ts'o55da9872008-09-02 23:12:38 -04004722
4723
Theodore Ts'oe1052142006-10-21 21:46:47 -04004724# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004725if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004726 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004727then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004729$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004730else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004731
4732$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004733
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004735$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004736fi
4737
4738else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004740$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004741
Theodore Ts'oe1052142006-10-21 21:46:47 -04004742fi
4743
4744# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004745if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004746 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004747then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004749$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004750else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004751
4752$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004753
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004755$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004756fi
4757
4758else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004760$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004761
Theodore Ts'oe1052142006-10-21 21:46:47 -04004762fi
4763
4764# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004765if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004766 enableval=$enable_testio_debug;
4767if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004768then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004770$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004771 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004772else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004773 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004774 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004775
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004777$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004778fi
4779
4780else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004782$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004783$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004784
4785TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004786
Theodore Ts'oe1052142006-10-21 21:46:47 -04004787fi
4788
Theodore Ts'oaf773652008-09-01 11:27:27 -04004789
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004790
4791
4792if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4793 if test -n "$ac_tool_prefix"; then
4794 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4795set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004797$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004798if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004799 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004800else
4801 case $PKG_CONFIG in
4802 [\\/]* | ?:[\\/]*)
4803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4804 ;;
4805 *)
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807for as_dir in $PATH
4808do
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004811 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004815 break 2
4816 fi
4817done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004818 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004819IFS=$as_save_IFS
4820
4821 ;;
4822esac
4823fi
4824PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4825if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004827$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004828else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004830$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004831fi
4832
4833
4834fi
4835if test -z "$ac_cv_path_PKG_CONFIG"; then
4836 ac_pt_PKG_CONFIG=$PKG_CONFIG
4837 # Extract the first word of "pkg-config", so it can be a program name with args.
4838set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004840$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004841if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004842 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004843else
4844 case $ac_pt_PKG_CONFIG in
4845 [\\/]* | ?:[\\/]*)
4846 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4847 ;;
4848 *)
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850for as_dir in $PATH
4851do
4852 IFS=$as_save_IFS
4853 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004854 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004856 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004858 break 2
4859 fi
4860done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004861 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004862IFS=$as_save_IFS
4863
4864 ;;
4865esac
4866fi
4867ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4868if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004870$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004871else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004873$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004874fi
4875
4876 if test "x$ac_pt_PKG_CONFIG" = x; then
4877 PKG_CONFIG=""
4878 else
4879 case $cross_compiling:$ac_tool_warned in
4880yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004881{ $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 +01004882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004883ac_tool_warned=yes ;;
4884esac
4885 PKG_CONFIG=$ac_pt_PKG_CONFIG
4886 fi
4887else
4888 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4889fi
4890
4891fi
4892if test -n "$PKG_CONFIG"; then
4893 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004894 { $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 +01004895$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004896 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004898$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004899 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004901$as_echo "no" >&6; }
4902 PKG_CONFIG=""
4903 fi
4904
4905fi
4906LIBUUID=
4907DEPLIBUUID=
4908STATIC_LIBUUID=
4909DEPSTATIC_LIBUUID=
4910PROFILED_LIBUUID=
4911DEPPROFILED_LIBUUID=
4912UUID_CMT=
4913# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004914if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004915 enableval=$enable_libuuid; if test "$enableval" = "no"
4916then
4917 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004918 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004919 fi
4920
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004922$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004923if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004924 $as_echo_n "(cached) " >&6
4925else
4926 ac_check_lib_save_LIBS=$LIBS
4927LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004929/* end confdefs.h. */
4930
4931/* Override any GCC internal prototype to avoid an error.
4932 Use char because int might match the return type of a GCC
4933 builtin and then its argument prototype would still apply. */
4934#ifdef __cplusplus
4935extern "C"
4936#endif
4937char uuid_generate ();
4938int
4939main ()
4940{
4941return uuid_generate ();
4942 ;
4943 return 0;
4944}
4945_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004946if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004947 ac_cv_lib_uuid_uuid_generate=yes
4948else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004949 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004950fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004951rm -f core conftest.err conftest.$ac_objext \
4952 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004953LIBS=$ac_check_lib_save_LIBS
4954fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004956$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004957if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004958 LIBUUID=`$PKG_CONFIG --libs uuid`;
4959 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4960else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004961 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004962fi
4963
4964 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004966$as_echo "Disabling private uuid library" >&6; }
4967else
4968 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4969 DEPLIBUUID=$LIBUUID
4970 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4971 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4972 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4973 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004975$as_echo "Enabling private uuid library" >&6; }
4976fi
4977
4978else
4979 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4980DEPLIBUUID=$LIBUUID
4981STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4982DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4983PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4984DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004986$as_echo "Enabling private uuid library by default" >&6; }
4987
4988fi
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5000 if test -n "$ac_tool_prefix"; then
5001 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5002set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005004$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005005if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005006 $as_echo_n "(cached) " >&6
5007else
5008 case $PKG_CONFIG in
5009 [\\/]* | ?:[\\/]*)
5010 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5011 ;;
5012 *)
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005018 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005020 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005022 break 2
5023 fi
5024done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005025 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005026IFS=$as_save_IFS
5027
5028 ;;
5029esac
5030fi
5031PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5032if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005034$as_echo "$PKG_CONFIG" >&6; }
5035else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005037$as_echo "no" >&6; }
5038fi
5039
5040
5041fi
5042if test -z "$ac_cv_path_PKG_CONFIG"; then
5043 ac_pt_PKG_CONFIG=$PKG_CONFIG
5044 # Extract the first word of "pkg-config", so it can be a program name with args.
5045set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005047$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005048if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005049 $as_echo_n "(cached) " >&6
5050else
5051 case $ac_pt_PKG_CONFIG in
5052 [\\/]* | ?:[\\/]*)
5053 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5054 ;;
5055 *)
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
5058do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005061 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005063 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005065 break 2
5066 fi
5067done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005068 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005069IFS=$as_save_IFS
5070
5071 ;;
5072esac
5073fi
5074ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5075if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005077$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5078else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005080$as_echo "no" >&6; }
5081fi
5082
5083 if test "x$ac_pt_PKG_CONFIG" = x; then
5084 PKG_CONFIG=""
5085 else
5086 case $cross_compiling:$ac_tool_warned in
5087yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005088{ $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 +01005089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5090ac_tool_warned=yes ;;
5091esac
5092 PKG_CONFIG=$ac_pt_PKG_CONFIG
5093 fi
5094else
5095 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5096fi
5097
5098fi
5099if test -n "$PKG_CONFIG"; then
5100 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005101 { $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 +01005102$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5103 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005105$as_echo "yes" >&6; }
5106 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005108$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005109 PKG_CONFIG=""
5110 fi
5111
5112fi
5113LIBBLKID=
5114DEPLIBBLKID=
5115STATIC_LIBBLKID=
5116DEPSTATIC_LIBBLKID=
5117PROFILED_LIBBLKID=
5118DEPPROFILED_LIBBLKID=
5119BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005120
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005121# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005122if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005123 enableval=$enable_libblkid; if test "$enableval" = "no"
5124then
5125 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005126 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005127 fi
5128
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005130$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005131if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005132 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005133else
5134 ac_check_lib_save_LIBS=$LIBS
5135LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005137/* end confdefs.h. */
5138
5139/* Override any GCC internal prototype to avoid an error.
5140 Use char because int might match the return type of a GCC
5141 builtin and then its argument prototype would still apply. */
5142#ifdef __cplusplus
5143extern "C"
5144#endif
5145char blkid_get_cache ();
5146int
5147main ()
5148{
5149return blkid_get_cache ();
5150 ;
5151 return 0;
5152}
5153_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005154if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005155 ac_cv_lib_blkid_blkid_get_cache=yes
5156else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005157 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005158fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005159rm -f core conftest.err conftest.$ac_objext \
5160 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005161LIBS=$ac_check_lib_save_LIBS
5162fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005164$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005165if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005166 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5167 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5168else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005169 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005170fi
5171
5172 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005174$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005175else
5176 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5177 DEPLIBBLKID=$LIBBLKID
5178 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5179 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5180 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5181 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005182 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005183
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005185$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005186fi
5187
5188else
5189 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5190DEPLIBBLKID=$LIBBLKID
5191STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5192DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5193PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5194DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005195$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005196
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005198$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005199
5200fi
5201
5202
5203
5204
5205
5206
5207
5208
Eric Sandeenf5589f42013-10-14 08:54:15 -04005209QUOTA_MAN_COMMENT='.\"'
Niu Yawei43075b42013-10-14 09:49:27 -04005210QUOTA_CMT=
Eric Sandeenf5589f42013-10-14 08:54:15 -04005211
Aditya Kalif239fef2011-07-20 11:40:02 -07005212
5213
5214if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5215 if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5217set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005220if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005221 $as_echo_n "(cached) " >&6
5222else
5223 case $PKG_CONFIG in
5224 [\\/]* | ?:[\\/]*)
5225 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5226 ;;
5227 *)
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005235 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239done
5240 done
5241IFS=$as_save_IFS
5242
5243 ;;
5244esac
5245fi
5246PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5247if test -n "$PKG_CONFIG"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5249$as_echo "$PKG_CONFIG" >&6; }
5250else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252$as_echo "no" >&6; }
5253fi
5254
5255
5256fi
5257if test -z "$ac_cv_path_PKG_CONFIG"; then
5258 ac_pt_PKG_CONFIG=$PKG_CONFIG
5259 # Extract the first word of "pkg-config", so it can be a program name with args.
5260set dummy pkg-config; ac_word=$2
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005263if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005264 $as_echo_n "(cached) " >&6
5265else
5266 case $ac_pt_PKG_CONFIG in
5267 [\\/]* | ?:[\\/]*)
5268 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5269 ;;
5270 *)
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH
5273do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005278 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282done
5283 done
5284IFS=$as_save_IFS
5285
5286 ;;
5287esac
5288fi
5289ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5290if test -n "$ac_pt_PKG_CONFIG"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5292$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5293else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295$as_echo "no" >&6; }
5296fi
5297
5298 if test "x$ac_pt_PKG_CONFIG" = x; then
5299 PKG_CONFIG=""
5300 else
5301 case $cross_compiling:$ac_tool_warned in
5302yes:)
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305ac_tool_warned=yes ;;
5306esac
5307 PKG_CONFIG=$ac_pt_PKG_CONFIG
5308 fi
5309else
5310 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5311fi
5312
5313fi
5314if test -n "$PKG_CONFIG"; then
5315 _pkg_min_version=0.9.0
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5317$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5318 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5320$as_echo "yes" >&6; }
5321 else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323$as_echo "no" >&6; }
5324 PKG_CONFIG=""
5325 fi
5326
5327fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005328
5329# Check whether --enable-quota was given.
5330if test "${enable_quota+set}" = set; then :
5331 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005332then
Niu Yawei43075b42013-10-14 09:49:27 -04005333 QUOTA_CMT=#
Theodore Ts'o7becb202011-11-14 10:40:43 -05005334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5335$as_echo "Disabling quota support" >&6; }
5336else
Niu Yawei43075b42013-10-14 09:49:27 -04005337 QUOTA_CMT=
Theodore Ts'o7becb202011-11-14 10:40:43 -05005338 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005339
Theodore Ts'o7becb202011-11-14 10:40:43 -05005340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5341$as_echo "Enabling quota support" >&6; }
Eric Sandeenf5589f42013-10-14 08:54:15 -04005342 QUOTA_MAN_COMMENT=""
5343
Aditya Kalif239fef2011-07-20 11:40:02 -07005344fi
5345
5346else
Niu Yawei43075b42013-10-14 09:49:27 -04005347 QUOTA_CMT=#
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
Theodore Ts'o7becb202011-11-14 10:40:43 -05005349$as_echo "Disabling quota support by default" >&6; }
5350
5351fi
5352
5353LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005354DEPLIBQUOTA=$LIBQUOTA
5355STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5356DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5357PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5358DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005359
5360
5361
5362
5363
5364
5365
Theodore Ts'o3df60142013-06-16 16:14:40 -04005366
5367# Check whether --enable-backtrace was given.
5368if test "${enable_backtrace+set}" = set; then :
5369 enableval=$enable_backtrace; if test "$enableval" = "no"
5370then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5372$as_echo "Disabling use of backtrace" >&6; }
5373 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5374
5375else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5377$as_echo "Enabling use of backtrace" >&6; }
5378fi
5379
5380else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5382$as_echo "Enabling use of backtrace by default" >&6; }
5383
5384fi
5385
Theodore Ts'oe1052142006-10-21 21:46:47 -04005386# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005387if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005388 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005389then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005391$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005392 DEBUGFS_CMT="#"
5393else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005394 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005396$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005397fi
5398
5399else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005401$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005402DEBUGFS_CMT=
5403
Theodore Ts'oe1052142006-10-21 21:46:47 -04005404fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005405
Theodore Ts'oe1052142006-10-21 21:46:47 -04005406
5407# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005408if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005409 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005410then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005412$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005413 IMAGER_CMT="#"
5414else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005415 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005417$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005418fi
5419
5420else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005422$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005423IMAGER_CMT=
5424
Theodore Ts'oe1052142006-10-21 21:46:47 -04005425fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005426
Theodore Ts'oe1052142006-10-21 21:46:47 -04005427
5428# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005429if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005430 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005431then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005433$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005434 RESIZER_CMT="#"
5435else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005436 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005438$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005439fi
5440
5441else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005443$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005444RESIZER_CMT=
5445
Theodore Ts'oe1052142006-10-21 21:46:47 -04005446fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005447
Theodore Ts'oe1052142006-10-21 21:46:47 -04005448
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005449# Check whether --enable-defrag was given.
5450if test "${enable_defrag+set}" = set; then :
5451 enableval=$enable_defrag; if test "$enableval" = "no"
5452then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5454$as_echo "Disabling e4defrag support" >&6; }
5455 DEFRAG_CMT="#"
5456else
5457 DEFRAG_CMT=
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5459$as_echo "Enabling e4defrag support" >&6; }
5460fi
5461
5462else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005463 if test -z "$WITH_DIET_LIBC"
5464then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005466$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005467 DEFRAG_CMT=
5468else
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5470$as_echo "Disabling e4defrag support by default" >&6; }
5471 DEFRAG_CMT="#"
5472fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005473
5474fi
5475
5476
Theodore Ts'oe1052142006-10-21 21:46:47 -04005477# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005478if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005479 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005480then
5481 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005483$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005484else
5485 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005487$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005488fi
5489
5490else
5491 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005492 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005493 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005495$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005496 ;;
5497 *)
5498 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005500$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005501esac
5502
Theodore Ts'oe1052142006-10-21 21:46:47 -04005503fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005504
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005505
Theodore Ts'oe1052142006-10-21 21:46:47 -04005506
5507# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005508if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005509 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005510then
5511 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005513$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005514else
5515 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005517$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005518fi
5519
5520else
5521 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005523$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005524
Theodore Ts'oe1052142006-10-21 21:46:47 -04005525fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005526
5527
Theodore Ts'oe1052142006-10-21 21:46:47 -04005528
Theodore Ts'o32493942007-12-31 10:45:01 -05005529# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005530if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005531 enableval=$enable_tls; if test "$enableval" = "no"
5532then
5533 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005535$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005536else
5537 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005539$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005540fi
5541
5542else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005543 if test -n "$WITH_DIET_LIBC"
5544then
5545 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005546 { $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 +01005547$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005548else
5549 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005551$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005552fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005553
5554fi
5555
5556if test "$try_tls" = "yes"
5557then
5558
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005560$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005561 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005562 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005563else
5564
5565 ax_tls_keywords="__thread __declspec(thread) none"
5566 for ax_tls_keyword in $ax_tls_keywords; do
5567 case $ax_tls_keyword in
5568 none) ac_cv_tls=none ; break ;;
5569 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005571/* end confdefs.h. */
5572#include <stdlib.h>
5573 static void
5574 foo(void) {
5575 static $ax_tls_keyword int bar;
5576 exit(1);
5577 }
5578int
5579main ()
5580{
5581
5582 ;
5583 return 0;
5584}
5585_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005586if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005587 ac_cv_tls=$ax_tls_keyword ; break
5588else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005589 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005590
5591fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 esac
5594 done
5595
5596fi
5597
5598
5599 if test "$ac_cv_tls" != "none"; then
5600
5601cat >>confdefs.h <<_ACEOF
5602#define TLS $ac_cv_tls
5603_ACEOF
5604
5605 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005607$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005608
5609fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005610
Theodore Ts'o5610f992007-12-31 11:16:56 -05005611# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005612if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005613 enableval=$enable_uuidd; if test "$enableval" = "no"
5614then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005616$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005617 UUIDD_CMT="#"
5618else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005619 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005620
5621 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005623$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005624fi
5625
5626else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005627 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005628
5629UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005631$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005632
5633fi
5634
5635
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005636MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5637
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005638GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005639PACKAGE=e2fsprogs
5640VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005641VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005642
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005643cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005644#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005645_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005646
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005647
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005648cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005649#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005650_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005651
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005652
5653
5654
5655
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005657$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5658set x ${MAKE-make}
5659ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005660if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005661 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005662else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005663 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005664SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005665all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005666 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005667_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005668# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005669case `${MAKE-make} -f conftest.make 2>/dev/null` in
5670 *@@@%%%=?*=@@@%%%*)
5671 eval ac_cv_prog_make_${ac_make}_set=yes;;
5672 *)
5673 eval ac_cv_prog_make_${ac_make}_set=no;;
5674esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005675rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005676fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005677if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005679$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005680 SET_MAKE=
5681else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005683$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005684 SET_MAKE="MAKE=${MAKE-make}"
5685fi
5686
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005687# Find a good install program. We prefer a C program (faster),
5688# so one script is as good as another. But avoid the broken or
5689# incompatible versions:
5690# SysV /etc/install, /usr/sbin/install
5691# SunOS /usr/etc/install
5692# IRIX /sbin/install
5693# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005694# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005695# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5696# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5697# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005698# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005699# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005700# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005702$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005703if test -z "$INSTALL"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005704if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005705 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005706else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005712 # Account for people who put trailing slashes in PATH elements.
5713case $as_dir/ in #((
5714 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005716 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005717 /usr/ucb/* ) ;;
5718 *)
5719 # OSF1 and SCO ODT 3.0 have their own names for install.
5720 # Don't use installbsd from OSF since it installs stuff as root
5721 # by default.
5722 for ac_prog in ginstall scoinst install; do
5723 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005724 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005725 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005726 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005727 # AIX install. It has an incompatible calling convention.
5728 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005729 elif test $ac_prog = install &&
5730 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5731 # program-specific install script used by HP pwplus--don't use.
5732 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005733 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005734 rm -rf conftest.one conftest.two conftest.dir
5735 echo one > conftest.one
5736 echo two > conftest.two
5737 mkdir conftest.dir
5738 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5739 test -s conftest.one && test -s conftest.two &&
5740 test -s conftest.dir/conftest.one &&
5741 test -s conftest.dir/conftest.two
5742 then
5743 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5744 break 3
5745 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005746 fi
5747 fi
5748 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005749 done
5750 ;;
5751esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005752
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005753 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005754IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005755
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005756rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005757
5758fi
5759 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005760 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005761 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005762 # As a last resort, use the slow shell script. Don't cache a
5763 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005764 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005765 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005766 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005767 fi
5768fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005770$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005771
5772# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5773# It thinks the first close brace ends the variable substitution.
5774test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5775
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005776test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005777
5778test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5779
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005780
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005781 MKINSTALLDIRS=
5782 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005783 case "$ac_aux_dir" in
5784 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5785 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5786 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005787 fi
5788 if test -z "$MKINSTALLDIRS"; then
5789 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5790 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005791
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005792
5793
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005795$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005796 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005797if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005798 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005799else
5800 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005801fi
5802
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005804$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005805
5806
5807
5808
5809
5810
5811# Prepare PATH_SEPARATOR.
5812# The user is always right.
5813if test "${PATH_SEPARATOR+set}" != set; then
5814 echo "#! /bin/sh" >conf$$.sh
5815 echo "exit 0" >>conf$$.sh
5816 chmod +x conf$$.sh
5817 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5818 PATH_SEPARATOR=';'
5819 else
5820 PATH_SEPARATOR=:
5821 fi
5822 rm -f conf$$.sh
5823fi
5824
5825# Find out how to test for executable files. Don't use a zero-byte file,
5826# as systems may use methods other than mode bits to determine executability.
5827cat >conf$$.file <<_ASEOF
5828#! /bin/sh
5829exit 0
5830_ASEOF
5831chmod +x conf$$.file
5832if test -x conf$$.file >/dev/null 2>&1; then
5833 ac_executable_p="test -x"
5834else
5835 ac_executable_p="test -f"
5836fi
5837rm -f conf$$.file
5838
5839# Extract the first word of "msgfmt", so it can be a program name with args.
5840set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005842$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005843if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005844 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005845else
5846 case "$MSGFMT" in
5847 [\\/]* | ?:[\\/]*)
5848 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5849 ;;
5850 *)
5851 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5852 for ac_dir in $PATH; do
5853 IFS="$ac_save_IFS"
5854 test -z "$ac_dir" && ac_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5857 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5858 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5859 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5860 break 2
5861 fi
5862 fi
5863 done
5864 done
5865 IFS="$ac_save_IFS"
5866 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5867 ;;
5868esac
5869fi
5870MSGFMT="$ac_cv_path_MSGFMT"
5871if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005873$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005874else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005876$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005877fi
5878
5879 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5880set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005882$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005883if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005884 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005885else
5886 case $GMSGFMT in
5887 [\\/]* | ?:[\\/]*)
5888 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5889 ;;
5890 *)
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005896 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005898 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005900 break 2
5901 fi
5902done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005903 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005904IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005905
5906 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5907 ;;
5908esac
5909fi
5910GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005911if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005913$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005914else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005916$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005917fi
5918
5919
5920
Theodore Ts'oe1052142006-10-21 21:46:47 -04005921
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005922# Prepare PATH_SEPARATOR.
5923# The user is always right.
5924if test "${PATH_SEPARATOR+set}" != set; then
5925 echo "#! /bin/sh" >conf$$.sh
5926 echo "exit 0" >>conf$$.sh
5927 chmod +x conf$$.sh
5928 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5929 PATH_SEPARATOR=';'
5930 else
5931 PATH_SEPARATOR=:
5932 fi
5933 rm -f conf$$.sh
5934fi
5935
5936# Find out how to test for executable files. Don't use a zero-byte file,
5937# as systems may use methods other than mode bits to determine executability.
5938cat >conf$$.file <<_ASEOF
5939#! /bin/sh
5940exit 0
5941_ASEOF
5942chmod +x conf$$.file
5943if test -x conf$$.file >/dev/null 2>&1; then
5944 ac_executable_p="test -x"
5945else
5946 ac_executable_p="test -f"
5947fi
5948rm -f conf$$.file
5949
5950# Extract the first word of "xgettext", so it can be a program name with args.
5951set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005953$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005954if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005955 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005956else
5957 case "$XGETTEXT" in
5958 [\\/]* | ?:[\\/]*)
5959 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5960 ;;
5961 *)
5962 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5963 for ac_dir in $PATH; do
5964 IFS="$ac_save_IFS"
5965 test -z "$ac_dir" && ac_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5968 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5969 (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
5970 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5971 break 2
5972 fi
5973 fi
5974 done
5975 done
5976 IFS="$ac_save_IFS"
5977 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5978 ;;
5979esac
5980fi
5981XGETTEXT="$ac_cv_path_XGETTEXT"
5982if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005984$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005985else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005987$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005988fi
5989
5990 rm -f messages.po
5991
5992
5993# Prepare PATH_SEPARATOR.
5994# The user is always right.
5995if test "${PATH_SEPARATOR+set}" != set; then
5996 echo "#! /bin/sh" >conf$$.sh
5997 echo "exit 0" >>conf$$.sh
5998 chmod +x conf$$.sh
5999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6000 PATH_SEPARATOR=';'
6001 else
6002 PATH_SEPARATOR=:
6003 fi
6004 rm -f conf$$.sh
6005fi
6006
6007# Find out how to test for executable files. Don't use a zero-byte file,
6008# as systems may use methods other than mode bits to determine executability.
6009cat >conf$$.file <<_ASEOF
6010#! /bin/sh
6011exit 0
6012_ASEOF
6013chmod +x conf$$.file
6014if test -x conf$$.file >/dev/null 2>&1; then
6015 ac_executable_p="test -x"
6016else
6017 ac_executable_p="test -f"
6018fi
6019rm -f conf$$.file
6020
6021# Extract the first word of "msgmerge", so it can be a program name with args.
6022set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006024$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006025if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006026 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027else
6028 case "$MSGMERGE" in
6029 [\\/]* | ?:[\\/]*)
6030 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6031 ;;
6032 *)
6033 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6034 for ac_dir in $PATH; do
6035 IFS="$ac_save_IFS"
6036 test -z "$ac_dir" && ac_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6039 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6040 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6041 break 2
6042 fi
6043 fi
6044 done
6045 done
6046 IFS="$ac_save_IFS"
6047 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6048 ;;
6049esac
6050fi
6051MSGMERGE="$ac_cv_path_MSGMERGE"
6052if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006054$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006055else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006057$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006058fi
6059
6060
6061 if test "$GMSGFMT" != ":"; then
6062 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6063 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6064 : ;
6065 else
6066 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006067 { $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 +01006068$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006069 GMSGFMT=":"
6070 fi
6071 fi
6072
6073 if test "$XGETTEXT" != ":"; then
6074 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6075 (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
6076 : ;
6077 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006078 { $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 +01006079$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006080 XGETTEXT=":"
6081 fi
6082 rm -f messages.po
6083 fi
6084
Theodore Ts'oe1052142006-10-21 21:46:47 -04006085 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006086
6087
6088if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6090set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006092$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006093if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006094 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006095else
6096 if test -n "$RANLIB"; then
6097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6098else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006104 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006108 break 2
6109 fi
6110done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006111 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006112IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006113
6114fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006115fi
6116RANLIB=$ac_cv_prog_RANLIB
6117if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006119$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006120else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006122$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006123fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006124
Theodore Ts'oe1052142006-10-21 21:46:47 -04006125
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006126fi
6127if test -z "$ac_cv_prog_RANLIB"; then
6128 ac_ct_RANLIB=$RANLIB
6129 # Extract the first word of "ranlib", so it can be a program name with args.
6130set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006132$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006133if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006134 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006135else
6136 if test -n "$ac_ct_RANLIB"; then
6137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6138else
6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006144 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006146 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006148 break 2
6149 fi
6150done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006151 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006152IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006154fi
6155fi
6156ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6157if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006159$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006160else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006162$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006163fi
6164
Theodore Ts'oe1052142006-10-21 21:46:47 -04006165 if test "x$ac_ct_RANLIB" = x; then
6166 RANLIB=":"
6167 else
6168 case $cross_compiling:$ac_tool_warned in
6169yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006170{ $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 +01006171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006172ac_tool_warned=yes ;;
6173esac
6174 RANLIB=$ac_ct_RANLIB
6175 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006176else
6177 RANLIB="$ac_cv_prog_RANLIB"
6178fi
6179
6180
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006182$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006183if ${ac_cv_lib_cposix_strerror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006184 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006185else
6186 ac_check_lib_save_LIBS=$LIBS
6187LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006189/* end confdefs.h. */
6190
Theodore Ts'oe1052142006-10-21 21:46:47 -04006191/* Override any GCC internal prototype to avoid an error.
6192 Use char because int might match the return type of a GCC
6193 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006194#ifdef __cplusplus
6195extern "C"
6196#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006197char strerror ();
6198int
6199main ()
6200{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006201return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006202 ;
6203 return 0;
6204}
6205_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006206if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006207 ac_cv_lib_cposix_strerror=yes
6208else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006209 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006210fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006211rm -f core conftest.err conftest.$ac_objext \
6212 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006213LIBS=$ac_check_lib_save_LIBS
6214fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006216$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006217if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006218 LIBS="$LIBS -lcposix"
6219fi
6220
6221
6222
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006223
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6225$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006226if ${ac_cv_path_GREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006227 $as_echo_n "(cached) " >&6
6228else
6229 if test -z "$GREP"; then
6230 ac_path_GREP_found=false
6231 # Loop through the user's path and test for each of PROGNAME-LIST
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6234do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_prog in grep ggrep; do
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006240 as_fn_executable_p "$ac_path_GREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006241# Check for GNU ac_path_GREP and select it if it is found.
6242 # Check for GNU $ac_path_GREP
6243case `"$ac_path_GREP" --version 2>&1` in
6244*GNU*)
6245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6246*)
6247 ac_count=0
6248 $as_echo_n 0123456789 >"conftest.in"
6249 while :
6250 do
6251 cat "conftest.in" "conftest.in" >"conftest.tmp"
6252 mv "conftest.tmp" "conftest.in"
6253 cp "conftest.in" "conftest.nl"
6254 $as_echo 'GREP' >> "conftest.nl"
6255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6257 as_fn_arith $ac_count + 1 && ac_count=$as_val
6258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6259 # Best one so far, save it but keep looking for a better one
6260 ac_cv_path_GREP="$ac_path_GREP"
6261 ac_path_GREP_max=$ac_count
6262 fi
6263 # 10*(2^10) chars as input seems more than enough
6264 test $ac_count -gt 10 && break
6265 done
6266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6267esac
6268
6269 $ac_path_GREP_found && break 3
6270 done
6271 done
6272 done
6273IFS=$as_save_IFS
6274 if test -z "$ac_cv_path_GREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006275 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006276 fi
6277else
6278 ac_cv_path_GREP=$GREP
6279fi
6280
6281fi
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6283$as_echo "$ac_cv_path_GREP" >&6; }
6284 GREP="$ac_cv_path_GREP"
6285
6286
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6288$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006289if ${ac_cv_path_EGREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006290 $as_echo_n "(cached) " >&6
6291else
6292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6293 then ac_cv_path_EGREP="$GREP -E"
6294 else
6295 if test -z "$EGREP"; then
6296 ac_path_EGREP_found=false
6297 # Loop through the user's path and test for each of PROGNAME-LIST
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6300do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_prog in egrep; do
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006306 as_fn_executable_p "$ac_path_EGREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006307# Check for GNU ac_path_EGREP and select it if it is found.
6308 # Check for GNU $ac_path_EGREP
6309case `"$ac_path_EGREP" --version 2>&1` in
6310*GNU*)
6311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6312*)
6313 ac_count=0
6314 $as_echo_n 0123456789 >"conftest.in"
6315 while :
6316 do
6317 cat "conftest.in" "conftest.in" >"conftest.tmp"
6318 mv "conftest.tmp" "conftest.in"
6319 cp "conftest.in" "conftest.nl"
6320 $as_echo 'EGREP' >> "conftest.nl"
6321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6323 as_fn_arith $ac_count + 1 && ac_count=$as_val
6324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6325 # Best one so far, save it but keep looking for a better one
6326 ac_cv_path_EGREP="$ac_path_EGREP"
6327 ac_path_EGREP_max=$ac_count
6328 fi
6329 # 10*(2^10) chars as input seems more than enough
6330 test $ac_count -gt 10 && break
6331 done
6332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6333esac
6334
6335 $ac_path_EGREP_found && break 3
6336 done
6337 done
6338 done
6339IFS=$as_save_IFS
6340 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006341 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006342 fi
6343else
6344 ac_cv_path_EGREP=$EGREP
6345fi
6346
6347 fi
6348fi
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6350$as_echo "$ac_cv_path_EGREP" >&6; }
6351 EGREP="$ac_cv_path_EGREP"
6352
6353
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6355$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006356if ${ac_cv_header_stdc+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006357 $as_echo_n "(cached) " >&6
6358else
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360/* end confdefs.h. */
6361#include <stdlib.h>
6362#include <stdarg.h>
6363#include <string.h>
6364#include <float.h>
6365
6366int
6367main ()
6368{
6369
6370 ;
6371 return 0;
6372}
6373_ACEOF
6374if ac_fn_c_try_compile "$LINENO"; then :
6375 ac_cv_header_stdc=yes
6376else
6377 ac_cv_header_stdc=no
6378fi
6379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380
6381if test $ac_cv_header_stdc = yes; then
6382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384/* end confdefs.h. */
6385#include <string.h>
6386
6387_ACEOF
6388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6389 $EGREP "memchr" >/dev/null 2>&1; then :
6390
6391else
6392 ac_cv_header_stdc=no
6393fi
6394rm -f conftest*
6395
6396fi
6397
6398if test $ac_cv_header_stdc = yes; then
6399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401/* end confdefs.h. */
6402#include <stdlib.h>
6403
6404_ACEOF
6405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6406 $EGREP "free" >/dev/null 2>&1; then :
6407
6408else
6409 ac_cv_header_stdc=no
6410fi
6411rm -f conftest*
6412
6413fi
6414
6415if test $ac_cv_header_stdc = yes; then
6416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6417 if test "$cross_compiling" = yes; then :
6418 :
6419else
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421/* end confdefs.h. */
6422#include <ctype.h>
6423#include <stdlib.h>
6424#if ((' ' & 0x0FF) == 0x020)
6425# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6426# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6427#else
6428# define ISLOWER(c) \
6429 (('a' <= (c) && (c) <= 'i') \
6430 || ('j' <= (c) && (c) <= 'r') \
6431 || ('s' <= (c) && (c) <= 'z'))
6432# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6433#endif
6434
6435#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6436int
6437main ()
6438{
6439 int i;
6440 for (i = 0; i < 256; i++)
6441 if (XOR (islower (i), ISLOWER (i))
6442 || toupper (i) != TOUPPER (i))
6443 return 2;
6444 return 0;
6445}
6446_ACEOF
6447if ac_fn_c_try_run "$LINENO"; then :
6448
6449else
6450 ac_cv_header_stdc=no
6451fi
6452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6453 conftest.$ac_objext conftest.beam conftest.$ac_ext
6454fi
6455
6456fi
6457fi
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6459$as_echo "$ac_cv_header_stdc" >&6; }
6460if test $ac_cv_header_stdc = yes; then
6461
6462$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6463
6464fi
6465
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006467$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006468if ${ac_cv_c_const+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006469 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006470else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006472/* end confdefs.h. */
6473
6474int
6475main ()
6476{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006478#ifndef __cplusplus
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006479 /* Ultrix mips cc rejects this sort of thing. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006480 typedef int charset[2];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006481 const charset cs = { 0, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006482 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006483 char const *const *pcpcc;
6484 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006485 /* NEC SVR4.0.2 mips cc rejects this. */
6486 struct point {int x, y;};
6487 static struct point const zero = {0,0};
6488 /* AIX XL C 1.02.0.0 rejects this.
6489 It does not let you subtract one const X* pointer from another in
6490 an arm of an if-expression whose if-part is not a constant
6491 expression */
6492 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006493 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006494 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006495 ++pcpcc;
6496 ppc = (char**) pcpcc;
6497 pcpcc = (char const *const *) ppc;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006498 { /* SCO 3.2v4 cc rejects this sort of thing. */
6499 char tx;
6500 char *t = &tx;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006501 char const *s = 0 ? (char *) 0 : (char const *) 0;
6502
6503 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006504 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006505 }
6506 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6507 int x[] = {25, 17};
6508 const int *foo = &x[0];
6509 ++foo;
6510 }
6511 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6512 typedef const int *iptr;
6513 iptr p = 0;
6514 ++p;
6515 }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006516 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006517 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006518 struct s { int j; const int *ap[3]; } bx;
6519 struct s *b = &bx; b->j = 5;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006520 }
6521 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6522 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006523 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006524 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006525 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006526#endif
6527
6528 ;
6529 return 0;
6530}
6531_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006532if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006533 ac_cv_c_const=yes
6534else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006535 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006538fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006540$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006541if test $ac_cv_c_const = no; then
6542
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006543$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006544
6545fi
6546
6547
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006549$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006550if ${bh_cv_c_signed+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006551 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006552else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006554/* end confdefs.h. */
6555
6556int
6557main ()
6558{
6559signed char x;
6560 ;
6561 return 0;
6562}
6563_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006564if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006565 bh_cv_c_signed=yes
6566else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006567 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006568fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006570fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006572$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006573 if test $bh_cv_c_signed = no; then
6574
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006575$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006576
6577 fi
6578
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006580$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006581if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006582 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006583else
6584 ac_cv_c_inline=no
6585for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006587/* end confdefs.h. */
6588#ifndef __cplusplus
6589typedef int foo_t;
6590static $ac_kw foo_t static_foo () {return 0; }
6591$ac_kw foo_t foo () {return 0; }
6592#endif
6593
6594_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006595if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006596 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006597fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006600done
6601
6602fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006604$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006605
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006606case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006607 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006608 *)
6609 case $ac_cv_c_inline in
6610 no) ac_val=;;
6611 *) ac_val=$ac_cv_c_inline;;
6612 esac
6613 cat >>confdefs.h <<_ACEOF
6614#ifndef __cplusplus
6615#define inline $ac_val
6616#endif
6617_ACEOF
6618 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006619esac
6620
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006621# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6622for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6623 inttypes.h stdint.h unistd.h
6624do :
6625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6626ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6627"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006628if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006629 cat >>confdefs.h <<_ACEOF
6630#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631_ACEOF
6632
6633fi
6634
6635done
6636
6637
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006638ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006639if test "x$ac_cv_type_off_t" = xyes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006640
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006641else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006642
6643cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006644#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006645_ACEOF
6646
6647fi
6648
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006649ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006650if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006651
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006652else
6653
6654cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006655#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006656_ACEOF
6657
6658fi
6659
6660
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006662$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006663if ${ac_cv_type_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006664 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006665else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006667/* end confdefs.h. */
6668long long ll = 1LL; int i = 63;
6669int
6670main ()
6671{
6672long long llmax = (long long) -1;
6673 return ll << i | ll >> i | llmax / ll | llmax % ll;
6674 ;
6675 return 0;
6676}
6677_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006678if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006679 ac_cv_type_long_long=yes
6680else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006681 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006682fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006683rm -f core conftest.err conftest.$ac_objext \
6684 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006687$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006688 if test $ac_cv_type_long_long = yes; then
6689
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006690$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006691
6692 fi
6693
6694
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006696$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006697if ${gt_cv_c_long_double+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006698 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006699else
6700 if test "$GCC" = yes; then
6701 gt_cv_c_long_double=yes
6702 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006704/* end confdefs.h. */
6705
6706 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6707 long double foo = 0.0;
6708 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6709 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6710
6711int
6712main ()
6713{
6714
6715 ;
6716 return 0;
6717}
6718_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006719if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006720 gt_cv_c_long_double=yes
6721else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006722 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006725 fi
6726fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006728$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006729 if test $gt_cv_c_long_double = yes; then
6730
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006731$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732
6733 fi
6734
6735
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006737$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006738if ${gt_cv_c_wchar_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006739 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006742/* end confdefs.h. */
6743#include <stddef.h>
6744 wchar_t foo = (wchar_t)'\0';
6745int
6746main ()
6747{
6748
6749 ;
6750 return 0;
6751}
6752_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006753if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754 gt_cv_c_wchar_t=yes
6755else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006756 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006757fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006759fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006761$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006762 if test $gt_cv_c_wchar_t = yes; then
6763
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006764$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006765
6766 fi
6767
6768
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006770$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006771if ${gt_cv_c_wint_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006772 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006773else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006775/* end confdefs.h. */
6776#include <wchar.h>
6777 wint_t foo = (wchar_t)'\0';
6778int
6779main ()
6780{
6781
6782 ;
6783 return 0;
6784}
6785_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006786if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006787 gt_cv_c_wint_t=yes
6788else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006789 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006790fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006792fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006794$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006795 if test $gt_cv_c_wint_t = yes; then
6796
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006797$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006798
6799 fi
6800
6801
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006803$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006804if ${jm_ac_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006805 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006806else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006808/* end confdefs.h. */
6809#include <sys/types.h>
6810#include <inttypes.h>
6811int
6812main ()
6813{
6814uintmax_t i = (uintmax_t) -1;
6815 ;
6816 return 0;
6817}
6818_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006819if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006820 jm_ac_cv_header_inttypes_h=yes
6821else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006822 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006823fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006825fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006827$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006828 if test $jm_ac_cv_header_inttypes_h = yes; then
6829
6830cat >>confdefs.h <<_ACEOF
6831#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6832_ACEOF
6833
6834 fi
6835
6836
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006838$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006839if ${jm_ac_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006840 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006841else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006843/* end confdefs.h. */
6844#include <sys/types.h>
6845#include <stdint.h>
6846int
6847main ()
6848{
6849uintmax_t i = (uintmax_t) -1;
6850 ;
6851 return 0;
6852}
6853_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006854if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006855 jm_ac_cv_header_stdint_h=yes
6856else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006857 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006858fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006860fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006862$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006863 if test $jm_ac_cv_header_stdint_h = yes; then
6864
6865cat >>confdefs.h <<_ACEOF
6866#define HAVE_STDINT_H_WITH_UINTMAX 1
6867_ACEOF
6868
6869 fi
6870
6871
6872
6873
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006875$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006876if ${gt_cv_c_intmax_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006877 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006878else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006880/* end confdefs.h. */
6881
6882#include <stddef.h>
6883#include <stdlib.h>
6884#if HAVE_STDINT_H_WITH_UINTMAX
6885#include <stdint.h>
6886#endif
6887#if HAVE_INTTYPES_H_WITH_UINTMAX
6888#include <inttypes.h>
6889#endif
6890
6891int
6892main ()
6893{
6894intmax_t x = -1;
6895 ;
6896 return 0;
6897}
6898_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006899if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900 gt_cv_c_intmax_t=yes
6901else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006902 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006903fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006905fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006907$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006908 if test $gt_cv_c_intmax_t = yes; then
6909
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006910$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006911
6912 fi
6913
6914
6915
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006917$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006918if ${gt_cv_func_printf_posix+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006919 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006920else
6921
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006922 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006923
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006925/* end confdefs.h. */
6926
6927#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6928 notposix
6929#endif
6930
6931_ACEOF
6932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006933 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006934 gt_cv_func_printf_posix="guessing no"
6935else
6936 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006937fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006938rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006940
6941else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943/* end confdefs.h. */
6944
6945#include <stdio.h>
6946#include <string.h>
6947/* The string "%2$d %1$d", with dollar characters protected from the shell's
6948 dollar expansion (possibly an autoconf bug). */
6949static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6950static char buf[100];
6951int main ()
6952{
6953 sprintf (buf, format, 33, 55);
6954 return (strcmp (buf, "55 33") != 0);
6955}
6956_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006957if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006958 gt_cv_func_printf_posix=yes
6959else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006960 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006961fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6963 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006964fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006965
Theodore Ts'oe1052142006-10-21 21:46:47 -04006966
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006967fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006969$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006970 case $gt_cv_func_printf_posix in
6971 *yes)
6972
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006973$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006974
6975 ;;
6976 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006977
6978# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6979# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006981$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006982if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006983 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006984else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006986/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006987#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988int
6989main ()
6990{
6991char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006992 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006993 ;
6994 return 0;
6995}
6996_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006997if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006998 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006999else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007000 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007001fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007002rm -f core conftest.err conftest.$ac_objext \
7003 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007004fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007006$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007007if test $ac_cv_working_alloca_h = yes; then
7008
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007009$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007010
7011fi
7012
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007014$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007015if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007016 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007017else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007019/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007020#ifdef __GNUC__
7021# define alloca __builtin_alloca
7022#else
7023# ifdef _MSC_VER
7024# include <malloc.h>
7025# define alloca _alloca
7026# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007027# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007028# include <alloca.h>
7029# else
7030# ifdef _AIX
7031 #pragma alloca
7032# else
7033# ifndef alloca /* predefined by HP cc +Olibcalls */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007034void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007035# endif
7036# endif
7037# endif
7038# endif
7039#endif
7040
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007041int
7042main ()
7043{
7044char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007045 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007046 ;
7047 return 0;
7048}
7049_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007050if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007051 ac_cv_func_alloca_works=yes
7052else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007053 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007054fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007055rm -f core conftest.err conftest.$ac_objext \
7056 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007057fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007059$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007060
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007061if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007062
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007063$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007064
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007065else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007066 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7067# that cause trouble. Some versions do not even contain alloca or
7068# contain a buggy version. If you still want to use their alloca,
7069# use ar to extract alloca.o from them instead of compiling alloca.c.
7070
Theodore Ts'oe1052142006-10-21 21:46:47 -04007071ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007072
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007073$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007074
7075
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007077$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007078if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007079 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007080else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007082/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007083#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007084webecray
7085#else
7086wenotbecray
7087#endif
7088
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007091 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007092 ac_cv_os_cray=yes
7093else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007094 ac_cv_os_cray=no
7095fi
7096rm -f conftest*
7097
7098fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007100$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007101if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007102 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007104ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007105if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007106
7107cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007108#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007109_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007110
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007111 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007112fi
7113
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007114 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007115fi
7116
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007118$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007119if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007120 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007121else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007122 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007123 ac_cv_c_stack_direction=0
7124else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007126/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007127$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007128int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007129find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007130{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007131 int dir, dummy = 0;
7132 if (! addr)
7133 addr = &dummy;
7134 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7135 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7136 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007137}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007138
7139int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007140main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007141{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007142 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007143}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007144_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007145if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007146 ac_cv_c_stack_direction=1
7147else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007148 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007149fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7151 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007152fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007154fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007156$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007157cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007158#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007159_ACEOF
7160
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007161
7162fi
7163
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007164
7165
7166
7167 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007168do :
7169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007170ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7171"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007172if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007173 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007175_ACEOF
7176
7177fi
7178
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007179done
7180
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007181
7182
7183
7184
7185
7186
7187
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007188for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007189do :
7190 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007191if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007192 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007193#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007194_ACEOF
7195
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007196fi
7197done
7198
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007200$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007201if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007202 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007203else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007204 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007205 ac_cv_func_mmap_fixed_mapped=no
7206else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007208/* end confdefs.h. */
7209$ac_includes_default
7210/* malloc might have been renamed as rpl_malloc. */
7211#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007212
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007213/* Thanks to Mike Haertel and Jim Avera for this test.
7214 Here is a matrix of mmap possibilities:
7215 mmap private not fixed
7216 mmap private fixed at somewhere currently unmapped
7217 mmap private fixed at somewhere already mapped
7218 mmap shared not fixed
7219 mmap shared fixed at somewhere currently unmapped
7220 mmap shared fixed at somewhere already mapped
7221 For private mappings, we should verify that changes cannot be read()
7222 back from the file, nor mmap's back from the file at a different
7223 address. (There have been systems where private was not correctly
7224 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007225 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007226 like early versions of FreeBSD and possibly contemporary NetBSD.)
7227 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007228 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007229
7230 Grep wants private fixed already mapped.
7231 The main things grep needs to know about mmap are:
7232 * does it exist and is it safe to write into the mmap'd area
7233 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007234
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007235#include <fcntl.h>
7236#include <sys/mman.h>
7237
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007238#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007239char *malloc ();
7240#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007241
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007242/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007243#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007244# ifdef _SC_PAGESIZE
7245# define getpagesize() sysconf(_SC_PAGESIZE)
7246# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007247# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007248# include <sys/param.h>
7249# ifdef EXEC_PAGESIZE
7250# define getpagesize() EXEC_PAGESIZE
7251# else /* no EXEC_PAGESIZE */
7252# ifdef NBPG
7253# define getpagesize() NBPG * CLSIZE
7254# ifndef CLSIZE
7255# define CLSIZE 1
7256# endif /* no CLSIZE */
7257# else /* no NBPG */
7258# ifdef NBPC
7259# define getpagesize() NBPC
7260# else /* no NBPC */
7261# ifdef PAGESIZE
7262# define getpagesize() PAGESIZE
7263# endif /* PAGESIZE */
7264# endif /* no NBPC */
7265# endif /* no NBPG */
7266# endif /* no EXEC_PAGESIZE */
7267# else /* no HAVE_SYS_PARAM_H */
7268# define getpagesize() 8192 /* punt totally */
7269# endif /* no HAVE_SYS_PARAM_H */
7270# endif /* no _SC_PAGESIZE */
7271
7272#endif /* no HAVE_GETPAGESIZE */
7273
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007274int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007275main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007276{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007277 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007278 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007279 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007280 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007281
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007282 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007283
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007284 /* First, make a file with some known garbage in it. */
7285 data = (char *) malloc (pagesize);
7286 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007287 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007288 for (i = 0; i < pagesize; ++i)
7289 *(data + i) = rand ();
7290 umask (0);
7291 fd = creat ("conftest.mmap", 0600);
7292 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007293 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007294 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007295 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007296 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007297
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007298 /* Next, check that the tail of a page is zero-filled. File must have
7299 non-zero length, otherwise we risk SIGBUS for entire page. */
7300 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7301 if (fd2 < 0)
7302 return 4;
7303 cdata2 = "";
7304 if (write (fd2, cdata2, 1) != 1)
7305 return 5;
7306 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7307 if (data2 == MAP_FAILED)
7308 return 6;
7309 for (i = 0; i < pagesize; ++i)
7310 if (*(data2 + i))
7311 return 7;
7312 close (fd2);
7313 if (munmap (data2, pagesize))
7314 return 8;
7315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007316 /* Next, try to mmap the file at a fixed address which already has
7317 something else allocated at it. If we can, also make sure that
7318 we see the same garbage. */
7319 fd = open ("conftest.mmap", O_RDWR);
7320 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007321 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007322 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7323 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007324 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007325 for (i = 0; i < pagesize; ++i)
7326 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007327 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007328
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007329 /* Finally, make sure that changes to the mapped area do not
7330 percolate back to the file as seen by read(). (This is a bug on
7331 some variants of i386 svr4.0.) */
7332 for (i = 0; i < pagesize; ++i)
7333 *(data2 + i) = *(data2 + i) + 1;
7334 data3 = (char *) malloc (pagesize);
7335 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007336 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007337 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007338 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007339 for (i = 0; i < pagesize; ++i)
7340 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007341 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007342 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007343 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007344}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007345_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007346if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007347 ac_cv_func_mmap_fixed_mapped=yes
7348else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007349 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007350fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7352 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007353fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007354
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007355fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007357$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007358if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007359
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007360$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007361
7362fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007363rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007364
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007365
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007366 { $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 +01007367$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007368if ${ac_cv_gnu_library_2_1+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007369 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007370else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007372/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007373
7374#include <features.h>
7375#ifdef __GNU_LIBRARY__
7376 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7377 Lucky GNU user
7378 #endif
7379#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007380
7381_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007383 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007384 ac_cv_gnu_library_2_1=yes
7385else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007386 ac_cv_gnu_library_2_1=no
7387fi
7388rm -f conftest*
7389
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007390
7391
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007392fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007394$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007395
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007396 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007397
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007398
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007399
7400
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007402$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007403if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007404 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007405else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007406
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007407 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007408
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007409 # Guess based on the CPU.
7410 case "$host_cpu" in
7411 alpha* | i3456786 | m68k | s390*)
7412 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7413 *)
7414 gt_cv_int_divbyzero_sigfpe="guessing no";;
7415 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007416
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007417else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007419/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007420
7421#include <stdlib.h>
7422#include <signal.h>
7423
7424static void
7425#ifdef __cplusplus
7426sigfpe_handler (int sig)
7427#else
7428sigfpe_handler (sig) int sig;
7429#endif
7430{
7431 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7432 exit (sig != SIGFPE);
7433}
7434
7435int x = 1;
7436int y = 0;
7437int z;
7438int nan;
7439
7440int main ()
7441{
7442 signal (SIGFPE, sigfpe_handler);
7443/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7444#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7445 signal (SIGTRAP, sigfpe_handler);
7446#endif
7447/* Linux/SPARC yields signal SIGILL. */
7448#if defined (__sparc__) && defined (__linux__)
7449 signal (SIGILL, sigfpe_handler);
7450#endif
7451
7452 z = x / y;
7453 nan = y / y;
7454 exit (1);
7455}
7456
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007457_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007458if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007459 gt_cv_int_divbyzero_sigfpe=yes
7460else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007461 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007462fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7464 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007465fi
7466
Theodore Ts'oe1052142006-10-21 21:46:47 -04007467
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007468fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007470$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007471 case "$gt_cv_int_divbyzero_sigfpe" in
7472 *yes) value=1;;
7473 *) value=0;;
7474 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007475
7476cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007477#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007478_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007479
7480
7481
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007483$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007484if ${ac_cv_type_unsigned_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007485 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007486else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007488/* end confdefs.h. */
7489unsigned long long ull = 1ULL; int i = 63;
7490int
7491main ()
7492{
7493unsigned long long ullmax = (unsigned long long) -1;
7494 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7495 ;
7496 return 0;
7497}
7498_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007499if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007500 ac_cv_type_unsigned_long_long=yes
7501else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007502 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007503fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007504rm -f core conftest.err conftest.$ac_objext \
7505 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007506fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007508$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007509 if test $ac_cv_type_unsigned_long_long = yes; then
7510
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007511$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007512
7513 fi
7514
7515
7516
7517
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007518 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 -05007519
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007520 test $ac_cv_type_unsigned_long_long = yes \
7521 && ac_type='unsigned long long' \
7522 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523
7524cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007525#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007526_ACEOF
7527
7528 else
7529
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007530$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007531
7532 fi
7533
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007534
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007536$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007537if ${gt_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007538 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007539else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007540
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007542/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007543#include <sys/types.h>
7544#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007545int
7546main ()
7547{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007548
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007549 ;
7550 return 0;
7551}
7552_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007553if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007554 gt_cv_header_inttypes_h=yes
7555else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007556 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007557fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007559
7560fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007562$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007563 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007564
7565cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007566#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007567_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007568
7569 fi
7570
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007572
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007573 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007574 { $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 +01007575$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007576if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007577 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007578else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007579
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007581/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007582#include <inttypes.h>
7583#ifdef PRId32
7584char *p = PRId32;
7585#endif
7586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007587int
7588main ()
7589{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007591 ;
7592 return 0;
7593}
7594_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007595if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007596 gt_cv_inttypes_pri_broken=no
7597else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007598 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007599fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007601
7602fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007604$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007605 fi
7606 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007607
7608cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007609#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007610_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007611
7612 fi
7613
7614
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007615 for ac_header in stdint.h
7616do :
7617 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007618if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007619 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007620#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007621_ACEOF
7622
7623fi
7624
7625done
7626
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007628$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631/* end confdefs.h. */
7632
7633#include <limits.h>
7634#if HAVE_STDINT_H
7635#include <stdint.h>
7636#endif
7637#ifdef SIZE_MAX
7638Found it
7639#endif
7640
7641_ACEOF
7642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007643 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007644 result=yes
7645fi
7646rm -f conftest*
7647
7648 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007649 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 -05007650
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007651else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007652 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007653fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007654
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007655
7656 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7657
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007659 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007660fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007661
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007662
7663 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7664
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007665else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007666 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007668
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007669
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007670 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007672/* end confdefs.h. */
7673#include <stddef.h>
7674 extern size_t foo;
7675 extern unsigned long foo;
7676
7677int
7678main ()
7679{
7680
7681 ;
7682 return 0;
7683}
7684_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007685if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007686 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007687fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007689 fi
7690 if test -z "$result"; then
7691 if test "$fits_in_uint" = 1; then
7692 result="$res_hi$res_lo"U
7693 else
7694 result="$res_hi$res_lo"UL
7695 fi
7696 else
7697 result='~(size_t)0'
7698 fi
7699 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007701$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007702 if test "$result" != yes; then
7703
7704cat >>confdefs.h <<_ACEOF
7705#define SIZE_MAX $result
7706_ACEOF
7707
7708 fi
7709
7710
7711
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007712 for ac_header in stdint.h
7713do :
7714 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007715if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007716 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007717#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718_ACEOF
7719
7720fi
7721
7722done
7723
7724
7725
7726 if test "X$prefix" = "XNONE"; then
7727 acl_final_prefix="$ac_default_prefix"
7728 else
7729 acl_final_prefix="$prefix"
7730 fi
7731 if test "X$exec_prefix" = "XNONE"; then
7732 acl_final_exec_prefix='${prefix}'
7733 else
7734 acl_final_exec_prefix="$exec_prefix"
7735 fi
7736 acl_save_prefix="$prefix"
7737 prefix="$acl_final_prefix"
7738 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7739 prefix="$acl_save_prefix"
7740
7741
Theodore Ts'oe1052142006-10-21 21:46:47 -04007742# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007743if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007744 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007745else
7746 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007747fi
7748
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007749# Prepare PATH_SEPARATOR.
7750# The user is always right.
7751if test "${PATH_SEPARATOR+set}" != set; then
7752 echo "#! /bin/sh" >conf$$.sh
7753 echo "exit 0" >>conf$$.sh
7754 chmod +x conf$$.sh
7755 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7756 PATH_SEPARATOR=';'
7757 else
7758 PATH_SEPARATOR=:
7759 fi
7760 rm -f conf$$.sh
7761fi
7762ac_prog=ld
7763if test "$GCC" = yes; then
7764 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007766$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007767 case $host in
7768 *-*-mingw*)
7769 # gcc leaves a trailing carriage return which upsets mingw
7770 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7771 *)
7772 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7773 esac
7774 case $ac_prog in
7775 # Accept absolute paths.
7776 [\\/]* | [A-Za-z]:[\\/]*)
7777 re_direlt='/[^/][^/]*/\.\./'
7778 # Canonicalize the path of ld
7779 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7780 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7781 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7782 done
7783 test -z "$LD" && LD="$ac_prog"
7784 ;;
7785 "")
7786 # If it fails, then pretend we aren't using GCC.
7787 ac_prog=ld
7788 ;;
7789 *)
7790 # If it is relative, then search for the first ld in PATH.
7791 with_gnu_ld=unknown
7792 ;;
7793 esac
7794elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007796$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007797else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007799$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007800fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007801if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007802 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007803else
7804 if test -z "$LD"; then
7805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7806 for ac_dir in $PATH; do
7807 test -z "$ac_dir" && ac_dir=.
7808 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7809 acl_cv_path_LD="$ac_dir/$ac_prog"
7810 # Check to see if the program is GNU ld. I'd rather use --version,
7811 # but apparently some GNU ld's only accept -v.
7812 # Break only if it was the GNU/non-GNU ld that we prefer.
7813 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7814 *GNU* | *'with BFD'*)
7815 test "$with_gnu_ld" != no && break ;;
7816 *)
7817 test "$with_gnu_ld" != yes && break ;;
7818 esac
7819 fi
7820 done
7821 IFS="$ac_save_ifs"
7822else
7823 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7824fi
7825fi
7826
7827LD="$acl_cv_path_LD"
7828if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007830$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007831else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007833$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007834fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007835test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007837$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007838if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007839 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007840else
7841 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7842case `$LD -v 2>&1 </dev/null` in
7843*GNU* | *'with BFD'*)
7844 acl_cv_prog_gnu_ld=yes ;;
7845*)
7846 acl_cv_prog_gnu_ld=no ;;
7847esac
7848fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007850$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007851with_gnu_ld=$acl_cv_prog_gnu_ld
7852
7853
7854
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007856$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007857if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007858 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007859else
7860
7861 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7862 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7863 . ./conftest.sh
7864 rm -f ./conftest.sh
7865 acl_cv_rpath=done
7866
7867fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007869$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007870 wl="$acl_cv_wl"
7871 libext="$acl_cv_libext"
7872 shlibext="$acl_cv_shlibext"
7873 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7874 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7875 hardcode_direct="$acl_cv_hardcode_direct"
7876 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007877 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007878if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007879 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007880else
7881 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007882fi
7883
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007884
7885
7886
7887
7888
7889
7890
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007891 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007892
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007893 acl_save_prefix="$prefix"
7894 prefix="$acl_final_prefix"
7895 acl_save_exec_prefix="$exec_prefix"
7896 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007897
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007898 eval additional_includedir=\"$includedir\"
7899 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007900
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007901 exec_prefix="$acl_save_exec_prefix"
7902 prefix="$acl_save_prefix"
7903
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007904
Theodore Ts'oe1052142006-10-21 21:46:47 -04007905# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007906if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007907 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007908 if test "X$withval" = "Xno"; then
7909 use_additional=no
7910 else
7911 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007912
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007913 acl_save_prefix="$prefix"
7914 prefix="$acl_final_prefix"
7915 acl_save_exec_prefix="$exec_prefix"
7916 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007917
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007918 eval additional_includedir=\"$includedir\"
7919 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007920
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007921 exec_prefix="$acl_save_exec_prefix"
7922 prefix="$acl_save_prefix"
7923
7924 else
7925 additional_includedir="$withval/include"
7926 additional_libdir="$withval/lib"
7927 fi
7928 fi
7929
Theodore Ts'oe1052142006-10-21 21:46:47 -04007930fi
7931
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007932 LIBICONV=
7933 LTLIBICONV=
7934 INCICONV=
7935 rpathdirs=
7936 ltrpathdirs=
7937 names_already_handled=
7938 names_next_round='iconv '
7939 while test -n "$names_next_round"; do
7940 names_this_round="$names_next_round"
7941 names_next_round=
7942 for name in $names_this_round; do
7943 already_handled=
7944 for n in $names_already_handled; do
7945 if test "$n" = "$name"; then
7946 already_handled=yes
7947 break
7948 fi
7949 done
7950 if test -z "$already_handled"; then
7951 names_already_handled="$names_already_handled $name"
7952 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7953 eval value=\"\$HAVE_LIB$uppername\"
7954 if test -n "$value"; then
7955 if test "$value" = yes; then
7956 eval value=\"\$LIB$uppername\"
7957 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7958 eval value=\"\$LTLIB$uppername\"
7959 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7960 else
7961 :
7962 fi
7963 else
7964 found_dir=
7965 found_la=
7966 found_so=
7967 found_a=
7968 if test $use_additional = yes; then
7969 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7970 found_dir="$additional_libdir"
7971 found_so="$additional_libdir/lib$name.$shlibext"
7972 if test -f "$additional_libdir/lib$name.la"; then
7973 found_la="$additional_libdir/lib$name.la"
7974 fi
7975 else
7976 if test -f "$additional_libdir/lib$name.$libext"; then
7977 found_dir="$additional_libdir"
7978 found_a="$additional_libdir/lib$name.$libext"
7979 if test -f "$additional_libdir/lib$name.la"; then
7980 found_la="$additional_libdir/lib$name.la"
7981 fi
7982 fi
7983 fi
7984 fi
7985 if test "X$found_dir" = "X"; then
7986 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007987
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007988 acl_save_prefix="$prefix"
7989 prefix="$acl_final_prefix"
7990 acl_save_exec_prefix="$exec_prefix"
7991 exec_prefix="$acl_final_exec_prefix"
7992 eval x=\"$x\"
7993 exec_prefix="$acl_save_exec_prefix"
7994 prefix="$acl_save_prefix"
7995
7996 case "$x" in
7997 -L*)
7998 dir=`echo "X$x" | sed -e 's/^X-L//'`
7999 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8000 found_dir="$dir"
8001 found_so="$dir/lib$name.$shlibext"
8002 if test -f "$dir/lib$name.la"; then
8003 found_la="$dir/lib$name.la"
8004 fi
8005 else
8006 if test -f "$dir/lib$name.$libext"; then
8007 found_dir="$dir"
8008 found_a="$dir/lib$name.$libext"
8009 if test -f "$dir/lib$name.la"; then
8010 found_la="$dir/lib$name.la"
8011 fi
8012 fi
8013 fi
8014 ;;
8015 esac
8016 if test "X$found_dir" != "X"; then
8017 break
8018 fi
8019 done
8020 fi
8021 if test "X$found_dir" != "X"; then
8022 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8023 if test "X$found_so" != "X"; then
8024 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8025 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8026 else
8027 haveit=
8028 for x in $ltrpathdirs; do
8029 if test "X$x" = "X$found_dir"; then
8030 haveit=yes
8031 break
8032 fi
8033 done
8034 if test -z "$haveit"; then
8035 ltrpathdirs="$ltrpathdirs $found_dir"
8036 fi
8037 if test "$hardcode_direct" = yes; then
8038 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8039 else
8040 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8041 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8042 haveit=
8043 for x in $rpathdirs; do
8044 if test "X$x" = "X$found_dir"; then
8045 haveit=yes
8046 break
8047 fi
8048 done
8049 if test -z "$haveit"; then
8050 rpathdirs="$rpathdirs $found_dir"
8051 fi
8052 else
8053 haveit=
8054 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008055
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008056 acl_save_prefix="$prefix"
8057 prefix="$acl_final_prefix"
8058 acl_save_exec_prefix="$exec_prefix"
8059 exec_prefix="$acl_final_exec_prefix"
8060 eval x=\"$x\"
8061 exec_prefix="$acl_save_exec_prefix"
8062 prefix="$acl_save_prefix"
8063
8064 if test "X$x" = "X-L$found_dir"; then
8065 haveit=yes
8066 break
8067 fi
8068 done
8069 if test -z "$haveit"; then
8070 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8071 fi
8072 if test "$hardcode_minus_L" != no; then
8073 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8074 else
8075 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8076 fi
8077 fi
8078 fi
8079 fi
8080 else
8081 if test "X$found_a" != "X"; then
8082 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8083 else
8084 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8085 fi
8086 fi
8087 additional_includedir=
8088 case "$found_dir" in
8089 */lib | */lib/)
8090 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8091 additional_includedir="$basedir/include"
8092 ;;
8093 esac
8094 if test "X$additional_includedir" != "X"; then
8095 if test "X$additional_includedir" != "X/usr/include"; then
8096 haveit=
8097 if test "X$additional_includedir" = "X/usr/local/include"; then
8098 if test -n "$GCC"; then
8099 case $host_os in
8100 linux*) haveit=yes;;
8101 esac
8102 fi
8103 fi
8104 if test -z "$haveit"; then
8105 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008106
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008107 acl_save_prefix="$prefix"
8108 prefix="$acl_final_prefix"
8109 acl_save_exec_prefix="$exec_prefix"
8110 exec_prefix="$acl_final_exec_prefix"
8111 eval x=\"$x\"
8112 exec_prefix="$acl_save_exec_prefix"
8113 prefix="$acl_save_prefix"
8114
8115 if test "X$x" = "X-I$additional_includedir"; then
8116 haveit=yes
8117 break
8118 fi
8119 done
8120 if test -z "$haveit"; then
8121 if test -d "$additional_includedir"; then
8122 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8123 fi
8124 fi
8125 fi
8126 fi
8127 fi
8128 if test -n "$found_la"; then
8129 save_libdir="$libdir"
8130 case "$found_la" in
8131 */* | *\\*) . "$found_la" ;;
8132 *) . "./$found_la" ;;
8133 esac
8134 libdir="$save_libdir"
8135 for dep in $dependency_libs; do
8136 case "$dep" in
8137 -L*)
8138 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8139 if test "X$additional_libdir" != "X/usr/lib"; then
8140 haveit=
8141 if test "X$additional_libdir" = "X/usr/local/lib"; then
8142 if test -n "$GCC"; then
8143 case $host_os in
8144 linux*) haveit=yes;;
8145 esac
8146 fi
8147 fi
8148 if test -z "$haveit"; then
8149 haveit=
8150 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008151
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008152 acl_save_prefix="$prefix"
8153 prefix="$acl_final_prefix"
8154 acl_save_exec_prefix="$exec_prefix"
8155 exec_prefix="$acl_final_exec_prefix"
8156 eval x=\"$x\"
8157 exec_prefix="$acl_save_exec_prefix"
8158 prefix="$acl_save_prefix"
8159
8160 if test "X$x" = "X-L$additional_libdir"; then
8161 haveit=yes
8162 break
8163 fi
8164 done
8165 if test -z "$haveit"; then
8166 if test -d "$additional_libdir"; then
8167 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8168 fi
8169 fi
8170 haveit=
8171 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008172
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008173 acl_save_prefix="$prefix"
8174 prefix="$acl_final_prefix"
8175 acl_save_exec_prefix="$exec_prefix"
8176 exec_prefix="$acl_final_exec_prefix"
8177 eval x=\"$x\"
8178 exec_prefix="$acl_save_exec_prefix"
8179 prefix="$acl_save_prefix"
8180
8181 if test "X$x" = "X-L$additional_libdir"; then
8182 haveit=yes
8183 break
8184 fi
8185 done
8186 if test -z "$haveit"; then
8187 if test -d "$additional_libdir"; then
8188 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8189 fi
8190 fi
8191 fi
8192 fi
8193 ;;
8194 -R*)
8195 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8196 if test "$enable_rpath" != no; then
8197 haveit=
8198 for x in $rpathdirs; do
8199 if test "X$x" = "X$dir"; then
8200 haveit=yes
8201 break
8202 fi
8203 done
8204 if test -z "$haveit"; then
8205 rpathdirs="$rpathdirs $dir"
8206 fi
8207 haveit=
8208 for x in $ltrpathdirs; do
8209 if test "X$x" = "X$dir"; then
8210 haveit=yes
8211 break
8212 fi
8213 done
8214 if test -z "$haveit"; then
8215 ltrpathdirs="$ltrpathdirs $dir"
8216 fi
8217 fi
8218 ;;
8219 -l*)
8220 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8221 ;;
8222 *.la)
8223 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8224 ;;
8225 *)
8226 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8227 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8228 ;;
8229 esac
8230 done
8231 fi
8232 else
8233 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8234 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8235 fi
8236 fi
8237 fi
8238 done
8239 done
8240 if test "X$rpathdirs" != "X"; then
8241 if test -n "$hardcode_libdir_separator"; then
8242 alldirs=
8243 for found_dir in $rpathdirs; do
8244 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8245 done
8246 acl_save_libdir="$libdir"
8247 libdir="$alldirs"
8248 eval flag=\"$hardcode_libdir_flag_spec\"
8249 libdir="$acl_save_libdir"
8250 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8251 else
8252 for found_dir in $rpathdirs; do
8253 acl_save_libdir="$libdir"
8254 libdir="$found_dir"
8255 eval flag=\"$hardcode_libdir_flag_spec\"
8256 libdir="$acl_save_libdir"
8257 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8258 done
8259 fi
8260 fi
8261 if test "X$ltrpathdirs" != "X"; then
8262 for found_dir in $ltrpathdirs; do
8263 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8264 done
8265 fi
8266
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008267
8268
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008270
8271
8272
8273
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008274 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008275if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008276
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008277else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008278
8279$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008280
8281
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008282fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008283
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008284 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 -04008285stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008286do :
8287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008289if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008290 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008291#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008292_ACEOF
8293
8294fi
8295
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008296done
8297
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008298 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008299mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8300strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8301__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008302do :
8303 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8304ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008305if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008306 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008307#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008308_ACEOF
8309
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008310fi
8311done
8312
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008313
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008314
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008316$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008317if ${ac_cv_have_decl__snprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008318 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008319else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008321/* end confdefs.h. */
8322#include <stdio.h>
8323int
8324main ()
8325{
8326
8327#ifndef _snprintf
8328 char *p = (char *) _snprintf;
8329#endif
8330
8331 ;
8332 return 0;
8333}
8334_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008335if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008336 ac_cv_have_decl__snprintf=yes
8337else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008338 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008339fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008341fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008343$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008344 if test $ac_cv_have_decl__snprintf = yes; then
8345 gt_value=1
8346 else
8347 gt_value=0
8348 fi
8349
8350cat >>confdefs.h <<_ACEOF
8351#define HAVE_DECL__SNPRINTF $gt_value
8352_ACEOF
8353
8354
8355
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008357$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008358if ${ac_cv_have_decl__snwprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008359 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008360else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008362/* end confdefs.h. */
8363#include <stdio.h>
8364int
8365main ()
8366{
8367
8368#ifndef _snwprintf
8369 char *p = (char *) _snwprintf;
8370#endif
8371
8372 ;
8373 return 0;
8374}
8375_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008376if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008377 ac_cv_have_decl__snwprintf=yes
8378else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008379 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008380fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008382fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008384$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008385 if test $ac_cv_have_decl__snwprintf = yes; then
8386 gt_value=1
8387 else
8388 gt_value=0
8389 fi
8390
8391cat >>confdefs.h <<_ACEOF
8392#define HAVE_DECL__SNWPRINTF $gt_value
8393_ACEOF
8394
8395
8396
8397
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008399$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008400if ${ac_cv_have_decl_feof_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008401 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008402else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008404/* end confdefs.h. */
8405#include <stdio.h>
8406int
8407main ()
8408{
8409
8410#ifndef feof_unlocked
8411 char *p = (char *) feof_unlocked;
8412#endif
8413
8414 ;
8415 return 0;
8416}
8417_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008418if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008419 ac_cv_have_decl_feof_unlocked=yes
8420else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008421 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008422fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008424fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008426$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008427 if test $ac_cv_have_decl_feof_unlocked = yes; then
8428 gt_value=1
8429 else
8430 gt_value=0
8431 fi
8432
8433cat >>confdefs.h <<_ACEOF
8434#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8435_ACEOF
8436
8437
8438
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008440$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008441if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008442 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008443else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008445/* end confdefs.h. */
8446#include <stdio.h>
8447int
8448main ()
8449{
8450
8451#ifndef fgets_unlocked
8452 char *p = (char *) fgets_unlocked;
8453#endif
8454
8455 ;
8456 return 0;
8457}
8458_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008459if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008460 ac_cv_have_decl_fgets_unlocked=yes
8461else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008462 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008463fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008465fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008467$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008468 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8469 gt_value=1
8470 else
8471 gt_value=0
8472 fi
8473
8474cat >>confdefs.h <<_ACEOF
8475#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8476_ACEOF
8477
8478
8479
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008481$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008482if ${ac_cv_have_decl_getc_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008483 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008484else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008486/* end confdefs.h. */
8487#include <stdio.h>
8488int
8489main ()
8490{
8491
8492#ifndef getc_unlocked
8493 char *p = (char *) getc_unlocked;
8494#endif
8495
8496 ;
8497 return 0;
8498}
8499_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008500if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008501 ac_cv_have_decl_getc_unlocked=yes
8502else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008503 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008508$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008509 if test $ac_cv_have_decl_getc_unlocked = yes; then
8510 gt_value=1
8511 else
8512 gt_value=0
8513 fi
8514
8515cat >>confdefs.h <<_ACEOF
8516#define HAVE_DECL_GETC_UNLOCKED $gt_value
8517_ACEOF
8518
8519
8520
8521 case $gt_cv_func_printf_posix in
8522 *yes) HAVE_POSIX_PRINTF=1 ;;
8523 *) HAVE_POSIX_PRINTF=0 ;;
8524 esac
8525
8526 if test "$ac_cv_func_asprintf" = yes; then
8527 HAVE_ASPRINTF=1
8528 else
8529 HAVE_ASPRINTF=0
8530 fi
8531
8532 if test "$ac_cv_func_snprintf" = yes; then
8533 HAVE_SNPRINTF=1
8534 else
8535 HAVE_SNPRINTF=0
8536 fi
8537
8538 if test "$ac_cv_func_wprintf" = yes; then
8539 HAVE_WPRINTF=1
8540 else
8541 HAVE_WPRINTF=0
8542 fi
8543
8544
8545
8546
8547
8548
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008549
8550 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008551
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008552 for element in $INCICONV; do
8553 haveit=
8554 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008555
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008556 acl_save_prefix="$prefix"
8557 prefix="$acl_final_prefix"
8558 acl_save_exec_prefix="$exec_prefix"
8559 exec_prefix="$acl_final_exec_prefix"
8560 eval x=\"$x\"
8561 exec_prefix="$acl_save_exec_prefix"
8562 prefix="$acl_save_prefix"
8563
8564 if test "X$x" = "X$element"; then
8565 haveit=yes
8566 break
8567 fi
8568 done
8569 if test -z "$haveit"; then
8570 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8571 fi
8572 done
8573
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008574
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008576$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008577if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008578 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008579else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008580
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008581 am_cv_func_iconv="no, consider installing GNU libiconv"
8582 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008584/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008585#include <stdlib.h>
8586#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008587int
8588main ()
8589{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008590iconv_t cd = iconv_open("","");
8591 iconv(cd,NULL,NULL,NULL,NULL);
8592 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008593 ;
8594 return 0;
8595}
8596_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008597if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008598 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008599fi
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'oa04eba32003-05-03 16:35:17 -04008602 if test "$am_cv_func_iconv" != yes; then
8603 am_save_LIBS="$LIBS"
8604 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008606/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008607#include <stdlib.h>
8608#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008609int
8610main ()
8611{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008612iconv_t cd = iconv_open("","");
8613 iconv(cd,NULL,NULL,NULL,NULL);
8614 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008615 ;
8616 return 0;
8617}
8618_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008619if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008620 am_cv_lib_iconv=yes
8621 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008622fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008623rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008625 LIBS="$am_save_LIBS"
8626 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008627
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008628fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008630$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008631 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008632
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008633$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008634
8635 fi
8636 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008638$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008640$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008641 else
8642 CPPFLAGS="$am_save_CPPFLAGS"
8643 LIBICONV=
8644 LTLIBICONV=
8645 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008646
8647
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008648
8649 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008651$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008652 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008653 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008654else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008655
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008657/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008658
8659#include <stdlib.h>
8660#include <iconv.h>
8661extern
8662#ifdef __cplusplus
8663"C"
8664#endif
8665#if defined(__STDC__) || defined(__cplusplus)
8666size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8667#else
8668size_t iconv();
8669#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008670
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008671int
8672main ()
8673{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008674
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008675 ;
8676 return 0;
8677}
8678_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008679if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008680 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008681else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008682 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008683fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008685 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 +00008686fi
8687
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008688 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008690 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008691$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008692 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008693
8694cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008695#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008696_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008697
8698 fi
8699
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008700
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008702$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008703if ${am_cv_langinfo_codeset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008704 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008705else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008707/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008708#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008709int
8710main ()
8711{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008712char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008713 ;
8714 return 0;
8715}
8716_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008717if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008718 am_cv_langinfo_codeset=yes
8719else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008720 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008721fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008722rm -f core conftest.err conftest.$ac_objext \
8723 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008724
8725fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008727$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008728 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008729
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008730$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008731
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008732 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008733
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008734 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008735
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008737$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008738if ${am_cv_val_LC_MESSAGES+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008739 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008740else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008742/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008743#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008744int
8745main ()
8746{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008747return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008748 ;
8749 return 0;
8750}
8751_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008752if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008753 am_cv_val_LC_MESSAGES=yes
8754else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008755 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008756fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008757rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008759fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008761$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008762 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008763
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008764$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008765
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008766 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008767
8768 fi
8769
8770 for ac_prog in bison
8771do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008772 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008773set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008775$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008776if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008777 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008778else
8779 if test -n "$INTLBISON"; then
8780 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8781else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783for as_dir in $PATH
8784do
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008787 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008789 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008791 break 2
8792 fi
8793done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008794 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008795IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008796
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008797fi
8798fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008799INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008800if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008802$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008803else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008805$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008806fi
8807
Theodore Ts'oe1052142006-10-21 21:46:47 -04008808
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008809 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008810done
8811
8812 if test -z "$INTLBISON"; then
8813 ac_verc_fail=yes
8814 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008816$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008817 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8818 case $ac_prog_version in
8819 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8820 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8821 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8822 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8823 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008825$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008826 fi
8827 if test $ac_verc_fail = yes; then
8828 INTLBISON=:
8829 fi
8830
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008831
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008832
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008833
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008834
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008835
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008836
8837
8838
8839
8840
8841
8842
8843
8844
8845
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008847$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008848 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008849if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008850 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008851else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008852 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008853fi
8854
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008856$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008857
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008858
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008859
8860
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008861 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008862 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008863
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008864 LIBINTL=
8865 LTLIBINTL=
8866 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008867
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008868 if test "$USE_NLS" = "yes"; then
8869 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008870
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008872$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008873
Theodore Ts'oe1052142006-10-21 21:46:47 -04008874# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008875if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008876 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008877else
8878 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008879fi
8880
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008882$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008883
8884 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8885 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008886
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008887
8888
8889
8890
8891
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008893$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008894if ${gt_cv_func_gnugettext1_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008895 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008896else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008898/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008899#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008900extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008901extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008902int
8903main ()
8904{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008905bindtextdomain ("", "");
8906return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008907 ;
8908 return 0;
8909}
8910_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008911if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008912 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008913else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008914 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008915fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008916rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008918fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008920$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008921
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008922 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008923
8924
8925
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008926 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008927
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008928 acl_save_prefix="$prefix"
8929 prefix="$acl_final_prefix"
8930 acl_save_exec_prefix="$exec_prefix"
8931 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008932
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008933 eval additional_includedir=\"$includedir\"
8934 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008935
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008936 exec_prefix="$acl_save_exec_prefix"
8937 prefix="$acl_save_prefix"
8938
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008939
Theodore Ts'oe1052142006-10-21 21:46:47 -04008940# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008941if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008942 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008943 if test "X$withval" = "Xno"; then
8944 use_additional=no
8945 else
8946 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008947
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008948 acl_save_prefix="$prefix"
8949 prefix="$acl_final_prefix"
8950 acl_save_exec_prefix="$exec_prefix"
8951 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008952
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008953 eval additional_includedir=\"$includedir\"
8954 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008955
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008956 exec_prefix="$acl_save_exec_prefix"
8957 prefix="$acl_save_prefix"
8958
8959 else
8960 additional_includedir="$withval/include"
8961 additional_libdir="$withval/lib"
8962 fi
8963 fi
8964
Theodore Ts'oe1052142006-10-21 21:46:47 -04008965fi
8966
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008967 LIBINTL=
8968 LTLIBINTL=
8969 INCINTL=
8970 rpathdirs=
8971 ltrpathdirs=
8972 names_already_handled=
8973 names_next_round='intl '
8974 while test -n "$names_next_round"; do
8975 names_this_round="$names_next_round"
8976 names_next_round=
8977 for name in $names_this_round; do
8978 already_handled=
8979 for n in $names_already_handled; do
8980 if test "$n" = "$name"; then
8981 already_handled=yes
8982 break
8983 fi
8984 done
8985 if test -z "$already_handled"; then
8986 names_already_handled="$names_already_handled $name"
8987 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8988 eval value=\"\$HAVE_LIB$uppername\"
8989 if test -n "$value"; then
8990 if test "$value" = yes; then
8991 eval value=\"\$LIB$uppername\"
8992 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8993 eval value=\"\$LTLIB$uppername\"
8994 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8995 else
8996 :
8997 fi
8998 else
8999 found_dir=
9000 found_la=
9001 found_so=
9002 found_a=
9003 if test $use_additional = yes; then
9004 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9005 found_dir="$additional_libdir"
9006 found_so="$additional_libdir/lib$name.$shlibext"
9007 if test -f "$additional_libdir/lib$name.la"; then
9008 found_la="$additional_libdir/lib$name.la"
9009 fi
9010 else
9011 if test -f "$additional_libdir/lib$name.$libext"; then
9012 found_dir="$additional_libdir"
9013 found_a="$additional_libdir/lib$name.$libext"
9014 if test -f "$additional_libdir/lib$name.la"; then
9015 found_la="$additional_libdir/lib$name.la"
9016 fi
9017 fi
9018 fi
9019 fi
9020 if test "X$found_dir" = "X"; then
9021 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009022
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009023 acl_save_prefix="$prefix"
9024 prefix="$acl_final_prefix"
9025 acl_save_exec_prefix="$exec_prefix"
9026 exec_prefix="$acl_final_exec_prefix"
9027 eval x=\"$x\"
9028 exec_prefix="$acl_save_exec_prefix"
9029 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009030
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009031 case "$x" in
9032 -L*)
9033 dir=`echo "X$x" | sed -e 's/^X-L//'`
9034 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9035 found_dir="$dir"
9036 found_so="$dir/lib$name.$shlibext"
9037 if test -f "$dir/lib$name.la"; then
9038 found_la="$dir/lib$name.la"
9039 fi
9040 else
9041 if test -f "$dir/lib$name.$libext"; then
9042 found_dir="$dir"
9043 found_a="$dir/lib$name.$libext"
9044 if test -f "$dir/lib$name.la"; then
9045 found_la="$dir/lib$name.la"
9046 fi
9047 fi
9048 fi
9049 ;;
9050 esac
9051 if test "X$found_dir" != "X"; then
9052 break
9053 fi
9054 done
9055 fi
9056 if test "X$found_dir" != "X"; then
9057 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9058 if test "X$found_so" != "X"; then
9059 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9060 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9061 else
9062 haveit=
9063 for x in $ltrpathdirs; do
9064 if test "X$x" = "X$found_dir"; then
9065 haveit=yes
9066 break
9067 fi
9068 done
9069 if test -z "$haveit"; then
9070 ltrpathdirs="$ltrpathdirs $found_dir"
9071 fi
9072 if test "$hardcode_direct" = yes; then
9073 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9074 else
9075 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9076 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9077 haveit=
9078 for x in $rpathdirs; do
9079 if test "X$x" = "X$found_dir"; then
9080 haveit=yes
9081 break
9082 fi
9083 done
9084 if test -z "$haveit"; then
9085 rpathdirs="$rpathdirs $found_dir"
9086 fi
9087 else
9088 haveit=
9089 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009090
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009091 acl_save_prefix="$prefix"
9092 prefix="$acl_final_prefix"
9093 acl_save_exec_prefix="$exec_prefix"
9094 exec_prefix="$acl_final_exec_prefix"
9095 eval x=\"$x\"
9096 exec_prefix="$acl_save_exec_prefix"
9097 prefix="$acl_save_prefix"
9098
9099 if test "X$x" = "X-L$found_dir"; then
9100 haveit=yes
9101 break
9102 fi
9103 done
9104 if test -z "$haveit"; then
9105 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9106 fi
9107 if test "$hardcode_minus_L" != no; then
9108 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9109 else
9110 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9111 fi
9112 fi
9113 fi
9114 fi
9115 else
9116 if test "X$found_a" != "X"; then
9117 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9118 else
9119 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9120 fi
9121 fi
9122 additional_includedir=
9123 case "$found_dir" in
9124 */lib | */lib/)
9125 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9126 additional_includedir="$basedir/include"
9127 ;;
9128 esac
9129 if test "X$additional_includedir" != "X"; then
9130 if test "X$additional_includedir" != "X/usr/include"; then
9131 haveit=
9132 if test "X$additional_includedir" = "X/usr/local/include"; then
9133 if test -n "$GCC"; then
9134 case $host_os in
9135 linux*) haveit=yes;;
9136 esac
9137 fi
9138 fi
9139 if test -z "$haveit"; then
9140 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009141
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009142 acl_save_prefix="$prefix"
9143 prefix="$acl_final_prefix"
9144 acl_save_exec_prefix="$exec_prefix"
9145 exec_prefix="$acl_final_exec_prefix"
9146 eval x=\"$x\"
9147 exec_prefix="$acl_save_exec_prefix"
9148 prefix="$acl_save_prefix"
9149
9150 if test "X$x" = "X-I$additional_includedir"; then
9151 haveit=yes
9152 break
9153 fi
9154 done
9155 if test -z "$haveit"; then
9156 if test -d "$additional_includedir"; then
9157 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9158 fi
9159 fi
9160 fi
9161 fi
9162 fi
9163 if test -n "$found_la"; then
9164 save_libdir="$libdir"
9165 case "$found_la" in
9166 */* | *\\*) . "$found_la" ;;
9167 *) . "./$found_la" ;;
9168 esac
9169 libdir="$save_libdir"
9170 for dep in $dependency_libs; do
9171 case "$dep" in
9172 -L*)
9173 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9174 if test "X$additional_libdir" != "X/usr/lib"; then
9175 haveit=
9176 if test "X$additional_libdir" = "X/usr/local/lib"; then
9177 if test -n "$GCC"; then
9178 case $host_os in
9179 linux*) haveit=yes;;
9180 esac
9181 fi
9182 fi
9183 if test -z "$haveit"; then
9184 haveit=
9185 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009186
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009187 acl_save_prefix="$prefix"
9188 prefix="$acl_final_prefix"
9189 acl_save_exec_prefix="$exec_prefix"
9190 exec_prefix="$acl_final_exec_prefix"
9191 eval x=\"$x\"
9192 exec_prefix="$acl_save_exec_prefix"
9193 prefix="$acl_save_prefix"
9194
9195 if test "X$x" = "X-L$additional_libdir"; then
9196 haveit=yes
9197 break
9198 fi
9199 done
9200 if test -z "$haveit"; then
9201 if test -d "$additional_libdir"; then
9202 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9203 fi
9204 fi
9205 haveit=
9206 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009207
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009208 acl_save_prefix="$prefix"
9209 prefix="$acl_final_prefix"
9210 acl_save_exec_prefix="$exec_prefix"
9211 exec_prefix="$acl_final_exec_prefix"
9212 eval x=\"$x\"
9213 exec_prefix="$acl_save_exec_prefix"
9214 prefix="$acl_save_prefix"
9215
9216 if test "X$x" = "X-L$additional_libdir"; then
9217 haveit=yes
9218 break
9219 fi
9220 done
9221 if test -z "$haveit"; then
9222 if test -d "$additional_libdir"; then
9223 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9224 fi
9225 fi
9226 fi
9227 fi
9228 ;;
9229 -R*)
9230 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9231 if test "$enable_rpath" != no; then
9232 haveit=
9233 for x in $rpathdirs; do
9234 if test "X$x" = "X$dir"; then
9235 haveit=yes
9236 break
9237 fi
9238 done
9239 if test -z "$haveit"; then
9240 rpathdirs="$rpathdirs $dir"
9241 fi
9242 haveit=
9243 for x in $ltrpathdirs; do
9244 if test "X$x" = "X$dir"; then
9245 haveit=yes
9246 break
9247 fi
9248 done
9249 if test -z "$haveit"; then
9250 ltrpathdirs="$ltrpathdirs $dir"
9251 fi
9252 fi
9253 ;;
9254 -l*)
9255 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9256 ;;
9257 *.la)
9258 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9259 ;;
9260 *)
9261 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9262 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9263 ;;
9264 esac
9265 done
9266 fi
9267 else
9268 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9269 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9270 fi
9271 fi
9272 fi
9273 done
9274 done
9275 if test "X$rpathdirs" != "X"; then
9276 if test -n "$hardcode_libdir_separator"; then
9277 alldirs=
9278 for found_dir in $rpathdirs; do
9279 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9280 done
9281 acl_save_libdir="$libdir"
9282 libdir="$alldirs"
9283 eval flag=\"$hardcode_libdir_flag_spec\"
9284 libdir="$acl_save_libdir"
9285 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9286 else
9287 for found_dir in $rpathdirs; do
9288 acl_save_libdir="$libdir"
9289 libdir="$found_dir"
9290 eval flag=\"$hardcode_libdir_flag_spec\"
9291 libdir="$acl_save_libdir"
9292 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9293 done
9294 fi
9295 fi
9296 if test "X$ltrpathdirs" != "X"; then
9297 for found_dir in $ltrpathdirs; do
9298 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9299 done
9300 fi
9301
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009303$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009304if ${gt_cv_func_gnugettext1_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009305 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009306else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009307 gt_save_CPPFLAGS="$CPPFLAGS"
9308 CPPFLAGS="$CPPFLAGS $INCINTL"
9309 gt_save_LIBS="$LIBS"
9310 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009312/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009313#include <libintl.h>
9314extern int _nl_msg_cat_cntr;
9315extern
9316#ifdef __cplusplus
9317"C"
9318#endif
9319const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009320int
9321main ()
9322{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009323bindtextdomain ("", "");
9324return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009325 ;
9326 return 0;
9327}
9328_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009329if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009330 gt_cv_func_gnugettext1_libintl=yes
9331else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009332 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009333fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009334rm -f core conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009336 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9337 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009339/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009340#include <libintl.h>
9341extern int _nl_msg_cat_cntr;
9342extern
9343#ifdef __cplusplus
9344"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009345#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009346const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009347int
9348main ()
9349{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009350bindtextdomain ("", "");
9351return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009352 ;
9353 return 0;
9354}
9355_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009356if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009357 LIBINTL="$LIBINTL $LIBICONV"
9358 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9359 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009360
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009361fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009362rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009364 fi
9365 CPPFLAGS="$gt_save_CPPFLAGS"
9366 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009367fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009369$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009370 fi
9371
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009372 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9373 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009374 && test "$PACKAGE" != gettext-runtime \
9375 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009376 gt_use_preinstalled_gnugettext=yes
9377 else
9378 LIBINTL=
9379 LTLIBINTL=
9380 INCINTL=
9381 fi
9382
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009383
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009384 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9385 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009386 fi
9387 fi
9388
9389 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009390 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009391 USE_INCLUDED_LIBINTL=yes
9392 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9393 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9394 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009395 fi
9396
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009397 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9398 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9399 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009400 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009401
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009402
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009403 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9404 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009405
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009406$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009407
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009408 else
9409 USE_NLS=no
9410 fi
9411 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009412
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009414$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009416$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009417 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009419$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009420 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9421 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9422 gt_source="external libintl"
9423 else
9424 gt_source="libc"
9425 fi
9426 else
9427 gt_source="included intl directory"
9428 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009430$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009431 fi
9432
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009433 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009434
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009435 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9436 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009438$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009440$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009441
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009442 for element in $INCINTL; do
9443 haveit=
9444 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009445
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009446 acl_save_prefix="$prefix"
9447 prefix="$acl_final_prefix"
9448 acl_save_exec_prefix="$exec_prefix"
9449 exec_prefix="$acl_final_exec_prefix"
9450 eval x=\"$x\"
9451 exec_prefix="$acl_save_exec_prefix"
9452 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009453
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009454 if test "X$x" = "X$element"; then
9455 haveit=yes
9456 break
9457 fi
9458 done
9459 if test -z "$haveit"; then
9460 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9461 fi
9462 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009463
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009464 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009465
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009466
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009467$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009468
9469
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009470$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009471
9472 fi
9473
9474 POSUB=po
9475 fi
9476
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009477
9478 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009479 BUILD_INCLUDED_LIBINTL=yes
9480 fi
9481
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009482
9483
9484
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009485
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009486 nls_cv_header_intl=
9487 nls_cv_header_libgt=
9488
9489 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009490
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009491
9492 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009493
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009494
9495 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009496
9497
9498 if test "$USE_INCLUDED_LIBINTL" = yes; then
9499 INTLOBJS="\$(GETTOBJS)"
9500 fi
9501
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009502
9503 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009504
9505
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009506
9507 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009508
9509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009510
9511
9512
9513
9514
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009516$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9517set x ${MAKE-make}
9518ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009519if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009520 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009521else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009522 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009523SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009524all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009525 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009526_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009527# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009528case `${MAKE-make} -f conftest.make 2>/dev/null` in
9529 *@@@%%%=?*=@@@%%%*)
9530 eval ac_cv_prog_make_${ac_make}_set=yes;;
9531 *)
9532 eval ac_cv_prog_make_${ac_make}_set=no;;
9533esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009534rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009535fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009536if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009538$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009539 SET_MAKE=
9540else
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 +00009543 SET_MAKE="MAKE=${MAKE-make}"
9544fi
9545
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009547$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009548if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009549 $as_echo_n "(cached) " >&6
9550else
9551 _cv_gnu_make_command='' ;
9552 for a in "$MAKE" make gmake gnumake ; do
9553 if test -z "$a" ; then continue ; fi ;
9554 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9555 _cv_gnu_make_command=$a ;
9556 break;
9557 fi
9558 done ;
9559
9560fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009562$as_echo "$_cv_gnu_make_command" >&6; } ;
9563 if test "x$_cv_gnu_make_command" != "x" ; then
9564 ifGNUmake='' ;
9565 ifNotGNUmake='#' ;
9566 else
9567 ifGNUmake='#' ;
9568 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009570$as_echo "\"Not found\"" >&6; };
9571 fi
9572
9573
9574
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009575# Extract the first word of "ln", so it can be a program name with args.
9576set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009578$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009579if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009580 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009581else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009582 case $LN in
9583 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009584 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9585 ;;
9586 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588for as_dir in $PATH
9589do
9590 IFS=$as_save_IFS
9591 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009592 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009594 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009596 break 2
9597 fi
9598done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009599 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009600IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009601
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009602 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9603 ;;
9604esac
9605fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009606LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009607if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009609$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009610else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009612$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009613fi
9614
Theodore Ts'oe1052142006-10-21 21:46:47 -04009615
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009617$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009618LN_S=$as_ln_s
9619if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009621$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009622else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009624$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009625fi
9626
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009627# Extract the first word of "mv", so it can be a program name with args.
9628set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009630$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009631if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009632 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009633else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009634 case $MV in
9635 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009636 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9637 ;;
9638 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640for as_dir in $PATH
9641do
9642 IFS=$as_save_IFS
9643 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009644 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009646 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009648 break 2
9649 fi
9650done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009651 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009652IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009653
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009654 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9655 ;;
9656esac
9657fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009658MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009659if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009661$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009662else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009664$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009665fi
9666
Theodore Ts'oe1052142006-10-21 21:46:47 -04009667
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009668# Extract the first word of "cp", so it can be a program name with args.
9669set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009671$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009672if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009673 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009674else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009675 case $CP in
9676 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009677 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9678 ;;
9679 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681for as_dir in $PATH
9682do
9683 IFS=$as_save_IFS
9684 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009685 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009687 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009689 break 2
9690 fi
9691done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009692 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009693IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009694
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009695 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9696 ;;
9697esac
9698fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009699CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009700if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009702$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009703else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009705$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009706fi
9707
Theodore Ts'oe1052142006-10-21 21:46:47 -04009708
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009709# Extract the first word of "rm", so it can be a program name with args.
9710set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009712$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009713if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009714 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009715else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009716 case $RM in
9717 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009718 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9719 ;;
9720 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722for as_dir in $PATH
9723do
9724 IFS=$as_save_IFS
9725 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009726 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009728 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009730 break 2
9731 fi
9732done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009733 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009734IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009735
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009736 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9737 ;;
9738esac
9739fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009740RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009741if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009743$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009744else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009746$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009747fi
9748
Theodore Ts'oe1052142006-10-21 21:46:47 -04009749
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009750# Extract the first word of "chmod", so it can be a program name with args.
9751set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009753$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009754if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009755 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009756else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009757 case $CHMOD in
9758 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009759 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9760 ;;
9761 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763for as_dir in $PATH
9764do
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009767 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009769 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009771 break 2
9772 fi
9773done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009774 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009775IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009776
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009777 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9778 ;;
9779esac
9780fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009781CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009782if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009784$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009785else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009787$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009788fi
9789
Theodore Ts'oe1052142006-10-21 21:46:47 -04009790
Theodore Ts'o32237012005-01-17 19:13:39 -05009791for ac_prog in gawk mawk nawk awk
9792do
9793 # Extract the first word of "$ac_prog", so it can be a program name with args.
9794set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009796$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009797if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009798 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009799else
Theodore Ts'o32237012005-01-17 19:13:39 -05009800 if test -n "$AWK"; then
9801 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9802else
9803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009804for as_dir in $PATH
9805do
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009808 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -05009810 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009812 break 2
9813 fi
9814done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009815 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009816IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009817
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009818fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009819fi
9820AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009821if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009823$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009824else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009826$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009827fi
9828
Theodore Ts'oe1052142006-10-21 21:46:47 -04009829
Theodore Ts'o32237012005-01-17 19:13:39 -05009830 test -n "$AWK" && break
9831done
9832
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009834$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009835if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009836 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009837else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009838 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9839 then ac_cv_path_EGREP="$GREP -E"
9840 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009841 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009842 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009843 # Loop through the user's path and test for each of PROGNAME-LIST
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009845for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9846do
9847 IFS=$as_save_IFS
9848 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009849 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009852 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009853# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009854 # Check for GNU $ac_path_EGREP
9855case `"$ac_path_EGREP" --version 2>&1` in
9856*GNU*)
9857 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9858*)
9859 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009860 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009861 while :
9862 do
9863 cat "conftest.in" "conftest.in" >"conftest.tmp"
9864 mv "conftest.tmp" "conftest.in"
9865 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009866 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009867 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009869 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009870 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9871 # Best one so far, save it but keep looking for a better one
9872 ac_cv_path_EGREP="$ac_path_EGREP"
9873 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009874 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009875 # 10*(2^10) chars as input seems more than enough
9876 test $ac_count -gt 10 && break
9877 done
9878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9879esac
9880
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009881 $ac_path_EGREP_found && break 3
9882 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009883 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009884 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009885IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009886 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009887 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 +01009888 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009889else
9890 ac_cv_path_EGREP=$EGREP
9891fi
9892
Theodore Ts'oe1052142006-10-21 21:46:47 -04009893 fi
9894fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009896$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009897 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009898
9899
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009900# Extract the first word of "sed", so it can be a program name with args.
9901set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009903$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009904if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009905 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009906else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009907 case $SED in
9908 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009909 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9910 ;;
9911 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009912 as_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'o91d11da2012-09-06 23:01:14 -04009918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009919 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
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 +00009927 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9928 ;;
9929esac
9930fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009931SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009932if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009934$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009935else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009937$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009938fi
9939
Theodore Ts'oe1052142006-10-21 21:46:47 -04009940
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009941# Extract the first word of "perl", so it can be a program name with args.
9942set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009944$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009945if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009946 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009947else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009948 case $PERL in
9949 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009950 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9951 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009952 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954for as_dir in $PATH
9955do
9956 IFS=$as_save_IFS
9957 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009958 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009960 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009962 break 2
9963 fi
9964done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009965 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009966IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009967
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009968 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9969 ;;
9970esac
9971fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009972PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009973if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009975$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009976else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009978$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009979fi
9980
Theodore Ts'oe1052142006-10-21 21:46:47 -04009981
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009982# Extract the first word of "ldconfig", so it can be a program name with args.
9983set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009985$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009986if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009987 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009988else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009989 case $LDCONFIG in
9990 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009991 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9992 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009993 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995for as_dir in $PATH
9996do
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009999 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010001 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010003 break 2
10004 fi
10005done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010006 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010007IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010008
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010009 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10010 ;;
10011esac
10012fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010013LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010014if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010016$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010017else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010019$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010020fi
10021
Theodore Ts'oe1052142006-10-21 21:46:47 -040010022
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010023if test -n "$ac_tool_prefix"; then
10024 # 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 +000010025set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010027$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010028if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010029 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010030else
10031 if test -n "$AR"; then
10032 ac_cv_prog_AR="$AR" # Let the user override the test.
10033else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035for as_dir in $PATH
10036do
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010039 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010041 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010043 break 2
10044 fi
10045done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010046 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010047IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010048
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010049fi
10050fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010051AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010052if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010054$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010055else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010057$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010058fi
10059
Theodore Ts'oe1052142006-10-21 21:46:47 -040010060
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010061fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010062if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010063 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010064 # Extract the first word of "ar", so it can be a program name with args.
10065set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010067$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010068if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010069 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010070else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010071 if test -n "$ac_ct_AR"; then
10072 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010073else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075for as_dir in $PATH
10076do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010079 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010081 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010083 break 2
10084 fi
10085done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010086 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010087IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010088
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010089fi
10090fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010091ac_ct_AR=$ac_cv_prog_ac_ct_AR
10092if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010094$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010095else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010097$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010098fi
10099
Theodore Ts'oe1052142006-10-21 21:46:47 -040010100 if test "x$ac_ct_AR" = x; then
10101 AR="ar"
10102 else
10103 case $cross_compiling:$ac_tool_warned in
10104yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010105{ $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 +010010106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010107ac_tool_warned=yes ;;
10108esac
10109 AR=$ac_ct_AR
10110 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010111else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010112 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010113fi
10114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010115if test -n "$ac_tool_prefix"; then
10116 # 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 +000010117set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010119$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010120if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010121 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010122else
10123 if test -n "$RANLIB"; then
10124 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10125else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127for as_dir in $PATH
10128do
10129 IFS=$as_save_IFS
10130 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010131 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010133 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010135 break 2
10136 fi
10137done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010138 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010139IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010140
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010141fi
10142fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010143RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010144if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010146$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010147else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010149$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010150fi
10151
Theodore Ts'oe1052142006-10-21 21:46:47 -040010152
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010153fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010154if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010155 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010156 # Extract the first word of "ranlib", so it can be a program name with args.
10157set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010159$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010160if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010161 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010162else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010163 if test -n "$ac_ct_RANLIB"; then
10164 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010165else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167for as_dir in $PATH
10168do
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010171 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010173 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010175 break 2
10176 fi
10177done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010178 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010179IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010180
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010181fi
10182fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010183ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10184if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010186$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010187else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010189$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010190fi
10191
Theodore Ts'oe1052142006-10-21 21:46:47 -040010192 if test "x$ac_ct_RANLIB" = x; then
10193 RANLIB=":"
10194 else
10195 case $cross_compiling:$ac_tool_warned in
10196yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010197{ $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 +010010198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010199ac_tool_warned=yes ;;
10200esac
10201 RANLIB=$ac_ct_RANLIB
10202 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010203else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010204 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010205fi
10206
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010207if test -n "$ac_tool_prefix"; then
10208 # 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 +000010209set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010211$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010212if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010213 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010214else
10215 if test -n "$STRIP"; then
10216 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10217else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219for as_dir in $PATH
10220do
10221 IFS=$as_save_IFS
10222 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010223 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010225 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010227 break 2
10228 fi
10229done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010230 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010231IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010232
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010233fi
10234fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010235STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010236if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010238$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010239else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010241$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010242fi
10243
Theodore Ts'oe1052142006-10-21 21:46:47 -040010244
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010245fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010246if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010247 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010248 # Extract the first word of "strip", so it can be a program name with args.
10249set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010251$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010252if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010253 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010254else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010255 if test -n "$ac_ct_STRIP"; then
10256 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010257else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259for as_dir in $PATH
10260do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010263 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010265 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010267 break 2
10268 fi
10269done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010270 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010271IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010272
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010273fi
10274fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010275ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10276if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010278$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010279else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010281$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010282fi
10283
Theodore Ts'oe1052142006-10-21 21:46:47 -040010284 if test "x$ac_ct_STRIP" = x; then
10285 STRIP=":"
10286 else
10287 case $cross_compiling:$ac_tool_warned in
10288yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010289{ $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 +010010290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010291ac_tool_warned=yes ;;
10292esac
10293 STRIP=$ac_ct_STRIP
10294 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010295else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010296 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010297fi
10298
Manish Katiyar7321d942008-04-14 17:20:03 +053010299# Extract the first word of "makeinfo", so it can be a program name with args.
10300set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010302$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010303if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010304 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010305else
10306 if test -n "$MAKEINFO"; then
10307 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10308else
10309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310for as_dir in $PATH
10311do
10312 IFS=$as_save_IFS
10313 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010314 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053010316 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010318 break 2
10319 fi
10320done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010321 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010322IFS=$as_save_IFS
10323
10324fi
10325fi
10326MAKEINFO=$ac_cv_prog_MAKEINFO
10327if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010329$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010330else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010332$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010333fi
10334
10335
10336if test "_$MAKEINFO" = "_"; then
10337 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10338else
10339 case "$MAKEINFO" in
10340 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010342*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010343$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010344*** Makeinfo is missing. Info documentation will not be built." >&2;}
10345 ;;
10346 *)
10347 ;;
10348 esac
10349fi
10350
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010351
Theodore Ts'o6c133521999-07-03 20:37:03 +000010352# See if we need a separate native compiler.
10353if test $cross_compiling = no; then
10354 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010355
Theodore Ts'o6c133521999-07-03 20:37:03 +000010356else
10357 for ac_prog in gcc cc
10358do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010359 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010360set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010362$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010363if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010364 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010365else
10366 if test -n "$BUILD_CC"; then
10367 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10368else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010371do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010374 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010376 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010378 break 2
10379 fi
10380done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010381 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010382IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010383
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010384fi
10385fi
10386BUILD_CC=$ac_cv_prog_BUILD_CC
10387if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010389$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010390else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010392$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010393fi
10394
Theodore Ts'oe1052142006-10-21 21:46:47 -040010395
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010396 test -n "$BUILD_CC" && break
10397done
10398
10399fi
Kazuya Miofbabd5c2013-12-16 00:48:12 -050010400for 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 linux/loop.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 -050010401do :
10402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10403ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010404if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010405 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010407_ACEOF
10408
10409fi
10410
10411done
10412
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010413for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010414do :
10415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10416ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010417#if HAVE_SYS_QUEUE_H
10418#include <sys/queue.h>
10419#endif
10420
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010421"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010422if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010423 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010424#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010425_ACEOF
10426
10427fi
10428
10429done
10430
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010431for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010432do :
10433 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010434#if HAVE_SYS_TYPES_H
10435#include <sys/types.h>
10436#endif
10437#if HAVE_SYS_SOCKET
10438#include <sys/socket.h>
10439#endif
10440
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010441"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010442if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010443 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010444#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010445_ACEOF
10446
10447fi
10448
10449done
10450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010451for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010452do :
10453 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010454if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010455 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010456#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010457_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010458
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010459ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010460if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010461
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010462$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010463
10464fi
10465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010466fi
10467done
10468
10469
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010470ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10471"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010472if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010473
10474$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010475
10476fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010477
Theodore Ts'o28739272014-01-03 00:26:43 -050010478ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10479if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10480
10481cat >>confdefs.h <<_ACEOF
10482#define HAVE_STRUCT_STAT_ST_ATIM 1
10483_ACEOF
10484
10485
10486fi
10487
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010488ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10489"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010490if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010491
10492$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010493
Theodore Ts'offf45482003-04-13 00:44:19 -040010494fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010495
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010496ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10497"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010498if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010499
10500$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010501
10502fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010503
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010504ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010505 #define _LARGEFILE64_SOURCE
10506 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010507"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010508if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010509
10510$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010511
10512fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010513
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010514# The cast to long int works around a bug in the HP C Compiler
10515# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10516# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10517# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010519$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010520if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010521 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010522else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010523 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 -050010524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010525else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010526 if test "$ac_cv_type_short" = yes; then
10527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010529as_fn_error 77 "cannot compute sizeof (short)
10530See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010531 else
10532 ac_cv_sizeof_short=0
10533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010534fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010535
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010536fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010538$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010539
10540
10541
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010542cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010543#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010544_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010545
10546
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010547# The cast to long int works around a bug in the HP C Compiler
10548# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10549# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10550# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010552$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010553if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010554 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010555else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010556 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 -050010557
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010558else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010559 if test "$ac_cv_type_int" = yes; then
10560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010562as_fn_error 77 "cannot compute sizeof (int)
10563See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010564 else
10565 ac_cv_sizeof_int=0
10566 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010567fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010568
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010569fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010571$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010572
10573
10574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010575cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010576#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010577_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010578
10579
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010580# The cast to long int works around a bug in the HP C Compiler
10581# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10582# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10583# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010585$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010586if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010587 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010588else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010589 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 -050010590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010591else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010592 if test "$ac_cv_type_long" = yes; then
10593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010595as_fn_error 77 "cannot compute sizeof (long)
10596See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010597 else
10598 ac_cv_sizeof_long=0
10599 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010600fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010601
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010602fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010604$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010605
10606
10607
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010608cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010609#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010610_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010611
10612
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010613# The cast to long int works around a bug in the HP C Compiler
10614# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10615# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10616# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010618$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010619if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010620 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010621else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010622 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 -050010623
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010624else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010625 if test "$ac_cv_type_long_long" = yes; then
10626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010628as_fn_error 77 "cannot compute sizeof (long long)
10629See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010630 else
10631 ac_cv_sizeof_long_long=0
10632 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010633fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010634
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010635fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010637$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010638
10639
10640
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010641cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010642#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010643_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010644
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010645
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010646# The cast to long int works around a bug in the HP C Compiler
10647# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10648# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10649# This bug is HP SR number 8606223364.
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10651$as_echo_n "checking size of off_t... " >&6; }
10652if ${ac_cv_sizeof_off_t+:} false; then :
10653 $as_echo_n "(cached) " >&6
10654else
10655 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10656
10657else
10658 if test "$ac_cv_type_off_t" = yes; then
10659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10661as_fn_error 77 "cannot compute sizeof (off_t)
10662See \`config.log' for more details" "$LINENO" 5; }
10663 else
10664 ac_cv_sizeof_off_t=0
10665 fi
10666fi
10667
10668fi
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10670$as_echo "$ac_cv_sizeof_off_t" >&6; }
10671
10672
10673
10674cat >>confdefs.h <<_ACEOF
10675#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10676_ACEOF
10677
10678
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010679SIZEOF_SHORT=$ac_cv_sizeof_short
10680SIZEOF_INT=$ac_cv_sizeof_int
10681SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010682SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010683SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10684
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010685
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010686
10687
10688
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010690$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010691if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010692 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010693else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010694 ac_cv_c_bigendian=unknown
10695 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010697/* end confdefs.h. */
10698#ifndef __APPLE_CC__
10699 not a universal capable compiler
10700 #endif
10701 typedef int dummy;
10702
10703_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010704if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010705
10706 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010707 # there are at least two -arch flags with different values.
10708 ac_arch=
10709 ac_prev=
10710 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10711 if test -n "$ac_prev"; then
10712 case $ac_word in
10713 i?86 | x86_64 | ppc | ppc64)
10714 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10715 ac_arch=$ac_word
10716 else
10717 ac_cv_c_bigendian=universal
10718 break
10719 fi
10720 ;;
10721 esac
10722 ac_prev=
10723 elif test "x$ac_word" = "x-arch"; then
10724 ac_prev=arch
10725 fi
10726 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010727fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10729 if test $ac_cv_c_bigendian = unknown; then
10730 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010732/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010733#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010734 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010736int
10737main ()
10738{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010739#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10740 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10741 && LITTLE_ENDIAN)
10742 bogus endian macros
10743 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010744
10745 ;
10746 return 0;
10747}
10748_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010749if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010750 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010752/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010753#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010754 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010755
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010756int
10757main ()
10758{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010759#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010760 not big endian
10761 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010762
10763 ;
10764 return 0;
10765}
10766_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010767if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010768 ac_cv_c_bigendian=yes
10769else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010770 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010771fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010773fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10775 fi
10776 if test $ac_cv_c_bigendian = unknown; then
10777 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010779/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010780#include <limits.h>
10781
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010782int
10783main ()
10784{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010785#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10786 bogus endian macros
10787 #endif
10788
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010789 ;
10790 return 0;
10791}
10792_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010793if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010794 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010796/* end confdefs.h. */
10797#include <limits.h>
10798
10799int
10800main ()
10801{
10802#ifndef _BIG_ENDIAN
10803 not big endian
10804 #endif
10805
10806 ;
10807 return 0;
10808}
10809_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010810if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010811 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010812else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010813 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010814fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010816fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10818 fi
10819 if test $ac_cv_c_bigendian = unknown; then
10820 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010821 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010822 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010824/* end confdefs.h. */
10825short int ascii_mm[] =
10826 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10827 short int ascii_ii[] =
10828 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10829 int use_ascii (int i) {
10830 return ascii_mm[i] + ascii_ii[i];
10831 }
10832 short int ebcdic_ii[] =
10833 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10834 short int ebcdic_mm[] =
10835 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10836 int use_ebcdic (int i) {
10837 return ebcdic_mm[i] + ebcdic_ii[i];
10838 }
10839 extern int foo;
10840
10841int
10842main ()
10843{
10844return use_ascii (foo) == use_ebcdic (foo);
10845 ;
10846 return 0;
10847}
10848_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010849if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010850 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10851 ac_cv_c_bigendian=yes
10852 fi
10853 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10854 if test "$ac_cv_c_bigendian" = unknown; then
10855 ac_cv_c_bigendian=no
10856 else
10857 # finding both strings is unlikely to happen, but who knows?
10858 ac_cv_c_bigendian=unknown
10859 fi
10860 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010861fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010863else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010865/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010866$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010867int
10868main ()
10869{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010870
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010871 /* Are we little or big endian? From Harbison&Steele. */
10872 union
10873 {
10874 long int l;
10875 char c[sizeof (long int)];
10876 } u;
10877 u.l = 1;
10878 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010879
10880 ;
10881 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010882}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010883_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010884if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010885 ac_cv_c_bigendian=no
10886else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010887 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010888fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10890 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010891fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010892
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010893 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010894fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010896$as_echo "$ac_cv_c_bigendian" >&6; }
10897 case $ac_cv_c_bigendian in #(
10898 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010899 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010900;; #(
10901 no)
10902 ;; #(
10903 universal)
10904
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010905$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010906
10907 ;; #(
10908 *)
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010909 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010910 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010911 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010912
Chen Qi91f04682014-05-05 21:08:42 -040010913if test $cross_compiling = no; then
10914 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10915else
10916 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10917fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010918ASM_TYPES_HEADER=./asm_types.h
10919
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010920echo "/* These defines are needed for the public ext2fs.h header file */" \
10921 > public_config.h
10922if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10923 uniq tmp_config.$$ >> public_config.h
10924else
10925 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10926fi
10927if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10928 uniq tmp_config.$$ >> public_config.h
10929else
10930 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10931fi
10932rm -f tmp_config.$$
10933PUBLIC_CONFIG_HEADER=./public_config.h
10934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010935for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010936do :
10937 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010938if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010939 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010940#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010941_ACEOF
10942
10943fi
10944
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010945done
10946
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010947ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010948if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010949
10950cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010951#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010952_ACEOF
10953
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010954
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010955fi
10956
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010957{ $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 +010010958$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010959if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010960 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010961else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010963/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010964#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010965int
10966main ()
10967{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010968struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010969 ;
10970 return 0;
10971}
10972_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010973if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010974 e2fsprogs_cv_struct_st_flags=yes
10975else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010976 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010977fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979fi
10980
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010982$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010983if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010985$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010986 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010987 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010988else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010990/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010991#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010992int
10993main ()
10994{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010995struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010996 ;
10997 return 0;
10998}
10999_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011000if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000011001 e2fsprogs_cv_struct_st_flags_immut=yes
11002else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011003 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000011004fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006fi
11007
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011009$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000011010 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011011
11012$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011013
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000011014 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011015fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011016ac_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 -050011017 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011018"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011019if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011020
11021cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050011022#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011023_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050011024
11025fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011026
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011027if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011029$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011030if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011031 $as_echo_n "(cached) " >&6
11032else
11033 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011035/* end confdefs.h. */
11036
11037/* Override any GCC internal prototype to avoid an error.
11038 Use char because int might match the return type of a GCC
11039 builtin and then its argument prototype would still apply. */
11040#ifdef __cplusplus
11041extern "C"
11042#endif
11043char blkid_probe_all ();
11044int
11045main ()
11046{
11047return blkid_probe_all ();
11048 ;
11049 return 0;
11050}
11051_ACEOF
11052for ac_lib in '' blkid; do
11053 if test -z "$ac_lib"; then
11054 ac_res="none required"
11055 else
11056 ac_res=-l$ac_lib
11057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11058 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011059 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011060 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011061fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011062rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011064 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011065 break
11066fi
11067done
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011068if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011069
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011070else
11071 ac_cv_search_blkid_probe_all=no
11072fi
11073rm conftest.$ac_ext
11074LIBS=$ac_func_search_save_LIBS
11075fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011077$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11078ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011079if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11081
11082fi
11083
11084fi
Theodore Ts'o2de26282014-05-05 01:22:22 -040011085for ac_func in __secure_getenv backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011086do :
11087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11088ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011089if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011090 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011091#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011092_ACEOF
11093
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011094fi
11095done
11096
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011097SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011099$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011100if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011101 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011102else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011103 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011104LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011106/* end confdefs.h. */
11107
Theodore Ts'oe1052142006-10-21 21:46:47 -040011108/* Override any GCC internal prototype to avoid an error.
11109 Use char because int might match the return type of a GCC
11110 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011111#ifdef __cplusplus
11112extern "C"
11113#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011114char socket ();
11115int
11116main ()
11117{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011118return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011119 ;
11120 return 0;
11121}
11122_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011123if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011124 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011125else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011126 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011127fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011128rm -f core conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011130LIBS=$ac_check_lib_save_LIBS
11131fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011133$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011134if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011135 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011136fi
11137
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011138
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011140$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011141if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011142 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011143else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011145/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011146#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011147
11148_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011150 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011151 ac_cv_have_optreset=yes
11152else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011153 ac_cv_have_optreset=no
11154fi
11155rm -f conftest*
11156
11157fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011159$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011160if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011161
11162$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011163
11164fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011165
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011166SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011167ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011168if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011169
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011170else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011172$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011173if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011174 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011175else
11176 ac_check_lib_save_LIBS=$LIBS
11177LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011179/* end confdefs.h. */
11180
11181/* Override any GCC internal prototype to avoid an error.
11182 Use char because int might match the return type of a GCC
11183 builtin and then its argument prototype would still apply. */
11184#ifdef __cplusplus
11185extern "C"
11186#endif
11187char sem_init ();
11188int
11189main ()
11190{
11191return sem_init ();
11192 ;
11193 return 0;
11194}
11195_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011196if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011197 ac_cv_lib_pthread_sem_init=yes
11198else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011199 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011200fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011201rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011203LIBS=$ac_check_lib_save_LIBS
11204fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011206$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011207if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011208 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011209
11210 SEM_INIT_LIB=-lpthread
11211else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011213$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011214if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011215 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011216else
11217 ac_check_lib_save_LIBS=$LIBS
11218LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011220/* end confdefs.h. */
11221
11222/* Override any GCC internal prototype to avoid an error.
11223 Use char because int might match the return type of a GCC
11224 builtin and then its argument prototype would still apply. */
11225#ifdef __cplusplus
11226extern "C"
11227#endif
11228char sem_init ();
11229int
11230main ()
11231{
11232return sem_init ();
11233 ;
11234 return 0;
11235}
11236_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011237if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011238 ac_cv_lib_rt_sem_init=yes
11239else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011240 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011241fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011242rm -f core conftest.err conftest.$ac_objext \
11243 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011244LIBS=$ac_check_lib_save_LIBS
11245fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011247$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011248if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011249 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011250
11251 SEM_INIT_LIB=-lrt
11252else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011254$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011255if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011256 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011257else
11258 ac_check_lib_save_LIBS=$LIBS
11259LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011261/* end confdefs.h. */
11262
11263/* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11266#ifdef __cplusplus
11267extern "C"
11268#endif
11269char sem_init ();
11270int
11271main ()
11272{
11273return sem_init ();
11274 ;
11275 return 0;
11276}
11277_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011278if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011279 ac_cv_lib_posix4_sem_init=yes
11280else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011281 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011282fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011283rm -f core conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011285LIBS=$ac_check_lib_save_LIBS
11286fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011288$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011289if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011290 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011291
11292 SEM_INIT_LIB=-lposix4
11293fi
11294
11295fi
11296
11297fi
11298
11299fi
11300
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011302$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011303if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011304 UNI_DIFF_OPTS=-u
11305else
11306 UNI_DIFF_OPTS=-c
11307fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011309$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011310
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011311case "$host_os" in
11312linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011313
11314$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011315
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011316 ;;
11317esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011318LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011319CYGWIN_CMT="#"
11320UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011321case "$host_os" in
11322linux*)
11323 LINUX_CMT=
11324 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011325cygwin)
11326 CYGWIN_CMT=
11327 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011328 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011329esac
11330
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011331
11332
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011333case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011334linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011335 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11336 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011337 { $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 +010011338$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011339 fi
11340 ;;
11341esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011342case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011343linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011344 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011345 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011346 { $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 +010011347$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011348 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011350$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011351 mandir=/usr/share/man
11352 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011353 fi
11354;;
11355esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011356if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011357 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011358 root_prefix="$ac_default_prefix"
11359 else
11360 root_prefix="$prefix"
11361 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011362 root_bindir=$bindir
11363 root_sbindir=$sbindir
11364 root_libdir=$libdir
11365 root_sysconfdir=$sysconfdir
11366else
11367 root_bindir='${root_prefix}/bin'
11368 root_sbindir='${root_prefix}/sbin'
11369 root_libdir='${root_prefix}/lib'
11370 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011371fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011372if test "$bindir" != '${exec_prefix}/bin'; then
11373 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011375$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011376fi
11377if test "$sbindir" != '${exec_prefix}/sbin'; then
11378 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011380$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011381fi
11382if test "$libdir" != '${exec_prefix}/lib'; then
11383 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011385$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011386fi
11387if test "$sysconfdir" != '${prefix}/etc'; then
11388 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011390$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011391fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011392
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011393
11394
11395
11396
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011397
11398# Check whether --with-multiarch was given.
11399if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050011400 withval=$with_multiarch; if test "$withval" = "lib64"; then
11401 libdir=/usr/lib64
11402 root_libdir=/lib64
11403else
11404 libdir=$libdir/$withval
11405 root_libdir=$root_libdir/$withval
11406fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011407
11408fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050011409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11410$as_echo_n "checking whether we can link with -static... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011411if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011412 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011413else
11414 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011416/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011417#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011418int
11419main ()
11420{
Theodore Ts'oae851481997-04-29 18:13:24 +000011421fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011422 ;
11423 return 0;
11424}
11425_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011426if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011427 ac_cv_e2fsprogs_use_static=yes
11428else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011429 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011430fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011431rm -f core conftest.err conftest.$ac_objext \
11432 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011433LDFLAGS=$SAVE_LDFLAGS
11434fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011435
Theodore Ts'odefde781999-01-04 07:39:19 +000011436case "$host_os" in
11437solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011438 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011439;;
11440esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011442$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011443LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011444if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011445 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011446fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011447
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011448case "$host_os" in
11449darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011451$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011452
11453$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011454
11455 ;;
11456esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011457SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11458ET_DIR=`cd ${srcdir}/lib/et; pwd`
11459
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011460
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011461if test "$cross_compiling" = yes ; then
11462 DO_TEST_SUITE=
11463else
11464 DO_TEST_SUITE=check
11465fi
11466
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011467INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11468if test -n "$CPPFLAGS" ; then
11469 INCLUDES="$INCLUDES $CPPFLAGS"
11470fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011471if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011472 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011473fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050011474if test -n "$WITH_DIET_LIBC" ; then
11475 INCLUDES="$INCLUDES -D_REENTRANT"
11476fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011477
Theodore Ts'odd947da2005-11-09 18:37:07 -040011478if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050011479 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040011480 BUILD_LDFLAGS="$LDFLAGS"
11481else
11482 BUILD_CFLAGS=
11483 BUILD_LDFLAGS=
11484fi
11485
11486
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011487test -d lib || mkdir lib
11488test -d include || mkdir include
11489test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011490test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011491for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040011492 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011493 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11494 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011495 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011496 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011497 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11498 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011499 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011500 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011501 resize/Makefile doc/Makefile intl/Makefile \
11502 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011503 if test -d `dirname ${srcdir}/$i` ; then
11504 outlist="$outlist $i"
11505 fi
11506done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011507ac_config_files="$ac_config_files $outlist"
11508
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011509cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011510# This file is a shell script that caches the results of configure
11511# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011512# scripts and configure runs, see configure's option --config-cache.
11513# It is not useful on other systems. If it contains results you don't
11514# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011515#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011516# config.status only pays attention to the cache file if you give it
11517# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011518#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011519# `ac_cv_env_foo' variables (set or unset) will be overridden when
11520# loading this file, other *unset* `ac_cv_foo' will be assigned the
11521# following values.
11522
11523_ACEOF
11524
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011525# The following way of writing the cache mishandles newlines in values,
11526# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011527# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011528# Ultrix sh set writes to stderr and can't be redirected directly,
11529# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011530(
11531 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11532 eval ac_val=\$$ac_var
11533 case $ac_val in #(
11534 *${as_nl}*)
11535 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011536 *_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 +010011537$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011538 esac
11539 case $ac_var in #(
11540 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011542 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011543 esac ;;
11544 esac
11545 done
11546
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011547 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011548 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11549 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011550 # `set' does not quote correctly, so add quotes: double-quote
11551 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011552 sed -n \
11553 "s/'/'\\\\''/g;
11554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011555 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011556 *)
11557 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011559 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011560 esac |
11561 sort
11562) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011563 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011564 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011565 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011566 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11568 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11570 :end' >>confcache
11571if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11572 if test -w "$cache_file"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011573 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011574 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011575$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011576 if test ! -f "$cache_file" || test -h "$cache_file"; then
11577 cat confcache >"$cache_file"
11578 else
11579 case $cache_file in #(
11580 */* | ?:*)
11581 mv -f confcache "$cache_file"$$ &&
11582 mv -f "$cache_file"$$ "$cache_file" ;; #(
11583 *)
11584 mv -f confcache "$cache_file" ;;
11585 esac
11586 fi
11587 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011588 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011589 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011590$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011591 fi
11592fi
11593rm -f confcache
11594
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011595test "x$prefix" = xNONE && prefix=$ac_default_prefix
11596# Let make expand exec_prefix.
11597test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11598
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011599DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011600
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011601ac_libobjs=
11602ac_ltlibobjs=
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011603U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011604for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11605 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011606 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011607 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011608 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11609 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011610 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11611 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011612done
11613LIBOBJS=$ac_libobjs
11614
11615LTLIBOBJS=$ac_ltlibobjs
11616
11617
11618
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011619
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011620: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011621ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011622ac_clean_files_save=$ac_clean_files
11623ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011624{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011625$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011626as_write_fail=0
11627cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011628#! $SHELL
11629# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011630# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011631# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011632# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011634debug=false
11635ac_cs_recheck=false
11636ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011637
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011638SHELL=\${CONFIG_SHELL-$SHELL}
11639export SHELL
11640_ASEOF
11641cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11642## -------------------- ##
11643## M4sh Initialization. ##
11644## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011645
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011646# Be more Bourne compatible
11647DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011648if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011649 emulate sh
11650 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011651 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011652 # is contrary to our usage. Disable this feature.
11653 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011654 setopt NO_GLOB_SUBST
11655else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011656 case `(set -o) 2>/dev/null` in #(
11657 *posix*) :
11658 set -o posix ;; #(
11659 *) :
11660 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011661esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011662fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011663
11664
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011665as_nl='
11666'
11667export as_nl
11668# Printing a long string crashes Solaris 7 /usr/bin/printf.
11669as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11670as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11671as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011672# Prefer a ksh shell builtin over an external printf program on Solaris,
11673# but without wasting forks for bash or zsh.
11674if test -z "$BASH_VERSION$ZSH_VERSION" \
11675 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11676 as_echo='print -r --'
11677 as_echo_n='print -rn --'
11678elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011679 as_echo='printf %s\n'
11680 as_echo_n='printf %s'
11681else
11682 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11683 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11684 as_echo_n='/usr/ucb/echo -n'
11685 else
11686 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11687 as_echo_n_body='eval
11688 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011689 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011690 *"$as_nl"*)
11691 expr "X$arg" : "X\\(.*\\)$as_nl";
11692 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11693 esac;
11694 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11695 '
11696 export as_echo_n_body
11697 as_echo_n='sh -c $as_echo_n_body as_echo'
11698 fi
11699 export as_echo_body
11700 as_echo='sh -c $as_echo_body as_echo'
11701fi
11702
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011703# The user is always right.
11704if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011705 PATH_SEPARATOR=:
11706 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11707 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11708 PATH_SEPARATOR=';'
11709 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011710fi
11711
Theodore Ts'oe1052142006-10-21 21:46:47 -040011712
11713# IFS
11714# We need space, tab and new line, in precisely that order. Quoting is
11715# there to prevent editors from complaining about space-tab.
11716# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11717# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011718IFS=" "" $as_nl"
11719
11720# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011721as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011722case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011723 *[\\/]* ) as_myself=$0 ;;
11724 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011725for as_dir in $PATH
11726do
11727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011729 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11730 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011731IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011732
Theodore Ts'oe1052142006-10-21 21:46:47 -040011733 ;;
11734esac
11735# We did not find ourselves, most probably we were run as `sh COMMAND'
11736# in which case we are not to be found in the path.
11737if test "x$as_myself" = x; then
11738 as_myself=$0
11739fi
11740if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011741 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011742 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011743fi
11744
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011745# Unset variables that we do not need and which cause bugs (e.g. in
11746# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11747# suppresses any "Segmentation fault" message there. '((' could
11748# trigger a bug in pdksh 5.2.14.
11749for as_var in BASH_ENV ENV MAIL MAILPATH
11750do eval test x\${$as_var+set} = xset \
11751 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011752done
11753PS1='$ '
11754PS2='> '
11755PS4='+ '
11756
11757# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011758LC_ALL=C
11759export LC_ALL
11760LANGUAGE=C
11761export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011762
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011763# CDPATH.
11764(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11765
11766
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011767# as_fn_error STATUS ERROR [LINENO LOG_FD]
11768# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011769# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11770# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011771# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011772as_fn_error ()
11773{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011774 as_status=$1; test $as_status -eq 0 && as_status=1
11775 if test "$4"; then
11776 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11777 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011778 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011779 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011780 as_fn_exit $as_status
11781} # as_fn_error
11782
11783
11784# as_fn_set_status STATUS
11785# -----------------------
11786# Set $? to STATUS, without forking.
11787as_fn_set_status ()
11788{
11789 return $1
11790} # as_fn_set_status
11791
11792# as_fn_exit STATUS
11793# -----------------
11794# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11795as_fn_exit ()
11796{
11797 set +e
11798 as_fn_set_status $1
11799 exit $1
11800} # as_fn_exit
11801
11802# as_fn_unset VAR
11803# ---------------
11804# Portably unset VAR.
11805as_fn_unset ()
11806{
11807 { eval $1=; unset $1;}
11808}
11809as_unset=as_fn_unset
11810# as_fn_append VAR VALUE
11811# ----------------------
11812# Append the text in VALUE to the end of the definition contained in VAR. Take
11813# advantage of any shell optimizations that allow amortized linear growth over
11814# repeated appends, instead of the typical quadratic growth present in naive
11815# implementations.
11816if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11817 eval 'as_fn_append ()
11818 {
11819 eval $1+=\$2
11820 }'
11821else
11822 as_fn_append ()
11823 {
11824 eval $1=\$$1\$2
11825 }
11826fi # as_fn_append
11827
11828# as_fn_arith ARG...
11829# ------------------
11830# Perform arithmetic evaluation on the ARGs, and store the result in the
11831# global $as_val. Take advantage of shells that can avoid forks. The arguments
11832# must be portable across $(()) and expr.
11833if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11834 eval 'as_fn_arith ()
11835 {
11836 as_val=$(( $* ))
11837 }'
11838else
11839 as_fn_arith ()
11840 {
11841 as_val=`expr "$@" || test $? -eq 1`
11842 }
11843fi # as_fn_arith
11844
11845
Theodore Ts'oe1052142006-10-21 21:46:47 -040011846if expr a : '\(a\)' >/dev/null 2>&1 &&
11847 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11848 as_expr=expr
11849else
11850 as_expr=false
11851fi
11852
11853if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11854 as_basename=basename
11855else
11856 as_basename=false
11857fi
11858
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011859if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11860 as_dirname=dirname
11861else
11862 as_dirname=false
11863fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011864
Theodore Ts'oe1052142006-10-21 21:46:47 -040011865as_me=`$as_basename -- "$0" ||
11866$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11867 X"$0" : 'X\(//\)$' \| \
11868 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011869$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011870 sed '/^.*\/\([^/][^/]*\)\/*$/{
11871 s//\1/
11872 q
11873 }
11874 /^X\/\(\/\/\)$/{
11875 s//\1/
11876 q
11877 }
11878 /^X\/\(\/\).*/{
11879 s//\1/
11880 q
11881 }
11882 s/.*/./; q'`
11883
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011884# Avoid depending upon Character Ranges.
11885as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11886as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11887as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11888as_cr_digits='0123456789'
11889as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011890
11891ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011892case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011893-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011894 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011895 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011896 xy) ECHO_C='\c';;
11897 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11898 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011899 esac;;
11900*)
11901 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011902esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011903
11904rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011905if test -d conf$$.dir; then
11906 rm -f conf$$.dir/conf$$.file
11907else
11908 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011909 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011910fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011911if (echo >conf$$.file) 2>/dev/null; then
11912 if ln -s conf$$.file conf$$ 2>/dev/null; then
11913 as_ln_s='ln -s'
11914 # ... but there are two gotchas:
11915 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11916 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011917 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011918 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011919 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011920 elif ln conf$$.file conf$$ 2>/dev/null; then
11921 as_ln_s=ln
11922 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011923 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011924 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011925else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011926 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011927fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011928rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11929rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011930
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011931
11932# as_fn_mkdir_p
11933# -------------
11934# Create "$as_dir" as a directory, including parents if necessary.
11935as_fn_mkdir_p ()
11936{
11937
11938 case $as_dir in #(
11939 -*) as_dir=./$as_dir;;
11940 esac
11941 test -d "$as_dir" || eval $as_mkdir_p || {
11942 as_dirs=
11943 while :; do
11944 case $as_dir in #(
11945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11946 *) as_qdir=$as_dir;;
11947 esac
11948 as_dirs="'$as_qdir' $as_dirs"
11949 as_dir=`$as_dirname -- "$as_dir" ||
11950$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11951 X"$as_dir" : 'X\(//\)[^/]' \| \
11952 X"$as_dir" : 'X\(//\)$' \| \
11953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11954$as_echo X"$as_dir" |
11955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11956 s//\1/
11957 q
11958 }
11959 /^X\(\/\/\)[^/].*/{
11960 s//\1/
11961 q
11962 }
11963 /^X\(\/\/\)$/{
11964 s//\1/
11965 q
11966 }
11967 /^X\(\/\).*/{
11968 s//\1/
11969 q
11970 }
11971 s/.*/./; q'`
11972 test -d "$as_dir" && break
11973 done
11974 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011975 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011976
11977
11978} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011979if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011980 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011981else
11982 test -d ./-p && rmdir ./-p
11983 as_mkdir_p=false
11984fi
11985
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011986
11987# as_fn_executable_p FILE
11988# -----------------------
11989# Test if FILE is an executable regular file.
11990as_fn_executable_p ()
11991{
11992 test -f "$1" && test -x "$1"
11993} # as_fn_executable_p
11994as_test_x='test -x'
11995as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011996
11997# Sed expression to map a string onto a valid CPP name.
11998as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11999
12000# Sed expression to map a string onto a valid variable name.
12001as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12002
12003
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012004exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012005## ----------------------------------- ##
12006## Main body of $CONFIG_STATUS script. ##
12007## ----------------------------------- ##
12008_ASEOF
12009test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012010
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12012# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012013# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040012014# values after options handling.
12015ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012016This file was extended by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012017generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012018
12019 CONFIG_FILES = $CONFIG_FILES
12020 CONFIG_HEADERS = $CONFIG_HEADERS
12021 CONFIG_LINKS = $CONFIG_LINKS
12022 CONFIG_COMMANDS = $CONFIG_COMMANDS
12023 $ $0 $@
12024
Theodore Ts'oe1052142006-10-21 21:46:47 -040012025on `(hostname || uname -n) 2>/dev/null | sed 1q`
12026"
12027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012028_ACEOF
12029
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012030case $ac_config_files in *"
12031"*) set x $ac_config_files; shift; ac_config_files=$*;;
12032esac
12033
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012034case $ac_config_headers in *"
12035"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12036esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012037
12038
12039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012040# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012041config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012042config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012043config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012044
Theodore Ts'oe1052142006-10-21 21:46:47 -040012045_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012046
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012048ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012049\`$as_me' instantiates files and other configuration actions
12050from templates according to the current configuration. Unless the files
12051and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012052
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012053Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012054
12055 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012056 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012057 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012058 -q, --quiet, --silent
12059 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012060 -d, --debug don't remove temporary files
12061 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012062 --file=FILE[:TEMPLATE]
12063 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012064 --header=FILE[:TEMPLATE]
12065 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012066
12067Configuration files:
12068$config_files
12069
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012070Configuration headers:
12071$config_headers
12072
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012073Configuration commands:
12074$config_commands
12075
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012076Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012077
Theodore Ts'oe1052142006-10-21 21:46:47 -040012078_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012080ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012081ac_cs_version="\\
12082config.status
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012083configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012084 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012085
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012086Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012087This config.status script is free software; the Free Software Foundation
12088gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040012089
12090ac_pwd='$ac_pwd'
12091srcdir='$srcdir'
12092INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012093AWK='$AWK'
12094test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012095_ACEOF
12096
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12098# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012099ac_need_defaults=:
12100while test $# != 0
12101do
12102 case $1 in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012103 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12105 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012106 ac_shift=:
12107 ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012108 --*=)
12109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12110 ac_optarg=
12111 ac_shift=:
12112 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012113 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012114 ac_option=$1
12115 ac_optarg=$2
12116 ac_shift=shift
12117 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012118 esac
12119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012120 case $ac_option in
12121 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12123 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012124 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012125 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012126 --config | --confi | --conf | --con | --co | --c )
12127 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012128 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012129 debug=: ;;
12130 --file | --fil | --fi | --f )
12131 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012132 case $ac_optarg in
12133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012134 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012135 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012136 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012137 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012138 --header | --heade | --head | --hea )
12139 $ac_shift
12140 case $ac_optarg in
12141 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12142 esac
12143 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12144 ac_need_defaults=false;;
12145 --he | --h)
12146 # Conflict between --help and --header
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012147 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012148Try \`$0 --help' for more information.";;
12149 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012150 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12152 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12153 ac_cs_silent=: ;;
12154
12155 # This is an error.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012156 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012157Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012158
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012159 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012160 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012161
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012162 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012163 shift
12164done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012165
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012166ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012167
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012168if $ac_cs_silent; then
12169 exec 6>/dev/null
12170 ac_configure_extra_args="$ac_configure_extra_args --silent"
12171fi
12172
12173_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012175if \$ac_cs_recheck; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012176 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012177 shift
12178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12179 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012180 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012181 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012182fi
12183
12184_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012186exec 5>>config.log
12187{
12188 echo
12189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12190## Running $as_me. ##
12191_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012192 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012193} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012194
Theodore Ts'oe1052142006-10-21 21:46:47 -040012195_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012198# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012199#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012200# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012201 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012202 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012203 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012204 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12205 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012206
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012207
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012208_ACEOF
12209
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012211
12212# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012213for ac_config_target in $ac_config_targets
12214do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012215 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012216 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012217 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12218 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12219
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012220 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012221 esac
12222done
12223
Theodore Ts'oe1052142006-10-21 21:46:47 -040012224
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012225# If the user did not use the arguments to specify the items to instantiate,
12226# then the envvar interface is used. Set only those that are not.
12227# We use the long form for the default assignment because of an extremely
12228# bizarre bug on SunOS 4.1.3.
12229if $ac_need_defaults; then
12230 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012231 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12233fi
12234
12235# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012236# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012237# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012238# Hook for its removal unless debugging.
12239# Note that there is a small window in which the directory will not be cleaned:
12240# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012241$debug ||
12242{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012243 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040012244 trap 'exit_status=$?
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012245 : "${ac_tmp:=$tmp}"
12246 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040012247' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012248 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012249}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012250# Create a (secure) tmp directory for tmp files.
12251
12252{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012253 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012254 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012255} ||
12256{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012257 tmp=./conf$$-$RANDOM
12258 (umask 077 && mkdir "$tmp")
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012259} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12260ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012261
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012262# Set up the scripts for CONFIG_FILES section.
12263# No need to generate them if there are no CONFIG_FILES.
12264# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012265if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012266
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012267if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12268 ac_cs_awk_getline=:
12269 ac_cs_awk_pipe_init=
12270 ac_cs_awk_read_file='
12271 while ((getline aline < (F[key])) > 0)
12272 print(aline)
12273 close(F[key])'
12274 ac_cs_awk_pipe_fini=
12275else
12276 ac_cs_awk_getline=false
12277 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12278 ac_cs_awk_read_file='
12279 print "|#_!!_#|"
12280 print "cat " F[key] " &&"
12281 '$ac_cs_awk_pipe_init
12282 # The final `:' finishes the AND list.
12283 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12284fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012285ac_cr=`echo X | tr X '\015'`
12286# On cygwin, bash can eat \r inside `` if the user requested igncr.
12287# But we know of no other shell where ac_cr would be empty at this
12288# point, so we can use a bashism as a fallback.
12289if test "x$ac_cr" = x; then
12290 eval ac_cr=\$\'\\r\'
12291fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012292ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12293if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012294 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012295else
12296 ac_cs_awk_cr=$ac_cr
12297fi
12298
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012299echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012300_ACEOF
12301
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012302# Create commands to substitute file output variables.
12303{
12304 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012305 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012306 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12307 echo "_ACAWK" &&
12308 echo "_ACEOF"
12309} >conf$$files.sh &&
12310. ./conf$$files.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012311 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012312rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012313
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012314{
12315 echo "cat >conf$$subs.awk <<_ACEOF" &&
12316 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12317 echo "_ACEOF"
12318} >conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12320ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012321ac_delim='%!_!# '
12322for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012323 . ./conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012325
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012326 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12327 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012328 break
12329 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012331 else
12332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012333 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012334done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012335rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012336
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012338cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012339_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012340sed -n '
12341h
12342s/^/S["/; s/!.*/"]=/
12343p
12344g
12345s/^[^!]*!//
12346:repl
12347t repl
12348s/'"$ac_delim"'$//
12349t delim
12350:nl
12351h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012352s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012353t more1
12354s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12355p
12356n
12357b repl
12358:more1
12359s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12360p
12361g
12362s/.\{148\}//
12363t nl
12364:delim
12365h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012366s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012367t more2
12368s/["\\]/\\&/g; s/^/"/; s/$/"/
12369p
12370b
12371:more2
12372s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12373p
12374g
12375s/.\{148\}//
12376t delim
12377' <conf$$subs.awk | sed '
12378/^[^""]/{
12379 N
12380 s/\n//
12381}
12382' >>$CONFIG_STATUS || ac_write_fail=1
12383rm -f conf$$subs.awk
12384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12385_ACAWK
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012386cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012387 for (key in S) S_is_set[key] = 1
12388 FS = ""
12389 \$ac_cs_awk_pipe_init
12390}
12391{
12392 line = $ 0
12393 nfields = split(line, field, "@")
12394 substed = 0
12395 len = length(field[1])
12396 for (i = 2; i < nfields; i++) {
12397 key = field[i]
12398 keylen = length(key)
12399 if (S_is_set[key]) {
12400 value = S[key]
12401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12402 len += length(value) + length(field[++i])
12403 substed = 1
12404 } else
12405 len += 1 + keylen
12406 }
12407 if (nfields == 3 && !substed) {
12408 key = field[2]
12409 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12410 \$ac_cs_awk_read_file
12411 next
12412 }
12413 }
12414 print line
12415}
12416\$ac_cs_awk_pipe_fini
12417_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012418_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12420if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12421 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12422else
12423 cat
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012424fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12425 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012426_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012427
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012428# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12429# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040012430# trailing colons and then remove the whole line if VPATH becomes empty
12431# (actually we leave an empty line to preserve line numbers).
12432if test "x$srcdir" = x.; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012433 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12434h
12435s///
12436s/^/:/
12437s/[ ]*$/:/
12438s/:\$(srcdir):/:/g
12439s/:\${srcdir}:/:/g
12440s/:@srcdir@:/:/g
12441s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012442s/:*$//
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012443x
12444s/\(=[ ]*\).*/\1/
12445G
12446s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012447s/^[^=]*=[ ]*$//
12448}'
12449fi
12450
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012452fi # test -n "$CONFIG_FILES"
12453
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012454# Set up the scripts for CONFIG_HEADERS section.
12455# No need to generate them if there are no CONFIG_HEADERS.
12456# This happens for instance with `./config.status Makefile'.
12457if test -n "$CONFIG_HEADERS"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012458cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012459BEGIN {
12460_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012461
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012462# Transform confdefs.h into an awk script `defines.awk', embedded as
12463# here-document in config.status, that substitutes the proper values into
12464# config.h.in to produce config.h.
12465
12466# Create a delimiter string that does not exist in confdefs.h, to ease
12467# handling of long lines.
12468ac_delim='%!_!# '
12469for ac_last_try in false false :; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012470 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12471 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012472 break
12473 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012474 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012475 else
12476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12477 fi
12478done
12479
12480# For the awk script, D is an array of macro values keyed by name,
12481# likewise P contains macro parameters if any. Preserve backslash
12482# newline sequences.
12483
12484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12485sed -n '
12486s/.\{148\}/&'"$ac_delim"'/g
12487t rset
12488:rset
12489s/^[ ]*#[ ]*define[ ][ ]*/ /
12490t def
12491d
12492:def
12493s/\\$//
12494t bsnl
12495s/["\\]/\\&/g
12496s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12497D["\1"]=" \3"/p
12498s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12499d
12500:bsnl
12501s/["\\]/\\&/g
12502s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12503D["\1"]=" \3\\\\\\n"\\/p
12504t cont
12505s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12506t cont
12507d
12508:cont
12509n
12510s/.\{148\}/&'"$ac_delim"'/g
12511t clear
12512:clear
12513s/\\$//
12514t bsnlc
12515s/["\\]/\\&/g; s/^/"/; s/$/"/p
12516d
12517:bsnlc
12518s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12519b cont
12520' <confdefs.h | sed '
12521s/'"$ac_delim"'/"\\\
12522"/g' >>$CONFIG_STATUS || ac_write_fail=1
12523
12524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12525 for (key in D) D_is_set[key] = 1
12526 FS = ""
12527}
12528/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12529 line = \$ 0
12530 split(line, arg, " ")
12531 if (arg[1] == "#") {
12532 defundef = arg[2]
12533 mac1 = arg[3]
12534 } else {
12535 defundef = substr(arg[1], 2)
12536 mac1 = arg[2]
12537 }
12538 split(mac1, mac2, "(") #)
12539 macro = mac2[1]
12540 prefix = substr(line, 1, index(line, defundef) - 1)
12541 if (D_is_set[macro]) {
12542 # Preserve the white space surrounding the "#".
12543 print prefix "define", macro P[macro] D[macro]
12544 next
12545 } else {
12546 # Replace #undef with comments. This is necessary, for example,
12547 # in the case of _POSIX_SOURCE, which is predefined and required
12548 # on some systems where configure will not decide to define it.
12549 if (defundef == "undef") {
12550 print "/*", prefix defundef, macro, "*/"
12551 next
12552 }
12553 }
12554}
12555{ print }
12556_ACAWK
12557_ACEOF
12558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012559 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012560fi # test -n "$CONFIG_HEADERS"
12561
12562
12563eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012564shift
12565for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012566do
12567 case $ac_tag in
12568 :[FHLC]) ac_mode=$ac_tag; continue;;
12569 esac
12570 case $ac_mode$ac_tag in
12571 :[FHL]*:*);;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012572 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012573 :[FH]-) ac_tag=-:-;;
12574 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12575 esac
12576 ac_save_IFS=$IFS
12577 IFS=:
12578 set x $ac_tag
12579 IFS=$ac_save_IFS
12580 shift
12581 ac_file=$1
12582 shift
12583
12584 case $ac_mode in
12585 :L) ac_source=$1;;
12586 :[FH])
12587 ac_file_inputs=
12588 for ac_f
12589 do
12590 case $ac_f in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012591 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012592 *) # Look for the file first in the build tree, then in the source tree
12593 # (if the path is not absolute). The absolute path cannot be DOS-style,
12594 # because $ac_f cannot contain `:'.
12595 test -f "$ac_f" ||
12596 case $ac_f in
12597 [\\/$]*) false;;
12598 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12599 esac ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012600 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012601 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012602 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012603 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012604 done
12605
12606 # Let's still pretend it is `configure' which instantiates (i.e., don't
12607 # use $as_me), people would be surprised to read:
12608 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012609 configure_input='Generated from '`
12610 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12611 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012612 if test x"$ac_file" != x-; then
12613 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012615$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012616 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012617 # Neutralize special characters interpreted by sed in replacement strings.
12618 case $configure_input in #(
12619 *\&* | *\|* | *\\* )
12620 ac_sed_conf_input=`$as_echo "$configure_input" |
12621 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12622 *) ac_sed_conf_input=$configure_input;;
12623 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012624
12625 case $ac_tag in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012626 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012628 esac
12629 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012630 esac
12631
Theodore Ts'oe1052142006-10-21 21:46:47 -040012632 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012633$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12634 X"$ac_file" : 'X\(//\)[^/]' \| \
12635 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012637$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12639 s//\1/
12640 q
12641 }
12642 /^X\(\/\/\)[^/].*/{
12643 s//\1/
12644 q
12645 }
12646 /^X\(\/\/\)$/{
12647 s//\1/
12648 q
12649 }
12650 /^X\(\/\).*/{
12651 s//\1/
12652 q
12653 }
12654 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012655 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012656 ac_builddir=.
12657
Theodore Ts'oe1052142006-10-21 21:46:47 -040012658case "$ac_dir" in
12659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12660*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012662 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012664 case $ac_top_builddir_sub in
12665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12667 esac ;;
12668esac
12669ac_abs_top_builddir=$ac_pwd
12670ac_abs_builddir=$ac_pwd$ac_dir_suffix
12671# for backward compatibility:
12672ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012673
12674case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012675 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012676 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012677 ac_top_srcdir=$ac_top_builddir_sub
12678 ac_abs_top_srcdir=$ac_pwd ;;
12679 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012680 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012681 ac_top_srcdir=$srcdir
12682 ac_abs_top_srcdir=$srcdir ;;
12683 *) # Relative name.
12684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12685 ac_top_srcdir=$ac_top_build_prefix$srcdir
12686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012687esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012689
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012690
Theodore Ts'oe1052142006-10-21 21:46:47 -040012691 case $ac_mode in
12692 :F)
12693 #
12694 # CONFIG_FILE
12695 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012696
12697 case $INSTALL in
12698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012700 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012701_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012702
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012704# If the template does not know about datarootdir, expand it.
12705# FIXME: This hack should be removed a few years after 2.60.
12706ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012707ac_sed_dataroot='
12708/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012709 p
12710 q
12711}
12712/@datadir@/p
12713/@docdir@/p
12714/@infodir@/p
12715/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012716/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012717case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012718*datarootdir*) ac_datarootdir_seen=yes;;
12719*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012720 { $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 +010012721$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012722_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012724 ac_datarootdir_hack='
12725 s&@datadir@&$datadir&g
12726 s&@docdir@&$docdir&g
12727 s&@infodir@&$infodir&g
12728 s&@localedir@&$localedir&g
12729 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012730 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012731esac
12732_ACEOF
12733
12734# Neutralize VPATH when `$srcdir' = `.'.
12735# Shell code in configure.ac might set extrasub.
12736# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12738ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012739$extrasub
12740_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012742:t
12743/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012744s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012745s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012746s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012747s&@srcdir@&$ac_srcdir&;t t
12748s&@abs_srcdir@&$ac_abs_srcdir&;t t
12749s&@top_srcdir@&$ac_top_srcdir&;t t
12750s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12751s&@builddir@&$ac_builddir&;t t
12752s&@abs_builddir@&$ac_abs_builddir&;t t
12753s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12754s&@INSTALL@&$ac_INSTALL&;t t
12755$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012756"
12757eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12758if $ac_cs_awk_getline; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012759 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012760else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012761 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12762fi \
12763 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012764
Theodore Ts'oe1052142006-10-21 21:46:47 -040012765test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012766 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12767 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12768 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012770which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012771$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012772which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012773
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012774 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012775 case $ac_file in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012776 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12777 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012778 esac \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012780 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012781 :H)
12782 #
12783 # CONFIG_HEADER
12784 #
12785 if test x"$ac_file" != x-; then
12786 {
12787 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012788 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12789 } >"$ac_tmp/config.h" \
12790 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12791 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012792 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12793$as_echo "$as_me: $ac_file is unchanged" >&6;}
12794 else
12795 rm -f "$ac_file"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012796 mv "$ac_tmp/config.h" "$ac_file" \
12797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012798 fi
12799 else
12800 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012801 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12802 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012803 fi
12804 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012805
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012806 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012807$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012808 ;;
12809 esac
12810
12811
12812 case $ac_file$ac_mode in
12813 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012814 for ac_file in $CONFIG_FILES; do
12815 # Support "outfile[:infile[:infile...]]"
12816 case "$ac_file" in
12817 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012818 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012819 # PO directories have a Makefile.in generated from Makefile.in.in.
12820 case "$ac_file" in */Makefile.in)
12821 # Adjust a relative srcdir.
12822 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12823 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12824 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12825 # In autoconf-2.13 it is called $ac_given_srcdir.
12826 # In autoconf-2.50 it is called $srcdir.
12827 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12828 case "$ac_given_srcdir" in
12829 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12830 /*) top_srcdir="$ac_given_srcdir" ;;
12831 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12832 esac
12833 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12834 rm -f "$ac_dir/POTFILES"
12835 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12836 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 -050012837 POMAKEFILEDEPS="POTFILES.in"
12838 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012839 # on $ac_dir but don't depend on user-specified configuration
12840 # parameters.
12841 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12842 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012843 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012844 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12845 fi
12846 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12847 # Hide the ALL_LINGUAS assigment from automake.
12848 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012849 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12850 else
12851 # The set of available languages was given in configure.in.
12852 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012853 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012854 # Compute POFILES
12855 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12856 # Compute UPDATEPOFILES
12857 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12858 # Compute DUMMYPOFILES
12859 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12860 # Compute GMOFILES
12861 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012862 case "$ac_given_srcdir" in
12863 .) srcdirpre= ;;
12864 *) srcdirpre='$(srcdir)/' ;;
12865 esac
12866 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012867 UPDATEPOFILES=
12868 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012869 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012870 for lang in $ALL_LINGUAS; do
12871 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012872 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12873 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012874 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012875 done
12876 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12877 # environment variable.
12878 INST_LINGUAS=
12879 if test -n "$ALL_LINGUAS"; then
12880 for presentlang in $ALL_LINGUAS; do
12881 useit=no
12882 if test "%UNSET%" != "$LINGUAS"; then
12883 desiredlanguages="$LINGUAS"
12884 else
12885 desiredlanguages="$ALL_LINGUAS"
12886 fi
12887 for desiredlang in $desiredlanguages; do
12888 # Use the presentlang catalog if desiredlang is
12889 # a. equal to presentlang, or
12890 # b. a variant of presentlang (because in this case,
12891 # presentlang can be used as a fallback for messages
12892 # which are not translated in the desiredlang catalog).
12893 case "$desiredlang" in
12894 "$presentlang"*) useit=yes;;
12895 esac
12896 done
12897 if test $useit = yes; then
12898 INST_LINGUAS="$INST_LINGUAS $presentlang"
12899 fi
12900 done
12901 fi
12902 CATALOGS=
12903 if test -n "$INST_LINGUAS"; then
12904 for lang in $INST_LINGUAS; do
12905 CATALOGS="$CATALOGS $lang.gmo"
12906 done
12907 fi
12908 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012909 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 -040012910 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12911 if test -f "$f"; then
12912 case "$f" in
12913 *.orig | *.bak | *~) ;;
12914 *) cat "$f" >> "$ac_dir/Makefile" ;;
12915 esac
12916 fi
12917 done
12918 fi
12919 ;;
12920 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012921 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012922
Theodore Ts'oe1052142006-10-21 21:46:47 -040012923 esac
12924done # for ac_tag
12925
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012926
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012927as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012928_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012929ac_clean_files=$ac_clean_files_save
12930
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012931test $ac_write_fail = 0 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012932 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012934
12935# configure is writing to config.log, and then calls config.status.
12936# config.status does its own redirection, appending to config.log.
12937# Unfortunately, on DOS this fails, as config.log is still kept open
12938# by configure, so config.status won't be able to write to it; its
12939# output is simply discarded. So we exec the FD to /dev/null,
12940# effectively closing config.log, so it can be properly (re)opened and
12941# appended to by config.status. When coming back to configure, we
12942# need to make the FD available again.
12943if test "$no_create" != yes; then
12944 ac_cs_success=:
12945 ac_config_status_args=
12946 test "$silent" = yes &&
12947 ac_config_status_args="$ac_config_status_args --quiet"
12948 exec 5>/dev/null
12949 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12950 exec 5>>config.log
12951 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12952 # would make configure fail if this is the last instruction.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012953 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012954fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012955if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012957$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12958fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012959
Theodore Ts'oee683a12005-02-05 15:53:56 -050012960if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi