blob: 814b2f4bb8a6ed2e54d8696a118bb511143ebbc7 [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.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006# 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.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100090as_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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000135# 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000193test 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 :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000239 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"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000355 } || 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000359
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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000403# 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000410 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000415 $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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000488 # 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.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000526 # 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 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000528 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000535 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000547as_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.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000561# 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
839enable_checker
840enable_jbd_debug
841enable_blkid_debug
842enable_testio_debug
843enable_libuuid
844enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500845enable_quota
Theodore Ts'o3df60142013-06-16 16:14:40 -0400846enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100847enable_debugfs
848enable_imager
849enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500850enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100851enable_fsck
852enable_e2initrd_helper
853enable_tls
854enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000855enable_mmp
Tony Breeds1625bf42012-07-30 14:44:12 -0400856enable_bmap_stats
857enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100858enable_nls
859with_gnu_ld
860enable_rpath
861with_libiconv_prefix
862with_included_gettext
863with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400864with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100865'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400866 ac_precious_vars='build_alias
867host_alias
868target_alias
869CC
870CFLAGS
871LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400872LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400873CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400874CPP
875PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400876
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000877
878# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500879ac_init_help=
880ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100881ac_unrecognized_opts=
882ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000883# The variables have the same names as the options, with
884# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500885cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000886exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000887no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000888no_recursion=
889prefix=NONE
890program_prefix=NONE
891program_suffix=NONE
892program_transform_name=s,x,x,
893silent=
894site=
895srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000896verbose=
897x_includes=NONE
898x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500899
900# Installation directory options.
901# These are left unexpanded so users can "make install exec_prefix=/foo"
902# and all the variables that are supposed to be based on exec_prefix
903# by default will actually change.
904# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400905# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000906bindir='${exec_prefix}/bin'
907sbindir='${exec_prefix}/sbin'
908libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400909datarootdir='${prefix}/share'
910datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000911sysconfdir='${prefix}/etc'
912sharedstatedir='${prefix}/com'
913localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000914includedir='${prefix}/include'
915oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400916docdir='${datarootdir}/doc/${PACKAGE}'
917infodir='${datarootdir}/info'
918htmldir='${docdir}'
919dvidir='${docdir}'
920pdfdir='${docdir}'
921psdir='${docdir}'
922libdir='${exec_prefix}/lib'
923localedir='${datarootdir}/locale'
924mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000925
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000926ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400927ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000928for ac_option
929do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400932 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000933 ac_prev=
934 continue
935 fi
936
Theodore Ts'oe1052142006-10-21 21:46:47 -0400937 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000938 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 *=) ac_optarg= ;;
940 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400941 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000942
943 # Accept the important Cygnus configure options, so we can diagnose typos.
944
Theodore Ts'oe1052142006-10-21 21:46:47 -0400945 case $ac_dashdash$ac_option in
946 --)
947 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000948
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
950 ac_prev=bindir ;;
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500952 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000953
954 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500955 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500957 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000958
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500964 cache_file=$ac_optarg ;;
965
966 --config-cache | -C)
967 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000968
Theodore Ts'oe1052142006-10-21 21:46:47 -0400969 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000970 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500972 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000973
Theodore Ts'oe1052142006-10-21 21:46:47 -0400974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
980
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000981 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100982 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000983 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000985 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990"enable_$ac_useropt"
991"*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400996
997 -docdir | --docdir | --docdi | --doc | --do)
998 ac_prev=docdir ;;
999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 docdir=$ac_optarg ;;
1001
1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003 ac_prev=dvidir ;;
1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001006
1007 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001008 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001009 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001011 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016"enable_$ac_useropt"
1017"*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001022
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001030 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001031
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1034 with_gas=yes ;;
1035
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001042
1043 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001044 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001045 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001046 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001047
Theodore Ts'oe1052142006-10-21 21:46:47 -04001048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 ac_prev=htmldir ;;
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 | --ht=*)
1052 htmldir=$ac_optarg ;;
1053
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001059 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001060
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 ac_prev=infodir ;;
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001064 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001065
1066 -libdir | --libdir | --libdi | --libd)
1067 ac_prev=libdir ;;
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001069 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001070
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001076 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001077
Theodore Ts'oe1052142006-10-21 21:46:47 -04001078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1082
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001083 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001084 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001088 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001089
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 ac_prev=mandir ;;
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001093 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001094
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1097 with_fp=no ;;
1098
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001100 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001101 no_create=yes ;;
1102
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 no_recursion=yes ;;
1106
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001114 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001115
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 ac_prev=prefix ;;
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001119 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001120
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001126 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001127
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001133 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001134
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001150 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001151
Theodore Ts'oe1052142006-10-21 21:46:47 -04001152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 ac_prev=pdfdir ;;
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1156
1157 -psdir | --psdir | --psdi | --psd | --ps)
1158 ac_prev=psdir ;;
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 psdir=$ac_optarg ;;
1161
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1164 silent=yes ;;
1165
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001170 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001171
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001181 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001182
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001186 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001187
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001191 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001192
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001198 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001199
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 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001203 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001204
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1207
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001210
1211 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001213 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001215 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220"with_$ac_useropt"
1221"*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001226
1227 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001229 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001231 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236"with_$ac_useropt"
1237"*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001242
1243 --x)
1244 # Obsolete; use --with-x.
1245 with_x=yes ;;
1246
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001252 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001253
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001259 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001260
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001261 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001263 ;;
1264
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001265 *=*)
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001270 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001271 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001272 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001273 export $ac_envvar ;;
1274
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001275 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001276 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001277 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001279 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001281 ;;
1282
1283 esac
1284done
1285
1286if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001288 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001289fi
1290
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001291if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1293 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001295 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 esac
1297fi
1298
1299# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001300for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001304do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001305 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001306 # Remove trailing slashes.
1307 case $ac_val in
1308 */ )
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1311 esac
1312 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001313 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001316 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001318done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001319
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001320# There might be people who depend on the old broken behavior: `$host'
1321# used to hold the argument of --host etc.
1322# FIXME: To remove some day.
1323build=$build_alias
1324host=$host_alias
1325target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001327# FIXME: To remove some day.
1328if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001331 elif test "x$build_alias" != "x$host_alias"; then
1332 cross_compiling=yes
1333 fi
1334fi
1335
1336ac_tool_prefix=
1337test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339test "$silent" = yes && exec 6>/dev/null
1340
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001341
Theodore Ts'oe1052142006-10-21 21:46:47 -04001342ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343ac_ls_di=`ls -di .` &&
1344ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001345 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001346test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001347 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001348
1349
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001350# Find the source files, if location was not specified.
1351if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001353 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001377 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001378 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001379 srcdir=..
1380 fi
1381else
1382 ac_srcdir_defaulted=no
1383fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001384if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001386 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001387fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001388ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001391 pwd)`
1392# When building in place, set srcdir=.
1393if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 srcdir=.
1395fi
1396# Remove unnecessary trailing slashes from srcdir.
1397# Double slashes in file names in object file debugging info
1398# mess up M-x gdb in Emacs.
1399case $srcdir in
1400*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401esac
1402for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001408
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001409#
1410# Report the --help message.
1411#
1412if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1415 cat <<_ACEOF
1416\`configure' configures this package to adapt to many kinds of systems.
1417
1418Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421VAR=VALUE. See below for descriptions of some of the useful variables.
1422
1423Defaults for the options are specified in brackets.
1424
1425Configuration:
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001430 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001436Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001438 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001440 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001441
1442By default, \`make install' will install all the files in
1443\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445for instance \`--prefix=\$HOME'.
1446
1447For better control, use the options below.
1448
1449Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001469_ACEOF
1470
1471 cat <<\_ACEOF
1472
1473System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476_ACEOF
1477fi
1478
1479if test -n "$ac_init_help"; then
1480
1481 cat <<\_ACEOF
1482
1483Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001484 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001487 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001488 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001489 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001490
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001491 --enable-symlink-build use symlinks while building instead of hard links
1492 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001493 --enable-compression enable EXPERIMENTAL compression support
1494 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001495 --enable-elf-shlibs select ELF shared libraries
1496 --enable-bsd-shlibs select BSD shared libraries
1497 --enable-profile build profiling libraries
1498 --enable-checker build checker libraries
1499 --enable-jbd-debug enable journal debugging
1500 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001501 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001502 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001503 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001504 --enable-quota enable quota support
Theodore Ts'o3df60142013-06-16 16:14:40 -04001505 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001506 --disable-debugfs disable support of debugfs program
1507 --disable-imager disable support of e2image program
1508 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001509 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001510 --enable-fsck build fsck wrapper program
1511 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001512 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001513 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001514 --disable-mmp disable support mmp, Multi Mount Protection
Tony Breeds1625bf42012-07-30 14:44:12 -04001515 --disable-bmap-stats disable collection of bitmap stats.
1516 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001517 --disable-nls do not use Native Language Support
1518 --disable-rpath do not hardcode runtime library paths
1519
1520Optional Packages:
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001523 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001524 --with-cc no longer supported, use CC= instead
1525 --with-ccopts no longer supported, use CFLAGS= instead
1526 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001527 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1528 --with-gnu-ld assume the C compiler uses GNU ld default=no
1529 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1530 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1531 --with-included-gettext use the GNU gettext library included here
1532 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1533 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001534 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001535
1536Some influential environment variables:
1537 CC C compiler command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001541 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001543 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001544 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001545 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001546
1547Use these variables to override the choices made by `configure' or to help
1548it to find libraries and programs with nonstandard names/locations.
1549
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001550Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001552ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001553fi
1554
1555if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001561 ac_builddir=.
1562
Theodore Ts'oe1052142006-10-21 21:46:47 -04001563case "$ac_dir" in
1564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001567 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 esac ;;
1573esac
1574ac_abs_top_builddir=$ac_pwd
1575ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576# for backward compatibility:
1577ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001578
1579case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001580 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001581 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001585 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1588 *) # Relative name.
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001592esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001594
Theodore Ts'oe1052142006-10-21 21:46:47 -04001595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001603 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001605 fi || ac_status=$?
1606 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001607 done
1608fi
1609
Theodore Ts'oe1052142006-10-21 21:46:47 -04001610test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001611if $ac_init_version; then
1612 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001613configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001614generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001615
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001616Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001617This configure script is free software; the Free Software Foundation
1618gives unlimited permission to copy, distribute and modify it.
1619_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001620 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001621fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001622
1623## ------------------------ ##
1624## Autoconf initialization. ##
1625## ------------------------ ##
1626
1627# ac_fn_c_try_compile LINENO
1628# --------------------------
1629# Try to compile conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_c_try_compile ()
1631{
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1635case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.$ac_objext; then :
1653 ac_retval=0
1654else
1655 $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001661 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001662
1663} # ac_fn_c_try_compile
1664
1665# ac_fn_c_try_link LINENO
1666# -----------------------
1667# Try to link conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_link ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext conftest$ac_exeext
1672 if { { ac_try="$ac_link"
1673case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest$ac_exeext && {
1691 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001692 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001693 }; then :
1694 ac_retval=0
1695else
1696 $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700fi
1701 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703 # interfere with the next link command; also delete a directory that is
1704 # left behind by Apple's compiler. We do this before executing the actions.
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001707 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001708
1709} # ac_fn_c_try_link
1710
1711# ac_fn_c_try_cpp LINENO
1712# ----------------------
1713# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_cpp ()
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_cpp conftest.$ac_ext"
1718case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001732 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 }; then :
1736 ac_retval=0
1737else
1738 $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001744 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001745
1746} # ac_fn_c_try_cpp
1747
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001748# ac_fn_c_try_run LINENO
1749# ----------------------
1750# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751# that executables *can* be run.
1752ac_fn_c_try_run ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_link"
1756case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766 { { case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_try") 2>&5
1773 ac_status=$?
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; }; }; then :
1776 ac_retval=0
1777else
1778 $as_echo "$as_me: program exited with status $ac_status" >&5
1779 $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782 ac_retval=$ac_status
1783fi
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001786 as_fn_set_status $ac_retval
1787
1788} # ac_fn_c_try_run
1789
1790# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1791# -------------------------------------------
1792# Tests whether TYPE exists after having included INCLUDES, setting cache
1793# variable VAR accordingly.
1794ac_fn_c_check_type ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001799if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001800 $as_echo_n "(cached) " >&6
1801else
1802 eval "$3=no"
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804/* end confdefs.h. */
1805$4
1806int
1807main ()
1808{
1809if (sizeof ($2))
1810 return 0;
1811 ;
1812 return 0;
1813}
1814_ACEOF
1815if ac_fn_c_try_compile "$LINENO"; then :
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818$4
1819int
1820main ()
1821{
1822if (sizeof (($2)))
1823 return 0;
1824 ;
1825 return 0;
1826}
1827_ACEOF
1828if ac_fn_c_try_compile "$LINENO"; then :
1829
1830else
1831 eval "$3=yes"
1832fi
1833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836fi
1837eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001841
1842} # ac_fn_c_check_type
1843
1844# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845# -------------------------------------------------------
1846# Tests whether HEADER exists and can be compiled using the include files in
1847# INCLUDES, setting the cache variable VAR accordingly.
1848ac_fn_c_check_header_compile ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001853if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001854 $as_echo_n "(cached) " >&6
1855else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h. */
1858$4
1859#include <$2>
1860_ACEOF
1861if ac_fn_c_try_compile "$LINENO"; then :
1862 eval "$3=yes"
1863else
1864 eval "$3=no"
1865fi
1866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867fi
1868eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001872
1873} # ac_fn_c_check_header_compile
1874
1875# ac_fn_c_check_func LINENO FUNC VAR
1876# ----------------------------------
1877# Tests whether FUNC exists, setting the cache variable VAR accordingly
1878ac_fn_c_check_func ()
1879{
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001883if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001884 $as_echo_n "(cached) " >&6
1885else
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h. */
1888/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890#define $2 innocuous_$2
1891
1892/* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
1896
1897#ifdef __STDC__
1898# include <limits.h>
1899#else
1900# include <assert.h>
1901#endif
1902
1903#undef $2
1904
1905/* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1908#ifdef __cplusplus
1909extern "C"
1910#endif
1911char $2 ();
1912/* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915#if defined __stub_$2 || defined __stub___$2
1916choke me
1917#endif
1918
1919int
1920main ()
1921{
1922return $2 ();
1923 ;
1924 return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_link "$LINENO"; then :
1928 eval "$3=yes"
1929else
1930 eval "$3=no"
1931fi
1932rm -f core conftest.err conftest.$ac_objext \
1933 conftest$ac_exeext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001939
1940} # ac_fn_c_check_func
1941
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001942# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943# -------------------------------------------------------
1944# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945# the include files in INCLUDES and setting the cache variable VAR
1946# accordingly.
1947ac_fn_c_check_header_mongrel ()
1948{
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001950 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001953if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001954 $as_echo_n "(cached) " >&6
1955fi
1956eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958$as_echo "$ac_res" >&6; }
1959else
1960 # Is the header compilable?
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962$as_echo_n "checking $2 usability... " >&6; }
1963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965$4
1966#include <$2>
1967_ACEOF
1968if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_header_compiler=yes
1970else
1971 ac_header_compiler=no
1972fi
1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975$as_echo "$ac_header_compiler" >&6; }
1976
1977# Is the header present?
1978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979$as_echo_n "checking $2 presence... " >&6; }
1980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h. */
1982#include <$2>
1983_ACEOF
1984if ac_fn_c_try_cpp "$LINENO"; then :
1985 ac_header_preproc=yes
1986else
1987 ac_header_preproc=no
1988fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001989rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991$as_echo "$ac_header_preproc" >&6; }
1992
1993# So? What about this header?
1994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1995 yes:no: )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 ;;
2001 no:yes:* )
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 ;;
2013esac
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002016if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002017 $as_echo_n "(cached) " >&6
2018else
2019 eval "$3=\$ac_header_compiler"
2020fi
2021eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023$as_echo "$ac_res" >&6; }
2024fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002026
2027} # ac_fn_c_check_header_mongrel
2028
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002029# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2030# --------------------------------------------
2031# Tries to find the compile-time value of EXPR in a program that includes
2032# INCLUDES, setting VAR accordingly. Returns whether the value could be
2033# computed
2034ac_fn_c_compute_int ()
2035{
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 if test "$cross_compiling" = yes; then
2038 # Depending upon the size, compute the lo and hi bounds.
2039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h. */
2041$4
2042int
2043main ()
2044{
2045static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002046test_array [0] = 0;
2047return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002048
2049 ;
2050 return 0;
2051}
2052_ACEOF
2053if ac_fn_c_try_compile "$LINENO"; then :
2054 ac_lo=0 ac_mid=0
2055 while :; do
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h. */
2058$4
2059int
2060main ()
2061{
2062static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002063test_array [0] = 0;
2064return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002065
2066 ;
2067 return 0;
2068}
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_hi=$ac_mid; break
2072else
2073 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2074 if test $ac_lo -le $ac_mid; then
2075 ac_lo= ac_hi=
2076 break
2077 fi
2078 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086int
2087main ()
2088{
2089static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002090test_array [0] = 0;
2091return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002092
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_hi=-1 ac_mid=-1
2099 while :; do
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h. */
2102$4
2103int
2104main ()
2105{
2106static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002107test_array [0] = 0;
2108return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002109
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_lo=$ac_mid; break
2116else
2117 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2118 if test $ac_mid -le $ac_hi; then
2119 ac_lo= ac_hi=
2120 break
2121 fi
2122 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 done
2126else
2127 ac_lo= ac_hi=
2128fi
2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130fi
2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132# Binary search between lo and hi bounds.
2133while test "x$ac_lo" != "x$ac_hi"; do
2134 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */
2137$4
2138int
2139main ()
2140{
2141static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002142test_array [0] = 0;
2143return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002144
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=$ac_mid
2151else
2152 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155done
2156case $ac_lo in #((
2157?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2158'') ac_retval=1 ;;
2159esac
2160 else
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162/* end confdefs.h. */
2163$4
2164static long int longval () { return $2; }
2165static unsigned long int ulongval () { return $2; }
2166#include <stdio.h>
2167#include <stdlib.h>
2168int
2169main ()
2170{
2171
2172 FILE *f = fopen ("conftest.val", "w");
2173 if (! f)
2174 return 1;
2175 if (($2) < 0)
2176 {
2177 long int i = longval ();
2178 if (i != ($2))
2179 return 1;
2180 fprintf (f, "%ld", i);
2181 }
2182 else
2183 {
2184 unsigned long int i = ulongval ();
2185 if (i != ($2))
2186 return 1;
2187 fprintf (f, "%lu", i);
2188 }
2189 /* Do not output a trailing newline, as this causes \r\n confusion
2190 on some platforms. */
2191 return ferror (f) || fclose (f) != 0;
2192
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_run "$LINENO"; then :
2198 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2199else
2200 ac_retval=1
2201fi
2202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2203 conftest.$ac_objext conftest.beam conftest.$ac_ext
2204rm -f conftest.val
2205
2206 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002208 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002209
2210} # ac_fn_c_compute_int
2211
2212# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2213# ----------------------------------------------------
2214# Tries to find if the field MEMBER exists in type AGGR, after including
2215# INCLUDES, setting cache variable VAR accordingly.
2216ac_fn_c_check_member ()
2217{
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2220$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002221if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002222 $as_echo_n "(cached) " >&6
2223else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h. */
2226$5
2227int
2228main ()
2229{
2230static $2 ac_aggr;
2231if (ac_aggr.$3)
2232return 0;
2233 ;
2234 return 0;
2235}
2236_ACEOF
2237if ac_fn_c_try_compile "$LINENO"; then :
2238 eval "$4=yes"
2239else
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241/* end confdefs.h. */
2242$5
2243int
2244main ()
2245{
2246static $2 ac_aggr;
2247if (sizeof ac_aggr.$3)
2248return 0;
2249 ;
2250 return 0;
2251}
2252_ACEOF
2253if ac_fn_c_try_compile "$LINENO"; then :
2254 eval "$4=yes"
2255else
2256 eval "$4=no"
2257fi
2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259fi
2260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261fi
2262eval ac_res=\$$4
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002265 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002266
2267} # ac_fn_c_check_member
2268
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002269# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2270# ---------------------------------------------
2271# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2272# accordingly.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002273ac_fn_c_check_decl ()
2274{
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002276 as_decl_name=`echo $2|sed 's/ *(.*//'`
2277 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2279$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2280if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002281 $as_echo_n "(cached) " >&6
2282else
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284/* end confdefs.h. */
2285$4
2286int
2287main ()
2288{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002289#ifndef $as_decl_name
2290#ifdef __cplusplus
2291 (void) $as_decl_use;
2292#else
2293 (void) $as_decl_name;
2294#endif
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002295#endif
2296
2297 ;
2298 return 0;
2299}
2300_ACEOF
2301if ac_fn_c_try_compile "$LINENO"; then :
2302 eval "$3=yes"
2303else
2304 eval "$3=no"
2305fi
2306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307fi
2308eval ac_res=\$$3
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002312
2313} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002314cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002315This file contains any messages produced by compilers while
2316running configure, to aid debugging if configure makes a mistake.
2317
2318It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002319generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002320
2321 $ $0 $@
2322
2323_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002324exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002325{
2326cat <<_ASUNAME
2327## --------- ##
2328## Platform. ##
2329## --------- ##
2330
2331hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2332uname -m = `(uname -m) 2>/dev/null || echo unknown`
2333uname -r = `(uname -r) 2>/dev/null || echo unknown`
2334uname -s = `(uname -s) 2>/dev/null || echo unknown`
2335uname -v = `(uname -v) 2>/dev/null || echo unknown`
2336
2337/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2338/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2339
2340/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2341/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2342/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002343/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002344/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2345/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2346/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2347
2348_ASUNAME
2349
2350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351for as_dir in $PATH
2352do
2353 IFS=$as_save_IFS
2354 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002355 $as_echo "PATH: $as_dir"
2356 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002357IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002358
2359} >&5
2360
2361cat >&5 <<_ACEOF
2362
2363
2364## ----------- ##
2365## Core tests. ##
2366## ----------- ##
2367
2368_ACEOF
2369
2370
2371# Keep a trace of the command line.
2372# Strip out --no-create and --no-recursion so they do not pile up.
2373# Strip out --silent because we don't want to record it for future runs.
2374# Also quote any args containing shell meta-characters.
2375# Make two passes to allow for proper duplicate-argument suppression.
2376ac_configure_args=
2377ac_configure_args0=
2378ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002379ac_must_keep_next=false
2380for ac_pass in 1 2
2381do
2382 for ac_arg
2383 do
2384 case $ac_arg in
2385 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2387 | -silent | --silent | --silen | --sile | --sil)
2388 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002389 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002390 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002391 esac
2392 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002393 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002394 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002395 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002396 if test $ac_must_keep_next = true; then
2397 ac_must_keep_next=false # Got value, back to normal.
2398 else
2399 case $ac_arg in
2400 *=* | --config-cache | -C | -disable-* | --disable-* \
2401 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2402 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2403 | -with-* | --with-* | -without-* | --without-* | --x)
2404 case "$ac_configure_args0 " in
2405 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2406 esac
2407 ;;
2408 -* ) ac_must_keep_next=true ;;
2409 esac
2410 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002411 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002412 ;;
2413 esac
2414 done
2415done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002416{ ac_configure_args0=; unset ac_configure_args0;}
2417{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002418
2419# When interrupted or exit'd, cleanup temporary files, and complete
2420# config.log. We remove comments because anyway the quotes in there
2421# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002422# WARNING: Use '\'' to represent an apostrophe within the trap.
2423# 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 -05002424trap 'exit_status=$?
2425 # Save into config.log some information that might help in debugging.
2426 {
2427 echo
2428
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002429 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002430## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002431## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002432 echo
2433 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002434(
2435 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2436 eval ac_val=\$$ac_var
2437 case $ac_val in #(
2438 *${as_nl}*)
2439 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002440 *_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 +01002441$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002442 esac
2443 case $ac_var in #(
2444 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002445 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002446 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002447 esac ;;
2448 esac
2449 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002450 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002451 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2452 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002453 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002454 "s/'\''/'\''\\\\'\'''\''/g;
2455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2456 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002457 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002459 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002460 esac |
2461 sort
2462)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002463 echo
2464
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002465 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002466## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002467## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002468 echo
2469 for ac_var in $ac_subst_vars
2470 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002471 eval ac_val=\$$ac_var
2472 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002473 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002474 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002475 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002476 done | sort
2477 echo
2478
2479 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002480 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002481## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002482## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002483 echo
2484 for ac_var in $ac_subst_files
2485 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002486 eval ac_val=\$$ac_var
2487 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002488 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002489 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002490 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491 done | sort
2492 echo
2493 fi
2494
2495 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002496 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002497## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002498## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002499 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002500 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002501 echo
2502 fi
2503 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002504 $as_echo "$as_me: caught signal $ac_signal"
2505 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002506 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002507 rm -f core *.core core.conftest.* &&
2508 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002509 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002510' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002512 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002513done
2514ac_signal=0
2515
2516# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002517rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002518
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002519$as_echo "/* confdefs.h */" > confdefs.h
2520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002521# Predefined preprocessor variables.
2522
2523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_NAME "$PACKAGE_NAME"
2525_ACEOF
2526
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002527cat >>confdefs.h <<_ACEOF
2528#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2529_ACEOF
2530
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531cat >>confdefs.h <<_ACEOF
2532#define PACKAGE_VERSION "$PACKAGE_VERSION"
2533_ACEOF
2534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002535cat >>confdefs.h <<_ACEOF
2536#define PACKAGE_STRING "$PACKAGE_STRING"
2537_ACEOF
2538
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002539cat >>confdefs.h <<_ACEOF
2540#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2541_ACEOF
2542
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002543cat >>confdefs.h <<_ACEOF
2544#define PACKAGE_URL "$PACKAGE_URL"
2545_ACEOF
2546
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002547
2548# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002549# Prefer an explicitly selected file to automatically selected ones.
2550ac_site_file1=NONE
2551ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002552if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002553 # We do not want a PATH search for config.site.
2554 case $CONFIG_SITE in #((
2555 -*) ac_site_file1=./$CONFIG_SITE;;
2556 */*) ac_site_file1=$CONFIG_SITE;;
2557 *) ac_site_file1=./$CONFIG_SITE;;
2558 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002559elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002560 ac_site_file1=$prefix/share/config.site
2561 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002562else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002563 ac_site_file1=$ac_default_prefix/share/config.site
2564 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002565fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002566for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002567do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002568 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002569 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002570 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002571$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002572 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002573 . "$ac_site_file" \
2574 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2576as_fn_error $? "failed to load site script $ac_site_file
2577See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002578 fi
2579done
2580
2581if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002582 # Some versions of bash will fail to source /dev/null (special files
2583 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2584 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002585 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002586$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002587 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002588 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2589 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002590 esac
2591 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002592else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002594$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002595 >$cache_file
2596fi
2597
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002598as_fn_append ac_header_list " stdlib.h"
2599as_fn_append ac_header_list " unistd.h"
2600as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002601# Check that the precious variables saved in the cache have kept the same
2602# value.
2603ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002604for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002605 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2606 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002607 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2608 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002609 case $ac_old_set,$ac_new_set in
2610 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002611 { $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 +01002612$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 -05002613 ac_cache_corrupted=: ;;
2614 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002615 { $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 +01002616$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002617 ac_cache_corrupted=: ;;
2618 ,);;
2619 *)
2620 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002621 # differences in whitespace do not lead to failure.
2622 ac_old_val_w=`echo x $ac_old_val`
2623 ac_new_val_w=`echo x $ac_new_val`
2624 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002625 { $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 +01002626$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2627 ac_cache_corrupted=:
2628 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002629 { $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 +01002630$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2631 eval $ac_var=\$ac_old_val
2632 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002633 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002634$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002635 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002636$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002637 fi;;
2638 esac
2639 # Pass precious variables to config.status.
2640 if test "$ac_new_set" = set; then
2641 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002642 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002643 *) ac_arg=$ac_var=$ac_new_val ;;
2644 esac
2645 case " $ac_configure_args " in
2646 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002647 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002648 esac
2649 fi
2650done
2651if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002654 { $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 +01002655$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002656 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002657fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002658## -------------------- ##
2659## Main body of script. ##
2660## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002661
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002662ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002663ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2666ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002667
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002668
2669
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002670ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002671for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002672 if 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/install.sh"; then
2677 ac_aux_dir=$ac_dir
2678 ac_install_sh="$ac_aux_dir/install.sh -c"
2679 break
2680 elif test -f "$ac_dir/shtool"; then
2681 ac_aux_dir=$ac_dir
2682 ac_install_sh="$ac_aux_dir/shtool install -c"
2683 break
2684 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002685done
2686if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002687 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 +00002688fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002689
2690# These three variables are undocumented and unsupported,
2691# and are intended to be withdrawn in a future Autoconf release.
2692# They can cause serious problems if a builder's source tree is in a directory
2693# whose full name contains unusual characters.
2694ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2695ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2696ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2697
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002698
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002699ac_config_headers="$ac_config_headers lib/config.h"
2700
2701
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002702MCONFIG=./MCONFIG
2703
Theodore Ts'o74becf31997-04-26 14:37:06 +00002704BINARY_TYPE=bin
2705E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2706 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2707DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2708 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002709E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002710MONTH=`echo $DATE | awk -F- '{print $2}'`
2711YEAR=`echo $DATE | awk -F- '{print $3}'`
2712
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002713if expr $YEAR ">" 1900 > /dev/null ; then
2714 E2FSPROGS_YEAR=$YEAR
2715elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002716 E2FSPROGS_YEAR=19$YEAR
2717else
2718 E2FSPROGS_YEAR=20$YEAR
2719fi
2720
2721case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002722Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2723Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2724Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2725Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2726May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2727Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2728Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2729Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2730Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2731Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2732Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2733Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002734*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002735$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002736esac
2737
Andreas Dilger927566a2006-11-12 19:41:25 -05002738base_ver=`echo $E2FSPROGS_VERSION | \
2739 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002740
2741date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2742
2743case $E2FSPROGS_VERSION in
2744*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002745 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002746 ;;
2747*)
2748 E2FSPROGS_PKGVER="$base_ver"
2749 ;;
2750esac
2751
2752unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002753{ $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 +01002754$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002756$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002757
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002758
2759
2760
Andreas Dilger927566a2006-11-12 19:41:25 -05002761
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002762WITH_DIET_LIBC=
2763
2764# Check whether --with-diet-libc was given.
2765if test "${with_diet_libc+set}" = set; then :
2766 withval=$with_diet_libc; CC="diet cc -nostdinc"
2767WITH_DIET_LIBC=yes
2768if test -z "$LIBS"
2769then
2770 LIBS="-lcompat"
2771else
2772 LIBS="$LIBS -lcompat"
2773fi
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2775$as_echo "CC=$CC" >&6; }
2776fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002777# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002778$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002779 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002780
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002782$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002783if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002784 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002785else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002786 ac_build_alias=$build_alias
2787test "x$ac_build_alias" = x &&
2788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2789test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002790 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002791ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002793
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002794fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002796$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002797case $ac_cv_build in
2798*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002799*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002800esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002801build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002802ac_save_IFS=$IFS; IFS='-'
2803set x $ac_cv_build
2804shift
2805build_cpu=$1
2806build_vendor=$2
2807shift; shift
2808# Remember, the first character of IFS is used to create $*,
2809# except with old shells:
2810build_os=$*
2811IFS=$ac_save_IFS
2812case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002813
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002814
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002816$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002817if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002818 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002819else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002820 if test "x$host_alias" = x; then
2821 ac_cv_host=$ac_cv_build
2822else
2823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002825fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002826
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002827fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002829$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002830case $ac_cv_host in
2831*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002832*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002833esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002834host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002835ac_save_IFS=$IFS; IFS='-'
2836set x $ac_cv_host
2837shift
2838host_cpu=$1
2839host_vendor=$2
2840shift; shift
2841# Remember, the first character of IFS is used to create $*,
2842# except with old shells:
2843host_os=$*
2844IFS=$ac_save_IFS
2845case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002846
2847
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002848DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002849ac_ext=c
2850ac_cpp='$CPP $CPPFLAGS'
2851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002858$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002859if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002860 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002861else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002870 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002872 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002874 break 2
2875 fi
2876done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002877 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002878IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002879
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002880fi
2881fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002882CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002883if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002885$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002886else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002888$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002889fi
2890
Theodore Ts'oe1052142006-10-21 21:46:47 -04002891
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002892fi
2893if test -z "$ac_cv_prog_CC"; then
2894 ac_ct_CC=$CC
2895 # Extract the first word of "gcc", so it can be a program name with args.
2896set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002898$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002899if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002900 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002901else
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002910 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002912 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002914 break 2
2915 fi
2916done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002917 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002918IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002919
2920fi
2921fi
2922ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002925$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002926else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002928$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002929fi
2930
Theodore Ts'oe1052142006-10-21 21:46:47 -04002931 if test "x$ac_ct_CC" = x; then
2932 CC=""
2933 else
2934 case $cross_compiling:$ac_tool_warned in
2935yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002936{ $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 +01002937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002938ac_tool_warned=yes ;;
2939esac
2940 CC=$ac_ct_CC
2941 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942else
2943 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002944fi
2945
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002946if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002947 if test -n "$ac_tool_prefix"; then
2948 # 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 -05002949set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002951$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002952if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002953 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002954else
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2957else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002963 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002965 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002967 break 2
2968 fi
2969done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002970 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002971IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002972
2973fi
2974fi
2975CC=$ac_cv_prog_CC
2976if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002978$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002979else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002981$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002982fi
2983
Theodore Ts'oe1052142006-10-21 21:46:47 -04002984
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002985 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002986fi
2987if test -z "$CC"; then
2988 # Extract the first word of "cc", so it can be a program name with args.
2989set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002991$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002992if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002993 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002994else
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2997else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002998 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003004 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007 ac_prog_rejected=yes
3008 continue
3009 fi
3010 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003012 break 2
3013 fi
3014done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003015 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003016IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003017
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003018if test $ac_prog_rejected = yes; then
3019 # We found a bogon in the path, so make sure we never use it.
3020 set dummy $ac_cv_prog_CC
3021 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003022 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003023 # We chose a different compiler from the bogus one.
3024 # However, it has the same basename, so the bogon will be chosen
3025 # first if we set CC to just the basename; use the full file name.
3026 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003028 fi
3029fi
3030fi
3031fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003032CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003033if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003035$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003036else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003038$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003039fi
3040
Theodore Ts'oe1052142006-10-21 21:46:47 -04003041
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042fi
3043if test -z "$CC"; then
3044 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003045 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003046 do
3047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003050$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003051if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003052 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003053else
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3056else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003062 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003066 break 2
3067 fi
3068done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003069 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003070IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003072fi
3073fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003074CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003075if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003077$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003078else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003080$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003081fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003082
Theodore Ts'oe1052142006-10-21 21:46:47 -04003083
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003084 test -n "$CC" && break
3085 done
3086fi
3087if test -z "$CC"; then
3088 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003089 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003090do
3091 # Extract the first word of "$ac_prog", so it can be a program name with args.
3092set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003094$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003095if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003096 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003097else
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100else
3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003106 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003108 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003110 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003111 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003112done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003113 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003114IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003115
3116fi
3117fi
3118ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003121$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003122else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003124$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003125fi
3126
Theodore Ts'oe1052142006-10-21 21:46:47 -04003127
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003128 test -n "$ac_ct_CC" && break
3129done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003130
Theodore Ts'oe1052142006-10-21 21:46:47 -04003131 if test "x$ac_ct_CC" = x; then
3132 CC=""
3133 else
3134 case $cross_compiling:$ac_tool_warned in
3135yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003136{ $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 +01003137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003138ac_tool_warned=yes ;;
3139esac
3140 CC=$ac_ct_CC
3141 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003142fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003143
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003144fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003145
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003146
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003147test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003149as_fn_error $? "no acceptable C compiler found in \$PATH
3150See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003151
3152# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003153$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003154set X $ac_compile
3155ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003156for ac_option in --version -v -V -qversion; do
3157 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003158case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163$as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003165 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003166 if test -s conftest.err; then
3167 sed '10a\
3168... rest of stderr output deleted ...
3169 10q' conftest.err >conftest.er1
3170 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003171 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003172 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }
3175done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003176
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003178/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003180int
3181main ()
3182{
3183
3184 ;
3185 return 0;
3186}
3187_ACEOF
3188ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003189ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003190# Try to create an executable without -o first, disregard a.out.
3191# It will help us diagnose broken compilers, and finding out an intuition
3192# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3194$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003195ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3196
3197# The possible output files:
3198ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3199
Theodore Ts'oe1052142006-10-21 21:46:47 -04003200ac_rmfiles=
3201for ac_file in $ac_files
3202do
3203 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003205 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3206 esac
3207done
3208rm -f $ac_rmfiles
3209
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003210if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003211case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003217 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003218 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003221 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223# in a Makefile. We should not override ac_cv_exeext if it was cached,
3224# so that the user can short-circuit this test for compilers unknown to
3225# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003226for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003227do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003231 ;;
3232 [ab].out )
3233 # We found the default executable, but exeext='' is most
3234 # certainly right.
3235 break;;
3236 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003237 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003238 then :; else
3239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240 fi
3241 # We set ac_cv_exeext here because the later test for it is not
3242 # safe: cross compilers may not add the suffix if given an `-o'
3243 # argument, so we may need to know it at that point already.
3244 # Even if this section looks crufty: it has the advantage of
3245 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003246 break;;
3247 * )
3248 break;;
3249 esac
3250done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003251test "$ac_cv_exeext" = no && ac_cv_exeext=
3252
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003253else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003254 ac_file=''
3255fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003256if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258$as_echo "no" >&6; }
3259$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003260sed 's/^/| /' conftest.$ac_ext >&5
3261
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003262{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003264as_fn_error 77 "C compiler cannot create executables
3265See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003266else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003269fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3271$as_echo_n "checking for C compiler default output file name... " >&6; }
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3273$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003274ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003275
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003276rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003277ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003279$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003280if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003281case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003287 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003288 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003291 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3292# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3293# work properly (i.e., refer to `conftest.exe'), while it won't with
3294# `rm'.
3295for ac_file in conftest.exe conftest conftest.*; do
3296 test -f "$ac_file" || continue
3297 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003299 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003300 break;;
3301 * ) break;;
3302 esac
3303done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003304else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003307as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3308See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003309fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003310rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003312$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003313
3314rm -f conftest.$ac_ext
3315EXEEXT=$ac_cv_exeext
3316ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h. */
3319#include <stdio.h>
3320int
3321main ()
3322{
3323FILE *f = fopen ("conftest.out", "w");
3324 return ferror (f) || fclose (f) != 0;
3325
3326 ;
3327 return 0;
3328}
3329_ACEOF
3330ac_clean_files="$ac_clean_files conftest.out"
3331# Check that the compiler produces executables we can run. If not, either
3332# the compiler is broken, or we cross compile.
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3334$as_echo_n "checking whether we are cross compiling... " >&6; }
3335if test "$cross_compiling" != yes; then
3336 { { ac_try="$ac_link"
3337case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340esac
3341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342$as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_link") 2>&5
3344 ac_status=$?
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }
3347 if { ac_try='./conftest$ac_cv_exeext'
3348 { { case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351esac
3352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353$as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_try") 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; }; then
3358 cross_compiling=no
3359 else
3360 if test "$cross_compiling" = maybe; then
3361 cross_compiling=yes
3362 else
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003365as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003366If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003367See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003368 fi
3369 fi
3370fi
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3372$as_echo "$cross_compiling" >&6; }
3373
3374rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3375ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003377$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003378if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003379 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003380else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003382/* end confdefs.h. */
3383
3384int
3385main ()
3386{
3387
3388 ;
3389 return 0;
3390}
3391_ACEOF
3392rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003393if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003394case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003400 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003401 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003404 for ac_file in conftest.o conftest.obj conftest.*; do
3405 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003406 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003408 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3409 break;;
3410 esac
3411done
3412else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003413 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003414sed 's/^/| /' conftest.$ac_ext >&5
3415
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003416{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003418as_fn_error $? "cannot compute suffix of object files: cannot compile
3419See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003420fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003421rm -f conftest.$ac_cv_objext conftest.$ac_ext
3422fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003424$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003425OBJEXT=$ac_cv_objext
3426ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003427{ $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 +01003428$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003429if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003430 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003431else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003433/* end confdefs.h. */
3434
3435int
3436main ()
3437{
3438#ifndef __GNUC__
3439 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003440#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003442 ;
3443 return 0;
3444}
3445_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003446if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003447 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003448else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003449 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003450fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003452ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003453
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003454fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003456$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3457if test $ac_compiler_gnu = yes; then
3458 GCC=yes
3459else
3460 GCC=
3461fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003462ac_test_CFLAGS=${CFLAGS+set}
3463ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003465$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003466if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003467 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003468else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003469 ac_save_c_werror_flag=$ac_c_werror_flag
3470 ac_c_werror_flag=yes
3471 ac_cv_prog_cc_g=no
3472 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003474/* end confdefs.h. */
3475
3476int
3477main ()
3478{
3479
3480 ;
3481 return 0;
3482}
3483_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003484if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003485 ac_cv_prog_cc_g=yes
3486else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003487 CFLAGS=""
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003489/* end confdefs.h. */
3490
3491int
3492main ()
3493{
3494
3495 ;
3496 return 0;
3497}
3498_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003499if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003500
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003501else
3502 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003503 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003505/* end confdefs.h. */
3506
3507int
3508main ()
3509{
3510
3511 ;
3512 return 0;
3513}
3514_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003515if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003516 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003517fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003519fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_c_werror_flag=$ac_save_c_werror_flag
3524fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003526$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003527if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003528 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003529elif test $ac_cv_prog_cc_g = yes; then
3530 if test "$GCC" = yes; then
3531 CFLAGS="-g -O2"
3532 else
3533 CFLAGS="-g"
3534 fi
3535else
3536 if test "$GCC" = yes; then
3537 CFLAGS="-O2"
3538 else
3539 CFLAGS=
3540 fi
3541fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003543$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003544if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003545 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003546else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003547 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003548ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003550/* end confdefs.h. */
3551#include <stdarg.h>
3552#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003553struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003554/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3555struct buf { int x; };
3556FILE * (*rcsopen) (struct buf *, struct stat *, int);
3557static char *e (p, i)
3558 char **p;
3559 int i;
3560{
3561 return p[i];
3562}
3563static char *f (char * (*g) (char **, int), char **p, ...)
3564{
3565 char *s;
3566 va_list v;
3567 va_start (v,p);
3568 s = g (p, va_arg (v,int));
3569 va_end (v);
3570 return s;
3571}
3572
3573/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3574 function prototypes and stuff, but not '\xHH' hex character constants.
3575 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003576 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003577 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3578 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003579 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003580int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3581
Theodore Ts'oe1052142006-10-21 21:46:47 -04003582/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3583 inside strings and character constants. */
3584#define FOO(x) 'x'
3585int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003587int test (int i, double x);
3588struct s1 {int (*f) (int a);};
3589struct s2 {int (*f) (double a);};
3590int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3591int argc;
3592char **argv;
3593int
3594main ()
3595{
3596return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3597 ;
3598 return 0;
3599}
3600_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003601for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3602 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003603do
3604 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003605 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003606 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003607fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003608rm -f core conftest.err conftest.$ac_objext
3609 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003610done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003611rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003612CC=$ac_save_CC
3613
3614fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003615# AC_CACHE_VAL
3616case "x$ac_cv_prog_cc_c89" in
3617 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003619$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003620 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003622$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003623 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003624 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003626$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003627esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003628if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003629
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003630fi
3631
3632ac_ext=c
3633ac_cpp='$CPP $CPPFLAGS'
3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3640$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003641if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003642 $as_echo_n "(cached) " >&6
3643else
3644 ac_check_lib_save_LIBS=$LIBS
3645LIBS="-ldl $LIBS"
3646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647/* end confdefs.h. */
3648
3649/* Override any GCC internal prototype to avoid an error.
3650 Use char because int might match the return type of a GCC
3651 builtin and then its argument prototype would still apply. */
3652#ifdef __cplusplus
3653extern "C"
3654#endif
3655char dlopen ();
3656int
3657main ()
3658{
3659return dlopen ();
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664if ac_fn_c_try_link "$LINENO"; then :
3665 ac_cv_lib_dl_dlopen=yes
3666else
3667 ac_cv_lib_dl_dlopen=no
3668fi
3669rm -f core conftest.err conftest.$ac_objext \
3670 conftest$ac_exeext conftest.$ac_ext
3671LIBS=$ac_check_lib_save_LIBS
3672fi
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3674$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003675if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003676 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003677
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003678$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3679
3680fi
3681
3682
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003683
3684# Check whether --with-cc was given.
3685if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003686 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003687fi
3688
3689
3690# Check whether --with-ccopts was given.
3691if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003692 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003693fi
3694
3695
3696# Check whether --with-ldopts was given.
3697if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003698 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003699fi
3700
3701ac_ext=c
3702ac_cpp='$CPP $CPPFLAGS'
3703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706if test -n "$ac_tool_prefix"; then
3707 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3708set dummy ${ac_tool_prefix}gcc; ac_word=$2
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003711if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003712 $as_echo_n "(cached) " >&6
3713else
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3716else
3717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718for as_dir in $PATH
3719do
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003724 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 break 2
3727 fi
3728done
3729 done
3730IFS=$as_save_IFS
3731
3732fi
3733fi
3734CC=$ac_cv_prog_CC
3735if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737$as_echo "$CC" >&6; }
3738else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740$as_echo "no" >&6; }
3741fi
3742
3743
3744fi
3745if test -z "$ac_cv_prog_CC"; then
3746 ac_ct_CC=$CC
3747 # Extract the first word of "gcc", so it can be a program name with args.
3748set dummy gcc; ac_word=$2
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003751if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003752 $as_echo_n "(cached) " >&6
3753else
3754 if test -n "$ac_ct_CC"; then
3755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3756else
3757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758for as_dir in $PATH
3759do
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003764 ac_cv_prog_ac_ct_CC="gcc"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3767 fi
3768done
3769 done
3770IFS=$as_save_IFS
3771
3772fi
3773fi
3774ac_ct_CC=$ac_cv_prog_ac_ct_CC
3775if test -n "$ac_ct_CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777$as_echo "$ac_ct_CC" >&6; }
3778else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780$as_echo "no" >&6; }
3781fi
3782
3783 if test "x$ac_ct_CC" = x; then
3784 CC=""
3785 else
3786 case $cross_compiling:$ac_tool_warned in
3787yes:)
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790ac_tool_warned=yes ;;
3791esac
3792 CC=$ac_ct_CC
3793 fi
3794else
3795 CC="$ac_cv_prog_CC"
3796fi
3797
3798if test -z "$CC"; then
3799 if test -n "$ac_tool_prefix"; then
3800 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3801set dummy ${ac_tool_prefix}cc; ac_word=$2
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003804if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003805 $as_echo_n "(cached) " >&6
3806else
3807 if test -n "$CC"; then
3808 ac_cv_prog_CC="$CC" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003817 ac_cv_prog_CC="${ac_tool_prefix}cc"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821done
3822 done
3823IFS=$as_save_IFS
3824
3825fi
3826fi
3827CC=$ac_cv_prog_CC
3828if test -n "$CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830$as_echo "$CC" >&6; }
3831else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833$as_echo "no" >&6; }
3834fi
3835
3836
3837 fi
3838fi
3839if test -z "$CC"; then
3840 # Extract the first word of "cc", so it can be a program name with args.
3841set dummy cc; ac_word=$2
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003844if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003845 $as_echo_n "(cached) " >&6
3846else
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3849else
3850 ac_prog_rejected=no
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003858 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3859 ac_prog_rejected=yes
3860 continue
3861 fi
3862 ac_cv_prog_CC="cc"
3863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3865 fi
3866done
3867 done
3868IFS=$as_save_IFS
3869
3870if test $ac_prog_rejected = yes; then
3871 # We found a bogon in the path, so make sure we never use it.
3872 set dummy $ac_cv_prog_CC
3873 shift
3874 if test $# != 0; then
3875 # We chose a different compiler from the bogus one.
3876 # However, it has the same basename, so the bogon will be chosen
3877 # first if we set CC to just the basename; use the full file name.
3878 shift
3879 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3880 fi
3881fi
3882fi
3883fi
3884CC=$ac_cv_prog_CC
3885if test -n "$CC"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3887$as_echo "$CC" >&6; }
3888else
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890$as_echo "no" >&6; }
3891fi
3892
3893
3894fi
3895if test -z "$CC"; then
3896 if test -n "$ac_tool_prefix"; then
3897 for ac_prog in cl.exe
3898 do
3899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003903if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003904 $as_echo_n "(cached) " >&6
3905else
3906 if test -n "$CC"; then
3907 ac_cv_prog_CC="$CC" # Let the user override the test.
3908else
3909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH
3911do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003916 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920done
3921 done
3922IFS=$as_save_IFS
3923
3924fi
3925fi
3926CC=$ac_cv_prog_CC
3927if test -n "$CC"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3929$as_echo "$CC" >&6; }
3930else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932$as_echo "no" >&6; }
3933fi
3934
3935
3936 test -n "$CC" && break
3937 done
3938fi
3939if test -z "$CC"; then
3940 ac_ct_CC=$CC
3941 for ac_prog in cl.exe
3942do
3943 # Extract the first word of "$ac_prog", so it can be a program name with args.
3944set dummy $ac_prog; ac_word=$2
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003947if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003948 $as_echo_n "(cached) " >&6
3949else
3950 if test -n "$ac_ct_CC"; then
3951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3952else
3953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954for as_dir in $PATH
3955do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003960 ac_cv_prog_ac_ct_CC="$ac_prog"
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 break 2
3963 fi
3964done
3965 done
3966IFS=$as_save_IFS
3967
3968fi
3969fi
3970ac_ct_CC=$ac_cv_prog_ac_ct_CC
3971if test -n "$ac_ct_CC"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3973$as_echo "$ac_ct_CC" >&6; }
3974else
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976$as_echo "no" >&6; }
3977fi
3978
3979
3980 test -n "$ac_ct_CC" && break
3981done
3982
3983 if test "x$ac_ct_CC" = x; then
3984 CC=""
3985 else
3986 case $cross_compiling:$ac_tool_warned in
3987yes:)
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3990ac_tool_warned=yes ;;
3991esac
3992 CC=$ac_ct_CC
3993 fi
3994fi
3995
3996fi
3997
3998
3999test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004001as_fn_error $? "no acceptable C compiler found in \$PATH
4002See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004003
4004# Provide some information about the compiler.
4005$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4006set X $ac_compile
4007ac_compiler=$2
4008for ac_option in --version -v -V -qversion; do
4009 { { ac_try="$ac_compiler $ac_option >&5"
4010case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013esac
4014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015$as_echo "$ac_try_echo"; } >&5
4016 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4017 ac_status=$?
4018 if test -s conftest.err; then
4019 sed '10a\
4020... rest of stderr output deleted ...
4021 10q' conftest.err >conftest.er1
4022 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004023 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004024 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }
4027done
4028
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4030$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004031if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004032 $as_echo_n "(cached) " >&6
4033else
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h. */
4036
4037int
4038main ()
4039{
4040#ifndef __GNUC__
4041 choke me
4042#endif
4043
4044 ;
4045 return 0;
4046}
4047_ACEOF
4048if ac_fn_c_try_compile "$LINENO"; then :
4049 ac_compiler_gnu=yes
4050else
4051 ac_compiler_gnu=no
4052fi
4053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054ac_cv_c_compiler_gnu=$ac_compiler_gnu
4055
4056fi
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4058$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4059if test $ac_compiler_gnu = yes; then
4060 GCC=yes
4061else
4062 GCC=
4063fi
4064ac_test_CFLAGS=${CFLAGS+set}
4065ac_save_CFLAGS=$CFLAGS
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4067$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004068if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004069 $as_echo_n "(cached) " >&6
4070else
4071 ac_save_c_werror_flag=$ac_c_werror_flag
4072 ac_c_werror_flag=yes
4073 ac_cv_prog_cc_g=no
4074 CFLAGS="-g"
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h. */
4077
4078int
4079main ()
4080{
4081
4082 ;
4083 return 0;
4084}
4085_ACEOF
4086if ac_fn_c_try_compile "$LINENO"; then :
4087 ac_cv_prog_cc_g=yes
4088else
4089 CFLAGS=""
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091/* end confdefs.h. */
4092
4093int
4094main ()
4095{
4096
4097 ;
4098 return 0;
4099}
4100_ACEOF
4101if ac_fn_c_try_compile "$LINENO"; then :
4102
4103else
4104 ac_c_werror_flag=$ac_save_c_werror_flag
4105 CFLAGS="-g"
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107/* end confdefs.h. */
4108
4109int
4110main ()
4111{
4112
4113 ;
4114 return 0;
4115}
4116_ACEOF
4117if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_cv_prog_cc_g=yes
4119fi
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121fi
4122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123fi
4124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4126fi
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4128$as_echo "$ac_cv_prog_cc_g" >&6; }
4129if test "$ac_test_CFLAGS" = set; then
4130 CFLAGS=$ac_save_CFLAGS
4131elif test $ac_cv_prog_cc_g = yes; then
4132 if test "$GCC" = yes; then
4133 CFLAGS="-g -O2"
4134 else
4135 CFLAGS="-g"
4136 fi
4137else
4138 if test "$GCC" = yes; then
4139 CFLAGS="-O2"
4140 else
4141 CFLAGS=
4142 fi
4143fi
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4145$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004146if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004147 $as_echo_n "(cached) " >&6
4148else
4149 ac_cv_prog_cc_c89=no
4150ac_save_CC=$CC
4151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152/* end confdefs.h. */
4153#include <stdarg.h>
4154#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004155struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004156/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4157struct buf { int x; };
4158FILE * (*rcsopen) (struct buf *, struct stat *, int);
4159static char *e (p, i)
4160 char **p;
4161 int i;
4162{
4163 return p[i];
4164}
4165static char *f (char * (*g) (char **, int), char **p, ...)
4166{
4167 char *s;
4168 va_list v;
4169 va_start (v,p);
4170 s = g (p, va_arg (v,int));
4171 va_end (v);
4172 return s;
4173}
4174
4175/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4176 function prototypes and stuff, but not '\xHH' hex character constants.
4177 These don't provoke an error unfortunately, instead are silently treated
4178 as 'x'. The following induces an error, until -std is added to get
4179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4180 array size at least. It's necessary to write '\x00'==0 to get something
4181 that's true only with -std. */
4182int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4183
4184/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4185 inside strings and character constants. */
4186#define FOO(x) 'x'
4187int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4188
4189int test (int i, double x);
4190struct s1 {int (*f) (int a);};
4191struct s2 {int (*f) (double a);};
4192int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4193int argc;
4194char **argv;
4195int
4196main ()
4197{
4198return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4199 ;
4200 return 0;
4201}
4202_ACEOF
4203for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4205do
4206 CC="$ac_save_CC $ac_arg"
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_cv_prog_cc_c89=$ac_arg
4209fi
4210rm -f core conftest.err conftest.$ac_objext
4211 test "x$ac_cv_prog_cc_c89" != "xno" && break
4212done
4213rm -f conftest.$ac_ext
4214CC=$ac_save_CC
4215
4216fi
4217# AC_CACHE_VAL
4218case "x$ac_cv_prog_cc_c89" in
4219 x)
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4221$as_echo "none needed" >&6; } ;;
4222 xno)
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224$as_echo "unsupported" >&6; } ;;
4225 *)
4226 CC="$CC $ac_cv_prog_cc_c89"
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4228$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4229esac
4230if test "x$ac_cv_prog_cc_c89" != xno; then :
4231
4232fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004240if test "$GCC" = yes; then
4241 RDYNAMIC="-rdynamic"
4242
4243fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004244ac_ext=c
4245ac_cpp='$CPP $CPPFLAGS'
4246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004250$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004251# On Suns, sometimes $CPP names a directory.
4252if test -n "$CPP" && test -d "$CPP"; then
4253 CPP=
4254fi
4255if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004256 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004257 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004258else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004259 # Double quotes because CPP needs to be expanded
4260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4261 do
4262 ac_preproc_ok=false
4263for ac_c_preproc_warn_flag in '' yes
4264do
4265 # Use a header file that comes with gcc, so configuring glibc
4266 # with a fresh cross-compiler works.
4267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4268 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004269 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004270 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004272/* end confdefs.h. */
4273#ifdef __STDC__
4274# include <limits.h>
4275#else
4276# include <assert.h>
4277#endif
4278 Syntax error
4279_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004280if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004281
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004282else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283 # Broken: fails on valid input.
4284continue
4285fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004286rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004287
Theodore Ts'oe1052142006-10-21 21:46:47 -04004288 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004289 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004291/* end confdefs.h. */
4292#include <ac_nonexistent.h>
4293_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004294if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004295 # Broken: success on invalid input.
4296continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004297else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004298 # Passes both tests.
4299ac_preproc_ok=:
4300break
4301fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004302rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004303
4304done
4305# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004306rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004307if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004308 break
4309fi
4310
4311 done
4312 ac_cv_prog_CPP=$CPP
4313
4314fi
4315 CPP=$ac_cv_prog_CPP
4316else
4317 ac_cv_prog_CPP=$CPP
4318fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004320$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004321ac_preproc_ok=false
4322for ac_c_preproc_warn_flag in '' yes
4323do
4324 # Use a header file that comes with gcc, so configuring glibc
4325 # with a fresh cross-compiler works.
4326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4327 # <limits.h> exists even on freestanding compilers.
4328 # On the NeXT, cc -E runs the code through the compiler's parser,
4329 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004331/* end confdefs.h. */
4332#ifdef __STDC__
4333# include <limits.h>
4334#else
4335# include <assert.h>
4336#endif
4337 Syntax error
4338_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004339if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004340
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004341else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004342 # Broken: fails on valid input.
4343continue
4344fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004345rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004346
Theodore Ts'oe1052142006-10-21 21:46:47 -04004347 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004348 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004350/* end confdefs.h. */
4351#include <ac_nonexistent.h>
4352_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004353if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004354 # Broken: success on invalid input.
4355continue
4356else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004357 # Passes both tests.
4358ac_preproc_ok=:
4359break
4360fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004361rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004362
4363done
4364# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004365rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004366if $ac_preproc_ok; then :
4367
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004368else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004371as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4372See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004373fi
4374
4375ac_ext=c
4376ac_cpp='$CPP $CPPFLAGS'
4377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004382$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004383if test "$GCC" = yes
4384then
4385 case "$host_cpu" in
4386 alpha) addcflags="-mieee" ;;
4387 esac
4388fi
4389if test "x$addcflags" != x
4390then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004392$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004393 CFLAGS="$addcflags $CFLAGS"
4394else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004396$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004397fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004398LIB_EXT=.a
4399STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004400PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004401
Theodore Ts'oe1052142006-10-21 21:46:47 -04004402# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004403if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004404 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004405else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004406 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004407fi
4408# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004409if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004410 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004411then
4412 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004414$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004415else
4416 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004418$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004419fi
4420
4421else
4422 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004424$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004425
Theodore Ts'oe1052142006-10-21 21:46:47 -04004426fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004427
Theodore Ts'oe1052142006-10-21 21:46:47 -04004428
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004429# Check whether --enable-symlink-install was given.
4430if test "${enable_symlink_install+set}" = set; then :
4431 enableval=$enable_symlink_install; if test "$enableval" = "no"
4432then
4433 LINK_INSTALL_FLAGS=-f
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4435$as_echo "Disabling symlinks for install" >&6; }
4436else
4437 LINK_INSTALL_FLAGS=-sf
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4439$as_echo "Enabling symlinks for install" >&6; }
4440fi
4441
4442else
4443 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4445$as_echo "Disabling symlinks for install by default" >&6; }
4446
4447fi
4448
4449
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004450relative_symlink_defined=
4451# Check whether --enable-relative-symlinks was given.
4452if test "${enable_relative_symlinks+set}" = set; then :
4453 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004454then
4455 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004456 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4458$as_echo "Disabling relative symlinks for install" >&6; }
4459else
4460 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004461 relative_symlink_defined=yes
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4463$as_echo "Enabling relative symlinks for install" >&6; }
4464fi
4465fi
4466
4467# Check whether --enable-symlink-relative-symlinks was given.
4468if test "${enable_symlink_relative_symlinks+set}" = set; then :
4469 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4470then
4471 SYMLINK_RELATIVE=yes
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4473$as_echo "Disabling relative symlinks for install" >&6; }
4474else
4475 SYMLINK_RELATIVE=--relative
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4477$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004478fi
4479
4480else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004481 if test -z "$relative_symlink_defined"
4482then
4483 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4485$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004486fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004487
4488fi
4489
4490
4491# Check whether --enable-symlink-build was given.
4492if test "${enable_symlink_build+set}" = set; then :
4493 enableval=$enable_symlink_build; if test "$enableval" = "no"
4494then
4495 LINK_BUILD_FLAGS=
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4497$as_echo "Disabling symlinks for build" >&6; }
4498else
4499 LINK_BUILD_FLAGS=-s
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4501$as_echo "Enabling symlinks for build" >&6; }
4502fi
4503
4504else
4505 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4507$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004508
4509fi
4510
4511
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004512# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004513if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004514 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4515then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004517$as_echo "Disabling verbose make commands" >&6; }
4518 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004519 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004520 Q=@
4521else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004523$as_echo "Enabling verbose make commands" >&6; }
4524 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004525 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004526 Q=
4527fi
4528
4529else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004531$as_echo "Disabling verbose make commands" >&6; }
4532E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004533ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004534Q=@
4535
4536fi
4537
4538
4539
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004540
Theodore Ts'oe1052142006-10-21 21:46:47 -04004541# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004542if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004543 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004544then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004546$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004547else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004548
4549$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004550
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004552$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004554$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004555fi
4556
4557else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004559$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004560
Theodore Ts'oe1052142006-10-21 21:46:47 -04004561fi
4562
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004563
Theodore Ts'oe1052142006-10-21 21:46:47 -04004564# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004565if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004566 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004567then
4568 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004570$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004571else
4572 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004573 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004574
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004576$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004577fi
4578
4579else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004580 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004581$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004582
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004584$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004585
Theodore Ts'oe1052142006-10-21 21:46:47 -04004586fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004587
Theodore Ts'oe1052142006-10-21 21:46:47 -04004588
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004589E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004590LDFLAG_DYNAMIC=
4591PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004592# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004593if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004594 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004595then
4596 ELF_CMT=#
4597 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004599$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004600else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004601 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004602 ELF_CMT=
4603 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004604 case "$host_os" in
4605 solaris2.*)
4606 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4607 ;;
4608 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004609 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004610 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004611 PRIVATE_LIBS_CMT=#
4612 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004614$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004615fi
4616
4617else
4618 MAKEFILE_ELF=/dev/null
4619ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004621$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004622
Theodore Ts'oe1052142006-10-21 21:46:47 -04004623fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004624
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004625
Theodore Ts'oe1052142006-10-21 21:46:47 -04004626
4627# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004628if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004629 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004630then
4631 BSDLIB_CMT=#
4632 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004634$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004635else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004636 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004637 BSDLIB_CMT=
4638 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004639 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004640 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004641 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004642 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4643 LIB_EXT=.dylib
4644 ;;
4645 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004647$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004648fi
4649
4650else
4651 MAKEFILE_BSDLIB=/dev/null
4652BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004654$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004655
Theodore Ts'oe1052142006-10-21 21:46:47 -04004656fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004657
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004658
Theodore Ts'oe1052142006-10-21 21:46:47 -04004659
4660# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004661if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004662 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004663then
4664 PROFILE_CMT=#
4665 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004667$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004668else
4669 PROFILE_CMT=
4670 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4671 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004673$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004674fi
4675
4676else
4677 PROFILE_CMT=#
4678MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004680$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004681
Theodore Ts'oe1052142006-10-21 21:46:47 -04004682fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004683
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004684
Theodore Ts'oe1052142006-10-21 21:46:47 -04004685
4686# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004687if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004688 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004689then
4690 CHECKER_CMT=#
4691 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004693$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004694else
4695 CHECKER_CMT=
4696 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004698$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004699fi
4700
4701else
4702 CHECKER_CMT=#
4703MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004705$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004706
Theodore Ts'oe1052142006-10-21 21:46:47 -04004707fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004708
4709
4710
4711
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004712
Theodore Ts'oe1052142006-10-21 21:46:47 -04004713
Theodore Ts'o55da9872008-09-02 23:12:38 -04004714
4715
Theodore Ts'oe1052142006-10-21 21:46:47 -04004716# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004717if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004718 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004719then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004721$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004722else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004723
4724$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004725
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004727$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004728fi
4729
4730else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004732$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004733
Theodore Ts'oe1052142006-10-21 21:46:47 -04004734fi
4735
4736# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004737if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004738 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004739then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004741$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004742else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004743
4744$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004745
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004747$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004748fi
4749
4750else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004752$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004753
Theodore Ts'oe1052142006-10-21 21:46:47 -04004754fi
4755
4756# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004757if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004758 enableval=$enable_testio_debug;
4759if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004760then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004762$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004763 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004764else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004765 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004766 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004767
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004769$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004770fi
4771
4772else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004774$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004775$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004776
4777TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004778
Theodore Ts'oe1052142006-10-21 21:46:47 -04004779fi
4780
Theodore Ts'oaf773652008-09-01 11:27:27 -04004781
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004782
4783
4784if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4785 if test -n "$ac_tool_prefix"; then
4786 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4787set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004789$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004790if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004791 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004792else
4793 case $PKG_CONFIG in
4794 [\\/]* | ?:[\\/]*)
4795 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4796 ;;
4797 *)
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004803 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004805 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004807 break 2
4808 fi
4809done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004810 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004811IFS=$as_save_IFS
4812
4813 ;;
4814esac
4815fi
4816PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4817if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004819$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004820else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004822$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004823fi
4824
4825
4826fi
4827if test -z "$ac_cv_path_PKG_CONFIG"; then
4828 ac_pt_PKG_CONFIG=$PKG_CONFIG
4829 # Extract the first word of "pkg-config", so it can be a program name with args.
4830set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004832$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004833if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004834 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004835else
4836 case $ac_pt_PKG_CONFIG in
4837 [\\/]* | ?:[\\/]*)
4838 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4839 ;;
4840 *)
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842for as_dir in $PATH
4843do
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004846 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004848 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004850 break 2
4851 fi
4852done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004853 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004854IFS=$as_save_IFS
4855
4856 ;;
4857esac
4858fi
4859ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4860if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004862$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004863else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004865$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004866fi
4867
4868 if test "x$ac_pt_PKG_CONFIG" = x; then
4869 PKG_CONFIG=""
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004873{ $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 +01004874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004875ac_tool_warned=yes ;;
4876esac
4877 PKG_CONFIG=$ac_pt_PKG_CONFIG
4878 fi
4879else
4880 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4881fi
4882
4883fi
4884if test -n "$PKG_CONFIG"; then
4885 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004886 { $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 +01004887$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004888 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004890$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004891 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004893$as_echo "no" >&6; }
4894 PKG_CONFIG=""
4895 fi
4896
4897fi
4898LIBUUID=
4899DEPLIBUUID=
4900STATIC_LIBUUID=
4901DEPSTATIC_LIBUUID=
4902PROFILED_LIBUUID=
4903DEPPROFILED_LIBUUID=
4904UUID_CMT=
4905# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004906if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004907 enableval=$enable_libuuid; if test "$enableval" = "no"
4908then
4909 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004910 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004911 fi
4912
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004914$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004915if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004916 $as_echo_n "(cached) " >&6
4917else
4918 ac_check_lib_save_LIBS=$LIBS
4919LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004921/* end confdefs.h. */
4922
4923/* Override any GCC internal prototype to avoid an error.
4924 Use char because int might match the return type of a GCC
4925 builtin and then its argument prototype would still apply. */
4926#ifdef __cplusplus
4927extern "C"
4928#endif
4929char uuid_generate ();
4930int
4931main ()
4932{
4933return uuid_generate ();
4934 ;
4935 return 0;
4936}
4937_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004938if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004939 ac_cv_lib_uuid_uuid_generate=yes
4940else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004941 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004942fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004943rm -f core conftest.err conftest.$ac_objext \
4944 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004945LIBS=$ac_check_lib_save_LIBS
4946fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004948$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004949if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004950 LIBUUID=`$PKG_CONFIG --libs uuid`;
4951 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4952else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004953 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004954fi
4955
4956 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004958$as_echo "Disabling private uuid library" >&6; }
4959else
4960 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4961 DEPLIBUUID=$LIBUUID
4962 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4963 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4964 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4965 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004967$as_echo "Enabling private uuid library" >&6; }
4968fi
4969
4970else
4971 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4972DEPLIBUUID=$LIBUUID
4973STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4974DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4975PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4976DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004978$as_echo "Enabling private uuid library by default" >&6; }
4979
4980fi
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4992 if test -n "$ac_tool_prefix"; then
4993 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4994set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004996$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004997if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004998 $as_echo_n "(cached) " >&6
4999else
5000 case $PKG_CONFIG in
5001 [\\/]* | ?:[\\/]*)
5002 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5003 ;;
5004 *)
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005010 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005012 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005014 break 2
5015 fi
5016done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005017 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005018IFS=$as_save_IFS
5019
5020 ;;
5021esac
5022fi
5023PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5024if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005026$as_echo "$PKG_CONFIG" >&6; }
5027else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005029$as_echo "no" >&6; }
5030fi
5031
5032
5033fi
5034if test -z "$ac_cv_path_PKG_CONFIG"; then
5035 ac_pt_PKG_CONFIG=$PKG_CONFIG
5036 # Extract the first word of "pkg-config", so it can be a program name with args.
5037set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005039$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005040if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005041 $as_echo_n "(cached) " >&6
5042else
5043 case $ac_pt_PKG_CONFIG in
5044 [\\/]* | ?:[\\/]*)
5045 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5046 ;;
5047 *)
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005053 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005055 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005057 break 2
5058 fi
5059done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005060 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005061IFS=$as_save_IFS
5062
5063 ;;
5064esac
5065fi
5066ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5067if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005069$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5070else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005072$as_echo "no" >&6; }
5073fi
5074
5075 if test "x$ac_pt_PKG_CONFIG" = x; then
5076 PKG_CONFIG=""
5077 else
5078 case $cross_compiling:$ac_tool_warned in
5079yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005080{ $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 +01005081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5082ac_tool_warned=yes ;;
5083esac
5084 PKG_CONFIG=$ac_pt_PKG_CONFIG
5085 fi
5086else
5087 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5088fi
5089
5090fi
5091if test -n "$PKG_CONFIG"; then
5092 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005093 { $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 +01005094$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5095 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005097$as_echo "yes" >&6; }
5098 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005100$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005101 PKG_CONFIG=""
5102 fi
5103
5104fi
5105LIBBLKID=
5106DEPLIBBLKID=
5107STATIC_LIBBLKID=
5108DEPSTATIC_LIBBLKID=
5109PROFILED_LIBBLKID=
5110DEPPROFILED_LIBBLKID=
5111BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005112
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005113# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005114if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005115 enableval=$enable_libblkid; if test "$enableval" = "no"
5116then
5117 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005118 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005119 fi
5120
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005122$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005123if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005124 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005125else
5126 ac_check_lib_save_LIBS=$LIBS
5127LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005129/* end confdefs.h. */
5130
5131/* Override any GCC internal prototype to avoid an error.
5132 Use char because int might match the return type of a GCC
5133 builtin and then its argument prototype would still apply. */
5134#ifdef __cplusplus
5135extern "C"
5136#endif
5137char blkid_get_cache ();
5138int
5139main ()
5140{
5141return blkid_get_cache ();
5142 ;
5143 return 0;
5144}
5145_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005146if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005147 ac_cv_lib_blkid_blkid_get_cache=yes
5148else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005149 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005150fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005151rm -f core conftest.err conftest.$ac_objext \
5152 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005153LIBS=$ac_check_lib_save_LIBS
5154fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005156$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005157if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005158 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5159 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5160else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005161 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005162fi
5163
5164 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005166$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005167else
5168 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5169 DEPLIBBLKID=$LIBBLKID
5170 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5171 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5172 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5173 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005174 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005175
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005177$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005178fi
5179
5180else
5181 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5182DEPLIBBLKID=$LIBBLKID
5183STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5184DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5185PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5186DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005187$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005188
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005190$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005191
5192fi
5193
5194
5195
5196
5197
5198
5199
5200
Eric Sandeenf5589f42013-10-14 08:54:15 -04005201QUOTA_MAN_COMMENT='.\"'
Niu Yawei43075b42013-10-14 09:49:27 -04005202QUOTA_CMT=
Eric Sandeenf5589f42013-10-14 08:54:15 -04005203
Aditya Kalif239fef2011-07-20 11:40:02 -07005204
5205
5206if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5207 if test -n "$ac_tool_prefix"; then
5208 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5209set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005212if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005213 $as_echo_n "(cached) " >&6
5214else
5215 case $PKG_CONFIG in
5216 [\\/]* | ?:[\\/]*)
5217 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5218 ;;
5219 *)
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005227 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231done
5232 done
5233IFS=$as_save_IFS
5234
5235 ;;
5236esac
5237fi
5238PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5239if test -n "$PKG_CONFIG"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5241$as_echo "$PKG_CONFIG" >&6; }
5242else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244$as_echo "no" >&6; }
5245fi
5246
5247
5248fi
5249if test -z "$ac_cv_path_PKG_CONFIG"; then
5250 ac_pt_PKG_CONFIG=$PKG_CONFIG
5251 # Extract the first word of "pkg-config", so it can be a program name with args.
5252set dummy pkg-config; ac_word=$2
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005255if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005256 $as_echo_n "(cached) " >&6
5257else
5258 case $ac_pt_PKG_CONFIG in
5259 [\\/]* | ?:[\\/]*)
5260 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5261 ;;
5262 *)
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005270 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274done
5275 done
5276IFS=$as_save_IFS
5277
5278 ;;
5279esac
5280fi
5281ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5282if test -n "$ac_pt_PKG_CONFIG"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5284$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5285else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287$as_echo "no" >&6; }
5288fi
5289
5290 if test "x$ac_pt_PKG_CONFIG" = x; then
5291 PKG_CONFIG=""
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294yes:)
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297ac_tool_warned=yes ;;
5298esac
5299 PKG_CONFIG=$ac_pt_PKG_CONFIG
5300 fi
5301else
5302 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5303fi
5304
5305fi
5306if test -n "$PKG_CONFIG"; then
5307 _pkg_min_version=0.9.0
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5309$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5310 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5312$as_echo "yes" >&6; }
5313 else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315$as_echo "no" >&6; }
5316 PKG_CONFIG=""
5317 fi
5318
5319fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005320
5321# Check whether --enable-quota was given.
5322if test "${enable_quota+set}" = set; then :
5323 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005324then
Niu Yawei43075b42013-10-14 09:49:27 -04005325 QUOTA_CMT=#
Theodore Ts'o7becb202011-11-14 10:40:43 -05005326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5327$as_echo "Disabling quota support" >&6; }
5328else
Niu Yawei43075b42013-10-14 09:49:27 -04005329 QUOTA_CMT=
Theodore Ts'o7becb202011-11-14 10:40:43 -05005330 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005331
Theodore Ts'o7becb202011-11-14 10:40:43 -05005332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5333$as_echo "Enabling quota support" >&6; }
Eric Sandeenf5589f42013-10-14 08:54:15 -04005334 QUOTA_MAN_COMMENT=""
5335
Aditya Kalif239fef2011-07-20 11:40:02 -07005336fi
5337
5338else
Niu Yawei43075b42013-10-14 09:49:27 -04005339 QUOTA_CMT=#
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
Theodore Ts'o7becb202011-11-14 10:40:43 -05005341$as_echo "Disabling quota support by default" >&6; }
5342
5343fi
5344
5345LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005346DEPLIBQUOTA=$LIBQUOTA
5347STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5348DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5349PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5350DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005351
5352
5353
5354
5355
5356
5357
Theodore Ts'o3df60142013-06-16 16:14:40 -04005358
5359# Check whether --enable-backtrace was given.
5360if test "${enable_backtrace+set}" = set; then :
5361 enableval=$enable_backtrace; if test "$enableval" = "no"
5362then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5364$as_echo "Disabling use of backtrace" >&6; }
5365 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5366
5367else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5369$as_echo "Enabling use of backtrace" >&6; }
5370fi
5371
5372else
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5374$as_echo "Enabling use of backtrace by default" >&6; }
5375
5376fi
5377
Theodore Ts'oe1052142006-10-21 21:46:47 -04005378# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005379if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005380 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005381then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005383$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005384 DEBUGFS_CMT="#"
5385else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005386 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005388$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005389fi
5390
5391else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005393$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005394DEBUGFS_CMT=
5395
Theodore Ts'oe1052142006-10-21 21:46:47 -04005396fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005397
Theodore Ts'oe1052142006-10-21 21:46:47 -04005398
5399# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005400if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005401 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005402then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005404$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005405 IMAGER_CMT="#"
5406else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005407 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005409$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005410fi
5411
5412else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005414$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005415IMAGER_CMT=
5416
Theodore Ts'oe1052142006-10-21 21:46:47 -04005417fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005418
Theodore Ts'oe1052142006-10-21 21:46:47 -04005419
5420# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005421if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005422 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005423then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005425$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005426 RESIZER_CMT="#"
5427else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005428 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005430$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005431fi
5432
5433else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005435$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005436RESIZER_CMT=
5437
Theodore Ts'oe1052142006-10-21 21:46:47 -04005438fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005439
Theodore Ts'oe1052142006-10-21 21:46:47 -04005440
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005441# Check whether --enable-defrag was given.
5442if test "${enable_defrag+set}" = set; then :
5443 enableval=$enable_defrag; if test "$enableval" = "no"
5444then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5446$as_echo "Disabling e4defrag support" >&6; }
5447 DEFRAG_CMT="#"
5448else
5449 DEFRAG_CMT=
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5451$as_echo "Enabling e4defrag support" >&6; }
5452fi
5453
5454else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005455 if test -z "$WITH_DIET_LIBC"
5456then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005458$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005459 DEFRAG_CMT=
5460else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5462$as_echo "Disabling e4defrag support by default" >&6; }
5463 DEFRAG_CMT="#"
5464fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005465
5466fi
5467
5468
Theodore Ts'oe1052142006-10-21 21:46:47 -04005469# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005470if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005471 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005472then
5473 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005475$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005476else
5477 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005479$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005480fi
5481
5482else
5483 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005484 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005485 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005487$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005488 ;;
5489 *)
5490 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005492$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005493esac
5494
Theodore Ts'oe1052142006-10-21 21:46:47 -04005495fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005496
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005497
Theodore Ts'oe1052142006-10-21 21:46:47 -04005498
5499# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005500if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005501 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005502then
5503 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005505$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005506else
5507 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005509$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005510fi
5511
5512else
5513 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005515$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005516
Theodore Ts'oe1052142006-10-21 21:46:47 -04005517fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005518
5519
Theodore Ts'oe1052142006-10-21 21:46:47 -04005520
Theodore Ts'o32493942007-12-31 10:45:01 -05005521# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005522if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005523 enableval=$enable_tls; if test "$enableval" = "no"
5524then
5525 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005527$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005528else
5529 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005531$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005532fi
5533
5534else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005535 if test -n "$WITH_DIET_LIBC"
5536then
5537 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005538 { $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 +01005539$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005540else
5541 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005543$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005544fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005545
5546fi
5547
5548if test "$try_tls" = "yes"
5549then
5550
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005552$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005553 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005554 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005555else
5556
5557 ax_tls_keywords="__thread __declspec(thread) none"
5558 for ax_tls_keyword in $ax_tls_keywords; do
5559 case $ax_tls_keyword in
5560 none) ac_cv_tls=none ; break ;;
5561 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005563/* end confdefs.h. */
5564#include <stdlib.h>
5565 static void
5566 foo(void) {
5567 static $ax_tls_keyword int bar;
5568 exit(1);
5569 }
5570int
5571main ()
5572{
5573
5574 ;
5575 return 0;
5576}
5577_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005578if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005579 ac_cv_tls=$ax_tls_keyword ; break
5580else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005581 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005582
5583fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 esac
5586 done
5587
5588fi
5589
5590
5591 if test "$ac_cv_tls" != "none"; then
5592
5593cat >>confdefs.h <<_ACEOF
5594#define TLS $ac_cv_tls
5595_ACEOF
5596
5597 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005599$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005600
5601fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005602
Theodore Ts'o5610f992007-12-31 11:16:56 -05005603# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005604if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005605 enableval=$enable_uuidd; if test "$enableval" = "no"
5606then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005608$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005609 UUIDD_CMT="#"
5610else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005611 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005612
5613 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005615$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005616fi
5617
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
5621UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005623$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005624
5625fi
5626
5627
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005628
5629# Check whether --enable-mmp was given.
5630if test "${enable_mmp+set}" = set; then :
5631 enableval=$enable_mmp; if test "$enableval" = "no"
5632then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5634$as_echo "Disabling mmp support" >&6; }
5635else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5637$as_echo "Enabling mmp support" >&6; }
5638 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5639
5640fi
5641
5642else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5644$as_echo "Enabling mmp support by default" >&6; }
5645$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5646
5647
5648fi
5649
Tony Breeds1625bf42012-07-30 14:44:12 -04005650
5651# Check whether --enable-bmap-stats was given.
5652if test "${enable_bmap_stats+set}" = set; then :
5653 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5654then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5656$as_echo "Disabling bitmap statistics support" >&6; }
5657else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5659$as_echo "Enabling bitmap statistics support" >&6; }
5660 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5661
5662fi
5663
5664else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5666$as_echo "Enabling bitmap statistics support by default" >&6; }
5667$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5668
5669
5670fi
5671
5672
5673# Check whether --enable-bmap-stats-ops was given.
5674if test "${enable_bmap_stats_ops+set}" = set; then :
5675 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5676then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5678$as_echo "Disabling additional bitmap statistics" >&6; }
5679else
5680 if test "x${enable_bmap_stats}" = "xno"; then :
5681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5683as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5684See \`config.log' for more details" "$LINENO" 5; }
5685fi
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5688$as_echo "Enabling additional bitmap statistics" >&6; }
5689 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5690
5691fi
5692
5693else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5695$as_echo "Disabling additional bitmap statistics by default" >&6; }
5696
5697fi
5698
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005699MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5700
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005701GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005702PACKAGE=e2fsprogs
5703VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005704VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005705
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005706cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005707#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005708_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005709
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005711cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005712#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005713_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005714
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005715
5716
5717
5718
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005720$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5721set x ${MAKE-make}
5722ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005723if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005724 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005725else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005726 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005727SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005728all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005729 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005730_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005731# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005732case `${MAKE-make} -f conftest.make 2>/dev/null` in
5733 *@@@%%%=?*=@@@%%%*)
5734 eval ac_cv_prog_make_${ac_make}_set=yes;;
5735 *)
5736 eval ac_cv_prog_make_${ac_make}_set=no;;
5737esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005738rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005739fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005740if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005742$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005743 SET_MAKE=
5744else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005746$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005747 SET_MAKE="MAKE=${MAKE-make}"
5748fi
5749
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005750# Find a good install program. We prefer a C program (faster),
5751# so one script is as good as another. But avoid the broken or
5752# incompatible versions:
5753# SysV /etc/install, /usr/sbin/install
5754# SunOS /usr/etc/install
5755# IRIX /sbin/install
5756# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005757# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005758# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5759# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5760# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005761# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005762# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005763# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005765$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005766if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005767if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005768 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005769else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH
5772do
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005775 # Account for people who put trailing slashes in PATH elements.
5776case $as_dir/ in #((
5777 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005778 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005779 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005780 /usr/ucb/* ) ;;
5781 *)
5782 # OSF1 and SCO ODT 3.0 have their own names for install.
5783 # Don't use installbsd from OSF since it installs stuff as root
5784 # by default.
5785 for ac_prog in ginstall scoinst install; do
5786 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005787 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005788 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005789 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005790 # AIX install. It has an incompatible calling convention.
5791 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005792 elif test $ac_prog = install &&
5793 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5794 # program-specific install script used by HP pwplus--don't use.
5795 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005796 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005797 rm -rf conftest.one conftest.two conftest.dir
5798 echo one > conftest.one
5799 echo two > conftest.two
5800 mkdir conftest.dir
5801 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5802 test -s conftest.one && test -s conftest.two &&
5803 test -s conftest.dir/conftest.one &&
5804 test -s conftest.dir/conftest.two
5805 then
5806 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5807 break 3
5808 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005809 fi
5810 fi
5811 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005812 done
5813 ;;
5814esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005815
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005816 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005817IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005818
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005819rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005820
5821fi
5822 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005823 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005824 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005825 # As a last resort, use the slow shell script. Don't cache a
5826 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005827 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005828 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005829 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005830 fi
5831fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005833$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005834
5835# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5836# It thinks the first close brace ends the variable substitution.
5837test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5838
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005839test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005840
5841test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5842
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005843
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005844 MKINSTALLDIRS=
5845 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005846 case "$ac_aux_dir" in
5847 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5848 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5849 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005850 fi
5851 if test -z "$MKINSTALLDIRS"; then
5852 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5853 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005854
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005855
5856
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005858$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005859 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005860if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005861 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005862else
5863 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005864fi
5865
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005867$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005868
5869
5870
5871
5872
5873
5874# Prepare PATH_SEPARATOR.
5875# The user is always right.
5876if test "${PATH_SEPARATOR+set}" != set; then
5877 echo "#! /bin/sh" >conf$$.sh
5878 echo "exit 0" >>conf$$.sh
5879 chmod +x conf$$.sh
5880 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5881 PATH_SEPARATOR=';'
5882 else
5883 PATH_SEPARATOR=:
5884 fi
5885 rm -f conf$$.sh
5886fi
5887
5888# Find out how to test for executable files. Don't use a zero-byte file,
5889# as systems may use methods other than mode bits to determine executability.
5890cat >conf$$.file <<_ASEOF
5891#! /bin/sh
5892exit 0
5893_ASEOF
5894chmod +x conf$$.file
5895if test -x conf$$.file >/dev/null 2>&1; then
5896 ac_executable_p="test -x"
5897else
5898 ac_executable_p="test -f"
5899fi
5900rm -f conf$$.file
5901
5902# Extract the first word of "msgfmt", so it can be a program name with args.
5903set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005905$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005906if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005907 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005908else
5909 case "$MSGFMT" in
5910 [\\/]* | ?:[\\/]*)
5911 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5912 ;;
5913 *)
5914 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5915 for ac_dir in $PATH; do
5916 IFS="$ac_save_IFS"
5917 test -z "$ac_dir" && ac_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5920 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5921 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5922 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5923 break 2
5924 fi
5925 fi
5926 done
5927 done
5928 IFS="$ac_save_IFS"
5929 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5930 ;;
5931esac
5932fi
5933MSGFMT="$ac_cv_path_MSGFMT"
5934if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005936$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005937else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005939$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005940fi
5941
5942 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5943set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005945$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005946if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005947 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005948else
5949 case $GMSGFMT in
5950 [\\/]* | ?:[\\/]*)
5951 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5952 ;;
5953 *)
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005959 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005961 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005963 break 2
5964 fi
5965done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005966 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005967IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005968
5969 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5970 ;;
5971esac
5972fi
5973GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005974if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005976$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005977else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005979$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005980fi
5981
5982
5983
Theodore Ts'oe1052142006-10-21 21:46:47 -04005984
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005985# Prepare PATH_SEPARATOR.
5986# The user is always right.
5987if test "${PATH_SEPARATOR+set}" != set; then
5988 echo "#! /bin/sh" >conf$$.sh
5989 echo "exit 0" >>conf$$.sh
5990 chmod +x conf$$.sh
5991 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5992 PATH_SEPARATOR=';'
5993 else
5994 PATH_SEPARATOR=:
5995 fi
5996 rm -f conf$$.sh
5997fi
5998
5999# Find out how to test for executable files. Don't use a zero-byte file,
6000# as systems may use methods other than mode bits to determine executability.
6001cat >conf$$.file <<_ASEOF
6002#! /bin/sh
6003exit 0
6004_ASEOF
6005chmod +x conf$$.file
6006if test -x conf$$.file >/dev/null 2>&1; then
6007 ac_executable_p="test -x"
6008else
6009 ac_executable_p="test -f"
6010fi
6011rm -f conf$$.file
6012
6013# Extract the first word of "xgettext", so it can be a program name with args.
6014set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006016$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006017if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006018 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006019else
6020 case "$XGETTEXT" in
6021 [\\/]* | ?:[\\/]*)
6022 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6023 ;;
6024 *)
6025 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6026 for ac_dir in $PATH; do
6027 IFS="$ac_save_IFS"
6028 test -z "$ac_dir" && ac_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6031 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6032 (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
6033 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6034 break 2
6035 fi
6036 fi
6037 done
6038 done
6039 IFS="$ac_save_IFS"
6040 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6041 ;;
6042esac
6043fi
6044XGETTEXT="$ac_cv_path_XGETTEXT"
6045if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006047$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006048else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006050$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006051fi
6052
6053 rm -f messages.po
6054
6055
6056# Prepare PATH_SEPARATOR.
6057# The user is always right.
6058if test "${PATH_SEPARATOR+set}" != set; then
6059 echo "#! /bin/sh" >conf$$.sh
6060 echo "exit 0" >>conf$$.sh
6061 chmod +x conf$$.sh
6062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6063 PATH_SEPARATOR=';'
6064 else
6065 PATH_SEPARATOR=:
6066 fi
6067 rm -f conf$$.sh
6068fi
6069
6070# Find out how to test for executable files. Don't use a zero-byte file,
6071# as systems may use methods other than mode bits to determine executability.
6072cat >conf$$.file <<_ASEOF
6073#! /bin/sh
6074exit 0
6075_ASEOF
6076chmod +x conf$$.file
6077if test -x conf$$.file >/dev/null 2>&1; then
6078 ac_executable_p="test -x"
6079else
6080 ac_executable_p="test -f"
6081fi
6082rm -f conf$$.file
6083
6084# Extract the first word of "msgmerge", so it can be a program name with args.
6085set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006087$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006088if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006089 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006090else
6091 case "$MSGMERGE" in
6092 [\\/]* | ?:[\\/]*)
6093 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6094 ;;
6095 *)
6096 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6097 for ac_dir in $PATH; do
6098 IFS="$ac_save_IFS"
6099 test -z "$ac_dir" && ac_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6102 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6103 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6104 break 2
6105 fi
6106 fi
6107 done
6108 done
6109 IFS="$ac_save_IFS"
6110 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6111 ;;
6112esac
6113fi
6114MSGMERGE="$ac_cv_path_MSGMERGE"
6115if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006117$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006118else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006120$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006121fi
6122
6123
6124 if test "$GMSGFMT" != ":"; then
6125 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6126 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6127 : ;
6128 else
6129 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006130 { $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 +01006131$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006132 GMSGFMT=":"
6133 fi
6134 fi
6135
6136 if test "$XGETTEXT" != ":"; then
6137 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6138 (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
6139 : ;
6140 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006141 { $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 +01006142$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006143 XGETTEXT=":"
6144 fi
6145 rm -f messages.po
6146 fi
6147
Theodore Ts'oe1052142006-10-21 21:46:47 -04006148 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006149
6150
6151if test -n "$ac_tool_prefix"; then
6152 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6153set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006155$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006156if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006157 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006158else
6159 if test -n "$RANLIB"; then
6160 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6161else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006167 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006169 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006171 break 2
6172 fi
6173done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006174 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006175IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006176
6177fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006178fi
6179RANLIB=$ac_cv_prog_RANLIB
6180if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006182$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006183else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006185$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006186fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006187
Theodore Ts'oe1052142006-10-21 21:46:47 -04006188
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006189fi
6190if test -z "$ac_cv_prog_RANLIB"; then
6191 ac_ct_RANLIB=$RANLIB
6192 # Extract the first word of "ranlib", so it can be a program name with args.
6193set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006195$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006196if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006197 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006198else
6199 if test -n "$ac_ct_RANLIB"; then
6200 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6201else
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006207 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006209 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006211 break 2
6212 fi
6213done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006214 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006215IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006216
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006217fi
6218fi
6219ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6220if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006222$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006223else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006225$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006226fi
6227
Theodore Ts'oe1052142006-10-21 21:46:47 -04006228 if test "x$ac_ct_RANLIB" = x; then
6229 RANLIB=":"
6230 else
6231 case $cross_compiling:$ac_tool_warned in
6232yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006233{ $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 +01006234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006235ac_tool_warned=yes ;;
6236esac
6237 RANLIB=$ac_ct_RANLIB
6238 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006239else
6240 RANLIB="$ac_cv_prog_RANLIB"
6241fi
6242
6243
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006245$as_echo_n "checking for strerror in -lcposix... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006246if ${ac_cv_lib_cposix_strerror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006247 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006248else
6249 ac_check_lib_save_LIBS=$LIBS
6250LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006252/* end confdefs.h. */
6253
Theodore Ts'oe1052142006-10-21 21:46:47 -04006254/* Override any GCC internal prototype to avoid an error.
6255 Use char because int might match the return type of a GCC
6256 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006257#ifdef __cplusplus
6258extern "C"
6259#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006260char strerror ();
6261int
6262main ()
6263{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006264return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006265 ;
6266 return 0;
6267}
6268_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006269if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006270 ac_cv_lib_cposix_strerror=yes
6271else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006272 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006273fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006274rm -f core conftest.err conftest.$ac_objext \
6275 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006276LIBS=$ac_check_lib_save_LIBS
6277fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006279$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006280if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006281 LIBS="$LIBS -lcposix"
6282fi
6283
6284
6285
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006286
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6288$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006289if ${ac_cv_path_GREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006290 $as_echo_n "(cached) " >&6
6291else
6292 if test -z "$GREP"; then
6293 ac_path_GREP_found=false
6294 # Loop through the user's path and test for each of PROGNAME-LIST
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_prog in grep ggrep; do
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006303 as_fn_executable_p "$ac_path_GREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006304# Check for GNU ac_path_GREP and select it if it is found.
6305 # Check for GNU $ac_path_GREP
6306case `"$ac_path_GREP" --version 2>&1` in
6307*GNU*)
6308 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6309*)
6310 ac_count=0
6311 $as_echo_n 0123456789 >"conftest.in"
6312 while :
6313 do
6314 cat "conftest.in" "conftest.in" >"conftest.tmp"
6315 mv "conftest.tmp" "conftest.in"
6316 cp "conftest.in" "conftest.nl"
6317 $as_echo 'GREP' >> "conftest.nl"
6318 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6320 as_fn_arith $ac_count + 1 && ac_count=$as_val
6321 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6322 # Best one so far, save it but keep looking for a better one
6323 ac_cv_path_GREP="$ac_path_GREP"
6324 ac_path_GREP_max=$ac_count
6325 fi
6326 # 10*(2^10) chars as input seems more than enough
6327 test $ac_count -gt 10 && break
6328 done
6329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6330esac
6331
6332 $ac_path_GREP_found && break 3
6333 done
6334 done
6335 done
6336IFS=$as_save_IFS
6337 if test -z "$ac_cv_path_GREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006338 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 -04006339 fi
6340else
6341 ac_cv_path_GREP=$GREP
6342fi
6343
6344fi
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6346$as_echo "$ac_cv_path_GREP" >&6; }
6347 GREP="$ac_cv_path_GREP"
6348
6349
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6351$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006352if ${ac_cv_path_EGREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006353 $as_echo_n "(cached) " >&6
6354else
6355 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6356 then ac_cv_path_EGREP="$GREP -E"
6357 else
6358 if test -z "$EGREP"; then
6359 ac_path_EGREP_found=false
6360 # Loop through the user's path and test for each of PROGNAME-LIST
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6363do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_prog in egrep; do
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006369 as_fn_executable_p "$ac_path_EGREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006370# Check for GNU ac_path_EGREP and select it if it is found.
6371 # Check for GNU $ac_path_EGREP
6372case `"$ac_path_EGREP" --version 2>&1` in
6373*GNU*)
6374 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6375*)
6376 ac_count=0
6377 $as_echo_n 0123456789 >"conftest.in"
6378 while :
6379 do
6380 cat "conftest.in" "conftest.in" >"conftest.tmp"
6381 mv "conftest.tmp" "conftest.in"
6382 cp "conftest.in" "conftest.nl"
6383 $as_echo 'EGREP' >> "conftest.nl"
6384 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6386 as_fn_arith $ac_count + 1 && ac_count=$as_val
6387 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6388 # Best one so far, save it but keep looking for a better one
6389 ac_cv_path_EGREP="$ac_path_EGREP"
6390 ac_path_EGREP_max=$ac_count
6391 fi
6392 # 10*(2^10) chars as input seems more than enough
6393 test $ac_count -gt 10 && break
6394 done
6395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6396esac
6397
6398 $ac_path_EGREP_found && break 3
6399 done
6400 done
6401 done
6402IFS=$as_save_IFS
6403 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006404 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 -04006405 fi
6406else
6407 ac_cv_path_EGREP=$EGREP
6408fi
6409
6410 fi
6411fi
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6413$as_echo "$ac_cv_path_EGREP" >&6; }
6414 EGREP="$ac_cv_path_EGREP"
6415
6416
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6418$as_echo_n "checking for ANSI C header files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006419if ${ac_cv_header_stdc+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006420 $as_echo_n "(cached) " >&6
6421else
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423/* end confdefs.h. */
6424#include <stdlib.h>
6425#include <stdarg.h>
6426#include <string.h>
6427#include <float.h>
6428
6429int
6430main ()
6431{
6432
6433 ;
6434 return 0;
6435}
6436_ACEOF
6437if ac_fn_c_try_compile "$LINENO"; then :
6438 ac_cv_header_stdc=yes
6439else
6440 ac_cv_header_stdc=no
6441fi
6442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443
6444if test $ac_cv_header_stdc = yes; then
6445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h. */
6448#include <string.h>
6449
6450_ACEOF
6451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452 $EGREP "memchr" >/dev/null 2>&1; then :
6453
6454else
6455 ac_cv_header_stdc=no
6456fi
6457rm -f conftest*
6458
6459fi
6460
6461if test $ac_cv_header_stdc = yes; then
6462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464/* end confdefs.h. */
6465#include <stdlib.h>
6466
6467_ACEOF
6468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6469 $EGREP "free" >/dev/null 2>&1; then :
6470
6471else
6472 ac_cv_header_stdc=no
6473fi
6474rm -f conftest*
6475
6476fi
6477
6478if test $ac_cv_header_stdc = yes; then
6479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6480 if test "$cross_compiling" = yes; then :
6481 :
6482else
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h. */
6485#include <ctype.h>
6486#include <stdlib.h>
6487#if ((' ' & 0x0FF) == 0x020)
6488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6490#else
6491# define ISLOWER(c) \
6492 (('a' <= (c) && (c) <= 'i') \
6493 || ('j' <= (c) && (c) <= 'r') \
6494 || ('s' <= (c) && (c) <= 'z'))
6495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6496#endif
6497
6498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6499int
6500main ()
6501{
6502 int i;
6503 for (i = 0; i < 256; i++)
6504 if (XOR (islower (i), ISLOWER (i))
6505 || toupper (i) != TOUPPER (i))
6506 return 2;
6507 return 0;
6508}
6509_ACEOF
6510if ac_fn_c_try_run "$LINENO"; then :
6511
6512else
6513 ac_cv_header_stdc=no
6514fi
6515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6516 conftest.$ac_objext conftest.beam conftest.$ac_ext
6517fi
6518
6519fi
6520fi
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6522$as_echo "$ac_cv_header_stdc" >&6; }
6523if test $ac_cv_header_stdc = yes; then
6524
6525$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6526
6527fi
6528
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006530$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006531if ${ac_cv_c_const+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006532 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006533else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006535/* end confdefs.h. */
6536
6537int
6538main ()
6539{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006540
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006541#ifndef __cplusplus
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006542 /* Ultrix mips cc rejects this sort of thing. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006543 typedef int charset[2];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006544 const charset cs = { 0, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006545 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006546 char const *const *pcpcc;
6547 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006548 /* NEC SVR4.0.2 mips cc rejects this. */
6549 struct point {int x, y;};
6550 static struct point const zero = {0,0};
6551 /* AIX XL C 1.02.0.0 rejects this.
6552 It does not let you subtract one const X* pointer from another in
6553 an arm of an if-expression whose if-part is not a constant
6554 expression */
6555 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006556 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006557 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006558 ++pcpcc;
6559 ppc = (char**) pcpcc;
6560 pcpcc = (char const *const *) ppc;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006561 { /* SCO 3.2v4 cc rejects this sort of thing. */
6562 char tx;
6563 char *t = &tx;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006564 char const *s = 0 ? (char *) 0 : (char const *) 0;
6565
6566 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006567 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006568 }
6569 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6570 int x[] = {25, 17};
6571 const int *foo = &x[0];
6572 ++foo;
6573 }
6574 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6575 typedef const int *iptr;
6576 iptr p = 0;
6577 ++p;
6578 }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006579 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006580 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006581 struct s { int j; const int *ap[3]; } bx;
6582 struct s *b = &bx; b->j = 5;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006583 }
6584 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6585 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006586 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006587 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006588 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006589#endif
6590
6591 ;
6592 return 0;
6593}
6594_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006595if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006596 ac_cv_c_const=yes
6597else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006598 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006599fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006601fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006603$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006604if test $ac_cv_c_const = no; then
6605
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006606$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006607
6608fi
6609
6610
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006612$as_echo_n "checking for signed... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006613if ${bh_cv_c_signed+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006614 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006615else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006617/* end confdefs.h. */
6618
6619int
6620main ()
6621{
6622signed char x;
6623 ;
6624 return 0;
6625}
6626_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006627if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006628 bh_cv_c_signed=yes
6629else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006630 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006631fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006633fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006635$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636 if test $bh_cv_c_signed = no; then
6637
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006638$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006639
6640 fi
6641
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006643$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006644if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006645 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646else
6647 ac_cv_c_inline=no
6648for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006650/* end confdefs.h. */
6651#ifndef __cplusplus
6652typedef int foo_t;
6653static $ac_kw foo_t static_foo () {return 0; }
6654$ac_kw foo_t foo () {return 0; }
6655#endif
6656
6657_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006658if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006659 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006660fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006663done
6664
6665fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006667$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006669case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006670 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006671 *)
6672 case $ac_cv_c_inline in
6673 no) ac_val=;;
6674 *) ac_val=$ac_cv_c_inline;;
6675 esac
6676 cat >>confdefs.h <<_ACEOF
6677#ifndef __cplusplus
6678#define inline $ac_val
6679#endif
6680_ACEOF
6681 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006682esac
6683
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006684# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6685for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6686 inttypes.h stdint.h unistd.h
6687do :
6688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6689ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6690"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006691if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006692 cat >>confdefs.h <<_ACEOF
6693#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6694_ACEOF
6695
6696fi
6697
6698done
6699
6700
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006701ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006702if test "x$ac_cv_type_off_t" = xyes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006703
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006704else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006705
6706cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006707#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006708_ACEOF
6709
6710fi
6711
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006712ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006713if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006714
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006715else
6716
6717cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006718#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006719_ACEOF
6720
6721fi
6722
6723
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006725$as_echo_n "checking for long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006726if ${ac_cv_type_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006727 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006728else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006730/* end confdefs.h. */
6731long long ll = 1LL; int i = 63;
6732int
6733main ()
6734{
6735long long llmax = (long long) -1;
6736 return ll << i | ll >> i | llmax / ll | llmax % ll;
6737 ;
6738 return 0;
6739}
6740_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006741if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006742 ac_cv_type_long_long=yes
6743else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006744 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006745fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006746rm -f core conftest.err conftest.$ac_objext \
6747 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006748fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006750$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006751 if test $ac_cv_type_long_long = yes; then
6752
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006753$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754
6755 fi
6756
6757
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006759$as_echo_n "checking for long double... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006760if ${gt_cv_c_long_double+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006761 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006762else
6763 if test "$GCC" = yes; then
6764 gt_cv_c_long_double=yes
6765 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006767/* end confdefs.h. */
6768
6769 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6770 long double foo = 0.0;
6771 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6772 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6773
6774int
6775main ()
6776{
6777
6778 ;
6779 return 0;
6780}
6781_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006782if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006783 gt_cv_c_long_double=yes
6784else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006785 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006786fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006788 fi
6789fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006791$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006792 if test $gt_cv_c_long_double = yes; then
6793
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006794$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006795
6796 fi
6797
6798
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006800$as_echo_n "checking for wchar_t... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006801if ${gt_cv_c_wchar_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006802 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006803else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006805/* end confdefs.h. */
6806#include <stddef.h>
6807 wchar_t foo = (wchar_t)'\0';
6808int
6809main ()
6810{
6811
6812 ;
6813 return 0;
6814}
6815_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006816if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006817 gt_cv_c_wchar_t=yes
6818else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006819 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006820fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006822fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006824$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006825 if test $gt_cv_c_wchar_t = yes; then
6826
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006827$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006828
6829 fi
6830
6831
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006833$as_echo_n "checking for wint_t... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006834if ${gt_cv_c_wint_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006835 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006836else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006838/* end confdefs.h. */
6839#include <wchar.h>
6840 wint_t foo = (wchar_t)'\0';
6841int
6842main ()
6843{
6844
6845 ;
6846 return 0;
6847}
6848_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006849if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006850 gt_cv_c_wint_t=yes
6851else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006852 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006855fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006857$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006858 if test $gt_cv_c_wint_t = yes; then
6859
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006860$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006861
6862 fi
6863
6864
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006866$as_echo_n "checking for inttypes.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006867if ${jm_ac_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006868 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006869else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006871/* end confdefs.h. */
6872#include <sys/types.h>
6873#include <inttypes.h>
6874int
6875main ()
6876{
6877uintmax_t i = (uintmax_t) -1;
6878 ;
6879 return 0;
6880}
6881_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006882if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006883 jm_ac_cv_header_inttypes_h=yes
6884else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006885 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006886fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006888fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006890$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006891 if test $jm_ac_cv_header_inttypes_h = yes; then
6892
6893cat >>confdefs.h <<_ACEOF
6894#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6895_ACEOF
6896
6897 fi
6898
6899
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006901$as_echo_n "checking for stdint.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006902if ${jm_ac_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006903 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006904else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006906/* end confdefs.h. */
6907#include <sys/types.h>
6908#include <stdint.h>
6909int
6910main ()
6911{
6912uintmax_t i = (uintmax_t) -1;
6913 ;
6914 return 0;
6915}
6916_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006917if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918 jm_ac_cv_header_stdint_h=yes
6919else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006920 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006921fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006923fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006925$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006926 if test $jm_ac_cv_header_stdint_h = yes; then
6927
6928cat >>confdefs.h <<_ACEOF
6929#define HAVE_STDINT_H_WITH_UINTMAX 1
6930_ACEOF
6931
6932 fi
6933
6934
6935
6936
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006938$as_echo_n "checking for intmax_t... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006939if ${gt_cv_c_intmax_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006940 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006941else
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 <stddef.h>
6946#include <stdlib.h>
6947#if HAVE_STDINT_H_WITH_UINTMAX
6948#include <stdint.h>
6949#endif
6950#if HAVE_INTTYPES_H_WITH_UINTMAX
6951#include <inttypes.h>
6952#endif
6953
6954int
6955main ()
6956{
6957intmax_t x = -1;
6958 ;
6959 return 0;
6960}
6961_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006962if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006963 gt_cv_c_intmax_t=yes
6964else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006965 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006966fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006968fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006970$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006971 if test $gt_cv_c_intmax_t = yes; then
6972
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006973$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006974
6975 fi
6976
6977
6978
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006980$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006981if ${gt_cv_func_printf_posix+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006982 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006983else
6984
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006985 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006986
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988/* end confdefs.h. */
6989
6990#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6991 notposix
6992#endif
6993
6994_ACEOF
6995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006996 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006997 gt_cv_func_printf_posix="guessing no"
6998else
6999 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007000fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007001rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007002
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007003
7004else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007006/* end confdefs.h. */
7007
7008#include <stdio.h>
7009#include <string.h>
7010/* The string "%2$d %1$d", with dollar characters protected from the shell's
7011 dollar expansion (possibly an autoconf bug). */
7012static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
7013static char buf[100];
7014int main ()
7015{
7016 sprintf (buf, format, 33, 55);
7017 return (strcmp (buf, "55 33") != 0);
7018}
7019_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007020if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007021 gt_cv_func_printf_posix=yes
7022else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007023 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007024fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7026 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007028
Theodore Ts'oe1052142006-10-21 21:46:47 -04007029
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007030fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007032$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007033 case $gt_cv_func_printf_posix in
7034 *yes)
7035
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007036$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007037
7038 ;;
7039 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007040
7041# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7042# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007044$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007045if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007046 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007047else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007049/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007050#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051int
7052main ()
7053{
7054char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04007055 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007056 ;
7057 return 0;
7058}
7059_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007060if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007061 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007062else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007063 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007064fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007065rm -f core conftest.err conftest.$ac_objext \
7066 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007067fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007069$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070if test $ac_cv_working_alloca_h = yes; then
7071
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007072$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007073
7074fi
7075
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007077$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007078if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007079 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007080else
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'oa64c9c12000-02-08 20:17:21 +00007083#ifdef __GNUC__
7084# define alloca __builtin_alloca
7085#else
7086# ifdef _MSC_VER
7087# include <malloc.h>
7088# define alloca _alloca
7089# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007090# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007091# include <alloca.h>
7092# else
7093# ifdef _AIX
7094 #pragma alloca
7095# else
7096# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007097void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007098# endif
7099# endif
7100# endif
7101# endif
7102#endif
7103
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007104int
7105main ()
7106{
7107char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007108 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007109 ;
7110 return 0;
7111}
7112_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007113if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007114 ac_cv_func_alloca_works=yes
7115else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007116 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007117fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007118rm -f core conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007122$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007123
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007124if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007125
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007126$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007127
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007128else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007129 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7130# that cause trouble. Some versions do not even contain alloca or
7131# contain a buggy version. If you still want to use their alloca,
7132# use ar to extract alloca.o from them instead of compiling alloca.c.
7133
Theodore Ts'oe1052142006-10-21 21:46:47 -04007134ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007135
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007136$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007137
7138
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007140$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007141if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007142 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007143else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007145/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007146#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007147webecray
7148#else
7149wenotbecray
7150#endif
7151
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007152_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007154 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007155 ac_cv_os_cray=yes
7156else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007157 ac_cv_os_cray=no
7158fi
7159rm -f conftest*
7160
7161fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007163$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007164if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007165 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007166 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007167ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007168if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007169
7170cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007171#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007172_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007173
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007174 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007175fi
7176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007177 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007178fi
7179
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007181$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007182if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007183 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007184else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007185 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007186 ac_cv_c_stack_direction=0
7187else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007189/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007190$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007191int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007192find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007193{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007194 int dir, dummy = 0;
7195 if (! addr)
7196 addr = &dummy;
7197 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7198 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7199 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007200}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007201
7202int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007203main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007204{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007205 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007206}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007207_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007208if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007209 ac_cv_c_stack_direction=1
7210else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007211 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007212fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7214 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007215fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007216
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007217fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007219$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007220cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007221#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007222_ACEOF
7223
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007224
7225fi
7226
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007227
7228
7229
7230 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007231do :
7232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007233ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7234"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007235if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007236 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007237#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007238_ACEOF
7239
7240fi
7241
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007242done
7243
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007244
7245
7246
7247
7248
7249
7250
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007251for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007252do :
7253 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007254if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007255 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007256#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007257_ACEOF
7258
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007259fi
7260done
7261
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007263$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007264if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007265 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007266else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007267 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007268 ac_cv_func_mmap_fixed_mapped=no
7269else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271/* end confdefs.h. */
7272$ac_includes_default
7273/* malloc might have been renamed as rpl_malloc. */
7274#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007275
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007276/* Thanks to Mike Haertel and Jim Avera for this test.
7277 Here is a matrix of mmap possibilities:
7278 mmap private not fixed
7279 mmap private fixed at somewhere currently unmapped
7280 mmap private fixed at somewhere already mapped
7281 mmap shared not fixed
7282 mmap shared fixed at somewhere currently unmapped
7283 mmap shared fixed at somewhere already mapped
7284 For private mappings, we should verify that changes cannot be read()
7285 back from the file, nor mmap's back from the file at a different
7286 address. (There have been systems where private was not correctly
7287 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007288 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007289 like early versions of FreeBSD and possibly contemporary NetBSD.)
7290 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007291 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007292
7293 Grep wants private fixed already mapped.
7294 The main things grep needs to know about mmap are:
7295 * does it exist and is it safe to write into the mmap'd area
7296 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007297
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007298#include <fcntl.h>
7299#include <sys/mman.h>
7300
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007301#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007302char *malloc ();
7303#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007304
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007305/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007306#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007307# ifdef _SC_PAGESIZE
7308# define getpagesize() sysconf(_SC_PAGESIZE)
7309# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007310# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007311# include <sys/param.h>
7312# ifdef EXEC_PAGESIZE
7313# define getpagesize() EXEC_PAGESIZE
7314# else /* no EXEC_PAGESIZE */
7315# ifdef NBPG
7316# define getpagesize() NBPG * CLSIZE
7317# ifndef CLSIZE
7318# define CLSIZE 1
7319# endif /* no CLSIZE */
7320# else /* no NBPG */
7321# ifdef NBPC
7322# define getpagesize() NBPC
7323# else /* no NBPC */
7324# ifdef PAGESIZE
7325# define getpagesize() PAGESIZE
7326# endif /* PAGESIZE */
7327# endif /* no NBPC */
7328# endif /* no NBPG */
7329# endif /* no EXEC_PAGESIZE */
7330# else /* no HAVE_SYS_PARAM_H */
7331# define getpagesize() 8192 /* punt totally */
7332# endif /* no HAVE_SYS_PARAM_H */
7333# endif /* no _SC_PAGESIZE */
7334
7335#endif /* no HAVE_GETPAGESIZE */
7336
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007337int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007338main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007339{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007340 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007341 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007342 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007343 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007344
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007345 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007346
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007347 /* First, make a file with some known garbage in it. */
7348 data = (char *) malloc (pagesize);
7349 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007350 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007351 for (i = 0; i < pagesize; ++i)
7352 *(data + i) = rand ();
7353 umask (0);
7354 fd = creat ("conftest.mmap", 0600);
7355 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007356 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007357 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007358 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007359 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007360
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007361 /* Next, check that the tail of a page is zero-filled. File must have
7362 non-zero length, otherwise we risk SIGBUS for entire page. */
7363 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7364 if (fd2 < 0)
7365 return 4;
7366 cdata2 = "";
7367 if (write (fd2, cdata2, 1) != 1)
7368 return 5;
7369 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7370 if (data2 == MAP_FAILED)
7371 return 6;
7372 for (i = 0; i < pagesize; ++i)
7373 if (*(data2 + i))
7374 return 7;
7375 close (fd2);
7376 if (munmap (data2, pagesize))
7377 return 8;
7378
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007379 /* Next, try to mmap the file at a fixed address which already has
7380 something else allocated at it. If we can, also make sure that
7381 we see the same garbage. */
7382 fd = open ("conftest.mmap", O_RDWR);
7383 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007384 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007385 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7386 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007387 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007388 for (i = 0; i < pagesize; ++i)
7389 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007390 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007391
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007392 /* Finally, make sure that changes to the mapped area do not
7393 percolate back to the file as seen by read(). (This is a bug on
7394 some variants of i386 svr4.0.) */
7395 for (i = 0; i < pagesize; ++i)
7396 *(data2 + i) = *(data2 + i) + 1;
7397 data3 = (char *) malloc (pagesize);
7398 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007399 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007400 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007401 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007402 for (i = 0; i < pagesize; ++i)
7403 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007404 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007405 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007406 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007407}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007408_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007409if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007410 ac_cv_func_mmap_fixed_mapped=yes
7411else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007412 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007413fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7415 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007416fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007418fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007420$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007421if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007422
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007423$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007424
7425fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007426rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007427
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007428
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007429 { $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 +01007430$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007431if ${ac_cv_gnu_library_2_1+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007432 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007433else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007435/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007436
7437#include <features.h>
7438#ifdef __GNU_LIBRARY__
7439 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7440 Lucky GNU user
7441 #endif
7442#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007443
7444_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007446 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007447 ac_cv_gnu_library_2_1=yes
7448else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007449 ac_cv_gnu_library_2_1=no
7450fi
7451rm -f conftest*
7452
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007453
7454
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007455fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007457$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007458
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007459 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007460
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007462
7463
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007465$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007466if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007467 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007468else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007469
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007470 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007471
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007472 # Guess based on the CPU.
7473 case "$host_cpu" in
7474 alpha* | i3456786 | m68k | s390*)
7475 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7476 *)
7477 gt_cv_int_divbyzero_sigfpe="guessing no";;
7478 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007479
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007480else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007482/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007483
7484#include <stdlib.h>
7485#include <signal.h>
7486
7487static void
7488#ifdef __cplusplus
7489sigfpe_handler (int sig)
7490#else
7491sigfpe_handler (sig) int sig;
7492#endif
7493{
7494 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7495 exit (sig != SIGFPE);
7496}
7497
7498int x = 1;
7499int y = 0;
7500int z;
7501int nan;
7502
7503int main ()
7504{
7505 signal (SIGFPE, sigfpe_handler);
7506/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7507#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7508 signal (SIGTRAP, sigfpe_handler);
7509#endif
7510/* Linux/SPARC yields signal SIGILL. */
7511#if defined (__sparc__) && defined (__linux__)
7512 signal (SIGILL, sigfpe_handler);
7513#endif
7514
7515 z = x / y;
7516 nan = y / y;
7517 exit (1);
7518}
7519
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007520_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007521if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007522 gt_cv_int_divbyzero_sigfpe=yes
7523else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007524 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007525fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7527 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007528fi
7529
Theodore Ts'oe1052142006-10-21 21:46:47 -04007530
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007531fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007533$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007534 case "$gt_cv_int_divbyzero_sigfpe" in
7535 *yes) value=1;;
7536 *) value=0;;
7537 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007538
7539cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007540#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007542
7543
7544
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007546$as_echo_n "checking for unsigned long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007547if ${ac_cv_type_unsigned_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007548 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007549else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551/* end confdefs.h. */
7552unsigned long long ull = 1ULL; int i = 63;
7553int
7554main ()
7555{
7556unsigned long long ullmax = (unsigned long long) -1;
7557 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7558 ;
7559 return 0;
7560}
7561_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007562if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007563 ac_cv_type_unsigned_long_long=yes
7564else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007565 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007566fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007567rm -f core conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007569fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007571$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007572 if test $ac_cv_type_unsigned_long_long = yes; then
7573
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007574$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007575
7576 fi
7577
7578
7579
7580
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007581 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 -05007582
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007583 test $ac_cv_type_unsigned_long_long = yes \
7584 && ac_type='unsigned long long' \
7585 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007586
7587cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007588#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007589_ACEOF
7590
7591 else
7592
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007593$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007594
7595 fi
7596
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007597
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007599$as_echo_n "checking for inttypes.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007600if ${gt_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007601 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007602else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007603
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007605/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007606#include <sys/types.h>
7607#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007608int
7609main ()
7610{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007611
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007612 ;
7613 return 0;
7614}
7615_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007616if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007617 gt_cv_header_inttypes_h=yes
7618else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007619 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007622
7623fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007625$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007626 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007627
7628cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007629#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007630_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007631
7632 fi
7633
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007634
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007635
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007636 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007637 { $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 +01007638$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007639if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007640 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007641else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007642
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007644/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007645#include <inttypes.h>
7646#ifdef PRId32
7647char *p = PRId32;
7648#endif
7649
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007650int
7651main ()
7652{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007653
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007654 ;
7655 return 0;
7656}
7657_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007658if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007659 gt_cv_inttypes_pri_broken=no
7660else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007661 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007662fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007664
7665fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007667$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007668 fi
7669 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007670
7671cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007672#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007673_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007674
7675 fi
7676
7677
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007678 for ac_header in stdint.h
7679do :
7680 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007681if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007682 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007683#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007684_ACEOF
7685
7686fi
7687
7688done
7689
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007691$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007692 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007694/* end confdefs.h. */
7695
7696#include <limits.h>
7697#if HAVE_STDINT_H
7698#include <stdint.h>
7699#endif
7700#ifdef SIZE_MAX
7701Found it
7702#endif
7703
7704_ACEOF
7705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007706 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007707 result=yes
7708fi
7709rm -f conftest*
7710
7711 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007712 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 -05007713
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007714else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007715 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007716fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007717
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007718
7719 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7720
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007721else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007722 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007723fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007724
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007725
7726 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7727
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007728else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007729 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007730fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007731
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007732
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007733 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007735/* end confdefs.h. */
7736#include <stddef.h>
7737 extern size_t foo;
7738 extern unsigned long foo;
7739
7740int
7741main ()
7742{
7743
7744 ;
7745 return 0;
7746}
7747_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007748if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007749 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007750fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007752 fi
7753 if test -z "$result"; then
7754 if test "$fits_in_uint" = 1; then
7755 result="$res_hi$res_lo"U
7756 else
7757 result="$res_hi$res_lo"UL
7758 fi
7759 else
7760 result='~(size_t)0'
7761 fi
7762 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007764$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007765 if test "$result" != yes; then
7766
7767cat >>confdefs.h <<_ACEOF
7768#define SIZE_MAX $result
7769_ACEOF
7770
7771 fi
7772
7773
7774
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007775 for ac_header in stdint.h
7776do :
7777 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007778if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007779 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007780#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007781_ACEOF
7782
7783fi
7784
7785done
7786
7787
7788
7789 if test "X$prefix" = "XNONE"; then
7790 acl_final_prefix="$ac_default_prefix"
7791 else
7792 acl_final_prefix="$prefix"
7793 fi
7794 if test "X$exec_prefix" = "XNONE"; then
7795 acl_final_exec_prefix='${prefix}'
7796 else
7797 acl_final_exec_prefix="$exec_prefix"
7798 fi
7799 acl_save_prefix="$prefix"
7800 prefix="$acl_final_prefix"
7801 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7802 prefix="$acl_save_prefix"
7803
7804
Theodore Ts'oe1052142006-10-21 21:46:47 -04007805# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007806if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007807 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007808else
7809 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007810fi
7811
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007812# Prepare PATH_SEPARATOR.
7813# The user is always right.
7814if test "${PATH_SEPARATOR+set}" != set; then
7815 echo "#! /bin/sh" >conf$$.sh
7816 echo "exit 0" >>conf$$.sh
7817 chmod +x conf$$.sh
7818 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7819 PATH_SEPARATOR=';'
7820 else
7821 PATH_SEPARATOR=:
7822 fi
7823 rm -f conf$$.sh
7824fi
7825ac_prog=ld
7826if test "$GCC" = yes; then
7827 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007829$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007830 case $host in
7831 *-*-mingw*)
7832 # gcc leaves a trailing carriage return which upsets mingw
7833 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7834 *)
7835 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7836 esac
7837 case $ac_prog in
7838 # Accept absolute paths.
7839 [\\/]* | [A-Za-z]:[\\/]*)
7840 re_direlt='/[^/][^/]*/\.\./'
7841 # Canonicalize the path of ld
7842 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7843 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7844 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7845 done
7846 test -z "$LD" && LD="$ac_prog"
7847 ;;
7848 "")
7849 # If it fails, then pretend we aren't using GCC.
7850 ac_prog=ld
7851 ;;
7852 *)
7853 # If it is relative, then search for the first ld in PATH.
7854 with_gnu_ld=unknown
7855 ;;
7856 esac
7857elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007859$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007860else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007862$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007863fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007864if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007865 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007866else
7867 if test -z "$LD"; then
7868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7869 for ac_dir in $PATH; do
7870 test -z "$ac_dir" && ac_dir=.
7871 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7872 acl_cv_path_LD="$ac_dir/$ac_prog"
7873 # Check to see if the program is GNU ld. I'd rather use --version,
7874 # but apparently some GNU ld's only accept -v.
7875 # Break only if it was the GNU/non-GNU ld that we prefer.
7876 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7877 *GNU* | *'with BFD'*)
7878 test "$with_gnu_ld" != no && break ;;
7879 *)
7880 test "$with_gnu_ld" != yes && break ;;
7881 esac
7882 fi
7883 done
7884 IFS="$ac_save_ifs"
7885else
7886 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7887fi
7888fi
7889
7890LD="$acl_cv_path_LD"
7891if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007893$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007894else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007896$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007897fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007898test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007900$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007901if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007902 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007903else
7904 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7905case `$LD -v 2>&1 </dev/null` in
7906*GNU* | *'with BFD'*)
7907 acl_cv_prog_gnu_ld=yes ;;
7908*)
7909 acl_cv_prog_gnu_ld=no ;;
7910esac
7911fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007913$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007914with_gnu_ld=$acl_cv_prog_gnu_ld
7915
7916
7917
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007919$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007920if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007921 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007922else
7923
7924 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7925 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7926 . ./conftest.sh
7927 rm -f ./conftest.sh
7928 acl_cv_rpath=done
7929
7930fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007932$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007933 wl="$acl_cv_wl"
7934 libext="$acl_cv_libext"
7935 shlibext="$acl_cv_shlibext"
7936 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7937 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7938 hardcode_direct="$acl_cv_hardcode_direct"
7939 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007940 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007941if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007942 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007943else
7944 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007945fi
7946
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007947
7948
7949
7950
7951
7952
7953
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007954 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007955
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007956 acl_save_prefix="$prefix"
7957 prefix="$acl_final_prefix"
7958 acl_save_exec_prefix="$exec_prefix"
7959 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007960
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007961 eval additional_includedir=\"$includedir\"
7962 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007963
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007964 exec_prefix="$acl_save_exec_prefix"
7965 prefix="$acl_save_prefix"
7966
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007967
Theodore Ts'oe1052142006-10-21 21:46:47 -04007968# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007969if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007970 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007971 if test "X$withval" = "Xno"; then
7972 use_additional=no
7973 else
7974 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007975
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007976 acl_save_prefix="$prefix"
7977 prefix="$acl_final_prefix"
7978 acl_save_exec_prefix="$exec_prefix"
7979 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007980
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007981 eval additional_includedir=\"$includedir\"
7982 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007983
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007984 exec_prefix="$acl_save_exec_prefix"
7985 prefix="$acl_save_prefix"
7986
7987 else
7988 additional_includedir="$withval/include"
7989 additional_libdir="$withval/lib"
7990 fi
7991 fi
7992
Theodore Ts'oe1052142006-10-21 21:46:47 -04007993fi
7994
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007995 LIBICONV=
7996 LTLIBICONV=
7997 INCICONV=
7998 rpathdirs=
7999 ltrpathdirs=
8000 names_already_handled=
8001 names_next_round='iconv '
8002 while test -n "$names_next_round"; do
8003 names_this_round="$names_next_round"
8004 names_next_round=
8005 for name in $names_this_round; do
8006 already_handled=
8007 for n in $names_already_handled; do
8008 if test "$n" = "$name"; then
8009 already_handled=yes
8010 break
8011 fi
8012 done
8013 if test -z "$already_handled"; then
8014 names_already_handled="$names_already_handled $name"
8015 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8016 eval value=\"\$HAVE_LIB$uppername\"
8017 if test -n "$value"; then
8018 if test "$value" = yes; then
8019 eval value=\"\$LIB$uppername\"
8020 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8021 eval value=\"\$LTLIB$uppername\"
8022 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8023 else
8024 :
8025 fi
8026 else
8027 found_dir=
8028 found_la=
8029 found_so=
8030 found_a=
8031 if test $use_additional = yes; then
8032 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8033 found_dir="$additional_libdir"
8034 found_so="$additional_libdir/lib$name.$shlibext"
8035 if test -f "$additional_libdir/lib$name.la"; then
8036 found_la="$additional_libdir/lib$name.la"
8037 fi
8038 else
8039 if test -f "$additional_libdir/lib$name.$libext"; then
8040 found_dir="$additional_libdir"
8041 found_a="$additional_libdir/lib$name.$libext"
8042 if test -f "$additional_libdir/lib$name.la"; then
8043 found_la="$additional_libdir/lib$name.la"
8044 fi
8045 fi
8046 fi
8047 fi
8048 if test "X$found_dir" = "X"; then
8049 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008050
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008051 acl_save_prefix="$prefix"
8052 prefix="$acl_final_prefix"
8053 acl_save_exec_prefix="$exec_prefix"
8054 exec_prefix="$acl_final_exec_prefix"
8055 eval x=\"$x\"
8056 exec_prefix="$acl_save_exec_prefix"
8057 prefix="$acl_save_prefix"
8058
8059 case "$x" in
8060 -L*)
8061 dir=`echo "X$x" | sed -e 's/^X-L//'`
8062 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8063 found_dir="$dir"
8064 found_so="$dir/lib$name.$shlibext"
8065 if test -f "$dir/lib$name.la"; then
8066 found_la="$dir/lib$name.la"
8067 fi
8068 else
8069 if test -f "$dir/lib$name.$libext"; then
8070 found_dir="$dir"
8071 found_a="$dir/lib$name.$libext"
8072 if test -f "$dir/lib$name.la"; then
8073 found_la="$dir/lib$name.la"
8074 fi
8075 fi
8076 fi
8077 ;;
8078 esac
8079 if test "X$found_dir" != "X"; then
8080 break
8081 fi
8082 done
8083 fi
8084 if test "X$found_dir" != "X"; then
8085 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8086 if test "X$found_so" != "X"; then
8087 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8089 else
8090 haveit=
8091 for x in $ltrpathdirs; do
8092 if test "X$x" = "X$found_dir"; then
8093 haveit=yes
8094 break
8095 fi
8096 done
8097 if test -z "$haveit"; then
8098 ltrpathdirs="$ltrpathdirs $found_dir"
8099 fi
8100 if test "$hardcode_direct" = yes; then
8101 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8102 else
8103 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8104 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8105 haveit=
8106 for x in $rpathdirs; do
8107 if test "X$x" = "X$found_dir"; then
8108 haveit=yes
8109 break
8110 fi
8111 done
8112 if test -z "$haveit"; then
8113 rpathdirs="$rpathdirs $found_dir"
8114 fi
8115 else
8116 haveit=
8117 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008118
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008119 acl_save_prefix="$prefix"
8120 prefix="$acl_final_prefix"
8121 acl_save_exec_prefix="$exec_prefix"
8122 exec_prefix="$acl_final_exec_prefix"
8123 eval x=\"$x\"
8124 exec_prefix="$acl_save_exec_prefix"
8125 prefix="$acl_save_prefix"
8126
8127 if test "X$x" = "X-L$found_dir"; then
8128 haveit=yes
8129 break
8130 fi
8131 done
8132 if test -z "$haveit"; then
8133 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8134 fi
8135 if test "$hardcode_minus_L" != no; then
8136 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8137 else
8138 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8139 fi
8140 fi
8141 fi
8142 fi
8143 else
8144 if test "X$found_a" != "X"; then
8145 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8146 else
8147 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8148 fi
8149 fi
8150 additional_includedir=
8151 case "$found_dir" in
8152 */lib | */lib/)
8153 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8154 additional_includedir="$basedir/include"
8155 ;;
8156 esac
8157 if test "X$additional_includedir" != "X"; then
8158 if test "X$additional_includedir" != "X/usr/include"; then
8159 haveit=
8160 if test "X$additional_includedir" = "X/usr/local/include"; then
8161 if test -n "$GCC"; then
8162 case $host_os in
8163 linux*) haveit=yes;;
8164 esac
8165 fi
8166 fi
8167 if test -z "$haveit"; then
8168 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008169
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008170 acl_save_prefix="$prefix"
8171 prefix="$acl_final_prefix"
8172 acl_save_exec_prefix="$exec_prefix"
8173 exec_prefix="$acl_final_exec_prefix"
8174 eval x=\"$x\"
8175 exec_prefix="$acl_save_exec_prefix"
8176 prefix="$acl_save_prefix"
8177
8178 if test "X$x" = "X-I$additional_includedir"; then
8179 haveit=yes
8180 break
8181 fi
8182 done
8183 if test -z "$haveit"; then
8184 if test -d "$additional_includedir"; then
8185 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8186 fi
8187 fi
8188 fi
8189 fi
8190 fi
8191 if test -n "$found_la"; then
8192 save_libdir="$libdir"
8193 case "$found_la" in
8194 */* | *\\*) . "$found_la" ;;
8195 *) . "./$found_la" ;;
8196 esac
8197 libdir="$save_libdir"
8198 for dep in $dependency_libs; do
8199 case "$dep" in
8200 -L*)
8201 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8202 if test "X$additional_libdir" != "X/usr/lib"; then
8203 haveit=
8204 if test "X$additional_libdir" = "X/usr/local/lib"; then
8205 if test -n "$GCC"; then
8206 case $host_os in
8207 linux*) haveit=yes;;
8208 esac
8209 fi
8210 fi
8211 if test -z "$haveit"; then
8212 haveit=
8213 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008214
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008215 acl_save_prefix="$prefix"
8216 prefix="$acl_final_prefix"
8217 acl_save_exec_prefix="$exec_prefix"
8218 exec_prefix="$acl_final_exec_prefix"
8219 eval x=\"$x\"
8220 exec_prefix="$acl_save_exec_prefix"
8221 prefix="$acl_save_prefix"
8222
8223 if test "X$x" = "X-L$additional_libdir"; then
8224 haveit=yes
8225 break
8226 fi
8227 done
8228 if test -z "$haveit"; then
8229 if test -d "$additional_libdir"; then
8230 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8231 fi
8232 fi
8233 haveit=
8234 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008235
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008236 acl_save_prefix="$prefix"
8237 prefix="$acl_final_prefix"
8238 acl_save_exec_prefix="$exec_prefix"
8239 exec_prefix="$acl_final_exec_prefix"
8240 eval x=\"$x\"
8241 exec_prefix="$acl_save_exec_prefix"
8242 prefix="$acl_save_prefix"
8243
8244 if test "X$x" = "X-L$additional_libdir"; then
8245 haveit=yes
8246 break
8247 fi
8248 done
8249 if test -z "$haveit"; then
8250 if test -d "$additional_libdir"; then
8251 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8252 fi
8253 fi
8254 fi
8255 fi
8256 ;;
8257 -R*)
8258 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8259 if test "$enable_rpath" != no; then
8260 haveit=
8261 for x in $rpathdirs; do
8262 if test "X$x" = "X$dir"; then
8263 haveit=yes
8264 break
8265 fi
8266 done
8267 if test -z "$haveit"; then
8268 rpathdirs="$rpathdirs $dir"
8269 fi
8270 haveit=
8271 for x in $ltrpathdirs; do
8272 if test "X$x" = "X$dir"; then
8273 haveit=yes
8274 break
8275 fi
8276 done
8277 if test -z "$haveit"; then
8278 ltrpathdirs="$ltrpathdirs $dir"
8279 fi
8280 fi
8281 ;;
8282 -l*)
8283 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8284 ;;
8285 *.la)
8286 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8287 ;;
8288 *)
8289 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8290 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8291 ;;
8292 esac
8293 done
8294 fi
8295 else
8296 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8297 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8298 fi
8299 fi
8300 fi
8301 done
8302 done
8303 if test "X$rpathdirs" != "X"; then
8304 if test -n "$hardcode_libdir_separator"; then
8305 alldirs=
8306 for found_dir in $rpathdirs; do
8307 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8308 done
8309 acl_save_libdir="$libdir"
8310 libdir="$alldirs"
8311 eval flag=\"$hardcode_libdir_flag_spec\"
8312 libdir="$acl_save_libdir"
8313 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8314 else
8315 for found_dir in $rpathdirs; do
8316 acl_save_libdir="$libdir"
8317 libdir="$found_dir"
8318 eval flag=\"$hardcode_libdir_flag_spec\"
8319 libdir="$acl_save_libdir"
8320 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8321 done
8322 fi
8323 fi
8324 if test "X$ltrpathdirs" != "X"; then
8325 for found_dir in $ltrpathdirs; do
8326 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8327 done
8328 fi
8329
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008330
8331
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008332
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008333
8334
8335
8336
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008337 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008338if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008339
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008340else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008341
8342$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008343
8344
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008345fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008346
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008347 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 -04008348stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008349do :
8350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8351ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008352if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008353 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008354#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008355_ACEOF
8356
8357fi
8358
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008359done
8360
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008361 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008362mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8363strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8364__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008365do :
8366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8367ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008368if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008369 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008370#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008371_ACEOF
8372
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008373fi
8374done
8375
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008376
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008377
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008379$as_echo_n "checking whether _snprintf is declared... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008380if ${ac_cv_have_decl__snprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008381 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008382else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008384/* end confdefs.h. */
8385#include <stdio.h>
8386int
8387main ()
8388{
8389
8390#ifndef _snprintf
8391 char *p = (char *) _snprintf;
8392#endif
8393
8394 ;
8395 return 0;
8396}
8397_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008398if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008399 ac_cv_have_decl__snprintf=yes
8400else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008401 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008402fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008404fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008406$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008407 if test $ac_cv_have_decl__snprintf = yes; then
8408 gt_value=1
8409 else
8410 gt_value=0
8411 fi
8412
8413cat >>confdefs.h <<_ACEOF
8414#define HAVE_DECL__SNPRINTF $gt_value
8415_ACEOF
8416
8417
8418
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008420$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008421if ${ac_cv_have_decl__snwprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008422 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008423else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008425/* end confdefs.h. */
8426#include <stdio.h>
8427int
8428main ()
8429{
8430
8431#ifndef _snwprintf
8432 char *p = (char *) _snwprintf;
8433#endif
8434
8435 ;
8436 return 0;
8437}
8438_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008439if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008440 ac_cv_have_decl__snwprintf=yes
8441else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008442 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008443fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008445fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008447$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008448 if test $ac_cv_have_decl__snwprintf = yes; then
8449 gt_value=1
8450 else
8451 gt_value=0
8452 fi
8453
8454cat >>confdefs.h <<_ACEOF
8455#define HAVE_DECL__SNWPRINTF $gt_value
8456_ACEOF
8457
8458
8459
8460
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008462$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008463if ${ac_cv_have_decl_feof_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008464 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008465else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008467/* end confdefs.h. */
8468#include <stdio.h>
8469int
8470main ()
8471{
8472
8473#ifndef feof_unlocked
8474 char *p = (char *) feof_unlocked;
8475#endif
8476
8477 ;
8478 return 0;
8479}
8480_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008481if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008482 ac_cv_have_decl_feof_unlocked=yes
8483else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008484 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008487fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008489$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008490 if test $ac_cv_have_decl_feof_unlocked = yes; then
8491 gt_value=1
8492 else
8493 gt_value=0
8494 fi
8495
8496cat >>confdefs.h <<_ACEOF
8497#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8498_ACEOF
8499
8500
8501
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008503$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008504if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008505 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008506else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008508/* end confdefs.h. */
8509#include <stdio.h>
8510int
8511main ()
8512{
8513
8514#ifndef fgets_unlocked
8515 char *p = (char *) fgets_unlocked;
8516#endif
8517
8518 ;
8519 return 0;
8520}
8521_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008522if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008523 ac_cv_have_decl_fgets_unlocked=yes
8524else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008525 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008526fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008528fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008530$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008531 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8532 gt_value=1
8533 else
8534 gt_value=0
8535 fi
8536
8537cat >>confdefs.h <<_ACEOF
8538#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8539_ACEOF
8540
8541
8542
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008544$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008545if ${ac_cv_have_decl_getc_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008546 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008547else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008549/* end confdefs.h. */
8550#include <stdio.h>
8551int
8552main ()
8553{
8554
8555#ifndef getc_unlocked
8556 char *p = (char *) getc_unlocked;
8557#endif
8558
8559 ;
8560 return 0;
8561}
8562_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008563if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008564 ac_cv_have_decl_getc_unlocked=yes
8565else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008566 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008567fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008569fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008571$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008572 if test $ac_cv_have_decl_getc_unlocked = yes; then
8573 gt_value=1
8574 else
8575 gt_value=0
8576 fi
8577
8578cat >>confdefs.h <<_ACEOF
8579#define HAVE_DECL_GETC_UNLOCKED $gt_value
8580_ACEOF
8581
8582
8583
8584 case $gt_cv_func_printf_posix in
8585 *yes) HAVE_POSIX_PRINTF=1 ;;
8586 *) HAVE_POSIX_PRINTF=0 ;;
8587 esac
8588
8589 if test "$ac_cv_func_asprintf" = yes; then
8590 HAVE_ASPRINTF=1
8591 else
8592 HAVE_ASPRINTF=0
8593 fi
8594
8595 if test "$ac_cv_func_snprintf" = yes; then
8596 HAVE_SNPRINTF=1
8597 else
8598 HAVE_SNPRINTF=0
8599 fi
8600
8601 if test "$ac_cv_func_wprintf" = yes; then
8602 HAVE_WPRINTF=1
8603 else
8604 HAVE_WPRINTF=0
8605 fi
8606
8607
8608
8609
8610
8611
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008612
8613 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008614
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008615 for element in $INCICONV; do
8616 haveit=
8617 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008618
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008619 acl_save_prefix="$prefix"
8620 prefix="$acl_final_prefix"
8621 acl_save_exec_prefix="$exec_prefix"
8622 exec_prefix="$acl_final_exec_prefix"
8623 eval x=\"$x\"
8624 exec_prefix="$acl_save_exec_prefix"
8625 prefix="$acl_save_prefix"
8626
8627 if test "X$x" = "X$element"; then
8628 haveit=yes
8629 break
8630 fi
8631 done
8632 if test -z "$haveit"; then
8633 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8634 fi
8635 done
8636
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008637
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008639$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008640if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008641 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008642else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008643
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008644 am_cv_func_iconv="no, consider installing GNU libiconv"
8645 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008647/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008648#include <stdlib.h>
8649#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008650int
8651main ()
8652{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008653iconv_t cd = iconv_open("","");
8654 iconv(cd,NULL,NULL,NULL,NULL);
8655 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008656 ;
8657 return 0;
8658}
8659_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008660if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008661 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008662fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008663rm -f core conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008665 if test "$am_cv_func_iconv" != yes; then
8666 am_save_LIBS="$LIBS"
8667 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008669/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008670#include <stdlib.h>
8671#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008672int
8673main ()
8674{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008675iconv_t cd = iconv_open("","");
8676 iconv(cd,NULL,NULL,NULL,NULL);
8677 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008678 ;
8679 return 0;
8680}
8681_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008682if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008683 am_cv_lib_iconv=yes
8684 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008685fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008686rm -f core conftest.err conftest.$ac_objext \
8687 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008688 LIBS="$am_save_LIBS"
8689 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008690
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008691fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008693$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008694 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008695
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008696$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008697
8698 fi
8699 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008701$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008703$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008704 else
8705 CPPFLAGS="$am_save_CPPFLAGS"
8706 LIBICONV=
8707 LTLIBICONV=
8708 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008709
8710
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008711
8712 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008714$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008715 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008716 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008717else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008718
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008720/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008721
8722#include <stdlib.h>
8723#include <iconv.h>
8724extern
8725#ifdef __cplusplus
8726"C"
8727#endif
8728#if defined(__STDC__) || defined(__cplusplus)
8729size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8730#else
8731size_t iconv();
8732#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008733
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008734int
8735main ()
8736{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008737
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008738 ;
8739 return 0;
8740}
8741_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008742if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008743 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008744else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008745 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008746fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008748 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 +00008749fi
8750
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008751 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008753 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008754$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008755 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008756
8757cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008758#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008759_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008760
8761 fi
8762
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008763
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008765$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008766if ${am_cv_langinfo_codeset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008767 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008768else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008770/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008771#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008772int
8773main ()
8774{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008775char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008776 ;
8777 return 0;
8778}
8779_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008780if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008781 am_cv_langinfo_codeset=yes
8782else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008783 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008784fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008785rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008787
8788fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008790$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008791 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008792
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008793$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008794
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008795 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008796
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008797 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008798
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008800$as_echo_n "checking for LC_MESSAGES... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008801if ${am_cv_val_LC_MESSAGES+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008802 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008803else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008805/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008806#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008807int
8808main ()
8809{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008810return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008811 ;
8812 return 0;
8813}
8814_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008815if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008816 am_cv_val_LC_MESSAGES=yes
8817else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008818 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008819fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008820rm -f core conftest.err conftest.$ac_objext \
8821 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008822fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008824$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008825 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008826
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008827$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008828
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008829 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008830
8831 fi
8832
8833 for ac_prog in bison
8834do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008835 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008836set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008838$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008839if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008840 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008841else
8842 if test -n "$INTLBISON"; then
8843 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8844else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008850 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008852 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008854 break 2
8855 fi
8856done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008857 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008858IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008859
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008860fi
8861fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008862INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008863if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008865$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008866else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008868$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008869fi
8870
Theodore Ts'oe1052142006-10-21 21:46:47 -04008871
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008872 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008873done
8874
8875 if test -z "$INTLBISON"; then
8876 ac_verc_fail=yes
8877 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008879$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008880 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8881 case $ac_prog_version in
8882 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8883 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8884 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8885 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8886 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008888$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008889 fi
8890 if test $ac_verc_fail = yes; then
8891 INTLBISON=:
8892 fi
8893
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008894
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008895
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008896
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008897
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008898
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008899
8900
8901
8902
8903
8904
8905
8906
8907
8908
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008910$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008911 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008912if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008913 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008914else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008915 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008916fi
8917
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008919$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008920
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008921
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008922
8923
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008924 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008925 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008926
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008927 LIBINTL=
8928 LTLIBINTL=
8929 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008930
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008931 if test "$USE_NLS" = "yes"; then
8932 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008933
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008935$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008936
Theodore Ts'oe1052142006-10-21 21:46:47 -04008937# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008938if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008939 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008940else
8941 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008942fi
8943
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008945$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008946
8947 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8948 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008949
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008950
8951
8952
8953
8954
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008956$as_echo_n "checking for GNU gettext in libc... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008957if ${gt_cv_func_gnugettext1_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008958 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008959else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008961/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008962#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008963extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008964extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008965int
8966main ()
8967{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008968bindtextdomain ("", "");
8969return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008970 ;
8971 return 0;
8972}
8973_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008974if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008975 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008976else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008977 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008978fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008979rm -f core conftest.err conftest.$ac_objext \
8980 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008981fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008983$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008984
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008985 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008986
8987
8988
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008989 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008990
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008991 acl_save_prefix="$prefix"
8992 prefix="$acl_final_prefix"
8993 acl_save_exec_prefix="$exec_prefix"
8994 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008995
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008996 eval additional_includedir=\"$includedir\"
8997 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008998
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008999 exec_prefix="$acl_save_exec_prefix"
9000 prefix="$acl_save_prefix"
9001
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009002
Theodore Ts'oe1052142006-10-21 21:46:47 -04009003# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009004if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04009005 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009006 if test "X$withval" = "Xno"; then
9007 use_additional=no
9008 else
9009 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009010
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009011 acl_save_prefix="$prefix"
9012 prefix="$acl_final_prefix"
9013 acl_save_exec_prefix="$exec_prefix"
9014 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009015
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009016 eval additional_includedir=\"$includedir\"
9017 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009018
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009019 exec_prefix="$acl_save_exec_prefix"
9020 prefix="$acl_save_prefix"
9021
9022 else
9023 additional_includedir="$withval/include"
9024 additional_libdir="$withval/lib"
9025 fi
9026 fi
9027
Theodore Ts'oe1052142006-10-21 21:46:47 -04009028fi
9029
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009030 LIBINTL=
9031 LTLIBINTL=
9032 INCINTL=
9033 rpathdirs=
9034 ltrpathdirs=
9035 names_already_handled=
9036 names_next_round='intl '
9037 while test -n "$names_next_round"; do
9038 names_this_round="$names_next_round"
9039 names_next_round=
9040 for name in $names_this_round; do
9041 already_handled=
9042 for n in $names_already_handled; do
9043 if test "$n" = "$name"; then
9044 already_handled=yes
9045 break
9046 fi
9047 done
9048 if test -z "$already_handled"; then
9049 names_already_handled="$names_already_handled $name"
9050 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9051 eval value=\"\$HAVE_LIB$uppername\"
9052 if test -n "$value"; then
9053 if test "$value" = yes; then
9054 eval value=\"\$LIB$uppername\"
9055 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9056 eval value=\"\$LTLIB$uppername\"
9057 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9058 else
9059 :
9060 fi
9061 else
9062 found_dir=
9063 found_la=
9064 found_so=
9065 found_a=
9066 if test $use_additional = yes; then
9067 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9068 found_dir="$additional_libdir"
9069 found_so="$additional_libdir/lib$name.$shlibext"
9070 if test -f "$additional_libdir/lib$name.la"; then
9071 found_la="$additional_libdir/lib$name.la"
9072 fi
9073 else
9074 if test -f "$additional_libdir/lib$name.$libext"; then
9075 found_dir="$additional_libdir"
9076 found_a="$additional_libdir/lib$name.$libext"
9077 if test -f "$additional_libdir/lib$name.la"; then
9078 found_la="$additional_libdir/lib$name.la"
9079 fi
9080 fi
9081 fi
9082 fi
9083 if test "X$found_dir" = "X"; then
9084 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009085
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9090 eval x=\"$x\"
9091 exec_prefix="$acl_save_exec_prefix"
9092 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009093
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009094 case "$x" in
9095 -L*)
9096 dir=`echo "X$x" | sed -e 's/^X-L//'`
9097 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9098 found_dir="$dir"
9099 found_so="$dir/lib$name.$shlibext"
9100 if test -f "$dir/lib$name.la"; then
9101 found_la="$dir/lib$name.la"
9102 fi
9103 else
9104 if test -f "$dir/lib$name.$libext"; then
9105 found_dir="$dir"
9106 found_a="$dir/lib$name.$libext"
9107 if test -f "$dir/lib$name.la"; then
9108 found_la="$dir/lib$name.la"
9109 fi
9110 fi
9111 fi
9112 ;;
9113 esac
9114 if test "X$found_dir" != "X"; then
9115 break
9116 fi
9117 done
9118 fi
9119 if test "X$found_dir" != "X"; then
9120 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9121 if test "X$found_so" != "X"; then
9122 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9123 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9124 else
9125 haveit=
9126 for x in $ltrpathdirs; do
9127 if test "X$x" = "X$found_dir"; then
9128 haveit=yes
9129 break
9130 fi
9131 done
9132 if test -z "$haveit"; then
9133 ltrpathdirs="$ltrpathdirs $found_dir"
9134 fi
9135 if test "$hardcode_direct" = yes; then
9136 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9137 else
9138 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9139 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9140 haveit=
9141 for x in $rpathdirs; do
9142 if test "X$x" = "X$found_dir"; then
9143 haveit=yes
9144 break
9145 fi
9146 done
9147 if test -z "$haveit"; then
9148 rpathdirs="$rpathdirs $found_dir"
9149 fi
9150 else
9151 haveit=
9152 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009153
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009154 acl_save_prefix="$prefix"
9155 prefix="$acl_final_prefix"
9156 acl_save_exec_prefix="$exec_prefix"
9157 exec_prefix="$acl_final_exec_prefix"
9158 eval x=\"$x\"
9159 exec_prefix="$acl_save_exec_prefix"
9160 prefix="$acl_save_prefix"
9161
9162 if test "X$x" = "X-L$found_dir"; then
9163 haveit=yes
9164 break
9165 fi
9166 done
9167 if test -z "$haveit"; then
9168 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9169 fi
9170 if test "$hardcode_minus_L" != no; then
9171 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9172 else
9173 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9174 fi
9175 fi
9176 fi
9177 fi
9178 else
9179 if test "X$found_a" != "X"; then
9180 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9181 else
9182 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9183 fi
9184 fi
9185 additional_includedir=
9186 case "$found_dir" in
9187 */lib | */lib/)
9188 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9189 additional_includedir="$basedir/include"
9190 ;;
9191 esac
9192 if test "X$additional_includedir" != "X"; then
9193 if test "X$additional_includedir" != "X/usr/include"; then
9194 haveit=
9195 if test "X$additional_includedir" = "X/usr/local/include"; then
9196 if test -n "$GCC"; then
9197 case $host_os in
9198 linux*) haveit=yes;;
9199 esac
9200 fi
9201 fi
9202 if test -z "$haveit"; then
9203 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009204
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009205 acl_save_prefix="$prefix"
9206 prefix="$acl_final_prefix"
9207 acl_save_exec_prefix="$exec_prefix"
9208 exec_prefix="$acl_final_exec_prefix"
9209 eval x=\"$x\"
9210 exec_prefix="$acl_save_exec_prefix"
9211 prefix="$acl_save_prefix"
9212
9213 if test "X$x" = "X-I$additional_includedir"; then
9214 haveit=yes
9215 break
9216 fi
9217 done
9218 if test -z "$haveit"; then
9219 if test -d "$additional_includedir"; then
9220 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9221 fi
9222 fi
9223 fi
9224 fi
9225 fi
9226 if test -n "$found_la"; then
9227 save_libdir="$libdir"
9228 case "$found_la" in
9229 */* | *\\*) . "$found_la" ;;
9230 *) . "./$found_la" ;;
9231 esac
9232 libdir="$save_libdir"
9233 for dep in $dependency_libs; do
9234 case "$dep" in
9235 -L*)
9236 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9237 if test "X$additional_libdir" != "X/usr/lib"; then
9238 haveit=
9239 if test "X$additional_libdir" = "X/usr/local/lib"; then
9240 if test -n "$GCC"; then
9241 case $host_os in
9242 linux*) haveit=yes;;
9243 esac
9244 fi
9245 fi
9246 if test -z "$haveit"; then
9247 haveit=
9248 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009249
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009250 acl_save_prefix="$prefix"
9251 prefix="$acl_final_prefix"
9252 acl_save_exec_prefix="$exec_prefix"
9253 exec_prefix="$acl_final_exec_prefix"
9254 eval x=\"$x\"
9255 exec_prefix="$acl_save_exec_prefix"
9256 prefix="$acl_save_prefix"
9257
9258 if test "X$x" = "X-L$additional_libdir"; then
9259 haveit=yes
9260 break
9261 fi
9262 done
9263 if test -z "$haveit"; then
9264 if test -d "$additional_libdir"; then
9265 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9266 fi
9267 fi
9268 haveit=
9269 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009270
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009271 acl_save_prefix="$prefix"
9272 prefix="$acl_final_prefix"
9273 acl_save_exec_prefix="$exec_prefix"
9274 exec_prefix="$acl_final_exec_prefix"
9275 eval x=\"$x\"
9276 exec_prefix="$acl_save_exec_prefix"
9277 prefix="$acl_save_prefix"
9278
9279 if test "X$x" = "X-L$additional_libdir"; then
9280 haveit=yes
9281 break
9282 fi
9283 done
9284 if test -z "$haveit"; then
9285 if test -d "$additional_libdir"; then
9286 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9287 fi
9288 fi
9289 fi
9290 fi
9291 ;;
9292 -R*)
9293 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9294 if test "$enable_rpath" != no; then
9295 haveit=
9296 for x in $rpathdirs; do
9297 if test "X$x" = "X$dir"; then
9298 haveit=yes
9299 break
9300 fi
9301 done
9302 if test -z "$haveit"; then
9303 rpathdirs="$rpathdirs $dir"
9304 fi
9305 haveit=
9306 for x in $ltrpathdirs; do
9307 if test "X$x" = "X$dir"; then
9308 haveit=yes
9309 break
9310 fi
9311 done
9312 if test -z "$haveit"; then
9313 ltrpathdirs="$ltrpathdirs $dir"
9314 fi
9315 fi
9316 ;;
9317 -l*)
9318 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9319 ;;
9320 *.la)
9321 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9322 ;;
9323 *)
9324 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9325 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9326 ;;
9327 esac
9328 done
9329 fi
9330 else
9331 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9332 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9333 fi
9334 fi
9335 fi
9336 done
9337 done
9338 if test "X$rpathdirs" != "X"; then
9339 if test -n "$hardcode_libdir_separator"; then
9340 alldirs=
9341 for found_dir in $rpathdirs; do
9342 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9343 done
9344 acl_save_libdir="$libdir"
9345 libdir="$alldirs"
9346 eval flag=\"$hardcode_libdir_flag_spec\"
9347 libdir="$acl_save_libdir"
9348 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9349 else
9350 for found_dir in $rpathdirs; do
9351 acl_save_libdir="$libdir"
9352 libdir="$found_dir"
9353 eval flag=\"$hardcode_libdir_flag_spec\"
9354 libdir="$acl_save_libdir"
9355 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9356 done
9357 fi
9358 fi
9359 if test "X$ltrpathdirs" != "X"; then
9360 for found_dir in $ltrpathdirs; do
9361 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9362 done
9363 fi
9364
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009366$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009367if ${gt_cv_func_gnugettext1_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009368 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009369else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009370 gt_save_CPPFLAGS="$CPPFLAGS"
9371 CPPFLAGS="$CPPFLAGS $INCINTL"
9372 gt_save_LIBS="$LIBS"
9373 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009375/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009376#include <libintl.h>
9377extern int _nl_msg_cat_cntr;
9378extern
9379#ifdef __cplusplus
9380"C"
9381#endif
9382const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009383int
9384main ()
9385{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009386bindtextdomain ("", "");
9387return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009388 ;
9389 return 0;
9390}
9391_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009392if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009393 gt_cv_func_gnugettext1_libintl=yes
9394else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009395 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009396fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009397rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009399 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9400 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009402/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009403#include <libintl.h>
9404extern int _nl_msg_cat_cntr;
9405extern
9406#ifdef __cplusplus
9407"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009408#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009409const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009410int
9411main ()
9412{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009413bindtextdomain ("", "");
9414return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009415 ;
9416 return 0;
9417}
9418_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009419if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009420 LIBINTL="$LIBINTL $LIBICONV"
9421 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9422 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009423
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009424fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009425rm -f core conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009427 fi
9428 CPPFLAGS="$gt_save_CPPFLAGS"
9429 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009430fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009432$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009433 fi
9434
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009435 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9436 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009437 && test "$PACKAGE" != gettext-runtime \
9438 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009439 gt_use_preinstalled_gnugettext=yes
9440 else
9441 LIBINTL=
9442 LTLIBINTL=
9443 INCINTL=
9444 fi
9445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009446
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009447 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9448 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009449 fi
9450 fi
9451
9452 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009453 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009454 USE_INCLUDED_LIBINTL=yes
9455 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9456 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9457 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009458 fi
9459
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009460 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9461 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9462 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009463 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009464
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009465
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009466 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9467 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009468
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009469$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009470
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009471 else
9472 USE_NLS=no
9473 fi
9474 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009475
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009477$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009479$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009480 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009482$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009483 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9484 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9485 gt_source="external libintl"
9486 else
9487 gt_source="libc"
9488 fi
9489 else
9490 gt_source="included intl directory"
9491 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009493$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009494 fi
9495
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009496 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009497
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009498 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9499 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009501$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009503$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009504
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009505 for element in $INCINTL; do
9506 haveit=
9507 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009508
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009509 acl_save_prefix="$prefix"
9510 prefix="$acl_final_prefix"
9511 acl_save_exec_prefix="$exec_prefix"
9512 exec_prefix="$acl_final_exec_prefix"
9513 eval x=\"$x\"
9514 exec_prefix="$acl_save_exec_prefix"
9515 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009516
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009517 if test "X$x" = "X$element"; then
9518 haveit=yes
9519 break
9520 fi
9521 done
9522 if test -z "$haveit"; then
9523 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9524 fi
9525 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009526
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009527 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009528
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009529
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009530$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009531
9532
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009533$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009534
9535 fi
9536
9537 POSUB=po
9538 fi
9539
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009540
9541 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009542 BUILD_INCLUDED_LIBINTL=yes
9543 fi
9544
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009545
9546
9547
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009548
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009549 nls_cv_header_intl=
9550 nls_cv_header_libgt=
9551
9552 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009553
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009554
9555 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009556
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009557
9558 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009559
9560
9561 if test "$USE_INCLUDED_LIBINTL" = yes; then
9562 INTLOBJS="\$(GETTOBJS)"
9563 fi
9564
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009565
9566 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009567
9568
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009569
9570 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009571
9572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009573
9574
9575
9576
9577
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009579$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9580set x ${MAKE-make}
9581ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009582if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009583 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009584else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009585 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009586SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009587all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009588 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009589_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009590# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009591case `${MAKE-make} -f conftest.make 2>/dev/null` in
9592 *@@@%%%=?*=@@@%%%*)
9593 eval ac_cv_prog_make_${ac_make}_set=yes;;
9594 *)
9595 eval ac_cv_prog_make_${ac_make}_set=no;;
9596esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009597rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009598fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009599if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009601$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009602 SET_MAKE=
9603else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009605$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009606 SET_MAKE="MAKE=${MAKE-make}"
9607fi
9608
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009610$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009611if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009612 $as_echo_n "(cached) " >&6
9613else
9614 _cv_gnu_make_command='' ;
9615 for a in "$MAKE" make gmake gnumake ; do
9616 if test -z "$a" ; then continue ; fi ;
9617 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9618 _cv_gnu_make_command=$a ;
9619 break;
9620 fi
9621 done ;
9622
9623fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009625$as_echo "$_cv_gnu_make_command" >&6; } ;
9626 if test "x$_cv_gnu_make_command" != "x" ; then
9627 ifGNUmake='' ;
9628 ifNotGNUmake='#' ;
9629 else
9630 ifGNUmake='#' ;
9631 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009633$as_echo "\"Not found\"" >&6; };
9634 fi
9635
9636
9637
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009638# Extract the first word of "ln", so it can be a program name with args.
9639set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009641$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009642if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009643 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009644else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009645 case $LN in
9646 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009647 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9648 ;;
9649 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651for as_dir in $PATH
9652do
9653 IFS=$as_save_IFS
9654 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009655 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009657 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009659 break 2
9660 fi
9661done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009662 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009663IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009664
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009665 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9666 ;;
9667esac
9668fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009669LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009670if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009672$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009673else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009675$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009676fi
9677
Theodore Ts'oe1052142006-10-21 21:46:47 -04009678
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009680$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009681LN_S=$as_ln_s
9682if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009684$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009685else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009687$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009688fi
9689
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009690# Extract the first word of "mv", so it can be a program name with args.
9691set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009693$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009694if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009695 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009696else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009697 case $MV in
9698 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009699 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9700 ;;
9701 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703for as_dir in $PATH
9704do
9705 IFS=$as_save_IFS
9706 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009707 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009709 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009711 break 2
9712 fi
9713done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009714 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009715IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009716
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009717 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9718 ;;
9719esac
9720fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009721MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009722if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009724$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009725else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009727$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009728fi
9729
Theodore Ts'oe1052142006-10-21 21:46:47 -04009730
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009731# Extract the first word of "cp", so it can be a program name with args.
9732set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009734$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009735if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009736 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009737else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009738 case $CP in
9739 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009740 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9741 ;;
9742 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744for as_dir in $PATH
9745do
9746 IFS=$as_save_IFS
9747 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009748 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009750 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009752 break 2
9753 fi
9754done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009755 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009756IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009757
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009758 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9759 ;;
9760esac
9761fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009762CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009763if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009765$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009766else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009768$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009769fi
9770
Theodore Ts'oe1052142006-10-21 21:46:47 -04009771
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009772# Extract the first word of "rm", so it can be a program name with args.
9773set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009775$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009776if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009777 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009778else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009779 case $RM in
9780 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009781 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9782 ;;
9783 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785for as_dir in $PATH
9786do
9787 IFS=$as_save_IFS
9788 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009789 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009791 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009793 break 2
9794 fi
9795done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009796 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009797IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009798
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009799 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9800 ;;
9801esac
9802fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009803RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009804if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009806$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009807else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009809$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009810fi
9811
Theodore Ts'oe1052142006-10-21 21:46:47 -04009812
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009813# Extract the first word of "chmod", so it can be a program name with args.
9814set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009816$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009817if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009818 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009819else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009820 case $CHMOD in
9821 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009822 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9823 ;;
9824 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826for as_dir in $PATH
9827do
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009830 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009832 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009834 break 2
9835 fi
9836done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009837 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009838IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009839
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009840 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9841 ;;
9842esac
9843fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009844CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009845if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009847$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009848else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009850$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009851fi
9852
Theodore Ts'oe1052142006-10-21 21:46:47 -04009853
Theodore Ts'o32237012005-01-17 19:13:39 -05009854for ac_prog in gawk mawk nawk awk
9855do
9856 # Extract the first word of "$ac_prog", so it can be a program name with args.
9857set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009859$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009860if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009861 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009862else
Theodore Ts'o32237012005-01-17 19:13:39 -05009863 if test -n "$AWK"; then
9864 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9865else
9866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009867for as_dir in $PATH
9868do
9869 IFS=$as_save_IFS
9870 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009871 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -05009873 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009875 break 2
9876 fi
9877done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009878 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009879IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009880
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009881fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009882fi
9883AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009884if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009886$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009887else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009889$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009890fi
9891
Theodore Ts'oe1052142006-10-21 21:46:47 -04009892
Theodore Ts'o32237012005-01-17 19:13:39 -05009893 test -n "$AWK" && break
9894done
9895
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009897$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009898if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009899 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009900else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009901 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9902 then ac_cv_path_EGREP="$GREP -E"
9903 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009904 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009905 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009906 # Loop through the user's path and test for each of PROGNAME-LIST
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009908for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9909do
9910 IFS=$as_save_IFS
9911 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009912 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009915 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009916# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009917 # Check for GNU $ac_path_EGREP
9918case `"$ac_path_EGREP" --version 2>&1` in
9919*GNU*)
9920 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9921*)
9922 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009923 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009924 while :
9925 do
9926 cat "conftest.in" "conftest.in" >"conftest.tmp"
9927 mv "conftest.tmp" "conftest.in"
9928 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009929 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009930 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009932 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009933 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9934 # Best one so far, save it but keep looking for a better one
9935 ac_cv_path_EGREP="$ac_path_EGREP"
9936 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009937 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009938 # 10*(2^10) chars as input seems more than enough
9939 test $ac_count -gt 10 && break
9940 done
9941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9942esac
9943
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009944 $ac_path_EGREP_found && break 3
9945 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009946 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009947 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009948IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009949 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009950 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 +01009951 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009952else
9953 ac_cv_path_EGREP=$EGREP
9954fi
9955
Theodore Ts'oe1052142006-10-21 21:46:47 -04009956 fi
9957fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009959$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009960 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009961
9962
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009963# Extract the first word of "sed", so it can be a program name with args.
9964set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009966$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009967if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009968 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009969else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009970 case $SED in
9971 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009972 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9973 ;;
9974 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976for as_dir in $PATH
9977do
9978 IFS=$as_save_IFS
9979 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009980 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009982 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009984 break 2
9985 fi
9986done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009987 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009988IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009989
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009990 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9991 ;;
9992esac
9993fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009994SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009995if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009997$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009998else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010000$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010001fi
10002
Theodore Ts'oe1052142006-10-21 21:46:47 -040010003
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010004# Extract the first word of "perl", so it can be a program name with args.
10005set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010007$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010008if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010009 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010010else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010011 case $PERL in
10012 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010013 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10014 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010015 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017for as_dir in $PATH
10018do
10019 IFS=$as_save_IFS
10020 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010021 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010023 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010025 break 2
10026 fi
10027done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010028 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010029IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010030
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010031 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10032 ;;
10033esac
10034fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010035PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010036if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010038$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010039else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010041$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010042fi
10043
Theodore Ts'oe1052142006-10-21 21:46:47 -040010044
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010045# Extract the first word of "ldconfig", so it can be a program name with args.
10046set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010048$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010049if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010050 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010051else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010052 case $LDCONFIG in
10053 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010054 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10055 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010056 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058for as_dir in $PATH
10059do
10060 IFS=$as_save_IFS
10061 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010062 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010064 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010066 break 2
10067 fi
10068done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010069 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010070IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010071
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010072 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10073 ;;
10074esac
10075fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010076LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010077if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010079$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010080else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010082$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010083fi
10084
Theodore Ts'oe1052142006-10-21 21:46:47 -040010085
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010086if test -n "$ac_tool_prefix"; then
10087 # 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 +000010088set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010090$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010091if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010092 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010093else
10094 if test -n "$AR"; then
10095 ac_cv_prog_AR="$AR" # Let the user override the test.
10096else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098for as_dir in $PATH
10099do
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010102 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010104 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010106 break 2
10107 fi
10108done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010109 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010110IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010111
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010112fi
10113fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010114AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010115if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010117$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010118else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010120$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010121fi
10122
Theodore Ts'oe1052142006-10-21 21:46:47 -040010123
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010124fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010125if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010126 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010127 # Extract the first word of "ar", so it can be a program name with args.
10128set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010130$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010131if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010132 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010133else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010134 if test -n "$ac_ct_AR"; then
10135 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010136else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138for as_dir in $PATH
10139do
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010142 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010144 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010146 break 2
10147 fi
10148done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010149 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010150IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010151
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010152fi
10153fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010154ac_ct_AR=$ac_cv_prog_ac_ct_AR
10155if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010157$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010158else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010160$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010161fi
10162
Theodore Ts'oe1052142006-10-21 21:46:47 -040010163 if test "x$ac_ct_AR" = x; then
10164 AR="ar"
10165 else
10166 case $cross_compiling:$ac_tool_warned in
10167yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010168{ $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 +010010169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010170ac_tool_warned=yes ;;
10171esac
10172 AR=$ac_ct_AR
10173 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010174else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010175 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010176fi
10177
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010178if test -n "$ac_tool_prefix"; then
10179 # 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 +000010180set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010182$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010183if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010184 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010185else
10186 if test -n "$RANLIB"; then
10187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10188else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190for as_dir in $PATH
10191do
10192 IFS=$as_save_IFS
10193 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010194 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010198 break 2
10199 fi
10200done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010201 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010202IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010203
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010204fi
10205fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010206RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010207if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010209$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010210else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010212$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010213fi
10214
Theodore Ts'oe1052142006-10-21 21:46:47 -040010215
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010216fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010217if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010218 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010219 # Extract the first word of "ranlib", so it can be a program name with args.
10220set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010222$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010223if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010224 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010225else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010226 if test -n "$ac_ct_RANLIB"; then
10227 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010228else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230for as_dir in $PATH
10231do
10232 IFS=$as_save_IFS
10233 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010234 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010236 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010238 break 2
10239 fi
10240done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010241 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010242IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010243
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010244fi
10245fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010246ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10247if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010249$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010250else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010252$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010253fi
10254
Theodore Ts'oe1052142006-10-21 21:46:47 -040010255 if test "x$ac_ct_RANLIB" = x; then
10256 RANLIB=":"
10257 else
10258 case $cross_compiling:$ac_tool_warned in
10259yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010260{ $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 +010010261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010262ac_tool_warned=yes ;;
10263esac
10264 RANLIB=$ac_ct_RANLIB
10265 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010266else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010267 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010268fi
10269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010270if test -n "$ac_tool_prefix"; then
10271 # 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 +000010272set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010274$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010275if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010276 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010277else
10278 if test -n "$STRIP"; then
10279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10280else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282for as_dir in $PATH
10283do
10284 IFS=$as_save_IFS
10285 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010286 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010288 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010290 break 2
10291 fi
10292done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010293 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010294IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010295
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010296fi
10297fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010298STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010299if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010301$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010302else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010304$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010305fi
10306
Theodore Ts'oe1052142006-10-21 21:46:47 -040010307
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010308fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010309if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010310 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010311 # Extract the first word of "strip", so it can be a program name with args.
10312set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010314$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010315if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010316 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010317else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010318 if test -n "$ac_ct_STRIP"; then
10319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010320else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322for as_dir in $PATH
10323do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010326 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010328 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010330 break 2
10331 fi
10332done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010333 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010334IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010335
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010336fi
10337fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010338ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10339if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010341$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010342else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010344$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010345fi
10346
Theodore Ts'oe1052142006-10-21 21:46:47 -040010347 if test "x$ac_ct_STRIP" = x; then
10348 STRIP=":"
10349 else
10350 case $cross_compiling:$ac_tool_warned in
10351yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010352{ $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 +010010353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010354ac_tool_warned=yes ;;
10355esac
10356 STRIP=$ac_ct_STRIP
10357 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010358else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010359 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010360fi
10361
Manish Katiyar7321d942008-04-14 17:20:03 +053010362# Extract the first word of "makeinfo", so it can be a program name with args.
10363set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010365$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010366if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010367 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010368else
10369 if test -n "$MAKEINFO"; then
10370 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10371else
10372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373for as_dir in $PATH
10374do
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010377 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053010379 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010381 break 2
10382 fi
10383done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010384 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010385IFS=$as_save_IFS
10386
10387fi
10388fi
10389MAKEINFO=$ac_cv_prog_MAKEINFO
10390if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010392$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010393else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010395$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010396fi
10397
10398
10399if test "_$MAKEINFO" = "_"; then
10400 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10401else
10402 case "$MAKEINFO" in
10403 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010405*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010406$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010407*** Makeinfo is missing. Info documentation will not be built." >&2;}
10408 ;;
10409 *)
10410 ;;
10411 esac
10412fi
10413
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010414
Theodore Ts'o6c133521999-07-03 20:37:03 +000010415# See if we need a separate native compiler.
10416if test $cross_compiling = no; then
10417 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010418
Theodore Ts'o6c133521999-07-03 20:37:03 +000010419else
10420 for ac_prog in gcc cc
10421do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010422 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010423set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010425$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010426if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010427 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010428else
10429 if test -n "$BUILD_CC"; then
10430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10431else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10433for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010434do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010435 IFS=$as_save_IFS
10436 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010437 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010439 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010441 break 2
10442 fi
10443done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010444 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010445IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010447fi
10448fi
10449BUILD_CC=$ac_cv_prog_BUILD_CC
10450if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010452$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010453else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010455$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010456fi
10457
Theodore Ts'oe1052142006-10-21 21:46:47 -040010458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010459 test -n "$BUILD_CC" && break
10460done
10461
10462fi
Kazuya Miofbabd5c2013-12-16 00:48:12 -050010463for 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 -050010464do :
10465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10466ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010467if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010468 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010469#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010470_ACEOF
10471
10472fi
10473
10474done
10475
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010476for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010477do :
10478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10479ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010480#if HAVE_SYS_QUEUE_H
10481#include <sys/queue.h>
10482#endif
10483
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010484"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010485if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010486 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010487#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010488_ACEOF
10489
10490fi
10491
10492done
10493
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010494for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010495do :
10496 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010497#if HAVE_SYS_TYPES_H
10498#include <sys/types.h>
10499#endif
10500#if HAVE_SYS_SOCKET
10501#include <sys/socket.h>
10502#endif
10503
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010504"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010505if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010506 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010507#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010508_ACEOF
10509
10510fi
10511
10512done
10513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010514for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010515do :
10516 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010517if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010518 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010519#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010520_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010521
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010522ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010523if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010524
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010525$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010526
10527fi
10528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010529fi
10530done
10531
10532
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010533ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10534"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010535if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010536
10537$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010538
10539fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010540
Theodore Ts'o28739272014-01-03 00:26:43 -050010541ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10542if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10543
10544cat >>confdefs.h <<_ACEOF
10545#define HAVE_STRUCT_STAT_ST_ATIM 1
10546_ACEOF
10547
10548
10549fi
10550
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010551ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10552"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010553if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010554
10555$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010556
Theodore Ts'offf45482003-04-13 00:44:19 -040010557fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010558
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010559ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10560"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010561if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010562
10563$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010564
10565fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010566
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010567ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010568 #define _LARGEFILE64_SOURCE
10569 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010570"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010571if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010572
10573$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010574
10575fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010576
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010577# The cast to long int works around a bug in the HP C Compiler
10578# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10579# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10580# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010582$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010583if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010584 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010585else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010586 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 -050010587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010588else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010589 if test "$ac_cv_type_short" = yes; then
10590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010592as_fn_error 77 "cannot compute sizeof (short)
10593See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010594 else
10595 ac_cv_sizeof_short=0
10596 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010597fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010598
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010599fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010601$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010602
10603
10604
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010605cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010606#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010607_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010608
10609
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010610# The cast to long int works around a bug in the HP C Compiler
10611# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10612# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10613# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010615$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010616if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010617 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010618else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010619 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 -050010620
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010621else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010622 if test "$ac_cv_type_int" = yes; then
10623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010625as_fn_error 77 "cannot compute sizeof (int)
10626See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010627 else
10628 ac_cv_sizeof_int=0
10629 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010630fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010631
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010632fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010634$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010635
10636
10637
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010638cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010639#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010640_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010641
10642
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010643# The cast to long int works around a bug in the HP C Compiler
10644# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10645# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10646# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010648$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010649if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010650 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010651else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010652 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 -050010653
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010654else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010655 if test "$ac_cv_type_long" = yes; then
10656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010658as_fn_error 77 "cannot compute sizeof (long)
10659See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010660 else
10661 ac_cv_sizeof_long=0
10662 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010663fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010664
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010665fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010667$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010668
10669
10670
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010671cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010672#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010673_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010674
10675
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010676# The cast to long int works around a bug in the HP C Compiler
10677# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10678# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10679# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010681$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010682if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010683 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010684else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010685 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 -050010686
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010687else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010688 if test "$ac_cv_type_long_long" = yes; then
10689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010691as_fn_error 77 "cannot compute sizeof (long long)
10692See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010693 else
10694 ac_cv_sizeof_long_long=0
10695 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010696fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010697
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010698fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010700$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010701
10702
10703
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010704cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010705#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010706_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010707
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010708
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010709# The cast to long int works around a bug in the HP C Compiler
10710# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10711# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10712# This bug is HP SR number 8606223364.
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10714$as_echo_n "checking size of off_t... " >&6; }
10715if ${ac_cv_sizeof_off_t+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717else
10718 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10719
10720else
10721 if test "$ac_cv_type_off_t" = yes; then
10722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10724as_fn_error 77 "cannot compute sizeof (off_t)
10725See \`config.log' for more details" "$LINENO" 5; }
10726 else
10727 ac_cv_sizeof_off_t=0
10728 fi
10729fi
10730
10731fi
10732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10733$as_echo "$ac_cv_sizeof_off_t" >&6; }
10734
10735
10736
10737cat >>confdefs.h <<_ACEOF
10738#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10739_ACEOF
10740
10741
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010742SIZEOF_SHORT=$ac_cv_sizeof_short
10743SIZEOF_INT=$ac_cv_sizeof_int
10744SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010745SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010746SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10747
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010748
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010749
10750
10751
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010753$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010754if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010755 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010756else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010757 ac_cv_c_bigendian=unknown
10758 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010760/* end confdefs.h. */
10761#ifndef __APPLE_CC__
10762 not a universal capable compiler
10763 #endif
10764 typedef int dummy;
10765
10766_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010767if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010768
10769 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010770 # there are at least two -arch flags with different values.
10771 ac_arch=
10772 ac_prev=
10773 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10774 if test -n "$ac_prev"; then
10775 case $ac_word in
10776 i?86 | x86_64 | ppc | ppc64)
10777 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10778 ac_arch=$ac_word
10779 else
10780 ac_cv_c_bigendian=universal
10781 break
10782 fi
10783 ;;
10784 esac
10785 ac_prev=
10786 elif test "x$ac_word" = "x-arch"; then
10787 ac_prev=arch
10788 fi
10789 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010790fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10792 if test $ac_cv_c_bigendian = unknown; then
10793 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010795/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010796#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010797 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010798
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010799int
10800main ()
10801{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010802#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10803 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10804 && LITTLE_ENDIAN)
10805 bogus endian macros
10806 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010807
10808 ;
10809 return 0;
10810}
10811_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010812if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010813 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010815/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010816#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010817 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010818
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010819int
10820main ()
10821{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010822#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010823 not big endian
10824 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010825
10826 ;
10827 return 0;
10828}
10829_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010830if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010831 ac_cv_c_bigendian=yes
10832else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010833 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010834fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010836fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10838 fi
10839 if test $ac_cv_c_bigendian = unknown; then
10840 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010842/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010843#include <limits.h>
10844
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010845int
10846main ()
10847{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010848#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10849 bogus endian macros
10850 #endif
10851
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010852 ;
10853 return 0;
10854}
10855_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010856if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010857 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010859/* end confdefs.h. */
10860#include <limits.h>
10861
10862int
10863main ()
10864{
10865#ifndef _BIG_ENDIAN
10866 not big endian
10867 #endif
10868
10869 ;
10870 return 0;
10871}
10872_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010873if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010874 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010875else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010876 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010877fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010879fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881 fi
10882 if test $ac_cv_c_bigendian = unknown; then
10883 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010884 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010885 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010887/* end confdefs.h. */
10888short int ascii_mm[] =
10889 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10890 short int ascii_ii[] =
10891 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10892 int use_ascii (int i) {
10893 return ascii_mm[i] + ascii_ii[i];
10894 }
10895 short int ebcdic_ii[] =
10896 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10897 short int ebcdic_mm[] =
10898 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10899 int use_ebcdic (int i) {
10900 return ebcdic_mm[i] + ebcdic_ii[i];
10901 }
10902 extern int foo;
10903
10904int
10905main ()
10906{
10907return use_ascii (foo) == use_ebcdic (foo);
10908 ;
10909 return 0;
10910}
10911_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010912if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010913 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10914 ac_cv_c_bigendian=yes
10915 fi
10916 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10917 if test "$ac_cv_c_bigendian" = unknown; then
10918 ac_cv_c_bigendian=no
10919 else
10920 # finding both strings is unlikely to happen, but who knows?
10921 ac_cv_c_bigendian=unknown
10922 fi
10923 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010924fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010926else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010928/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010929$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010930int
10931main ()
10932{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010933
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010934 /* Are we little or big endian? From Harbison&Steele. */
10935 union
10936 {
10937 long int l;
10938 char c[sizeof (long int)];
10939 } u;
10940 u.l = 1;
10941 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010942
10943 ;
10944 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010945}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010946_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010947if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010948 ac_cv_c_bigendian=no
10949else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010950 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010951fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10953 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010954fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010955
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010956 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010957fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010959$as_echo "$ac_cv_c_bigendian" >&6; }
10960 case $ac_cv_c_bigendian in #(
10961 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010962 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010963;; #(
10964 no)
10965 ;; #(
10966 universal)
10967
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010968$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010969
10970 ;; #(
10971 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010972 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010973 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010974 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010975
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010976BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010977ASM_TYPES_HEADER=./asm_types.h
10978
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010979echo "/* These defines are needed for the public ext2fs.h header file */" \
10980 > public_config.h
10981if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10982 uniq tmp_config.$$ >> public_config.h
10983else
10984 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10985fi
10986if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10987 uniq tmp_config.$$ >> public_config.h
10988else
10989 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10990fi
10991rm -f tmp_config.$$
10992PUBLIC_CONFIG_HEADER=./public_config.h
10993
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010994for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010995do :
10996 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010997if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010998 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010999#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011000_ACEOF
11001
11002fi
11003
Theodore Ts'o0c193f82003-08-01 14:26:23 -040011004done
11005
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011006ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011007if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011008
11009cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050011010#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011011_ACEOF
11012
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050011013
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011014fi
11015
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011016{ $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 +010011017$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011018if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011019 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011020else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011022/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011023#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011024int
11025main ()
11026{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011027struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011028 ;
11029 return 0;
11030}
11031_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011032if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011033 e2fsprogs_cv_struct_st_flags=yes
11034else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011035 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011036fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11038fi
11039
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011041$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011042if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011044$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011045 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011046 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000011047else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011049/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000011050#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011051int
11052main ()
11053{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000011054struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011055 ;
11056 return 0;
11057}
11058_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011059if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000011060 e2fsprogs_cv_struct_st_flags_immut=yes
11061else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011062 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000011063fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065fi
11066
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011068$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000011069 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011070
11071$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011072
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000011073 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011074fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011075ac_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 -050011076 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011077"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011078if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011079
11080cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050011081#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011082_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050011083
11084fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011085
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011086if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011088$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011089if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011090 $as_echo_n "(cached) " >&6
11091else
11092 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011094/* end confdefs.h. */
11095
11096/* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11099#ifdef __cplusplus
11100extern "C"
11101#endif
11102char blkid_probe_all ();
11103int
11104main ()
11105{
11106return blkid_probe_all ();
11107 ;
11108 return 0;
11109}
11110_ACEOF
11111for ac_lib in '' blkid; do
11112 if test -z "$ac_lib"; then
11113 ac_res="none required"
11114 else
11115 ac_res=-l$ac_lib
11116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11117 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011118 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011119 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011120fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011121rm -f core conftest.err conftest.$ac_objext \
11122 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011123 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011124 break
11125fi
11126done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011127if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011128
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011129else
11130 ac_cv_search_blkid_probe_all=no
11131fi
11132rm conftest.$ac_ext
11133LIBS=$ac_func_search_save_LIBS
11134fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011136$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11137ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011138if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11140
11141fi
11142
11143fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050011144for ac_func in __secure_getenv backtrace blkid_probe_get_topology 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 -050011145do :
11146 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11147ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011148if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011149 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011150#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011151_ACEOF
11152
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011153fi
11154done
11155
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011156SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011158$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011159if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011160 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011161else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011162 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011163LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011165/* end confdefs.h. */
11166
Theodore Ts'oe1052142006-10-21 21:46:47 -040011167/* Override any GCC internal prototype to avoid an error.
11168 Use char because int might match the return type of a GCC
11169 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011170#ifdef __cplusplus
11171extern "C"
11172#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011173char socket ();
11174int
11175main ()
11176{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011177return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011178 ;
11179 return 0;
11180}
11181_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011182if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011183 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011184else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011185 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011186fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011187rm -f core conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011189LIBS=$ac_check_lib_save_LIBS
11190fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011192$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011193if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011194 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011195fi
11196
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011197
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011199$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011200if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011201 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011202else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011204/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011205#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011206
11207_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011209 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011210 ac_cv_have_optreset=yes
11211else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011212 ac_cv_have_optreset=no
11213fi
11214rm -f conftest*
11215
11216fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011218$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011219if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011220
11221$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011222
11223fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011224
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011225SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011226ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011227if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011228
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011229else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011231$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011232if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011233 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011234else
11235 ac_check_lib_save_LIBS=$LIBS
11236LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011238/* end confdefs.h. */
11239
11240/* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11243#ifdef __cplusplus
11244extern "C"
11245#endif
11246char sem_init ();
11247int
11248main ()
11249{
11250return sem_init ();
11251 ;
11252 return 0;
11253}
11254_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011255if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011256 ac_cv_lib_pthread_sem_init=yes
11257else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011258 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011259fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011260rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011262LIBS=$ac_check_lib_save_LIBS
11263fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011265$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011266if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011267 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011268
11269 SEM_INIT_LIB=-lpthread
11270else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011272$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011273if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011274 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011275else
11276 ac_check_lib_save_LIBS=$LIBS
11277LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011279/* end confdefs.h. */
11280
11281/* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11284#ifdef __cplusplus
11285extern "C"
11286#endif
11287char sem_init ();
11288int
11289main ()
11290{
11291return sem_init ();
11292 ;
11293 return 0;
11294}
11295_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011296if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011297 ac_cv_lib_rt_sem_init=yes
11298else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011299 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011300fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011301rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011303LIBS=$ac_check_lib_save_LIBS
11304fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011306$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011307if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011308 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011309
11310 SEM_INIT_LIB=-lrt
11311else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011313$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011314if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011315 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011316else
11317 ac_check_lib_save_LIBS=$LIBS
11318LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011320/* end confdefs.h. */
11321
11322/* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11325#ifdef __cplusplus
11326extern "C"
11327#endif
11328char sem_init ();
11329int
11330main ()
11331{
11332return sem_init ();
11333 ;
11334 return 0;
11335}
11336_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011337if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011338 ac_cv_lib_posix4_sem_init=yes
11339else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011340 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011341fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011342rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011344LIBS=$ac_check_lib_save_LIBS
11345fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011347$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011348if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011349 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011350
11351 SEM_INIT_LIB=-lposix4
11352fi
11353
11354fi
11355
11356fi
11357
11358fi
11359
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011361$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011362if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011363 UNI_DIFF_OPTS=-u
11364else
11365 UNI_DIFF_OPTS=-c
11366fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011368$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011369
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011370case "$host_os" in
11371linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011372
11373$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011374
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011375 ;;
11376esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011377LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011378CYGWIN_CMT="#"
11379UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011380case "$host_os" in
11381linux*)
11382 LINUX_CMT=
11383 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011384cygwin)
11385 CYGWIN_CMT=
11386 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011387 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011388esac
11389
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011390
11391
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011392case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011393linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011394 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11395 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011396 { $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 +010011397$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011398 fi
11399 ;;
11400esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011401case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011402linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011403 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011404 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011405 { $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 +010011406$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011407 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011409$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011410 mandir=/usr/share/man
11411 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011412 fi
11413;;
11414esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011415if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011416 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011417 root_prefix="$ac_default_prefix"
11418 else
11419 root_prefix="$prefix"
11420 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011421 root_bindir=$bindir
11422 root_sbindir=$sbindir
11423 root_libdir=$libdir
11424 root_sysconfdir=$sysconfdir
11425else
11426 root_bindir='${root_prefix}/bin'
11427 root_sbindir='${root_prefix}/sbin'
11428 root_libdir='${root_prefix}/lib'
11429 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011430fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011431if test "$bindir" != '${exec_prefix}/bin'; then
11432 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011434$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011435fi
11436if test "$sbindir" != '${exec_prefix}/sbin'; then
11437 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011439$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011440fi
11441if test "$libdir" != '${exec_prefix}/lib'; then
11442 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011444$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011445fi
11446if test "$sysconfdir" != '${prefix}/etc'; then
11447 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011449$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011450fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011451
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011452
11453
11454
11455
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011456
11457# Check whether --with-multiarch was given.
11458if test "${with_multiarch+set}" = set; then :
11459 withval=$with_multiarch; libdir=$libdir/$withval
11460root_libdir=$root_libdir/$withval
11461
11462fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050011463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11464$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011465if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011466 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011467else
11468 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011470/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011471#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011472int
11473main ()
11474{
Theodore Ts'oae851481997-04-29 18:13:24 +000011475fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011476 ;
11477 return 0;
11478}
11479_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011480if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011481 ac_cv_e2fsprogs_use_static=yes
11482else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011483 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011484fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011485rm -f core conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011487LDFLAGS=$SAVE_LDFLAGS
11488fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011489
Theodore Ts'odefde781999-01-04 07:39:19 +000011490case "$host_os" in
11491solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011492 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011493;;
11494esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011496$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011497LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011498if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011499 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011500fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011501
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011502case "$host_os" in
11503darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011505$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011506
11507$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011508
11509 ;;
11510esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011511SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11512ET_DIR=`cd ${srcdir}/lib/et; pwd`
11513
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011514
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011515if test "$cross_compiling" = yes ; then
11516 DO_TEST_SUITE=
11517else
11518 DO_TEST_SUITE=check
11519fi
11520
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011521INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11522if test -n "$CPPFLAGS" ; then
11523 INCLUDES="$INCLUDES $CPPFLAGS"
11524fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011525if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011526 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011527fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050011528if test -n "$WITH_DIET_LIBC" ; then
11529 INCLUDES="$INCLUDES -D_REENTRANT"
11530fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011531
Theodore Ts'odd947da2005-11-09 18:37:07 -040011532if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050011533 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040011534 BUILD_LDFLAGS="$LDFLAGS"
11535else
11536 BUILD_CFLAGS=
11537 BUILD_LDFLAGS=
11538fi
11539
11540
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011541test -d lib || mkdir lib
11542test -d include || mkdir include
11543test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011544test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011545for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040011546 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011547 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11548 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011549 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011550 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011551 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11552 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011553 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011554 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011555 resize/Makefile doc/Makefile intl/Makefile \
11556 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011557 if test -d `dirname ${srcdir}/$i` ; then
11558 outlist="$outlist $i"
11559 fi
11560done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011561ac_config_files="$ac_config_files $outlist"
11562
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011563cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011564# This file is a shell script that caches the results of configure
11565# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011566# scripts and configure runs, see configure's option --config-cache.
11567# It is not useful on other systems. If it contains results you don't
11568# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011569#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011570# config.status only pays attention to the cache file if you give it
11571# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011572#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011573# `ac_cv_env_foo' variables (set or unset) will be overridden when
11574# loading this file, other *unset* `ac_cv_foo' will be assigned the
11575# following values.
11576
11577_ACEOF
11578
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011579# The following way of writing the cache mishandles newlines in values,
11580# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011581# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011582# Ultrix sh set writes to stderr and can't be redirected directly,
11583# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011584(
11585 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11586 eval ac_val=\$$ac_var
11587 case $ac_val in #(
11588 *${as_nl}*)
11589 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011590 *_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 +010011591$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011592 esac
11593 case $ac_var in #(
11594 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011595 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011596 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011597 esac ;;
11598 esac
11599 done
11600
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011601 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011602 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11603 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011604 # `set' does not quote correctly, so add quotes: double-quote
11605 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011606 sed -n \
11607 "s/'/'\\\\''/g;
11608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011609 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011610 *)
11611 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011612 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011613 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011614 esac |
11615 sort
11616) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011617 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011618 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011619 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011620 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011621 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11622 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011623 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11624 :end' >>confcache
11625if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11626 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011627 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011628 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011629$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011630 if test ! -f "$cache_file" || test -h "$cache_file"; then
11631 cat confcache >"$cache_file"
11632 else
11633 case $cache_file in #(
11634 */* | ?:*)
11635 mv -f confcache "$cache_file"$$ &&
11636 mv -f "$cache_file"$$ "$cache_file" ;; #(
11637 *)
11638 mv -f confcache "$cache_file" ;;
11639 esac
11640 fi
11641 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011642 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011643 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011644$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011645 fi
11646fi
11647rm -f confcache
11648
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011649test "x$prefix" = xNONE && prefix=$ac_default_prefix
11650# Let make expand exec_prefix.
11651test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11652
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011653DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011654
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011655ac_libobjs=
11656ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011657U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011658for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11659 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011660 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011661 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011662 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11663 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011664 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11665 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011666done
11667LIBOBJS=$ac_libobjs
11668
11669LTLIBOBJS=$ac_ltlibobjs
11670
11671
11672
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011673
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011674: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011675ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011676ac_clean_files_save=$ac_clean_files
11677ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011678{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011679$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011680as_write_fail=0
11681cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011682#! $SHELL
11683# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011684# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011685# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011686# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011688debug=false
11689ac_cs_recheck=false
11690ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011691
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011692SHELL=\${CONFIG_SHELL-$SHELL}
11693export SHELL
11694_ASEOF
11695cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11696## -------------------- ##
11697## M4sh Initialization. ##
11698## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011699
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011700# Be more Bourne compatible
11701DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011702if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011703 emulate sh
11704 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011705 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011706 # is contrary to our usage. Disable this feature.
11707 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011708 setopt NO_GLOB_SUBST
11709else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011710 case `(set -o) 2>/dev/null` in #(
11711 *posix*) :
11712 set -o posix ;; #(
11713 *) :
11714 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011715esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011716fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011717
11718
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011719as_nl='
11720'
11721export as_nl
11722# Printing a long string crashes Solaris 7 /usr/bin/printf.
11723as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11724as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11725as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011726# Prefer a ksh shell builtin over an external printf program on Solaris,
11727# but without wasting forks for bash or zsh.
11728if test -z "$BASH_VERSION$ZSH_VERSION" \
11729 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11730 as_echo='print -r --'
11731 as_echo_n='print -rn --'
11732elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011733 as_echo='printf %s\n'
11734 as_echo_n='printf %s'
11735else
11736 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11737 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11738 as_echo_n='/usr/ucb/echo -n'
11739 else
11740 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11741 as_echo_n_body='eval
11742 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011743 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011744 *"$as_nl"*)
11745 expr "X$arg" : "X\\(.*\\)$as_nl";
11746 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11747 esac;
11748 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11749 '
11750 export as_echo_n_body
11751 as_echo_n='sh -c $as_echo_n_body as_echo'
11752 fi
11753 export as_echo_body
11754 as_echo='sh -c $as_echo_body as_echo'
11755fi
11756
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011757# The user is always right.
11758if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011759 PATH_SEPARATOR=:
11760 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11761 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11762 PATH_SEPARATOR=';'
11763 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011764fi
11765
Theodore Ts'oe1052142006-10-21 21:46:47 -040011766
11767# IFS
11768# We need space, tab and new line, in precisely that order. Quoting is
11769# there to prevent editors from complaining about space-tab.
11770# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11771# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011772IFS=" "" $as_nl"
11773
11774# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011775as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011776case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011777 *[\\/]* ) as_myself=$0 ;;
11778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011779for as_dir in $PATH
11780do
11781 IFS=$as_save_IFS
11782 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011783 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11784 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011785IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011786
Theodore Ts'oe1052142006-10-21 21:46:47 -040011787 ;;
11788esac
11789# We did not find ourselves, most probably we were run as `sh COMMAND'
11790# in which case we are not to be found in the path.
11791if test "x$as_myself" = x; then
11792 as_myself=$0
11793fi
11794if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011795 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011796 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011797fi
11798
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011799# Unset variables that we do not need and which cause bugs (e.g. in
11800# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11801# suppresses any "Segmentation fault" message there. '((' could
11802# trigger a bug in pdksh 5.2.14.
11803for as_var in BASH_ENV ENV MAIL MAILPATH
11804do eval test x\${$as_var+set} = xset \
11805 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011806done
11807PS1='$ '
11808PS2='> '
11809PS4='+ '
11810
11811# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011812LC_ALL=C
11813export LC_ALL
11814LANGUAGE=C
11815export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011816
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011817# CDPATH.
11818(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11819
11820
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011821# as_fn_error STATUS ERROR [LINENO LOG_FD]
11822# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011823# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11824# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011825# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011826as_fn_error ()
11827{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011828 as_status=$1; test $as_status -eq 0 && as_status=1
11829 if test "$4"; then
11830 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11831 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011832 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011833 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011834 as_fn_exit $as_status
11835} # as_fn_error
11836
11837
11838# as_fn_set_status STATUS
11839# -----------------------
11840# Set $? to STATUS, without forking.
11841as_fn_set_status ()
11842{
11843 return $1
11844} # as_fn_set_status
11845
11846# as_fn_exit STATUS
11847# -----------------
11848# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11849as_fn_exit ()
11850{
11851 set +e
11852 as_fn_set_status $1
11853 exit $1
11854} # as_fn_exit
11855
11856# as_fn_unset VAR
11857# ---------------
11858# Portably unset VAR.
11859as_fn_unset ()
11860{
11861 { eval $1=; unset $1;}
11862}
11863as_unset=as_fn_unset
11864# as_fn_append VAR VALUE
11865# ----------------------
11866# Append the text in VALUE to the end of the definition contained in VAR. Take
11867# advantage of any shell optimizations that allow amortized linear growth over
11868# repeated appends, instead of the typical quadratic growth present in naive
11869# implementations.
11870if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11871 eval 'as_fn_append ()
11872 {
11873 eval $1+=\$2
11874 }'
11875else
11876 as_fn_append ()
11877 {
11878 eval $1=\$$1\$2
11879 }
11880fi # as_fn_append
11881
11882# as_fn_arith ARG...
11883# ------------------
11884# Perform arithmetic evaluation on the ARGs, and store the result in the
11885# global $as_val. Take advantage of shells that can avoid forks. The arguments
11886# must be portable across $(()) and expr.
11887if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11888 eval 'as_fn_arith ()
11889 {
11890 as_val=$(( $* ))
11891 }'
11892else
11893 as_fn_arith ()
11894 {
11895 as_val=`expr "$@" || test $? -eq 1`
11896 }
11897fi # as_fn_arith
11898
11899
Theodore Ts'oe1052142006-10-21 21:46:47 -040011900if expr a : '\(a\)' >/dev/null 2>&1 &&
11901 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11902 as_expr=expr
11903else
11904 as_expr=false
11905fi
11906
11907if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11908 as_basename=basename
11909else
11910 as_basename=false
11911fi
11912
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011913if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11914 as_dirname=dirname
11915else
11916 as_dirname=false
11917fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011918
Theodore Ts'oe1052142006-10-21 21:46:47 -040011919as_me=`$as_basename -- "$0" ||
11920$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11921 X"$0" : 'X\(//\)$' \| \
11922 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011923$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011924 sed '/^.*\/\([^/][^/]*\)\/*$/{
11925 s//\1/
11926 q
11927 }
11928 /^X\/\(\/\/\)$/{
11929 s//\1/
11930 q
11931 }
11932 /^X\/\(\/\).*/{
11933 s//\1/
11934 q
11935 }
11936 s/.*/./; q'`
11937
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011938# Avoid depending upon Character Ranges.
11939as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11940as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11941as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11942as_cr_digits='0123456789'
11943as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011944
11945ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011946case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011947-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011948 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011949 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011950 xy) ECHO_C='\c';;
11951 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11952 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011953 esac;;
11954*)
11955 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011956esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011957
11958rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011959if test -d conf$$.dir; then
11960 rm -f conf$$.dir/conf$$.file
11961else
11962 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011963 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011964fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011965if (echo >conf$$.file) 2>/dev/null; then
11966 if ln -s conf$$.file conf$$ 2>/dev/null; then
11967 as_ln_s='ln -s'
11968 # ... but there are two gotchas:
11969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011971 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011972 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011973 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011974 elif ln conf$$.file conf$$ 2>/dev/null; then
11975 as_ln_s=ln
11976 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011977 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011978 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011979else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011980 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011981fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011982rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11983rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011984
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011985
11986# as_fn_mkdir_p
11987# -------------
11988# Create "$as_dir" as a directory, including parents if necessary.
11989as_fn_mkdir_p ()
11990{
11991
11992 case $as_dir in #(
11993 -*) as_dir=./$as_dir;;
11994 esac
11995 test -d "$as_dir" || eval $as_mkdir_p || {
11996 as_dirs=
11997 while :; do
11998 case $as_dir in #(
11999 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12000 *) as_qdir=$as_dir;;
12001 esac
12002 as_dirs="'$as_qdir' $as_dirs"
12003 as_dir=`$as_dirname -- "$as_dir" ||
12004$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12005 X"$as_dir" : 'X\(//\)[^/]' \| \
12006 X"$as_dir" : 'X\(//\)$' \| \
12007 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12008$as_echo X"$as_dir" |
12009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12010 s//\1/
12011 q
12012 }
12013 /^X\(\/\/\)[^/].*/{
12014 s//\1/
12015 q
12016 }
12017 /^X\(\/\/\)$/{
12018 s//\1/
12019 q
12020 }
12021 /^X\(\/\).*/{
12022 s//\1/
12023 q
12024 }
12025 s/.*/./; q'`
12026 test -d "$as_dir" && break
12027 done
12028 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012029 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012030
12031
12032} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012033if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012034 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012035else
12036 test -d ./-p && rmdir ./-p
12037 as_mkdir_p=false
12038fi
12039
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012040
12041# as_fn_executable_p FILE
12042# -----------------------
12043# Test if FILE is an executable regular file.
12044as_fn_executable_p ()
12045{
12046 test -f "$1" && test -x "$1"
12047} # as_fn_executable_p
12048as_test_x='test -x'
12049as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012050
12051# Sed expression to map a string onto a valid CPP name.
12052as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12053
12054# Sed expression to map a string onto a valid variable name.
12055as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12056
12057
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012058exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012059## ----------------------------------- ##
12060## Main body of $CONFIG_STATUS script. ##
12061## ----------------------------------- ##
12062_ASEOF
12063test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12066# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040012068# values after options handling.
12069ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012070This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012071generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012072
12073 CONFIG_FILES = $CONFIG_FILES
12074 CONFIG_HEADERS = $CONFIG_HEADERS
12075 CONFIG_LINKS = $CONFIG_LINKS
12076 CONFIG_COMMANDS = $CONFIG_COMMANDS
12077 $ $0 $@
12078
Theodore Ts'oe1052142006-10-21 21:46:47 -040012079on `(hostname || uname -n) 2>/dev/null | sed 1q`
12080"
12081
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012082_ACEOF
12083
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012084case $ac_config_files in *"
12085"*) set x $ac_config_files; shift; ac_config_files=$*;;
12086esac
12087
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012088case $ac_config_headers in *"
12089"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12090esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012091
12092
12093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012094# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012095config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012096config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012097config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012098
Theodore Ts'oe1052142006-10-21 21:46:47 -040012099_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012100
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012102ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012103\`$as_me' instantiates files and other configuration actions
12104from templates according to the current configuration. Unless the files
12105and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012106
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012107Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012108
12109 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012110 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012111 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012112 -q, --quiet, --silent
12113 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012114 -d, --debug don't remove temporary files
12115 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012116 --file=FILE[:TEMPLATE]
12117 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012118 --header=FILE[:TEMPLATE]
12119 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012120
12121Configuration files:
12122$config_files
12123
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012124Configuration headers:
12125$config_headers
12126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012127Configuration commands:
12128$config_commands
12129
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012130Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012131
Theodore Ts'oe1052142006-10-21 21:46:47 -040012132_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012134ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012135ac_cs_version="\\
12136config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012137configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012138 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012139
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012140Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012141This config.status script is free software; the Free Software Foundation
12142gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040012143
12144ac_pwd='$ac_pwd'
12145srcdir='$srcdir'
12146INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012147AWK='$AWK'
12148test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012149_ACEOF
12150
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12152# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012153ac_need_defaults=:
12154while test $# != 0
12155do
12156 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012157 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012158 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12159 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160 ac_shift=:
12161 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012162 --*=)
12163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12164 ac_optarg=
12165 ac_shift=:
12166 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012167 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012168 ac_option=$1
12169 ac_optarg=$2
12170 ac_shift=shift
12171 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012172 esac
12173
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012174 case $ac_option in
12175 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12177 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012178 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012179 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012180 --config | --confi | --conf | --con | --co | --c )
12181 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012182 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012183 debug=: ;;
12184 --file | --fil | --fi | --f )
12185 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012186 case $ac_optarg in
12187 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012188 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012189 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012190 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012191 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012192 --header | --heade | --head | --hea )
12193 $ac_shift
12194 case $ac_optarg in
12195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12196 esac
12197 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12198 ac_need_defaults=false;;
12199 --he | --h)
12200 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012201 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012202Try \`$0 --help' for more information.";;
12203 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012204 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12206 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12207 ac_cs_silent=: ;;
12208
12209 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012210 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012211Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012212
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012213 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012214 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012216 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012217 shift
12218done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012219
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012220ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012221
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012222if $ac_cs_silent; then
12223 exec 6>/dev/null
12224 ac_configure_extra_args="$ac_configure_extra_args --silent"
12225fi
12226
12227_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012229if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012230 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012231 shift
12232 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12233 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012234 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012235 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012236fi
12237
12238_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012240exec 5>>config.log
12241{
12242 echo
12243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12244## Running $as_me. ##
12245_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012246 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012247} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012248
Theodore Ts'oe1052142006-10-21 21:46:47 -040012249_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012251#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012252# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012253#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012254# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012255 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012256 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012257 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012258 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12259 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012260
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012262_ACEOF
12263
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012265
12266# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012267for ac_config_target in $ac_config_targets
12268do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012269 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012270 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012271 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12272 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12273
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012274 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012275 esac
12276done
12277
Theodore Ts'oe1052142006-10-21 21:46:47 -040012278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012279# If the user did not use the arguments to specify the items to instantiate,
12280# then the envvar interface is used. Set only those that are not.
12281# We use the long form for the default assignment because of an extremely
12282# bizarre bug on SunOS 4.1.3.
12283if $ac_need_defaults; then
12284 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012285 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012286 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12287fi
12288
12289# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012290# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012291# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012292# Hook for its removal unless debugging.
12293# Note that there is a small window in which the directory will not be cleaned:
12294# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012295$debug ||
12296{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012297 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040012298 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012299 : "${ac_tmp:=$tmp}"
12300 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040012301' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012302 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012303}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012304# Create a (secure) tmp directory for tmp files.
12305
12306{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012307 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012308 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012309} ||
12310{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012311 tmp=./conf$$-$RANDOM
12312 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012313} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12314ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012315
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012316# Set up the scripts for CONFIG_FILES section.
12317# No need to generate them if there are no CONFIG_FILES.
12318# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012319if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012320
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012321if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12322 ac_cs_awk_getline=:
12323 ac_cs_awk_pipe_init=
12324 ac_cs_awk_read_file='
12325 while ((getline aline < (F[key])) > 0)
12326 print(aline)
12327 close(F[key])'
12328 ac_cs_awk_pipe_fini=
12329else
12330 ac_cs_awk_getline=false
12331 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12332 ac_cs_awk_read_file='
12333 print "|#_!!_#|"
12334 print "cat " F[key] " &&"
12335 '$ac_cs_awk_pipe_init
12336 # The final `:' finishes the AND list.
12337 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12338fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012339ac_cr=`echo X | tr X '\015'`
12340# On cygwin, bash can eat \r inside `` if the user requested igncr.
12341# But we know of no other shell where ac_cr would be empty at this
12342# point, so we can use a bashism as a fallback.
12343if test "x$ac_cr" = x; then
12344 eval ac_cr=\$\'\\r\'
12345fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012346ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12347if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012348 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012349else
12350 ac_cs_awk_cr=$ac_cr
12351fi
12352
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012353echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012354_ACEOF
12355
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012356# Create commands to substitute file output variables.
12357{
12358 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012359 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012360 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12361 echo "_ACAWK" &&
12362 echo "_ACEOF"
12363} >conf$$files.sh &&
12364. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012365 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012366rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012367
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012368{
12369 echo "cat >conf$$subs.awk <<_ACEOF" &&
12370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12371 echo "_ACEOF"
12372} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12374ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012375ac_delim='%!_!# '
12376for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012377 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012379
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012380 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12381 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012382 break
12383 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012385 else
12386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012387 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012388done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012389rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012390
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012392cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012393_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012394sed -n '
12395h
12396s/^/S["/; s/!.*/"]=/
12397p
12398g
12399s/^[^!]*!//
12400:repl
12401t repl
12402s/'"$ac_delim"'$//
12403t delim
12404:nl
12405h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012406s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012407t more1
12408s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12409p
12410n
12411b repl
12412:more1
12413s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12414p
12415g
12416s/.\{148\}//
12417t nl
12418:delim
12419h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012420s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012421t more2
12422s/["\\]/\\&/g; s/^/"/; s/$/"/
12423p
12424b
12425:more2
12426s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12427p
12428g
12429s/.\{148\}//
12430t delim
12431' <conf$$subs.awk | sed '
12432/^[^""]/{
12433 N
12434 s/\n//
12435}
12436' >>$CONFIG_STATUS || ac_write_fail=1
12437rm -f conf$$subs.awk
12438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12439_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012440cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012441 for (key in S) S_is_set[key] = 1
12442 FS = ""
12443 \$ac_cs_awk_pipe_init
12444}
12445{
12446 line = $ 0
12447 nfields = split(line, field, "@")
12448 substed = 0
12449 len = length(field[1])
12450 for (i = 2; i < nfields; i++) {
12451 key = field[i]
12452 keylen = length(key)
12453 if (S_is_set[key]) {
12454 value = S[key]
12455 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12456 len += length(value) + length(field[++i])
12457 substed = 1
12458 } else
12459 len += 1 + keylen
12460 }
12461 if (nfields == 3 && !substed) {
12462 key = field[2]
12463 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12464 \$ac_cs_awk_read_file
12465 next
12466 }
12467 }
12468 print line
12469}
12470\$ac_cs_awk_pipe_fini
12471_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012472_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12474if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12476else
12477 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012478fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12479 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012480_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012481
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012482# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12483# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040012484# trailing colons and then remove the whole line if VPATH becomes empty
12485# (actually we leave an empty line to preserve line numbers).
12486if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012487 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12488h
12489s///
12490s/^/:/
12491s/[ ]*$/:/
12492s/:\$(srcdir):/:/g
12493s/:\${srcdir}:/:/g
12494s/:@srcdir@:/:/g
12495s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012496s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012497x
12498s/\(=[ ]*\).*/\1/
12499G
12500s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012501s/^[^=]*=[ ]*$//
12502}'
12503fi
12504
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012506fi # test -n "$CONFIG_FILES"
12507
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012508# Set up the scripts for CONFIG_HEADERS section.
12509# No need to generate them if there are no CONFIG_HEADERS.
12510# This happens for instance with `./config.status Makefile'.
12511if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012512cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012513BEGIN {
12514_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012515
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012516# Transform confdefs.h into an awk script `defines.awk', embedded as
12517# here-document in config.status, that substitutes the proper values into
12518# config.h.in to produce config.h.
12519
12520# Create a delimiter string that does not exist in confdefs.h, to ease
12521# handling of long lines.
12522ac_delim='%!_!# '
12523for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012524 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12525 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012526 break
12527 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012528 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012529 else
12530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12531 fi
12532done
12533
12534# For the awk script, D is an array of macro values keyed by name,
12535# likewise P contains macro parameters if any. Preserve backslash
12536# newline sequences.
12537
12538ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12539sed -n '
12540s/.\{148\}/&'"$ac_delim"'/g
12541t rset
12542:rset
12543s/^[ ]*#[ ]*define[ ][ ]*/ /
12544t def
12545d
12546:def
12547s/\\$//
12548t bsnl
12549s/["\\]/\\&/g
12550s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12551D["\1"]=" \3"/p
12552s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12553d
12554:bsnl
12555s/["\\]/\\&/g
12556s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12557D["\1"]=" \3\\\\\\n"\\/p
12558t cont
12559s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12560t cont
12561d
12562:cont
12563n
12564s/.\{148\}/&'"$ac_delim"'/g
12565t clear
12566:clear
12567s/\\$//
12568t bsnlc
12569s/["\\]/\\&/g; s/^/"/; s/$/"/p
12570d
12571:bsnlc
12572s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12573b cont
12574' <confdefs.h | sed '
12575s/'"$ac_delim"'/"\\\
12576"/g' >>$CONFIG_STATUS || ac_write_fail=1
12577
12578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12579 for (key in D) D_is_set[key] = 1
12580 FS = ""
12581}
12582/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12583 line = \$ 0
12584 split(line, arg, " ")
12585 if (arg[1] == "#") {
12586 defundef = arg[2]
12587 mac1 = arg[3]
12588 } else {
12589 defundef = substr(arg[1], 2)
12590 mac1 = arg[2]
12591 }
12592 split(mac1, mac2, "(") #)
12593 macro = mac2[1]
12594 prefix = substr(line, 1, index(line, defundef) - 1)
12595 if (D_is_set[macro]) {
12596 # Preserve the white space surrounding the "#".
12597 print prefix "define", macro P[macro] D[macro]
12598 next
12599 } else {
12600 # Replace #undef with comments. This is necessary, for example,
12601 # in the case of _POSIX_SOURCE, which is predefined and required
12602 # on some systems where configure will not decide to define it.
12603 if (defundef == "undef") {
12604 print "/*", prefix defundef, macro, "*/"
12605 next
12606 }
12607 }
12608}
12609{ print }
12610_ACAWK
12611_ACEOF
12612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012613 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012614fi # test -n "$CONFIG_HEADERS"
12615
12616
12617eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012618shift
12619for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012620do
12621 case $ac_tag in
12622 :[FHLC]) ac_mode=$ac_tag; continue;;
12623 esac
12624 case $ac_mode$ac_tag in
12625 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012626 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012627 :[FH]-) ac_tag=-:-;;
12628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12629 esac
12630 ac_save_IFS=$IFS
12631 IFS=:
12632 set x $ac_tag
12633 IFS=$ac_save_IFS
12634 shift
12635 ac_file=$1
12636 shift
12637
12638 case $ac_mode in
12639 :L) ac_source=$1;;
12640 :[FH])
12641 ac_file_inputs=
12642 for ac_f
12643 do
12644 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012645 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012646 *) # Look for the file first in the build tree, then in the source tree
12647 # (if the path is not absolute). The absolute path cannot be DOS-style,
12648 # because $ac_f cannot contain `:'.
12649 test -f "$ac_f" ||
12650 case $ac_f in
12651 [\\/$]*) false;;
12652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12653 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012654 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012655 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012656 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012657 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012658 done
12659
12660 # Let's still pretend it is `configure' which instantiates (i.e., don't
12661 # use $as_me), people would be surprised to read:
12662 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012663 configure_input='Generated from '`
12664 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12665 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012666 if test x"$ac_file" != x-; then
12667 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012669$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012670 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012671 # Neutralize special characters interpreted by sed in replacement strings.
12672 case $configure_input in #(
12673 *\&* | *\|* | *\\* )
12674 ac_sed_conf_input=`$as_echo "$configure_input" |
12675 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12676 *) ac_sed_conf_input=$configure_input;;
12677 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012678
12679 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012680 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012682 esac
12683 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012684 esac
12685
Theodore Ts'oe1052142006-10-21 21:46:47 -040012686 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012687$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12688 X"$ac_file" : 'X\(//\)[^/]' \| \
12689 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012690 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012691$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12693 s//\1/
12694 q
12695 }
12696 /^X\(\/\/\)[^/].*/{
12697 s//\1/
12698 q
12699 }
12700 /^X\(\/\/\)$/{
12701 s//\1/
12702 q
12703 }
12704 /^X\(\/\).*/{
12705 s//\1/
12706 q
12707 }
12708 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012709 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012710 ac_builddir=.
12711
Theodore Ts'oe1052142006-10-21 21:46:47 -040012712case "$ac_dir" in
12713.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12714*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012716 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012718 case $ac_top_builddir_sub in
12719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12721 esac ;;
12722esac
12723ac_abs_top_builddir=$ac_pwd
12724ac_abs_builddir=$ac_pwd$ac_dir_suffix
12725# for backward compatibility:
12726ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012727
12728case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012729 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012730 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012731 ac_top_srcdir=$ac_top_builddir_sub
12732 ac_abs_top_srcdir=$ac_pwd ;;
12733 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012734 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012735 ac_top_srcdir=$srcdir
12736 ac_abs_top_srcdir=$srcdir ;;
12737 *) # Relative name.
12738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12739 ac_top_srcdir=$ac_top_build_prefix$srcdir
12740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012741esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012742ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012743
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012744
Theodore Ts'oe1052142006-10-21 21:46:47 -040012745 case $ac_mode in
12746 :F)
12747 #
12748 # CONFIG_FILE
12749 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012750
12751 case $INSTALL in
12752 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012753 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012754 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012755_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012756
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012758# If the template does not know about datarootdir, expand it.
12759# FIXME: This hack should be removed a few years after 2.60.
12760ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012761ac_sed_dataroot='
12762/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012763 p
12764 q
12765}
12766/@datadir@/p
12767/@docdir@/p
12768/@infodir@/p
12769/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012770/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012771case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012772*datarootdir*) ac_datarootdir_seen=yes;;
12773*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012774 { $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 +010012775$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012776_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012778 ac_datarootdir_hack='
12779 s&@datadir@&$datadir&g
12780 s&@docdir@&$docdir&g
12781 s&@infodir@&$infodir&g
12782 s&@localedir@&$localedir&g
12783 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012784 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012785esac
12786_ACEOF
12787
12788# Neutralize VPATH when `$srcdir' = `.'.
12789# Shell code in configure.ac might set extrasub.
12790# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12792ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012793$extrasub
12794_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012796:t
12797/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012798s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012799s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012800s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012801s&@srcdir@&$ac_srcdir&;t t
12802s&@abs_srcdir@&$ac_abs_srcdir&;t t
12803s&@top_srcdir@&$ac_top_srcdir&;t t
12804s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12805s&@builddir@&$ac_builddir&;t t
12806s&@abs_builddir@&$ac_abs_builddir&;t t
12807s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12808s&@INSTALL@&$ac_INSTALL&;t t
12809$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012810"
12811eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12812if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012813 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012814else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012815 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12816fi \
12817 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012818
Theodore Ts'oe1052142006-10-21 21:46:47 -040012819test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012820 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12821 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12822 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012824which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012825$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012826which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012827
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012828 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012829 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012830 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12831 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012832 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012834 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012835 :H)
12836 #
12837 # CONFIG_HEADER
12838 #
12839 if test x"$ac_file" != x-; then
12840 {
12841 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012842 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12843 } >"$ac_tmp/config.h" \
12844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12845 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012846 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12847$as_echo "$as_me: $ac_file is unchanged" >&6;}
12848 else
12849 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012850 mv "$ac_tmp/config.h" "$ac_file" \
12851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012852 fi
12853 else
12854 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012855 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12856 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012857 fi
12858 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012859
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012860 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012861$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012862 ;;
12863 esac
12864
12865
12866 case $ac_file$ac_mode in
12867 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012868 for ac_file in $CONFIG_FILES; do
12869 # Support "outfile[:infile[:infile...]]"
12870 case "$ac_file" in
12871 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012872 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012873 # PO directories have a Makefile.in generated from Makefile.in.in.
12874 case "$ac_file" in */Makefile.in)
12875 # Adjust a relative srcdir.
12876 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12877 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12878 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12879 # In autoconf-2.13 it is called $ac_given_srcdir.
12880 # In autoconf-2.50 it is called $srcdir.
12881 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12882 case "$ac_given_srcdir" in
12883 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12884 /*) top_srcdir="$ac_given_srcdir" ;;
12885 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12886 esac
12887 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12888 rm -f "$ac_dir/POTFILES"
12889 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12890 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 -050012891 POMAKEFILEDEPS="POTFILES.in"
12892 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012893 # on $ac_dir but don't depend on user-specified configuration
12894 # parameters.
12895 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12896 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012897 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012898 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12899 fi
12900 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12901 # Hide the ALL_LINGUAS assigment from automake.
12902 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012903 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12904 else
12905 # The set of available languages was given in configure.in.
12906 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012907 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012908 # Compute POFILES
12909 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12910 # Compute UPDATEPOFILES
12911 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12912 # Compute DUMMYPOFILES
12913 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12914 # Compute GMOFILES
12915 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012916 case "$ac_given_srcdir" in
12917 .) srcdirpre= ;;
12918 *) srcdirpre='$(srcdir)/' ;;
12919 esac
12920 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012921 UPDATEPOFILES=
12922 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012923 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012924 for lang in $ALL_LINGUAS; do
12925 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012926 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12927 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012928 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012929 done
12930 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12931 # environment variable.
12932 INST_LINGUAS=
12933 if test -n "$ALL_LINGUAS"; then
12934 for presentlang in $ALL_LINGUAS; do
12935 useit=no
12936 if test "%UNSET%" != "$LINGUAS"; then
12937 desiredlanguages="$LINGUAS"
12938 else
12939 desiredlanguages="$ALL_LINGUAS"
12940 fi
12941 for desiredlang in $desiredlanguages; do
12942 # Use the presentlang catalog if desiredlang is
12943 # a. equal to presentlang, or
12944 # b. a variant of presentlang (because in this case,
12945 # presentlang can be used as a fallback for messages
12946 # which are not translated in the desiredlang catalog).
12947 case "$desiredlang" in
12948 "$presentlang"*) useit=yes;;
12949 esac
12950 done
12951 if test $useit = yes; then
12952 INST_LINGUAS="$INST_LINGUAS $presentlang"
12953 fi
12954 done
12955 fi
12956 CATALOGS=
12957 if test -n "$INST_LINGUAS"; then
12958 for lang in $INST_LINGUAS; do
12959 CATALOGS="$CATALOGS $lang.gmo"
12960 done
12961 fi
12962 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012963 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 -040012964 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12965 if test -f "$f"; then
12966 case "$f" in
12967 *.orig | *.bak | *~) ;;
12968 *) cat "$f" >> "$ac_dir/Makefile" ;;
12969 esac
12970 fi
12971 done
12972 fi
12973 ;;
12974 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012975 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012976
Theodore Ts'oe1052142006-10-21 21:46:47 -040012977 esac
12978done # for ac_tag
12979
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012980
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012981as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012982_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012983ac_clean_files=$ac_clean_files_save
12984
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012985test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012986 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012987
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012988
12989# configure is writing to config.log, and then calls config.status.
12990# config.status does its own redirection, appending to config.log.
12991# Unfortunately, on DOS this fails, as config.log is still kept open
12992# by configure, so config.status won't be able to write to it; its
12993# output is simply discarded. So we exec the FD to /dev/null,
12994# effectively closing config.log, so it can be properly (re)opened and
12995# appended to by config.status. When coming back to configure, we
12996# need to make the FD available again.
12997if test "$no_create" != yes; then
12998 ac_cs_success=:
12999 ac_config_status_args=
13000 test "$silent" = yes &&
13001 ac_config_status_args="$ac_config_status_args --quiet"
13002 exec 5>/dev/null
13003 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13004 exec 5>>config.log
13005 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13006 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013007 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013008fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013009if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013011$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13012fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013013
Theodore Ts'oee683a12005-02-05 15:53:56 -050013014if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi