blob: 17f8023cba710c7bcf702707b8eb3bd835a01c77 [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
643SIZEOF_LONG_LONG
644SIZEOF_LONG
645SIZEOF_INT
646SIZEOF_SHORT
647BUILD_CC
648MAKEINFO
649STRIP
650AR
651LDCONFIG
652PERL
653SED
654AWK
655CHMOD
656RM
657CP
658MV
659LN_S
660LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400661ifNotGNUmake
662ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100663BINARY_TYPE
664POSUB
665LTLIBINTL
666LIBINTL
667INTLLIBS
668INTL_LIBTOOL_SUFFIX_PREFIX
669INTLOBJS
670GENCAT
671INSTOBJEXT
672DATADIRNAME
673CATOBJEXT
674USE_INCLUDED_LIBINTL
675BUILD_INCLUDED_LIBINTL
676INTLBISON
677LTLIBICONV
678LIBICONV
679HAVE_WPRINTF
680HAVE_SNPRINTF
681HAVE_ASPRINTF
682HAVE_POSIX_PRINTF
683GLIBC21
684ALLOCA
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400685EGREP
686GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100687RANLIB
688MSGMERGE
689XGETTEXT
690GMSGFMT
691MSGFMT
692USE_NLS
693MKINSTALLDIRS
694INSTALL_DATA
695INSTALL_SCRIPT
696INSTALL_PROGRAM
697SET_MAKE
698VERSION
699PACKAGE
700GETTEXT_PACKAGE
701UUIDD_CMT
702E2INITRD_MAN
703E2INITRD_PROG
704FSCK_MAN
705FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500706DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100707RESIZER_CMT
708IMAGER_CMT
709DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700710QUOTA_CMT
711DEPPROFILED_LIBQUOTA
712PROFILED_LIBQUOTA
713DEPSTATIC_LIBQUOTA
714STATIC_LIBQUOTA
715DEPLIBQUOTA
716LIBQUOTA
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100717BLKID_CMT
718DEPPROFILED_LIBBLKID
719PROFILED_LIBBLKID
720DEPSTATIC_LIBBLKID
721STATIC_LIBBLKID
722DEPLIBBLKID
723LIBBLKID
724UUID_CMT
725DEPPROFILED_LIBUUID
726PROFILED_LIBUUID
727DEPSTATIC_LIBUUID
728STATIC_LIBUUID
729DEPLIBUUID
730LIBUUID
731PKG_CONFIG
732TEST_IO_CMT
733PRIVATE_LIBS_CMT
734LDFLAG_DYNAMIC
735PROFILED_LIB_EXT
736STATIC_LIB_EXT
737LIB_EXT
738CHECKER_CMT
739PROFILE_CMT
740BSDLIB_CMT
741ELF_CMT
742HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400743Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400744ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400745E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400746LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400747SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400748LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100749MAINTAINER_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100750CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400751RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500752DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100753OBJEXT
754EXEEXT
755ac_ct_CC
756CPPFLAGS
757LDFLAGS
758CFLAGS
759CC
760host_os
761host_vendor
762host_cpu
763host
764build_os
765build_vendor
766build_cpu
767build
768E2FSPROGS_PKGVER
769E2FSPROGS_VERSION
770E2FSPROGS_DAY
771E2FSPROGS_MONTH
772E2FSPROGS_YEAR
773target_alias
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792localstatedir
793sharedstatedir
794sysconfdir
795datadir
796datarootdir
797libexecdir
798sbindir
799bindir
800program_transform_name
801prefix
802exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500803PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100804PACKAGE_BUGREPORT
805PACKAGE_STRING
806PACKAGE_VERSION
807PACKAGE_TARNAME
808PACKAGE_NAME
809PATH_SEPARATOR
810SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400811ac_subst_files='MCONFIG
812MAKEFILE_ELF
813MAKEFILE_BSDLIB
814MAKEFILE_PROFILE
815MAKEFILE_CHECKER
816MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400817ASM_TYPES_HEADER
818PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100819ac_user_opts='
820enable_option_checking
821with_diet_libc
822with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100823with_ccopts
824with_ldopts
825with_root_prefix
826enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400827enable_symlink_install
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400828enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400829enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400830enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100831enable_compression
832enable_htree
833enable_elf_shlibs
834enable_bsd_shlibs
835enable_profile
836enable_checker
837enable_jbd_debug
838enable_blkid_debug
839enable_testio_debug
840enable_libuuid
841enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500842enable_quota
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100843enable_debugfs
844enable_imager
845enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500846enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100847enable_fsck
848enable_e2initrd_helper
849enable_tls
850enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000851enable_mmp
Tony Breeds1625bf42012-07-30 14:44:12 -0400852enable_bmap_stats
853enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100854enable_nls
855with_gnu_ld
856enable_rpath
857with_libiconv_prefix
858with_included_gettext
859with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400860with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100861'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400862 ac_precious_vars='build_alias
863host_alias
864target_alias
865CC
866CFLAGS
867LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400868LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400869CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400870CPP
871PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400872
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000873
874# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500875ac_init_help=
876ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100877ac_unrecognized_opts=
878ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000879# The variables have the same names as the options, with
880# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500881cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000882exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000883no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000884no_recursion=
885prefix=NONE
886program_prefix=NONE
887program_suffix=NONE
888program_transform_name=s,x,x,
889silent=
890site=
891srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000892verbose=
893x_includes=NONE
894x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500895
896# Installation directory options.
897# These are left unexpanded so users can "make install exec_prefix=/foo"
898# and all the variables that are supposed to be based on exec_prefix
899# by default will actually change.
900# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400901# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000902bindir='${exec_prefix}/bin'
903sbindir='${exec_prefix}/sbin'
904libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400905datarootdir='${prefix}/share'
906datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000907sysconfdir='${prefix}/etc'
908sharedstatedir='${prefix}/com'
909localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000910includedir='${prefix}/include'
911oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400912docdir='${datarootdir}/doc/${PACKAGE}'
913infodir='${datarootdir}/info'
914htmldir='${docdir}'
915dvidir='${docdir}'
916pdfdir='${docdir}'
917psdir='${docdir}'
918libdir='${exec_prefix}/lib'
919localedir='${datarootdir}/locale'
920mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000921
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400923ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000924for ac_option
925do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400928 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000929 ac_prev=
930 continue
931 fi
932
Theodore Ts'oe1052142006-10-21 21:46:47 -0400933 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 *=) ac_optarg= ;;
936 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400937 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000938
939 # Accept the important Cygnus configure options, so we can diagnose typos.
940
Theodore Ts'oe1052142006-10-21 21:46:47 -0400941 case $ac_dashdash$ac_option in
942 --)
943 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000944
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
946 ac_prev=bindir ;;
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500948 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000949
950 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500951 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500953 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000954
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500960 cache_file=$ac_optarg ;;
961
962 --config-cache | -C)
963 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000964
Theodore Ts'oe1052142006-10-21 21:46:47 -0400965 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000966 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500968 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000969
Theodore Ts'oe1052142006-10-21 21:46:47 -0400970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
976
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000977 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000979 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000981 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986"enable_$ac_useropt"
987"*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400992
993 -docdir | --docdir | --docdi | --doc | --do)
994 ac_prev=docdir ;;
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996 docdir=$ac_optarg ;;
997
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 ac_prev=dvidir ;;
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001002
1003 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001005 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001007 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012"enable_$ac_useropt"
1013"*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001018
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001026 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001027
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1030 with_gas=yes ;;
1031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001038
1039 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001040 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001041 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001042 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001043
Theodore Ts'oe1052142006-10-21 21:46:47 -04001044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 ac_prev=htmldir ;;
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 | --ht=*)
1048 htmldir=$ac_optarg ;;
1049
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001055 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001056
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 ac_prev=infodir ;;
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001060 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001061
1062 -libdir | --libdir | --libdi | --libd)
1063 ac_prev=libdir ;;
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001065 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001066
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001072 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001073
Theodore Ts'oe1052142006-10-21 21:46:47 -04001074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1078
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001079 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001080 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001084 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001085
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 ac_prev=mandir ;;
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001089 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001090
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1093 with_fp=no ;;
1094
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001096 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001097 no_create=yes ;;
1098
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 no_recursion=yes ;;
1102
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001110 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001111
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 ac_prev=prefix ;;
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001115 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001116
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001122 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001123
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001129 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001130
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001146 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001147
Theodore Ts'oe1052142006-10-21 21:46:47 -04001148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 ac_prev=pdfdir ;;
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1152
1153 -psdir | --psdir | --psdi | --psd | --ps)
1154 ac_prev=psdir ;;
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 psdir=$ac_optarg ;;
1157
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1160 silent=yes ;;
1161
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 ac_prev=sbindir ;;
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001166 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001167
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1171 | --sha | --sh)
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001177 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001178
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001179 -site | --site | --sit)
1180 ac_prev=site ;;
1181 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001182 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001183
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 ac_prev=srcdir ;;
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001187 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001188
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001194 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001195
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001196 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001197 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001199 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001200
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 verbose=yes ;;
1203
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001206
1207 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001209 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001211 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216"with_$ac_useropt"
1217"*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001222
1223 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001225 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001227 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232"with_$ac_useropt"
1233"*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001238
1239 --x)
1240 # Obsolete; use --with-x.
1241 with_x=yes ;;
1242
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001248 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001249
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001255 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001259 ;;
1260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001261 *=*)
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001267 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001268 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001269 export $ac_envvar ;;
1270
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001271 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001272 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001277 ;;
1278
1279 esac
1280done
1281
1282if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001284 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001285fi
1286
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001287if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1289 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 esac
1293fi
1294
1295# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001296for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001300do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001301 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001302 # Remove trailing slashes.
1303 case $ac_val in
1304 */ )
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1307 esac
1308 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001309 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001312 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001314done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001316# There might be people who depend on the old broken behavior: `$host'
1317# used to hold the argument of --host etc.
1318# FIXME: To remove some day.
1319build=$build_alias
1320host=$host_alias
1321target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001322
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001323# FIXME: To remove some day.
1324if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1329 fi
1330fi
1331
1332ac_tool_prefix=
1333test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335test "$silent" = yes && exec 6>/dev/null
1336
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001337
Theodore Ts'oe1052142006-10-21 21:46:47 -04001338ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339ac_ls_di=`ls -di .` &&
1340ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001341 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001342test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001343 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001344
1345
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001346# Find the source files, if location was not specified.
1347if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001349 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\).*/{
1369 s//\1/
1370 q
1371 }
1372 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001373 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001374 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001375 srcdir=..
1376 fi
1377else
1378 ac_srcdir_defaulted=no
1379fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001380if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001383fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001384ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001387 pwd)`
1388# When building in place, set srcdir=.
1389if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 srcdir=.
1391fi
1392# Remove unnecessary trailing slashes from srcdir.
1393# Double slashes in file names in object file debugging info
1394# mess up M-x gdb in Emacs.
1395case $srcdir in
1396*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397esac
1398for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001404
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001405#
1406# Report the --help message.
1407#
1408if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
1412\`configure' configures this package to adapt to many kinds of systems.
1413
1414Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417VAR=VALUE. See below for descriptions of some of the useful variables.
1418
1419Defaults for the options are specified in brackets.
1420
1421Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001426 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001432Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001434 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001436 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001437
1438By default, \`make install' will install all the files in
1439\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441for instance \`--prefix=\$HOME'.
1442
1443For better control, use the options below.
1444
1445Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001465_ACEOF
1466
1467 cat <<\_ACEOF
1468
1469System types:
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472_ACEOF
1473fi
1474
1475if test -n "$ac_init_help"; then
1476
1477 cat <<\_ACEOF
1478
1479Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001480 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001483 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001484 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001485 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001486 --enable-symlink-build use symlinks while building instead of hard links
1487 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001488 --enable-compression enable EXPERIMENTAL compression support
1489 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001490 --enable-elf-shlibs select ELF shared libraries
1491 --enable-bsd-shlibs select BSD shared libraries
1492 --enable-profile build profiling libraries
1493 --enable-checker build checker libraries
1494 --enable-jbd-debug enable journal debugging
1495 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001496 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001497 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001498 --disable-libblkid do not build private blkid library
Theodore Ts'o7becb202011-11-14 10:40:43 -05001499 --enable-libquota enable quota support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001500 --disable-debugfs disable support of debugfs program
1501 --disable-imager disable support of e2image program
1502 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001503 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001504 --enable-fsck build fsck wrapper program
1505 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001506 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001507 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001508 --disable-mmp disable support mmp, Multi Mount Protection
Tony Breeds1625bf42012-07-30 14:44:12 -04001509 --disable-bmap-stats disable collection of bitmap stats.
1510 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001511 --disable-nls do not use Native Language Support
1512 --disable-rpath do not hardcode runtime library paths
1513
1514Optional Packages:
1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001517 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001518 --with-cc no longer supported, use CC= instead
1519 --with-ccopts no longer supported, use CFLAGS= instead
1520 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001521 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1522 --with-gnu-ld assume the C compiler uses GNU ld default=no
1523 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1524 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1525 --with-included-gettext use the GNU gettext library included here
1526 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1527 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001528 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001529
1530Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001535 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001537 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001538 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001539 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001540
1541Use these variables to override the choices made by `configure' or to help
1542it to find libraries and programs with nonstandard names/locations.
1543
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001544Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001545_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001546ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001547fi
1548
1549if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001555 ac_builddir=.
1556
Theodore Ts'oe1052142006-10-21 21:46:47 -04001557case "$ac_dir" in
1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001561 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567esac
1568ac_abs_top_builddir=$ac_pwd
1569ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570# for backward compatibility:
1571ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001572
1573case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001574 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001575 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001579 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001586esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001588
Theodore Ts'oe1052142006-10-21 21:46:47 -04001589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001597 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001601 done
1602fi
1603
Theodore Ts'oe1052142006-10-21 21:46:47 -04001604test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001605if $ac_init_version; then
1606 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001607configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001608generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001609
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001610Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001611This configure script is free software; the Free Software Foundation
1612gives unlimited permission to copy, distribute and modify it.
1613_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001614 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001615fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001616
1617## ------------------------ ##
1618## Autoconf initialization. ##
1619## ------------------------ ##
1620
1621# ac_fn_c_try_compile LINENO
1622# --------------------------
1623# Try to compile conftest.$ac_ext, and return whether this succeeded.
1624ac_fn_c_try_compile ()
1625{
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1629case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1647 ac_retval=0
1648else
1649 $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001655 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001656
1657} # ac_fn_c_try_compile
1658
1659# ac_fn_c_try_link LINENO
1660# -----------------------
1661# Try to link conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_link ()
1663{
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1667case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001686 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001687 }; then :
1688 ac_retval=0
1689else
1690 $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694fi
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001701 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001702
1703} # ac_fn_c_try_link
1704
1705# ac_fn_c_try_cpp LINENO
1706# ----------------------
1707# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_cpp ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_cpp conftest.$ac_ext"
1712case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719 ac_status=$?
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1724 fi
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001726 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 }; then :
1730 ac_retval=0
1731else
1732 $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=1
1736fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001738 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001739
1740} # ac_fn_c_try_cpp
1741
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001742# ac_fn_c_try_run LINENO
1743# ----------------------
1744# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745# that executables *can* be run.
1746ac_fn_c_try_run ()
1747{
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_link"
1750case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760 { { case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_try") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; }; }; then :
1770 ac_retval=0
1771else
1772 $as_echo "$as_me: program exited with status $ac_status" >&5
1773 $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=$ac_status
1777fi
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001780 as_fn_set_status $ac_retval
1781
1782} # ac_fn_c_try_run
1783
1784# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1785# -------------------------------------------
1786# Tests whether TYPE exists after having included INCLUDES, setting cache
1787# variable VAR accordingly.
1788ac_fn_c_check_type ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001793if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001794 $as_echo_n "(cached) " >&6
1795else
1796 eval "$3=no"
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799$4
1800int
1801main ()
1802{
1803if (sizeof ($2))
1804 return 0;
1805 ;
1806 return 0;
1807}
1808_ACEOF
1809if ac_fn_c_try_compile "$LINENO"; then :
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h. */
1812$4
1813int
1814main ()
1815{
1816if (sizeof (($2)))
1817 return 0;
1818 ;
1819 return 0;
1820}
1821_ACEOF
1822if ac_fn_c_try_compile "$LINENO"; then :
1823
1824else
1825 eval "$3=yes"
1826fi
1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828fi
1829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830fi
1831eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001835
1836} # ac_fn_c_check_type
1837
1838# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1839# -------------------------------------------------------
1840# Tests whether HEADER exists and can be compiled using the include files in
1841# INCLUDES, setting the cache variable VAR accordingly.
1842ac_fn_c_check_header_compile ()
1843{
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001847if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001848 $as_echo_n "(cached) " >&6
1849else
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h. */
1852$4
1853#include <$2>
1854_ACEOF
1855if ac_fn_c_try_compile "$LINENO"; then :
1856 eval "$3=yes"
1857else
1858 eval "$3=no"
1859fi
1860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861fi
1862eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001866
1867} # ac_fn_c_check_header_compile
1868
1869# ac_fn_c_check_func LINENO FUNC VAR
1870# ----------------------------------
1871# Tests whether FUNC exists, setting the cache variable VAR accordingly
1872ac_fn_c_check_func ()
1873{
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001877if eval \${$3+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001878 $as_echo_n "(cached) " >&6
1879else
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h. */
1882/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1884#define $2 innocuous_$2
1885
1886/* System header to define __stub macros and hopefully few prototypes,
1887 which can conflict with char $2 (); below.
1888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1889 <limits.h> exists even on freestanding compilers. */
1890
1891#ifdef __STDC__
1892# include <limits.h>
1893#else
1894# include <assert.h>
1895#endif
1896
1897#undef $2
1898
1899/* Override any GCC internal prototype to avoid an error.
1900 Use char because int might match the return type of a GCC
1901 builtin and then its argument prototype would still apply. */
1902#ifdef __cplusplus
1903extern "C"
1904#endif
1905char $2 ();
1906/* The GNU C library defines this for functions which it implements
1907 to always fail with ENOSYS. Some functions are actually named
1908 something starting with __ and the normal name is an alias. */
1909#if defined __stub_$2 || defined __stub___$2
1910choke me
1911#endif
1912
1913int
1914main ()
1915{
1916return $2 ();
1917 ;
1918 return 0;
1919}
1920_ACEOF
1921if ac_fn_c_try_link "$LINENO"; then :
1922 eval "$3=yes"
1923else
1924 eval "$3=no"
1925fi
1926rm -f core conftest.err conftest.$ac_objext \
1927 conftest$ac_exeext conftest.$ac_ext
1928fi
1929eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001933
1934} # ac_fn_c_check_func
1935
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001936# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1937# -------------------------------------------------------
1938# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1939# the include files in INCLUDES and setting the cache variable VAR
1940# accordingly.
1941ac_fn_c_check_header_mongrel ()
1942{
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001944 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001947if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001948 $as_echo_n "(cached) " >&6
1949fi
1950eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953else
1954 # Is the header compilable?
1955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1956$as_echo_n "checking $2 usability... " >&6; }
1957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h. */
1959$4
1960#include <$2>
1961_ACEOF
1962if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_header_compiler=yes
1964else
1965 ac_header_compiler=no
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1969$as_echo "$ac_header_compiler" >&6; }
1970
1971# Is the header present?
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1973$as_echo_n "checking $2 presence... " >&6; }
1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h. */
1976#include <$2>
1977_ACEOF
1978if ac_fn_c_try_cpp "$LINENO"; then :
1979 ac_header_preproc=yes
1980else
1981 ac_header_preproc=no
1982fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001983rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1985$as_echo "$ac_header_preproc" >&6; }
1986
1987# So? What about this header?
1988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1989 yes:no: )
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1991$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994 ;;
1995 no:yes:* )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1997$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1999$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2001$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2003$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006 ;;
2007esac
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002010if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002011 $as_echo_n "(cached) " >&6
2012else
2013 eval "$3=\$ac_header_compiler"
2014fi
2015eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017$as_echo "$ac_res" >&6; }
2018fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002020
2021} # ac_fn_c_check_header_mongrel
2022
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002023# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2024# --------------------------------------------
2025# Tries to find the compile-time value of EXPR in a program that includes
2026# INCLUDES, setting VAR accordingly. Returns whether the value could be
2027# computed
2028ac_fn_c_compute_int ()
2029{
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if test "$cross_compiling" = yes; then
2032 # Depending upon the size, compute the lo and hi bounds.
2033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h. */
2035$4
2036int
2037main ()
2038{
2039static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002040test_array [0] = 0;
2041return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002042
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_compile "$LINENO"; then :
2048 ac_lo=0 ac_mid=0
2049 while :; do
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051/* end confdefs.h. */
2052$4
2053int
2054main ()
2055{
2056static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002057test_array [0] = 0;
2058return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002059
2060 ;
2061 return 0;
2062}
2063_ACEOF
2064if ac_fn_c_try_compile "$LINENO"; then :
2065 ac_hi=$ac_mid; break
2066else
2067 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2068 if test $ac_lo -le $ac_mid; then
2069 ac_lo= ac_hi=
2070 break
2071 fi
2072 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 done
2076else
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079$4
2080int
2081main ()
2082{
2083static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002084test_array [0] = 0;
2085return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002086
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_hi=-1 ac_mid=-1
2093 while :; do
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h. */
2096$4
2097int
2098main ()
2099{
2100static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002101test_array [0] = 0;
2102return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002103
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_compile "$LINENO"; then :
2109 ac_lo=$ac_mid; break
2110else
2111 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2112 if test $ac_mid -le $ac_hi; then
2113 ac_lo= ac_hi=
2114 break
2115 fi
2116 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 done
2120else
2121 ac_lo= ac_hi=
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126# Binary search between lo and hi bounds.
2127while test "x$ac_lo" != "x$ac_hi"; do
2128 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h. */
2131$4
2132int
2133main ()
2134{
2135static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002136test_array [0] = 0;
2137return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002138
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143if ac_fn_c_try_compile "$LINENO"; then :
2144 ac_hi=$ac_mid
2145else
2146 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149done
2150case $ac_lo in #((
2151?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2152'') ac_retval=1 ;;
2153esac
2154 else
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h. */
2157$4
2158static long int longval () { return $2; }
2159static unsigned long int ulongval () { return $2; }
2160#include <stdio.h>
2161#include <stdlib.h>
2162int
2163main ()
2164{
2165
2166 FILE *f = fopen ("conftest.val", "w");
2167 if (! f)
2168 return 1;
2169 if (($2) < 0)
2170 {
2171 long int i = longval ();
2172 if (i != ($2))
2173 return 1;
2174 fprintf (f, "%ld", i);
2175 }
2176 else
2177 {
2178 unsigned long int i = ulongval ();
2179 if (i != ($2))
2180 return 1;
2181 fprintf (f, "%lu", i);
2182 }
2183 /* Do not output a trailing newline, as this causes \r\n confusion
2184 on some platforms. */
2185 return ferror (f) || fclose (f) != 0;
2186
2187 ;
2188 return 0;
2189}
2190_ACEOF
2191if ac_fn_c_try_run "$LINENO"; then :
2192 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2193else
2194 ac_retval=1
2195fi
2196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2197 conftest.$ac_objext conftest.beam conftest.$ac_ext
2198rm -f conftest.val
2199
2200 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002202 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002203
2204} # ac_fn_c_compute_int
2205
2206# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2207# ----------------------------------------------------
2208# Tries to find if the field MEMBER exists in type AGGR, after including
2209# INCLUDES, setting cache variable VAR accordingly.
2210ac_fn_c_check_member ()
2211{
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2214$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002215if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002216 $as_echo_n "(cached) " >&6
2217else
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$5
2221int
2222main ()
2223{
2224static $2 ac_aggr;
2225if (ac_aggr.$3)
2226return 0;
2227 ;
2228 return 0;
2229}
2230_ACEOF
2231if ac_fn_c_try_compile "$LINENO"; then :
2232 eval "$4=yes"
2233else
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h. */
2236$5
2237int
2238main ()
2239{
2240static $2 ac_aggr;
2241if (sizeof ac_aggr.$3)
2242return 0;
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247if ac_fn_c_try_compile "$LINENO"; then :
2248 eval "$4=yes"
2249else
2250 eval "$4=no"
2251fi
2252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253fi
2254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255fi
2256eval ac_res=\$$4
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002260
2261} # ac_fn_c_check_member
2262
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002263# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2264# ---------------------------------------------
2265# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2266# accordingly.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002267ac_fn_c_check_decl ()
2268{
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002270 as_decl_name=`echo $2|sed 's/ *(.*//'`
2271 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2273$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2274if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002275 $as_echo_n "(cached) " >&6
2276else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h. */
2279$4
2280int
2281main ()
2282{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002283#ifndef $as_decl_name
2284#ifdef __cplusplus
2285 (void) $as_decl_use;
2286#else
2287 (void) $as_decl_name;
2288#endif
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002289#endif
2290
2291 ;
2292 return 0;
2293}
2294_ACEOF
2295if ac_fn_c_try_compile "$LINENO"; then :
2296 eval "$3=yes"
2297else
2298 eval "$3=no"
2299fi
2300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301fi
2302eval ac_res=\$$3
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002306
2307} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002308cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002309This file contains any messages produced by compilers while
2310running configure, to aid debugging if configure makes a mistake.
2311
2312It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002313generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002314
2315 $ $0 $@
2316
2317_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002318exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002319{
2320cat <<_ASUNAME
2321## --------- ##
2322## Platform. ##
2323## --------- ##
2324
2325hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2326uname -m = `(uname -m) 2>/dev/null || echo unknown`
2327uname -r = `(uname -r) 2>/dev/null || echo unknown`
2328uname -s = `(uname -s) 2>/dev/null || echo unknown`
2329uname -v = `(uname -v) 2>/dev/null || echo unknown`
2330
2331/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2332/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2333
2334/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2335/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2336/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002337/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002338/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2339/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2340/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2341
2342_ASUNAME
2343
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002349 $as_echo "PATH: $as_dir"
2350 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002351IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002352
2353} >&5
2354
2355cat >&5 <<_ACEOF
2356
2357
2358## ----------- ##
2359## Core tests. ##
2360## ----------- ##
2361
2362_ACEOF
2363
2364
2365# Keep a trace of the command line.
2366# Strip out --no-create and --no-recursion so they do not pile up.
2367# Strip out --silent because we don't want to record it for future runs.
2368# Also quote any args containing shell meta-characters.
2369# Make two passes to allow for proper duplicate-argument suppression.
2370ac_configure_args=
2371ac_configure_args0=
2372ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002373ac_must_keep_next=false
2374for ac_pass in 1 2
2375do
2376 for ac_arg
2377 do
2378 case $ac_arg in
2379 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2381 | -silent | --silent | --silen | --sile | --sil)
2382 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002383 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002384 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002385 esac
2386 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002387 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002388 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002389 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002390 if test $ac_must_keep_next = true; then
2391 ac_must_keep_next=false # Got value, back to normal.
2392 else
2393 case $ac_arg in
2394 *=* | --config-cache | -C | -disable-* | --disable-* \
2395 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2396 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2397 | -with-* | --with-* | -without-* | --without-* | --x)
2398 case "$ac_configure_args0 " in
2399 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2400 esac
2401 ;;
2402 -* ) ac_must_keep_next=true ;;
2403 esac
2404 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002405 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002406 ;;
2407 esac
2408 done
2409done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002410{ ac_configure_args0=; unset ac_configure_args0;}
2411{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002412
2413# When interrupted or exit'd, cleanup temporary files, and complete
2414# config.log. We remove comments because anyway the quotes in there
2415# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002416# WARNING: Use '\'' to represent an apostrophe within the trap.
2417# 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 -05002418trap 'exit_status=$?
2419 # Save into config.log some information that might help in debugging.
2420 {
2421 echo
2422
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002423 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002424## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002425## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002426 echo
2427 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002428(
2429 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2430 eval ac_val=\$$ac_var
2431 case $ac_val in #(
2432 *${as_nl}*)
2433 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002434 *_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 +01002435$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002436 esac
2437 case $ac_var in #(
2438 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002440 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002441 esac ;;
2442 esac
2443 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002444 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002445 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2446 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002447 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002448 "s/'\''/'\''\\\\'\'''\''/g;
2449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2450 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002451 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002453 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002454 esac |
2455 sort
2456)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002457 echo
2458
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002459 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002461## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002462 echo
2463 for ac_var in $ac_subst_vars
2464 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002465 eval ac_val=\$$ac_var
2466 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002468 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002469 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002470 done | sort
2471 echo
2472
2473 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002474 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002475## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002476## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477 echo
2478 for ac_var in $ac_subst_files
2479 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002480 eval ac_val=\$$ac_var
2481 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002482 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002483 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002484 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002485 done | sort
2486 echo
2487 fi
2488
2489 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002490 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002492## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002493 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002494 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002495 echo
2496 fi
2497 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002498 $as_echo "$as_me: caught signal $ac_signal"
2499 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002500 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002501 rm -f core *.core core.conftest.* &&
2502 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002503 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002504' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002505for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002506 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002507done
2508ac_signal=0
2509
2510# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002511rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002512
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002513$as_echo "/* confdefs.h */" > confdefs.h
2514
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002515# Predefined preprocessor variables.
2516
2517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_NAME "$PACKAGE_NAME"
2519_ACEOF
2520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002521cat >>confdefs.h <<_ACEOF
2522#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2523_ACEOF
2524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002525cat >>confdefs.h <<_ACEOF
2526#define PACKAGE_VERSION "$PACKAGE_VERSION"
2527_ACEOF
2528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002529cat >>confdefs.h <<_ACEOF
2530#define PACKAGE_STRING "$PACKAGE_STRING"
2531_ACEOF
2532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002533cat >>confdefs.h <<_ACEOF
2534#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2535_ACEOF
2536
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002537cat >>confdefs.h <<_ACEOF
2538#define PACKAGE_URL "$PACKAGE_URL"
2539_ACEOF
2540
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002541
2542# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002543# Prefer an explicitly selected file to automatically selected ones.
2544ac_site_file1=NONE
2545ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002546if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002547 # We do not want a PATH search for config.site.
2548 case $CONFIG_SITE in #((
2549 -*) ac_site_file1=./$CONFIG_SITE;;
2550 */*) ac_site_file1=$CONFIG_SITE;;
2551 *) ac_site_file1=./$CONFIG_SITE;;
2552 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002553elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002554 ac_site_file1=$prefix/share/config.site
2555 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002556else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002557 ac_site_file1=$ac_default_prefix/share/config.site
2558 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002559fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002560for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002561do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002562 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002563 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002565$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002566 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002567 . "$ac_site_file" \
2568 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570as_fn_error $? "failed to load site script $ac_site_file
2571See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002572 fi
2573done
2574
2575if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002576 # Some versions of bash will fail to source /dev/null (special files
2577 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2578 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002580$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002581 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002582 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2583 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002584 esac
2585 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002586else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002588$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002589 >$cache_file
2590fi
2591
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002592as_fn_append ac_header_list " stdlib.h"
2593as_fn_append ac_header_list " unistd.h"
2594as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002595# Check that the precious variables saved in the cache have kept the same
2596# value.
2597ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002598for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002599 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2600 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002601 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2602 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002603 case $ac_old_set,$ac_new_set in
2604 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002605 { $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 +01002606$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 -05002607 ac_cache_corrupted=: ;;
2608 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002609 { $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 +01002610$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002611 ac_cache_corrupted=: ;;
2612 ,);;
2613 *)
2614 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002615 # differences in whitespace do not lead to failure.
2616 ac_old_val_w=`echo x $ac_old_val`
2617 ac_new_val_w=`echo x $ac_new_val`
2618 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002619 { $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 +01002620$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2621 ac_cache_corrupted=:
2622 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002623 { $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 +01002624$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2625 eval $ac_var=\$ac_old_val
2626 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002627 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002628$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002629 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002630$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002631 fi;;
2632 esac
2633 # Pass precious variables to config.status.
2634 if test "$ac_new_set" = set; then
2635 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002636 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002637 *) ac_arg=$ac_var=$ac_new_val ;;
2638 esac
2639 case " $ac_configure_args " in
2640 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002641 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002642 esac
2643 fi
2644done
2645if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002648 { $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 +01002649$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002650 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002651fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002652## -------------------- ##
2653## Main body of script. ##
2654## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002655
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002656ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002657ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002661
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002662
2663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002664ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002665for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002666 if test -f "$ac_dir/install-sh"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/install-sh -c"
2669 break
2670 elif test -f "$ac_dir/install.sh"; then
2671 ac_aux_dir=$ac_dir
2672 ac_install_sh="$ac_aux_dir/install.sh -c"
2673 break
2674 elif test -f "$ac_dir/shtool"; then
2675 ac_aux_dir=$ac_dir
2676 ac_install_sh="$ac_aux_dir/shtool install -c"
2677 break
2678 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002679done
2680if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002681 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 +00002682fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002683
2684# These three variables are undocumented and unsupported,
2685# and are intended to be withdrawn in a future Autoconf release.
2686# They can cause serious problems if a builder's source tree is in a directory
2687# whose full name contains unusual characters.
2688ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2689ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2690ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2691
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002692
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002693ac_config_headers="$ac_config_headers lib/config.h"
2694
2695
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002696MCONFIG=./MCONFIG
2697
Theodore Ts'o74becf31997-04-26 14:37:06 +00002698BINARY_TYPE=bin
2699E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2700 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2701DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2702 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002703E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002704MONTH=`echo $DATE | awk -F- '{print $2}'`
2705YEAR=`echo $DATE | awk -F- '{print $3}'`
2706
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002707if expr $YEAR ">" 1900 > /dev/null ; then
2708 E2FSPROGS_YEAR=$YEAR
2709elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002710 E2FSPROGS_YEAR=19$YEAR
2711else
2712 E2FSPROGS_YEAR=20$YEAR
2713fi
2714
2715case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002716Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2717Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2718Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2719Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2720May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2721Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2722Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2723Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2724Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2725Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2726Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2727Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002728*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002729$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002730esac
2731
Andreas Dilger927566a2006-11-12 19:41:25 -05002732base_ver=`echo $E2FSPROGS_VERSION | \
2733 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002734
2735date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2736
2737case $E2FSPROGS_VERSION in
2738*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002739 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002740 ;;
2741*)
2742 E2FSPROGS_PKGVER="$base_ver"
2743 ;;
2744esac
2745
2746unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002747{ $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 +01002748$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002750$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002751
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002752
2753
2754
Andreas Dilger927566a2006-11-12 19:41:25 -05002755
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002756# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002757$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002758 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002759
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002761$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002762if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002763 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002764else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002765 ac_build_alias=$build_alias
2766test "x$ac_build_alias" = x &&
2767 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2768test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002769 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002770ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002771 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002772
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002773fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002775$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002776case $ac_cv_build in
2777*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002778*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002779esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002780build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002781ac_save_IFS=$IFS; IFS='-'
2782set x $ac_cv_build
2783shift
2784build_cpu=$1
2785build_vendor=$2
2786shift; shift
2787# Remember, the first character of IFS is used to create $*,
2788# except with old shells:
2789build_os=$*
2790IFS=$ac_save_IFS
2791case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002792
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002793
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002795$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002796if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002797 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002798else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002799 if test "x$host_alias" = x; then
2800 ac_cv_host=$ac_cv_build
2801else
2802 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002804fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002805
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002806fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002808$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002809case $ac_cv_host in
2810*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002811*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002812esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002813host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002814ac_save_IFS=$IFS; IFS='-'
2815set x $ac_cv_host
2816shift
2817host_cpu=$1
2818host_vendor=$2
2819shift; shift
2820# Remember, the first character of IFS is used to create $*,
2821# except with old shells:
2822host_os=$*
2823IFS=$ac_save_IFS
2824case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002825
2826
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002827DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828ac_ext=c
2829ac_cpp='$CPP $CPPFLAGS'
2830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833if test -n "$ac_tool_prefix"; then
2834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2835set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002837$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002838if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002839 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002840else
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2843else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002849 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002853 break 2
2854 fi
2855done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002856 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002857IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002858
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002859fi
2860fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002861CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002862if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002864$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002865else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002867$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002868fi
2869
Theodore Ts'oe1052142006-10-21 21:46:47 -04002870
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002871fi
2872if test -z "$ac_cv_prog_CC"; then
2873 ac_ct_CC=$CC
2874 # Extract the first word of "gcc", so it can be a program name with args.
2875set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002877$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002878if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002879 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002880else
2881 if test -n "$ac_ct_CC"; then
2882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002889 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002891 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002893 break 2
2894 fi
2895done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002896 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002897IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002898
2899fi
2900fi
2901ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002904$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002905else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002907$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002908fi
2909
Theodore Ts'oe1052142006-10-21 21:46:47 -04002910 if test "x$ac_ct_CC" = x; then
2911 CC=""
2912 else
2913 case $cross_compiling:$ac_tool_warned in
2914yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002915{ $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 +01002916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002917ac_tool_warned=yes ;;
2918esac
2919 CC=$ac_ct_CC
2920 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921else
2922 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002923fi
2924
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002925if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002926 if test -n "$ac_tool_prefix"; then
2927 # 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 -05002928set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002930$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002931if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002932 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002933else
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2936else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002942 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002944 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002946 break 2
2947 fi
2948done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002949 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002950IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002951
2952fi
2953fi
2954CC=$ac_cv_prog_CC
2955if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002957$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002958else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002960$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961fi
2962
Theodore Ts'oe1052142006-10-21 21:46:47 -04002963
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002964 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002965fi
2966if test -z "$CC"; then
2967 # Extract the first word of "cc", so it can be a program name with args.
2968set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002970$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002971if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002972 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002973else
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2976else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002977 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002983 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2986 ac_prog_rejected=yes
2987 continue
2988 fi
2989 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002991 break 2
2992 fi
2993done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002994 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002995IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002996
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002997if test $ac_prog_rejected = yes; then
2998 # We found a bogon in the path, so make sure we never use it.
2999 set dummy $ac_cv_prog_CC
3000 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003001 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003002 # We chose a different compiler from the bogus one.
3003 # However, it has the same basename, so the bogon will be chosen
3004 # first if we set CC to just the basename; use the full file name.
3005 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003007 fi
3008fi
3009fi
3010fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003012if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003014$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003015else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003017$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003018fi
3019
Theodore Ts'oe1052142006-10-21 21:46:47 -04003020
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021fi
3022if test -z "$CC"; then
3023 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003024 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003025 do
3026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003029$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003030if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003031 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003032else
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3035else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003041 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003045 break 2
3046 fi
3047done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003048 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003049IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003050
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003051fi
3052fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003053CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003054if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003056$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003057else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003059$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003060fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003061
Theodore Ts'oe1052142006-10-21 21:46:47 -04003062
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003063 test -n "$CC" && break
3064 done
3065fi
3066if test -z "$CC"; then
3067 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003068 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003069do
3070 # Extract the first word of "$ac_prog", so it can be a program name with args.
3071set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003073$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003074if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003075 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003076else
3077 if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3079else
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003085 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003087 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003089 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003090 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003091done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003092 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003093IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003094
3095fi
3096fi
3097ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003100$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003101else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003103$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003104fi
3105
Theodore Ts'oe1052142006-10-21 21:46:47 -04003106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003107 test -n "$ac_ct_CC" && break
3108done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003109
Theodore Ts'oe1052142006-10-21 21:46:47 -04003110 if test "x$ac_ct_CC" = x; then
3111 CC=""
3112 else
3113 case $cross_compiling:$ac_tool_warned in
3114yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003115{ $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 +01003116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003117ac_tool_warned=yes ;;
3118esac
3119 CC=$ac_ct_CC
3120 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003121fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003122
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003123fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003124
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003125
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003126test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003128as_fn_error $? "no acceptable C compiler found in \$PATH
3129See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003130
3131# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003132$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003133set X $ac_compile
3134ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003135for ac_option in --version -v -V -qversion; do
3136 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142$as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003144 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003145 if test -s conftest.err; then
3146 sed '10a\
3147... rest of stderr output deleted ...
3148 10q' conftest.err >conftest.er1
3149 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003150 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003151 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }
3154done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003155
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003157/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003158
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003168ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003169# Try to create an executable without -o first, disregard a.out.
3170# It will help us diagnose broken compilers, and finding out an intuition
3171# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3173$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003174ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3175
3176# The possible output files:
3177ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3178
Theodore Ts'oe1052142006-10-21 21:46:47 -04003179ac_rmfiles=
3180for ac_file in $ac_files
3181do
3182 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3185 esac
3186done
3187rm -f $ac_rmfiles
3188
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003189if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003190case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003196 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003197 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3201# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3202# in a Makefile. We should not override ac_cv_exeext if it was cached,
3203# so that the user can short-circuit this test for compilers unknown to
3204# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003205for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003206do
3207 test -f "$ac_file" || continue
3208 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003210 ;;
3211 [ab].out )
3212 # We found the default executable, but exeext='' is most
3213 # certainly right.
3214 break;;
3215 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003217 then :; else
3218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 fi
3220 # We set ac_cv_exeext here because the later test for it is not
3221 # safe: cross compilers may not add the suffix if given an `-o'
3222 # argument, so we may need to know it at that point already.
3223 # Even if this section looks crufty: it has the advantage of
3224 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003225 break;;
3226 * )
3227 break;;
3228 esac
3229done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003230test "$ac_cv_exeext" = no && ac_cv_exeext=
3231
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003232else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003233 ac_file=''
3234fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003235if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003239sed 's/^/| /' conftest.$ac_ext >&5
3240
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003241{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003243as_fn_error 77 "C compiler cannot create executables
3244See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003245else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003248fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3250$as_echo_n "checking for C compiler default output file name... " >&6; }
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3252$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003253ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003254
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003255rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003256ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003258$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003259if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003260case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003266 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003267 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003270 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3271# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3272# work properly (i.e., refer to `conftest.exe'), while it won't with
3273# `rm'.
3274for ac_file in conftest.exe conftest conftest.*; do
3275 test -f "$ac_file" || continue
3276 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003278 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003279 break;;
3280 * ) break;;
3281 esac
3282done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003283else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003286as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3287See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003288fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003289rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003291$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003292
3293rm -f conftest.$ac_ext
3294EXEEXT=$ac_cv_exeext
3295ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297/* end confdefs.h. */
3298#include <stdio.h>
3299int
3300main ()
3301{
3302FILE *f = fopen ("conftest.out", "w");
3303 return ferror (f) || fclose (f) != 0;
3304
3305 ;
3306 return 0;
3307}
3308_ACEOF
3309ac_clean_files="$ac_clean_files conftest.out"
3310# Check that the compiler produces executables we can run. If not, either
3311# the compiler is broken, or we cross compile.
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3313$as_echo_n "checking whether we are cross compiling... " >&6; }
3314if test "$cross_compiling" != yes; then
3315 { { ac_try="$ac_link"
3316case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }
3326 if { ac_try='./conftest$ac_cv_exeext'
3327 { { case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330esac
3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332$as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_try") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; }; then
3337 cross_compiling=no
3338 else
3339 if test "$cross_compiling" = maybe; then
3340 cross_compiling=yes
3341 else
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003344as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003345If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003346See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003347 fi
3348 fi
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351$as_echo "$cross_compiling" >&6; }
3352
3353rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3354ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003356$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003357if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003358 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003359else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003361/* end confdefs.h. */
3362
3363int
3364main ()
3365{
3366
3367 ;
3368 return 0;
3369}
3370_ACEOF
3371rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003372if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003379 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003380 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003383 for ac_file in conftest.o conftest.obj conftest.*; do
3384 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003385 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388 break;;
3389 esac
3390done
3391else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003392 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003393sed 's/^/| /' conftest.$ac_ext >&5
3394
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003395{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003397as_fn_error $? "cannot compute suffix of object files: cannot compile
3398See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003399fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003400rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003403$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003404OBJEXT=$ac_cv_objext
3405ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003406{ $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 +01003407$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003408if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003409 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003410else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003412/* end confdefs.h. */
3413
3414int
3415main ()
3416{
3417#ifndef __GNUC__
3418 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003419#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003420
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003421 ;
3422 return 0;
3423}
3424_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003425if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003426 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003427else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003428 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003429fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003431ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003433fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003435$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3436if test $ac_compiler_gnu = yes; then
3437 GCC=yes
3438else
3439 GCC=
3440fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003441ac_test_CFLAGS=${CFLAGS+set}
3442ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003444$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003445if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003446 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003447else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003448 ac_save_c_werror_flag=$ac_c_werror_flag
3449 ac_c_werror_flag=yes
3450 ac_cv_prog_cc_g=no
3451 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003453/* end confdefs.h. */
3454
3455int
3456main ()
3457{
3458
3459 ;
3460 return 0;
3461}
3462_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003463if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003464 ac_cv_prog_cc_g=yes
3465else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003466 CFLAGS=""
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003468/* end confdefs.h. */
3469
3470int
3471main ()
3472{
3473
3474 ;
3475 return 0;
3476}
3477_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003478if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003479
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003480else
3481 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003482 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003484/* end confdefs.h. */
3485
3486int
3487main ()
3488{
3489
3490 ;
3491 return 0;
3492}
3493_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003494if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003495 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003496fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003498fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_c_werror_flag=$ac_save_c_werror_flag
3503fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003505$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003506if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003507 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003508elif test $ac_cv_prog_cc_g = yes; then
3509 if test "$GCC" = yes; then
3510 CFLAGS="-g -O2"
3511 else
3512 CFLAGS="-g"
3513 fi
3514else
3515 if test "$GCC" = yes; then
3516 CFLAGS="-O2"
3517 else
3518 CFLAGS=
3519 fi
3520fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003522$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003523if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003524 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003525else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003526 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003527ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003529/* end confdefs.h. */
3530#include <stdarg.h>
3531#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003532struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003533/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3534struct buf { int x; };
3535FILE * (*rcsopen) (struct buf *, struct stat *, int);
3536static char *e (p, i)
3537 char **p;
3538 int i;
3539{
3540 return p[i];
3541}
3542static char *f (char * (*g) (char **, int), char **p, ...)
3543{
3544 char *s;
3545 va_list v;
3546 va_start (v,p);
3547 s = g (p, va_arg (v,int));
3548 va_end (v);
3549 return s;
3550}
3551
3552/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3553 function prototypes and stuff, but not '\xHH' hex character constants.
3554 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003555 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003556 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3557 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003558 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003559int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3560
Theodore Ts'oe1052142006-10-21 21:46:47 -04003561/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3562 inside strings and character constants. */
3563#define FOO(x) 'x'
3564int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003566int test (int i, double x);
3567struct s1 {int (*f) (int a);};
3568struct s2 {int (*f) (double a);};
3569int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3570int argc;
3571char **argv;
3572int
3573main ()
3574{
3575return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3576 ;
3577 return 0;
3578}
3579_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003580for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3581 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582do
3583 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003584 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003585 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003586fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003587rm -f core conftest.err conftest.$ac_objext
3588 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003589done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003590rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003591CC=$ac_save_CC
3592
3593fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003594# AC_CACHE_VAL
3595case "x$ac_cv_prog_cc_c89" in
3596 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003598$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003599 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003601$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003602 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003603 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003605$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003606esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003607if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003608
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003609fi
3610
3611ac_ext=c
3612ac_cpp='$CPP $CPPFLAGS'
3613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616
3617
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3619$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003620if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003621 $as_echo_n "(cached) " >&6
3622else
3623 ac_check_lib_save_LIBS=$LIBS
3624LIBS="-ldl $LIBS"
3625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h. */
3627
3628/* Override any GCC internal prototype to avoid an error.
3629 Use char because int might match the return type of a GCC
3630 builtin and then its argument prototype would still apply. */
3631#ifdef __cplusplus
3632extern "C"
3633#endif
3634char dlopen ();
3635int
3636main ()
3637{
3638return dlopen ();
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643if ac_fn_c_try_link "$LINENO"; then :
3644 ac_cv_lib_dl_dlopen=yes
3645else
3646 ac_cv_lib_dl_dlopen=no
3647fi
3648rm -f core conftest.err conftest.$ac_objext \
3649 conftest$ac_exeext conftest.$ac_ext
3650LIBS=$ac_check_lib_save_LIBS
3651fi
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3653$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003654if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003655 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003656
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003657$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3658
3659fi
3660
3661
3662WITH_DIET_LIBC=
3663
3664# Check whether --with-diet-libc was given.
3665if test "${with_diet_libc+set}" = set; then :
3666 withval=$with_diet_libc; CC="diet cc -nostdinc"
3667WITH_DIET_LIBC=yes
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3669$as_echo "CC=$CC" >&6; }
3670fi
3671
3672# Check whether --with-cc was given.
3673if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003674 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003675fi
3676
3677
3678# Check whether --with-ccopts was given.
3679if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003680 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003681fi
3682
3683
3684# Check whether --with-ldopts was given.
3685if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003686 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003687fi
3688
3689ac_ext=c
3690ac_cpp='$CPP $CPPFLAGS'
3691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3696set dummy ${ac_tool_prefix}gcc; ac_word=$2
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003699if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003700 $as_echo_n "(cached) " >&6
3701else
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716done
3717 done
3718IFS=$as_save_IFS
3719
3720fi
3721fi
3722CC=$ac_cv_prog_CC
3723if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725$as_echo "$CC" >&6; }
3726else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728$as_echo "no" >&6; }
3729fi
3730
3731
3732fi
3733if test -z "$ac_cv_prog_CC"; then
3734 ac_ct_CC=$CC
3735 # Extract the first word of "gcc", so it can be a program name with args.
3736set dummy gcc; ac_word=$2
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003739if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003740 $as_echo_n "(cached) " >&6
3741else
3742 if test -n "$ac_ct_CC"; then
3743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3744else
3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746for as_dir in $PATH
3747do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003752 ac_cv_prog_ac_ct_CC="gcc"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756done
3757 done
3758IFS=$as_save_IFS
3759
3760fi
3761fi
3762ac_ct_CC=$ac_cv_prog_ac_ct_CC
3763if test -n "$ac_ct_CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3765$as_echo "$ac_ct_CC" >&6; }
3766else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768$as_echo "no" >&6; }
3769fi
3770
3771 if test "x$ac_ct_CC" = x; then
3772 CC=""
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775yes:)
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778ac_tool_warned=yes ;;
3779esac
3780 CC=$ac_ct_CC
3781 fi
3782else
3783 CC="$ac_cv_prog_CC"
3784fi
3785
3786if test -z "$CC"; then
3787 if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3789set dummy ${ac_tool_prefix}cc; ac_word=$2
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003792if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003793 $as_echo_n "(cached) " >&6
3794else
3795 if test -n "$CC"; then
3796 ac_cv_prog_CC="$CC" # Let the user override the test.
3797else
3798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799for as_dir in $PATH
3800do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003805 ac_cv_prog_CC="${ac_tool_prefix}cc"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809done
3810 done
3811IFS=$as_save_IFS
3812
3813fi
3814fi
3815CC=$ac_cv_prog_CC
3816if test -n "$CC"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3818$as_echo "$CC" >&6; }
3819else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821$as_echo "no" >&6; }
3822fi
3823
3824
3825 fi
3826fi
3827if test -z "$CC"; then
3828 # Extract the first word of "cc", so it can be a program name with args.
3829set dummy cc; ac_word=$2
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003832if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003833 $as_echo_n "(cached) " >&6
3834else
3835 if test -n "$CC"; then
3836 ac_cv_prog_CC="$CC" # Let the user override the test.
3837else
3838 ac_prog_rejected=no
3839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840for as_dir in $PATH
3841do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003846 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3847 ac_prog_rejected=yes
3848 continue
3849 fi
3850 ac_cv_prog_CC="cc"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854done
3855 done
3856IFS=$as_save_IFS
3857
3858if test $ac_prog_rejected = yes; then
3859 # We found a bogon in the path, so make sure we never use it.
3860 set dummy $ac_cv_prog_CC
3861 shift
3862 if test $# != 0; then
3863 # We chose a different compiler from the bogus one.
3864 # However, it has the same basename, so the bogon will be chosen
3865 # first if we set CC to just the basename; use the full file name.
3866 shift
3867 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3868 fi
3869fi
3870fi
3871fi
3872CC=$ac_cv_prog_CC
3873if test -n "$CC"; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3875$as_echo "$CC" >&6; }
3876else
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878$as_echo "no" >&6; }
3879fi
3880
3881
3882fi
3883if test -z "$CC"; then
3884 if test -n "$ac_tool_prefix"; then
3885 for ac_prog in cl.exe
3886 do
3887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003891if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003892 $as_echo_n "(cached) " >&6
3893else
3894 if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3896else
3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
3899do
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003904 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3907 fi
3908done
3909 done
3910IFS=$as_save_IFS
3911
3912fi
3913fi
3914CC=$ac_cv_prog_CC
3915if test -n "$CC"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3917$as_echo "$CC" >&6; }
3918else
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920$as_echo "no" >&6; }
3921fi
3922
3923
3924 test -n "$CC" && break
3925 done
3926fi
3927if test -z "$CC"; then
3928 ac_ct_CC=$CC
3929 for ac_prog in cl.exe
3930do
3931 # Extract the first word of "$ac_prog", so it can be a program name with args.
3932set dummy $ac_prog; ac_word=$2
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003935if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003936 $as_echo_n "(cached) " >&6
3937else
3938 if test -n "$ac_ct_CC"; then
3939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003948 ac_cv_prog_ac_ct_CC="$ac_prog"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952done
3953 done
3954IFS=$as_save_IFS
3955
3956fi
3957fi
3958ac_ct_CC=$ac_cv_prog_ac_ct_CC
3959if test -n "$ac_ct_CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3961$as_echo "$ac_ct_CC" >&6; }
3962else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
3965fi
3966
3967
3968 test -n "$ac_ct_CC" && break
3969done
3970
3971 if test "x$ac_ct_CC" = x; then
3972 CC=""
3973 else
3974 case $cross_compiling:$ac_tool_warned in
3975yes:)
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3978ac_tool_warned=yes ;;
3979esac
3980 CC=$ac_ct_CC
3981 fi
3982fi
3983
3984fi
3985
3986
3987test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003989as_fn_error $? "no acceptable C compiler found in \$PATH
3990See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003991
3992# Provide some information about the compiler.
3993$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3994set X $ac_compile
3995ac_compiler=$2
3996for ac_option in --version -v -V -qversion; do
3997 { { ac_try="$ac_compiler $ac_option >&5"
3998case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001esac
4002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003$as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4005 ac_status=$?
4006 if test -s conftest.err; then
4007 sed '10a\
4008... rest of stderr output deleted ...
4009 10q' conftest.err >conftest.er1
4010 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004011 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004012 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }
4015done
4016
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4018$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004019if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004020 $as_echo_n "(cached) " >&6
4021else
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023/* end confdefs.h. */
4024
4025int
4026main ()
4027{
4028#ifndef __GNUC__
4029 choke me
4030#endif
4031
4032 ;
4033 return 0;
4034}
4035_ACEOF
4036if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_compiler_gnu=yes
4038else
4039 ac_compiler_gnu=no
4040fi
4041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042ac_cv_c_compiler_gnu=$ac_compiler_gnu
4043
4044fi
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4046$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4047if test $ac_compiler_gnu = yes; then
4048 GCC=yes
4049else
4050 GCC=
4051fi
4052ac_test_CFLAGS=${CFLAGS+set}
4053ac_save_CFLAGS=$CFLAGS
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4055$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004056if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004057 $as_echo_n "(cached) " >&6
4058else
4059 ac_save_c_werror_flag=$ac_c_werror_flag
4060 ac_c_werror_flag=yes
4061 ac_cv_prog_cc_g=no
4062 CFLAGS="-g"
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h. */
4065
4066int
4067main ()
4068{
4069
4070 ;
4071 return 0;
4072}
4073_ACEOF
4074if ac_fn_c_try_compile "$LINENO"; then :
4075 ac_cv_prog_cc_g=yes
4076else
4077 CFLAGS=""
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h. */
4080
4081int
4082main ()
4083{
4084
4085 ;
4086 return 0;
4087}
4088_ACEOF
4089if ac_fn_c_try_compile "$LINENO"; then :
4090
4091else
4092 ac_c_werror_flag=$ac_save_c_werror_flag
4093 CFLAGS="-g"
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095/* end confdefs.h. */
4096
4097int
4098main ()
4099{
4100
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_cv_prog_cc_g=yes
4107fi
4108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109fi
4110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111fi
4112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 ac_c_werror_flag=$ac_save_c_werror_flag
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4116$as_echo "$ac_cv_prog_cc_g" >&6; }
4117if test "$ac_test_CFLAGS" = set; then
4118 CFLAGS=$ac_save_CFLAGS
4119elif test $ac_cv_prog_cc_g = yes; then
4120 if test "$GCC" = yes; then
4121 CFLAGS="-g -O2"
4122 else
4123 CFLAGS="-g"
4124 fi
4125else
4126 if test "$GCC" = yes; then
4127 CFLAGS="-O2"
4128 else
4129 CFLAGS=
4130 fi
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4133$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004134if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004135 $as_echo_n "(cached) " >&6
4136else
4137 ac_cv_prog_cc_c89=no
4138ac_save_CC=$CC
4139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h. */
4141#include <stdarg.h>
4142#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004143struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004144/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4145struct buf { int x; };
4146FILE * (*rcsopen) (struct buf *, struct stat *, int);
4147static char *e (p, i)
4148 char **p;
4149 int i;
4150{
4151 return p[i];
4152}
4153static char *f (char * (*g) (char **, int), char **p, ...)
4154{
4155 char *s;
4156 va_list v;
4157 va_start (v,p);
4158 s = g (p, va_arg (v,int));
4159 va_end (v);
4160 return s;
4161}
4162
4163/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4164 function prototypes and stuff, but not '\xHH' hex character constants.
4165 These don't provoke an error unfortunately, instead are silently treated
4166 as 'x'. The following induces an error, until -std is added to get
4167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4168 array size at least. It's necessary to write '\x00'==0 to get something
4169 that's true only with -std. */
4170int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4171
4172/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4173 inside strings and character constants. */
4174#define FOO(x) 'x'
4175int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4176
4177int test (int i, double x);
4178struct s1 {int (*f) (int a);};
4179struct s2 {int (*f) (double a);};
4180int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4181int argc;
4182char **argv;
4183int
4184main ()
4185{
4186return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4187 ;
4188 return 0;
4189}
4190_ACEOF
4191for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4193do
4194 CC="$ac_save_CC $ac_arg"
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196 ac_cv_prog_cc_c89=$ac_arg
4197fi
4198rm -f core conftest.err conftest.$ac_objext
4199 test "x$ac_cv_prog_cc_c89" != "xno" && break
4200done
4201rm -f conftest.$ac_ext
4202CC=$ac_save_CC
4203
4204fi
4205# AC_CACHE_VAL
4206case "x$ac_cv_prog_cc_c89" in
4207 x)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4209$as_echo "none needed" >&6; } ;;
4210 xno)
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4212$as_echo "unsupported" >&6; } ;;
4213 *)
4214 CC="$CC $ac_cv_prog_cc_c89"
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4216$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4217esac
4218if test "x$ac_cv_prog_cc_c89" != xno; then :
4219
4220fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004221
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004222ac_ext=c
4223ac_cpp='$CPP $CPPFLAGS'
4224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004228if test "$GCC" = yes; then
4229 RDYNAMIC="-rdynamic"
4230
4231fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004232ac_ext=c
4233ac_cpp='$CPP $CPPFLAGS'
4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004238$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004239# On Suns, sometimes $CPP names a directory.
4240if test -n "$CPP" && test -d "$CPP"; then
4241 CPP=
4242fi
4243if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004244 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004245 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004246else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004247 # Double quotes because CPP needs to be expanded
4248 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4249 do
4250 ac_preproc_ok=false
4251for ac_c_preproc_warn_flag in '' yes
4252do
4253 # Use a header file that comes with gcc, so configuring glibc
4254 # with a fresh cross-compiler works.
4255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004257 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004258 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004260/* end confdefs.h. */
4261#ifdef __STDC__
4262# include <limits.h>
4263#else
4264# include <assert.h>
4265#endif
4266 Syntax error
4267_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004268if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004269
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004271 # Broken: fails on valid input.
4272continue
4273fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004274rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004275
Theodore Ts'oe1052142006-10-21 21:46:47 -04004276 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004277 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004279/* end confdefs.h. */
4280#include <ac_nonexistent.h>
4281_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004282if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283 # Broken: success on invalid input.
4284continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004285else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004286 # Passes both tests.
4287ac_preproc_ok=:
4288break
4289fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004290rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004291
4292done
4293# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004294rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004295if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004296 break
4297fi
4298
4299 done
4300 ac_cv_prog_CPP=$CPP
4301
4302fi
4303 CPP=$ac_cv_prog_CPP
4304else
4305 ac_cv_prog_CPP=$CPP
4306fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004308$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004309ac_preproc_ok=false
4310for ac_c_preproc_warn_flag in '' yes
4311do
4312 # Use a header file that comes with gcc, so configuring glibc
4313 # with a fresh cross-compiler works.
4314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4315 # <limits.h> exists even on freestanding compilers.
4316 # On the NeXT, cc -E runs the code through the compiler's parser,
4317 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004319/* end confdefs.h. */
4320#ifdef __STDC__
4321# include <limits.h>
4322#else
4323# include <assert.h>
4324#endif
4325 Syntax error
4326_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004327if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004328
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004329else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004330 # Broken: fails on valid input.
4331continue
4332fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004333rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004334
Theodore Ts'oe1052142006-10-21 21:46:47 -04004335 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004336 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004338/* end confdefs.h. */
4339#include <ac_nonexistent.h>
4340_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004341if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004342 # Broken: success on invalid input.
4343continue
4344else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004345 # Passes both tests.
4346ac_preproc_ok=:
4347break
4348fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004349rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004350
4351done
4352# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004353rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004354if $ac_preproc_ok; then :
4355
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004356else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004359as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4360See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004361fi
4362
4363ac_ext=c
4364ac_cpp='$CPP $CPPFLAGS'
4365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004370$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004371if test "$GCC" = yes
4372then
4373 case "$host_cpu" in
4374 alpha) addcflags="-mieee" ;;
4375 esac
4376fi
4377if test "x$addcflags" != x
4378then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004380$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004381 CFLAGS="$addcflags $CFLAGS"
4382else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004384$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004385fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004386LIB_EXT=.a
4387STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004388PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004389
Theodore Ts'oe1052142006-10-21 21:46:47 -04004390# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004391if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004392 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004393else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004394 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004395fi
4396# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004397if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004398 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004399then
4400 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004402$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004403else
4404 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004406$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004407fi
4408
4409else
4410 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004412$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004413
Theodore Ts'oe1052142006-10-21 21:46:47 -04004414fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004415
Theodore Ts'oe1052142006-10-21 21:46:47 -04004416
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004417# Check whether --enable-symlink-install was given.
4418if test "${enable_symlink_install+set}" = set; then :
4419 enableval=$enable_symlink_install; if test "$enableval" = "no"
4420then
4421 LINK_INSTALL_FLAGS=-f
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4423$as_echo "Disabling symlinks for install" >&6; }
4424else
4425 LINK_INSTALL_FLAGS=-sf
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4427$as_echo "Enabling symlinks for install" >&6; }
4428fi
4429
4430else
4431 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4433$as_echo "Disabling symlinks for install by default" >&6; }
4434
4435fi
4436
4437
4438# Check whether --enable-symlink-relative-symlinks was given.
4439if test "${enable_symlink_relative_symlinks+set}" = set; then :
4440 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4441then
4442 SYMLINK_RELATIVE=
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4444$as_echo "Disabling relative symlinks for install" >&6; }
4445else
4446 SYMLINK_RELATIVE=--relative
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4448$as_echo "Enabling symlinks for install" >&6; }
4449fi
4450
4451else
4452 SYMLINK_RELATIVE=
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4454$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004455
4456fi
4457
4458
4459# Check whether --enable-symlink-build was given.
4460if test "${enable_symlink_build+set}" = set; then :
4461 enableval=$enable_symlink_build; if test "$enableval" = "no"
4462then
4463 LINK_BUILD_FLAGS=
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4465$as_echo "Disabling symlinks for build" >&6; }
4466else
4467 LINK_BUILD_FLAGS=-s
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4469$as_echo "Enabling symlinks for build" >&6; }
4470fi
4471
4472else
4473 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4475$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004476
4477fi
4478
4479
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004480# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004481if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004482 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4483then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004485$as_echo "Disabling verbose make commands" >&6; }
4486 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004487 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004488 Q=@
4489else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004491$as_echo "Enabling verbose make commands" >&6; }
4492 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004493 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004494 Q=
4495fi
4496
4497else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004499$as_echo "Disabling verbose make commands" >&6; }
4500E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004501ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004502Q=@
4503
4504fi
4505
4506
4507
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004508
Theodore Ts'oe1052142006-10-21 21:46:47 -04004509# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004510if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004511 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004512then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004514$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004515else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004516
4517$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004518
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004520$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004522$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004523fi
4524
4525else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004527$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004528
Theodore Ts'oe1052142006-10-21 21:46:47 -04004529fi
4530
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004531
Theodore Ts'oe1052142006-10-21 21:46:47 -04004532# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004533if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004534 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004535then
4536 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004538$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004539else
4540 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004541 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004542
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004544$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004545fi
4546
4547else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004548 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004549$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004550
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004552$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004553
Theodore Ts'oe1052142006-10-21 21:46:47 -04004554fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004555
Theodore Ts'oe1052142006-10-21 21:46:47 -04004556
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004557E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004558LDFLAG_DYNAMIC=
4559PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004560# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004561if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004562 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004563then
4564 ELF_CMT=#
4565 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004567$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004568else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004569 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004570 ELF_CMT=
4571 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004572 case "$host_os" in
4573 solaris2.*)
4574 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4575 ;;
4576 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004577 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004578 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004579 PRIVATE_LIBS_CMT=#
4580 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004582$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004583fi
4584
4585else
4586 MAKEFILE_ELF=/dev/null
4587ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004589$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004590
Theodore Ts'oe1052142006-10-21 21:46:47 -04004591fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004592
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004593
Theodore Ts'oe1052142006-10-21 21:46:47 -04004594
4595# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004596if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004597 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004598then
4599 BSDLIB_CMT=#
4600 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004602$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004603else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004604 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004605 BSDLIB_CMT=
4606 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004607 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004608 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004609 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004610 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4611 LIB_EXT=.dylib
4612 ;;
4613 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004615$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004616fi
4617
4618else
4619 MAKEFILE_BSDLIB=/dev/null
4620BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004622$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004623
Theodore Ts'oe1052142006-10-21 21:46:47 -04004624fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004625
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004626
Theodore Ts'oe1052142006-10-21 21:46:47 -04004627
4628# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004629if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004630 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004631then
4632 PROFILE_CMT=#
4633 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004635$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004636else
4637 PROFILE_CMT=
4638 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4639 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004641$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004642fi
4643
4644else
4645 PROFILE_CMT=#
4646MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004648$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004649
Theodore Ts'oe1052142006-10-21 21:46:47 -04004650fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004651
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004652
Theodore Ts'oe1052142006-10-21 21:46:47 -04004653
4654# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004655if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004656 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004657then
4658 CHECKER_CMT=#
4659 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004661$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004662else
4663 CHECKER_CMT=
4664 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004666$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004667fi
4668
4669else
4670 CHECKER_CMT=#
4671MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004673$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004674
Theodore Ts'oe1052142006-10-21 21:46:47 -04004675fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004676
4677
4678
4679
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004680
Theodore Ts'oe1052142006-10-21 21:46:47 -04004681
Theodore Ts'o55da9872008-09-02 23:12:38 -04004682
4683
Theodore Ts'oe1052142006-10-21 21:46:47 -04004684# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004685if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004686 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004687then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004689$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004690else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004691
4692$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004693
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004695$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004696fi
4697
4698else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004700$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004701
Theodore Ts'oe1052142006-10-21 21:46:47 -04004702fi
4703
4704# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004705if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004706 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004707then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004709$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004710else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004711
4712$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004713
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004715$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004716fi
4717
4718else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004720$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004721
Theodore Ts'oe1052142006-10-21 21:46:47 -04004722fi
4723
4724# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004725if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004726 enableval=$enable_testio_debug;
4727if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004728then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004730$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004731 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004732else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004733 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004734 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004735
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004737$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004738fi
4739
4740else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004742$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004743$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004744
4745TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004746
Theodore Ts'oe1052142006-10-21 21:46:47 -04004747fi
4748
Theodore Ts'oaf773652008-09-01 11:27:27 -04004749
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004750
4751
4752if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4755set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004757$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004758if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004759 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004760else
4761 case $PKG_CONFIG in
4762 [\\/]* | ?:[\\/]*)
4763 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4764 ;;
4765 *)
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767for as_dir in $PATH
4768do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004771 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004773 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004775 break 2
4776 fi
4777done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004778 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004779IFS=$as_save_IFS
4780
4781 ;;
4782esac
4783fi
4784PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4785if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004787$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004788else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004790$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004791fi
4792
4793
4794fi
4795if test -z "$ac_cv_path_PKG_CONFIG"; then
4796 ac_pt_PKG_CONFIG=$PKG_CONFIG
4797 # Extract the first word of "pkg-config", so it can be a program name with args.
4798set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004800$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004801if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004802 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004803else
4804 case $ac_pt_PKG_CONFIG in
4805 [\\/]* | ?:[\\/]*)
4806 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4807 ;;
4808 *)
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004814 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004816 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004818 break 2
4819 fi
4820done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004821 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004822IFS=$as_save_IFS
4823
4824 ;;
4825esac
4826fi
4827ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4828if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004830$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004831else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004833$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004834fi
4835
4836 if test "x$ac_pt_PKG_CONFIG" = x; then
4837 PKG_CONFIG=""
4838 else
4839 case $cross_compiling:$ac_tool_warned in
4840yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004841{ $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 +01004842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004843ac_tool_warned=yes ;;
4844esac
4845 PKG_CONFIG=$ac_pt_PKG_CONFIG
4846 fi
4847else
4848 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4849fi
4850
4851fi
4852if test -n "$PKG_CONFIG"; then
4853 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004854 { $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 +01004855$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004856 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004858$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004859 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004861$as_echo "no" >&6; }
4862 PKG_CONFIG=""
4863 fi
4864
4865fi
4866LIBUUID=
4867DEPLIBUUID=
4868STATIC_LIBUUID=
4869DEPSTATIC_LIBUUID=
4870PROFILED_LIBUUID=
4871DEPPROFILED_LIBUUID=
4872UUID_CMT=
4873# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004874if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004875 enableval=$enable_libuuid; if test "$enableval" = "no"
4876then
4877 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004878 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004879 fi
4880
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004882$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004883if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004884 $as_echo_n "(cached) " >&6
4885else
4886 ac_check_lib_save_LIBS=$LIBS
4887LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004889/* end confdefs.h. */
4890
4891/* Override any GCC internal prototype to avoid an error.
4892 Use char because int might match the return type of a GCC
4893 builtin and then its argument prototype would still apply. */
4894#ifdef __cplusplus
4895extern "C"
4896#endif
4897char uuid_generate ();
4898int
4899main ()
4900{
4901return uuid_generate ();
4902 ;
4903 return 0;
4904}
4905_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004906if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004907 ac_cv_lib_uuid_uuid_generate=yes
4908else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004909 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004910fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004911rm -f core conftest.err conftest.$ac_objext \
4912 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004913LIBS=$ac_check_lib_save_LIBS
4914fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004916$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004917if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004918 LIBUUID=`$PKG_CONFIG --libs uuid`;
4919 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4920else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004921 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004922fi
4923
4924 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004926$as_echo "Disabling private uuid library" >&6; }
4927else
4928 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4929 DEPLIBUUID=$LIBUUID
4930 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4931 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4932 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4933 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004935$as_echo "Enabling private uuid library" >&6; }
4936fi
4937
4938else
4939 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4940DEPLIBUUID=$LIBUUID
4941STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4942DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4943PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4944DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004946$as_echo "Enabling private uuid library by default" >&6; }
4947
4948fi
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4960 if test -n "$ac_tool_prefix"; then
4961 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4962set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004964$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004965if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004966 $as_echo_n "(cached) " >&6
4967else
4968 case $PKG_CONFIG in
4969 [\\/]* | ?:[\\/]*)
4970 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4971 ;;
4972 *)
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004978 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004980 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004982 break 2
4983 fi
4984done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004985 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004986IFS=$as_save_IFS
4987
4988 ;;
4989esac
4990fi
4991PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4992if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004994$as_echo "$PKG_CONFIG" >&6; }
4995else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004997$as_echo "no" >&6; }
4998fi
4999
5000
5001fi
5002if test -z "$ac_cv_path_PKG_CONFIG"; then
5003 ac_pt_PKG_CONFIG=$PKG_CONFIG
5004 # Extract the first word of "pkg-config", so it can be a program name with args.
5005set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005007$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005008if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005009 $as_echo_n "(cached) " >&6
5010else
5011 case $ac_pt_PKG_CONFIG in
5012 [\\/]* | ?:[\\/]*)
5013 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5014 ;;
5015 *)
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005021 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005023 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005025 break 2
5026 fi
5027done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005028 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005029IFS=$as_save_IFS
5030
5031 ;;
5032esac
5033fi
5034ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5035if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005037$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5038else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005040$as_echo "no" >&6; }
5041fi
5042
5043 if test "x$ac_pt_PKG_CONFIG" = x; then
5044 PKG_CONFIG=""
5045 else
5046 case $cross_compiling:$ac_tool_warned in
5047yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005048{ $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 +01005049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5050ac_tool_warned=yes ;;
5051esac
5052 PKG_CONFIG=$ac_pt_PKG_CONFIG
5053 fi
5054else
5055 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5056fi
5057
5058fi
5059if test -n "$PKG_CONFIG"; then
5060 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005061 { $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 +01005062$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5063 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005065$as_echo "yes" >&6; }
5066 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005068$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005069 PKG_CONFIG=""
5070 fi
5071
5072fi
5073LIBBLKID=
5074DEPLIBBLKID=
5075STATIC_LIBBLKID=
5076DEPSTATIC_LIBBLKID=
5077PROFILED_LIBBLKID=
5078DEPPROFILED_LIBBLKID=
5079BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005080
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005081# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005082if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005083 enableval=$enable_libblkid; if test "$enableval" = "no"
5084then
5085 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005086 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005087 fi
5088
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005090$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005091if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005092 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005093else
5094 ac_check_lib_save_LIBS=$LIBS
5095LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005097/* end confdefs.h. */
5098
5099/* Override any GCC internal prototype to avoid an error.
5100 Use char because int might match the return type of a GCC
5101 builtin and then its argument prototype would still apply. */
5102#ifdef __cplusplus
5103extern "C"
5104#endif
5105char blkid_get_cache ();
5106int
5107main ()
5108{
5109return blkid_get_cache ();
5110 ;
5111 return 0;
5112}
5113_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005114if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005115 ac_cv_lib_blkid_blkid_get_cache=yes
5116else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005117 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005118fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005119rm -f core conftest.err conftest.$ac_objext \
5120 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005121LIBS=$ac_check_lib_save_LIBS
5122fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005124$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005125if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005126 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5127 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5128else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005129 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005130fi
5131
5132 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005134$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005135else
5136 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5137 DEPLIBBLKID=$LIBBLKID
5138 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5139 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5140 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5141 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005142 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005143
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005145$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005146fi
5147
5148else
5149 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5150DEPLIBBLKID=$LIBBLKID
5151STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5152DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5153PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5154DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005155$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005156
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005158$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005159
5160fi
5161
5162
5163
5164
5165
5166
5167
5168
Aditya Kalif239fef2011-07-20 11:40:02 -07005169
5170
5171if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5172 if test -n "$ac_tool_prefix"; then
5173 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5174set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005177if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005178 $as_echo_n "(cached) " >&6
5179else
5180 case $PKG_CONFIG in
5181 [\\/]* | ?:[\\/]*)
5182 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5183 ;;
5184 *)
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005192 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196done
5197 done
5198IFS=$as_save_IFS
5199
5200 ;;
5201esac
5202fi
5203PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5204if test -n "$PKG_CONFIG"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5206$as_echo "$PKG_CONFIG" >&6; }
5207else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209$as_echo "no" >&6; }
5210fi
5211
5212
5213fi
5214if test -z "$ac_cv_path_PKG_CONFIG"; then
5215 ac_pt_PKG_CONFIG=$PKG_CONFIG
5216 # Extract the first word of "pkg-config", so it can be a program name with args.
5217set dummy pkg-config; ac_word=$2
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005220if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005221 $as_echo_n "(cached) " >&6
5222else
5223 case $ac_pt_PKG_CONFIG in
5224 [\\/]* | ?:[\\/]*)
5225 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5226 ;;
5227 *)
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005235 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239done
5240 done
5241IFS=$as_save_IFS
5242
5243 ;;
5244esac
5245fi
5246ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5247if test -n "$ac_pt_PKG_CONFIG"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5249$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5250else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252$as_echo "no" >&6; }
5253fi
5254
5255 if test "x$ac_pt_PKG_CONFIG" = x; then
5256 PKG_CONFIG=""
5257 else
5258 case $cross_compiling:$ac_tool_warned in
5259yes:)
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262ac_tool_warned=yes ;;
5263esac
5264 PKG_CONFIG=$ac_pt_PKG_CONFIG
5265 fi
5266else
5267 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5268fi
5269
5270fi
5271if test -n "$PKG_CONFIG"; then
5272 _pkg_min_version=0.9.0
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5274$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5275 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5277$as_echo "yes" >&6; }
5278 else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280$as_echo "no" >&6; }
5281 PKG_CONFIG=""
5282 fi
5283
5284fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005285
5286# Check whether --enable-quota was given.
5287if test "${enable_quota+set}" = set; then :
5288 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005289then
Theodore Ts'o7becb202011-11-14 10:40:43 -05005290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5291$as_echo "Disabling quota support" >&6; }
5292else
5293 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005294
Theodore Ts'o7becb202011-11-14 10:40:43 -05005295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5296$as_echo "Enabling quota support" >&6; }
Aditya Kalif239fef2011-07-20 11:40:02 -07005297fi
5298
5299else
Theodore Ts'o7becb202011-11-14 10:40:43 -05005300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5301$as_echo "Disabling quota support by default" >&6; }
5302
5303fi
5304
5305LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005306DEPLIBQUOTA=$LIBQUOTA
5307STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5308DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5309PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5310DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005311
5312
5313
5314
5315
5316
5317
Theodore Ts'oe1052142006-10-21 21:46:47 -04005318# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005319if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005320 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005321then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005323$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005324 DEBUGFS_CMT="#"
5325else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005326 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005328$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005329fi
5330
5331else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005333$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005334DEBUGFS_CMT=
5335
Theodore Ts'oe1052142006-10-21 21:46:47 -04005336fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005337
Theodore Ts'oe1052142006-10-21 21:46:47 -04005338
5339# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005340if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005341 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005342then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005344$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005345 IMAGER_CMT="#"
5346else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005347 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005349$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005350fi
5351
5352else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005354$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005355IMAGER_CMT=
5356
Theodore Ts'oe1052142006-10-21 21:46:47 -04005357fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005358
Theodore Ts'oe1052142006-10-21 21:46:47 -04005359
5360# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005361if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005362 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005363then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005365$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005366 RESIZER_CMT="#"
5367else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005368 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005370$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005371fi
5372
5373else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005375$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005376RESIZER_CMT=
5377
Theodore Ts'oe1052142006-10-21 21:46:47 -04005378fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005379
Theodore Ts'oe1052142006-10-21 21:46:47 -04005380
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005381# Check whether --enable-defrag was given.
5382if test "${enable_defrag+set}" = set; then :
5383 enableval=$enable_defrag; if test "$enableval" = "no"
5384then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5386$as_echo "Disabling e4defrag support" >&6; }
5387 DEFRAG_CMT="#"
5388else
5389 DEFRAG_CMT=
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5391$as_echo "Enabling e4defrag support" >&6; }
5392fi
5393
5394else
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5396$as_echo "Enabling e4defrag support by default" >&6; }
5397DEFRAG_CMT=
5398
5399fi
5400
5401
Theodore Ts'oe1052142006-10-21 21:46:47 -04005402# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005403if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005404 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005405then
5406 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005408$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005409else
5410 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005412$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005413fi
5414
5415else
5416 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005417 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005418 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005420$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005421 ;;
5422 *)
5423 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005425$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005426esac
5427
Theodore Ts'oe1052142006-10-21 21:46:47 -04005428fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005429
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005430
Theodore Ts'oe1052142006-10-21 21:46:47 -04005431
5432# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005433if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005434 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005435then
5436 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005438$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005439else
5440 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005442$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005443fi
5444
5445else
5446 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005448$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005449
Theodore Ts'oe1052142006-10-21 21:46:47 -04005450fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005451
5452
Theodore Ts'oe1052142006-10-21 21:46:47 -04005453
Theodore Ts'o32493942007-12-31 10:45:01 -05005454# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005455if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005456 enableval=$enable_tls; if test "$enableval" = "no"
5457then
5458 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005460$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005461else
5462 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005464$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005465fi
5466
5467else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005468 if test -n "$WITH_DIET_LIBC"
5469then
5470 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005471 { $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 +01005472$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005473else
5474 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005476$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005477fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005478
5479fi
5480
5481if test "$try_tls" = "yes"
5482then
5483
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005485$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005486 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005487 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005488else
5489
5490 ax_tls_keywords="__thread __declspec(thread) none"
5491 for ax_tls_keyword in $ax_tls_keywords; do
5492 case $ax_tls_keyword in
5493 none) ac_cv_tls=none ; break ;;
5494 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005496/* end confdefs.h. */
5497#include <stdlib.h>
5498 static void
5499 foo(void) {
5500 static $ax_tls_keyword int bar;
5501 exit(1);
5502 }
5503int
5504main ()
5505{
5506
5507 ;
5508 return 0;
5509}
5510_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005511if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005512 ac_cv_tls=$ax_tls_keyword ; break
5513else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005514 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005515
5516fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 esac
5519 done
5520
5521fi
5522
5523
5524 if test "$ac_cv_tls" != "none"; then
5525
5526cat >>confdefs.h <<_ACEOF
5527#define TLS $ac_cv_tls
5528_ACEOF
5529
5530 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005532$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005533
5534fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005535
Theodore Ts'o5610f992007-12-31 11:16:56 -05005536# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005537if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005538 enableval=$enable_uuidd; if test "$enableval" = "no"
5539then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005541$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005542 UUIDD_CMT="#"
5543else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005544 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005545
5546 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005548$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005549fi
5550
5551else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005552 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005553
5554UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005556$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005557
5558fi
5559
5560
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005561
5562# Check whether --enable-mmp was given.
5563if test "${enable_mmp+set}" = set; then :
5564 enableval=$enable_mmp; if test "$enableval" = "no"
5565then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5567$as_echo "Disabling mmp support" >&6; }
5568else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5570$as_echo "Enabling mmp support" >&6; }
5571 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5572
5573fi
5574
5575else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5577$as_echo "Enabling mmp support by default" >&6; }
5578$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5579
5580
5581fi
5582
Tony Breeds1625bf42012-07-30 14:44:12 -04005583
5584# Check whether --enable-bmap-stats was given.
5585if test "${enable_bmap_stats+set}" = set; then :
5586 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5587then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5589$as_echo "Disabling bitmap statistics support" >&6; }
5590else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5592$as_echo "Enabling bitmap statistics support" >&6; }
5593 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5594
5595fi
5596
5597else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5599$as_echo "Enabling bitmap statistics support by default" >&6; }
5600$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5601
5602
5603fi
5604
5605
5606# Check whether --enable-bmap-stats-ops was given.
5607if test "${enable_bmap_stats_ops+set}" = set; then :
5608 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5609then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5611$as_echo "Disabling additional bitmap statistics" >&6; }
5612else
5613 if test "x${enable_bmap_stats}" = "xno"; then :
5614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5616as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5617See \`config.log' for more details" "$LINENO" 5; }
5618fi
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5621$as_echo "Enabling additional bitmap statistics" >&6; }
5622 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5623
5624fi
5625
5626else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5628$as_echo "Disabling additional bitmap statistics by default" >&6; }
5629
5630fi
5631
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005632MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005634GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005635PACKAGE=e2fsprogs
5636VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005637VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005638
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005639cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005640#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005641_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005642
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005643
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005644cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005645#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005646_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005647
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005648
5649
5650
5651
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005653$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5654set x ${MAKE-make}
5655ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005656if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005657 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005658else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005659 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005660SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005661all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005662 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005663_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005664# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005665case `${MAKE-make} -f conftest.make 2>/dev/null` in
5666 *@@@%%%=?*=@@@%%%*)
5667 eval ac_cv_prog_make_${ac_make}_set=yes;;
5668 *)
5669 eval ac_cv_prog_make_${ac_make}_set=no;;
5670esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005671rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005672fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005673if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005675$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005676 SET_MAKE=
5677else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005679$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005680 SET_MAKE="MAKE=${MAKE-make}"
5681fi
5682
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005683# Find a good install program. We prefer a C program (faster),
5684# so one script is as good as another. But avoid the broken or
5685# incompatible versions:
5686# SysV /etc/install, /usr/sbin/install
5687# SunOS /usr/etc/install
5688# IRIX /sbin/install
5689# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005690# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005691# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5692# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5693# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005694# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005695# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005696# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005698$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005699if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005700if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005701 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005702else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704for as_dir in $PATH
5705do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005708 # Account for people who put trailing slashes in PATH elements.
5709case $as_dir/ in #((
5710 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005711 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005712 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005713 /usr/ucb/* ) ;;
5714 *)
5715 # OSF1 and SCO ODT 3.0 have their own names for install.
5716 # Don't use installbsd from OSF since it installs stuff as root
5717 # by default.
5718 for ac_prog in ginstall scoinst install; do
5719 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005720 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005721 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005722 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005723 # AIX install. It has an incompatible calling convention.
5724 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005725 elif test $ac_prog = install &&
5726 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5727 # program-specific install script used by HP pwplus--don't use.
5728 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005729 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005730 rm -rf conftest.one conftest.two conftest.dir
5731 echo one > conftest.one
5732 echo two > conftest.two
5733 mkdir conftest.dir
5734 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5735 test -s conftest.one && test -s conftest.two &&
5736 test -s conftest.dir/conftest.one &&
5737 test -s conftest.dir/conftest.two
5738 then
5739 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5740 break 3
5741 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005742 fi
5743 fi
5744 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005745 done
5746 ;;
5747esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005748
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005749 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005750IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005751
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005752rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005753
5754fi
5755 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005756 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005757 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005758 # As a last resort, use the slow shell script. Don't cache a
5759 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005760 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005761 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005762 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005763 fi
5764fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005766$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005767
5768# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5769# It thinks the first close brace ends the variable substitution.
5770test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5771
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005772test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005773
5774test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5775
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005776
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005777 MKINSTALLDIRS=
5778 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005779 case "$ac_aux_dir" in
5780 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5781 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5782 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005783 fi
5784 if test -z "$MKINSTALLDIRS"; then
5785 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5786 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005787
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005788
5789
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005791$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005792 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005793if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005794 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005795else
5796 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005797fi
5798
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005800$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005801
5802
5803
5804
5805
5806
5807# Prepare PATH_SEPARATOR.
5808# The user is always right.
5809if test "${PATH_SEPARATOR+set}" != set; then
5810 echo "#! /bin/sh" >conf$$.sh
5811 echo "exit 0" >>conf$$.sh
5812 chmod +x conf$$.sh
5813 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5814 PATH_SEPARATOR=';'
5815 else
5816 PATH_SEPARATOR=:
5817 fi
5818 rm -f conf$$.sh
5819fi
5820
5821# Find out how to test for executable files. Don't use a zero-byte file,
5822# as systems may use methods other than mode bits to determine executability.
5823cat >conf$$.file <<_ASEOF
5824#! /bin/sh
5825exit 0
5826_ASEOF
5827chmod +x conf$$.file
5828if test -x conf$$.file >/dev/null 2>&1; then
5829 ac_executable_p="test -x"
5830else
5831 ac_executable_p="test -f"
5832fi
5833rm -f conf$$.file
5834
5835# Extract the first word of "msgfmt", so it can be a program name with args.
5836set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005838$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005839if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005840 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005841else
5842 case "$MSGFMT" in
5843 [\\/]* | ?:[\\/]*)
5844 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5845 ;;
5846 *)
5847 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5848 for ac_dir in $PATH; do
5849 IFS="$ac_save_IFS"
5850 test -z "$ac_dir" && ac_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5853 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5854 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5855 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5856 break 2
5857 fi
5858 fi
5859 done
5860 done
5861 IFS="$ac_save_IFS"
5862 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5863 ;;
5864esac
5865fi
5866MSGFMT="$ac_cv_path_MSGFMT"
5867if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005869$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005870else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005872$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005873fi
5874
5875 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5876set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005878$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005879if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005880 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005881else
5882 case $GMSGFMT in
5883 [\\/]* | ?:[\\/]*)
5884 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5885 ;;
5886 *)
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005892 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005894 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005896 break 2
5897 fi
5898done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005899 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005900IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005901
5902 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5903 ;;
5904esac
5905fi
5906GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005907if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005909$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005910else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005912$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005913fi
5914
5915
5916
Theodore Ts'oe1052142006-10-21 21:46:47 -04005917
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005918# Prepare PATH_SEPARATOR.
5919# The user is always right.
5920if test "${PATH_SEPARATOR+set}" != set; then
5921 echo "#! /bin/sh" >conf$$.sh
5922 echo "exit 0" >>conf$$.sh
5923 chmod +x conf$$.sh
5924 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5925 PATH_SEPARATOR=';'
5926 else
5927 PATH_SEPARATOR=:
5928 fi
5929 rm -f conf$$.sh
5930fi
5931
5932# Find out how to test for executable files. Don't use a zero-byte file,
5933# as systems may use methods other than mode bits to determine executability.
5934cat >conf$$.file <<_ASEOF
5935#! /bin/sh
5936exit 0
5937_ASEOF
5938chmod +x conf$$.file
5939if test -x conf$$.file >/dev/null 2>&1; then
5940 ac_executable_p="test -x"
5941else
5942 ac_executable_p="test -f"
5943fi
5944rm -f conf$$.file
5945
5946# Extract the first word of "xgettext", so it can be a program name with args.
5947set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005949$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005950if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005951 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005952else
5953 case "$XGETTEXT" in
5954 [\\/]* | ?:[\\/]*)
5955 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5956 ;;
5957 *)
5958 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5959 for ac_dir in $PATH; do
5960 IFS="$ac_save_IFS"
5961 test -z "$ac_dir" && ac_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5964 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5965 (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
5966 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5967 break 2
5968 fi
5969 fi
5970 done
5971 done
5972 IFS="$ac_save_IFS"
5973 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5974 ;;
5975esac
5976fi
5977XGETTEXT="$ac_cv_path_XGETTEXT"
5978if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005980$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005981else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005983$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005984fi
5985
5986 rm -f messages.po
5987
5988
5989# Prepare PATH_SEPARATOR.
5990# The user is always right.
5991if test "${PATH_SEPARATOR+set}" != set; then
5992 echo "#! /bin/sh" >conf$$.sh
5993 echo "exit 0" >>conf$$.sh
5994 chmod +x conf$$.sh
5995 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5996 PATH_SEPARATOR=';'
5997 else
5998 PATH_SEPARATOR=:
5999 fi
6000 rm -f conf$$.sh
6001fi
6002
6003# Find out how to test for executable files. Don't use a zero-byte file,
6004# as systems may use methods other than mode bits to determine executability.
6005cat >conf$$.file <<_ASEOF
6006#! /bin/sh
6007exit 0
6008_ASEOF
6009chmod +x conf$$.file
6010if test -x conf$$.file >/dev/null 2>&1; then
6011 ac_executable_p="test -x"
6012else
6013 ac_executable_p="test -f"
6014fi
6015rm -f conf$$.file
6016
6017# Extract the first word of "msgmerge", so it can be a program name with args.
6018set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006020$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006021if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006022 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006023else
6024 case "$MSGMERGE" in
6025 [\\/]* | ?:[\\/]*)
6026 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6027 ;;
6028 *)
6029 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6030 for ac_dir in $PATH; do
6031 IFS="$ac_save_IFS"
6032 test -z "$ac_dir" && ac_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6035 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6036 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6037 break 2
6038 fi
6039 fi
6040 done
6041 done
6042 IFS="$ac_save_IFS"
6043 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6044 ;;
6045esac
6046fi
6047MSGMERGE="$ac_cv_path_MSGMERGE"
6048if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006050$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006051else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006053$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006054fi
6055
6056
6057 if test "$GMSGFMT" != ":"; then
6058 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6059 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6060 : ;
6061 else
6062 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006063 { $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 +01006064$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006065 GMSGFMT=":"
6066 fi
6067 fi
6068
6069 if test "$XGETTEXT" != ":"; then
6070 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6071 (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
6072 : ;
6073 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006074 { $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 +01006075$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006076 XGETTEXT=":"
6077 fi
6078 rm -f messages.po
6079 fi
6080
Theodore Ts'oe1052142006-10-21 21:46:47 -04006081 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006082
6083
6084if test -n "$ac_tool_prefix"; then
6085 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6086set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006088$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006089if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006090 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006091else
6092 if test -n "$RANLIB"; then
6093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6094else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006100 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006102 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006104 break 2
6105 fi
6106done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006107 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006108IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006109
6110fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006111fi
6112RANLIB=$ac_cv_prog_RANLIB
6113if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006115$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006116else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006118$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006119fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006120
Theodore Ts'oe1052142006-10-21 21:46:47 -04006121
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006122fi
6123if test -z "$ac_cv_prog_RANLIB"; then
6124 ac_ct_RANLIB=$RANLIB
6125 # Extract the first word of "ranlib", so it can be a program name with args.
6126set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006128$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006129if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006130 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006131else
6132 if test -n "$ac_ct_RANLIB"; then
6133 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006140 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006142 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006144 break 2
6145 fi
6146done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006147 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006148IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006150fi
6151fi
6152ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6153if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006155$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006156else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006158$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006159fi
6160
Theodore Ts'oe1052142006-10-21 21:46:47 -04006161 if test "x$ac_ct_RANLIB" = x; then
6162 RANLIB=":"
6163 else
6164 case $cross_compiling:$ac_tool_warned in
6165yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006166{ $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 +01006167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006168ac_tool_warned=yes ;;
6169esac
6170 RANLIB=$ac_ct_RANLIB
6171 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006172else
6173 RANLIB="$ac_cv_prog_RANLIB"
6174fi
6175
6176
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006178$as_echo_n "checking for strerror in -lcposix... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006179if ${ac_cv_lib_cposix_strerror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006180 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006181else
6182 ac_check_lib_save_LIBS=$LIBS
6183LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006185/* end confdefs.h. */
6186
Theodore Ts'oe1052142006-10-21 21:46:47 -04006187/* Override any GCC internal prototype to avoid an error.
6188 Use char because int might match the return type of a GCC
6189 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006190#ifdef __cplusplus
6191extern "C"
6192#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006193char strerror ();
6194int
6195main ()
6196{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006197return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006198 ;
6199 return 0;
6200}
6201_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006202if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006203 ac_cv_lib_cposix_strerror=yes
6204else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006205 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006206fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006207rm -f core conftest.err conftest.$ac_objext \
6208 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006209LIBS=$ac_check_lib_save_LIBS
6210fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006212$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006213if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006214 LIBS="$LIBS -lcposix"
6215fi
6216
6217
6218
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006219
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6221$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006222if ${ac_cv_path_GREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006223 $as_echo_n "(cached) " >&6
6224else
6225 if test -z "$GREP"; then
6226 ac_path_GREP_found=false
6227 # Loop through the user's path and test for each of PROGNAME-LIST
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6230do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_prog in grep ggrep; do
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006236 as_fn_executable_p "$ac_path_GREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006237# Check for GNU ac_path_GREP and select it if it is found.
6238 # Check for GNU $ac_path_GREP
6239case `"$ac_path_GREP" --version 2>&1` in
6240*GNU*)
6241 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6242*)
6243 ac_count=0
6244 $as_echo_n 0123456789 >"conftest.in"
6245 while :
6246 do
6247 cat "conftest.in" "conftest.in" >"conftest.tmp"
6248 mv "conftest.tmp" "conftest.in"
6249 cp "conftest.in" "conftest.nl"
6250 $as_echo 'GREP' >> "conftest.nl"
6251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6253 as_fn_arith $ac_count + 1 && ac_count=$as_val
6254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6255 # Best one so far, save it but keep looking for a better one
6256 ac_cv_path_GREP="$ac_path_GREP"
6257 ac_path_GREP_max=$ac_count
6258 fi
6259 # 10*(2^10) chars as input seems more than enough
6260 test $ac_count -gt 10 && break
6261 done
6262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6263esac
6264
6265 $ac_path_GREP_found && break 3
6266 done
6267 done
6268 done
6269IFS=$as_save_IFS
6270 if test -z "$ac_cv_path_GREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006271 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 -04006272 fi
6273else
6274 ac_cv_path_GREP=$GREP
6275fi
6276
6277fi
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6279$as_echo "$ac_cv_path_GREP" >&6; }
6280 GREP="$ac_cv_path_GREP"
6281
6282
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6284$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006285if ${ac_cv_path_EGREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006286 $as_echo_n "(cached) " >&6
6287else
6288 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6289 then ac_cv_path_EGREP="$GREP -E"
6290 else
6291 if test -z "$EGREP"; then
6292 ac_path_EGREP_found=false
6293 # Loop through the user's path and test for each of PROGNAME-LIST
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6296do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
6299 for ac_prog in egrep; do
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006302 as_fn_executable_p "$ac_path_EGREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006303# Check for GNU ac_path_EGREP and select it if it is found.
6304 # Check for GNU $ac_path_EGREP
6305case `"$ac_path_EGREP" --version 2>&1` in
6306*GNU*)
6307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6308*)
6309 ac_count=0
6310 $as_echo_n 0123456789 >"conftest.in"
6311 while :
6312 do
6313 cat "conftest.in" "conftest.in" >"conftest.tmp"
6314 mv "conftest.tmp" "conftest.in"
6315 cp "conftest.in" "conftest.nl"
6316 $as_echo 'EGREP' >> "conftest.nl"
6317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6319 as_fn_arith $ac_count + 1 && ac_count=$as_val
6320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6321 # Best one so far, save it but keep looking for a better one
6322 ac_cv_path_EGREP="$ac_path_EGREP"
6323 ac_path_EGREP_max=$ac_count
6324 fi
6325 # 10*(2^10) chars as input seems more than enough
6326 test $ac_count -gt 10 && break
6327 done
6328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6329esac
6330
6331 $ac_path_EGREP_found && break 3
6332 done
6333 done
6334 done
6335IFS=$as_save_IFS
6336 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006337 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 -04006338 fi
6339else
6340 ac_cv_path_EGREP=$EGREP
6341fi
6342
6343 fi
6344fi
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6346$as_echo "$ac_cv_path_EGREP" >&6; }
6347 EGREP="$ac_cv_path_EGREP"
6348
6349
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6351$as_echo_n "checking for ANSI C header files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006352if ${ac_cv_header_stdc+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006353 $as_echo_n "(cached) " >&6
6354else
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h. */
6357#include <stdlib.h>
6358#include <stdarg.h>
6359#include <string.h>
6360#include <float.h>
6361
6362int
6363main ()
6364{
6365
6366 ;
6367 return 0;
6368}
6369_ACEOF
6370if ac_fn_c_try_compile "$LINENO"; then :
6371 ac_cv_header_stdc=yes
6372else
6373 ac_cv_header_stdc=no
6374fi
6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376
6377if test $ac_cv_header_stdc = yes; then
6378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h. */
6381#include <string.h>
6382
6383_ACEOF
6384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6385 $EGREP "memchr" >/dev/null 2>&1; then :
6386
6387else
6388 ac_cv_header_stdc=no
6389fi
6390rm -f conftest*
6391
6392fi
6393
6394if test $ac_cv_header_stdc = yes; then
6395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397/* end confdefs.h. */
6398#include <stdlib.h>
6399
6400_ACEOF
6401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6402 $EGREP "free" >/dev/null 2>&1; then :
6403
6404else
6405 ac_cv_header_stdc=no
6406fi
6407rm -f conftest*
6408
6409fi
6410
6411if test $ac_cv_header_stdc = yes; then
6412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6413 if test "$cross_compiling" = yes; then :
6414 :
6415else
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417/* end confdefs.h. */
6418#include <ctype.h>
6419#include <stdlib.h>
6420#if ((' ' & 0x0FF) == 0x020)
6421# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6422# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6423#else
6424# define ISLOWER(c) \
6425 (('a' <= (c) && (c) <= 'i') \
6426 || ('j' <= (c) && (c) <= 'r') \
6427 || ('s' <= (c) && (c) <= 'z'))
6428# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6429#endif
6430
6431#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6432int
6433main ()
6434{
6435 int i;
6436 for (i = 0; i < 256; i++)
6437 if (XOR (islower (i), ISLOWER (i))
6438 || toupper (i) != TOUPPER (i))
6439 return 2;
6440 return 0;
6441}
6442_ACEOF
6443if ac_fn_c_try_run "$LINENO"; then :
6444
6445else
6446 ac_cv_header_stdc=no
6447fi
6448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6449 conftest.$ac_objext conftest.beam conftest.$ac_ext
6450fi
6451
6452fi
6453fi
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6455$as_echo "$ac_cv_header_stdc" >&6; }
6456if test $ac_cv_header_stdc = yes; then
6457
6458$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6459
6460fi
6461
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006463$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006464if ${ac_cv_c_const+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006465 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006466else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006468/* end confdefs.h. */
6469
6470int
6471main ()
6472{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006474#ifndef __cplusplus
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006475 /* Ultrix mips cc rejects this sort of thing. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006476 typedef int charset[2];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006477 const charset cs = { 0, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006478 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006479 char const *const *pcpcc;
6480 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006481 /* NEC SVR4.0.2 mips cc rejects this. */
6482 struct point {int x, y;};
6483 static struct point const zero = {0,0};
6484 /* AIX XL C 1.02.0.0 rejects this.
6485 It does not let you subtract one const X* pointer from another in
6486 an arm of an if-expression whose if-part is not a constant
6487 expression */
6488 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006489 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006490 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006491 ++pcpcc;
6492 ppc = (char**) pcpcc;
6493 pcpcc = (char const *const *) ppc;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006494 { /* SCO 3.2v4 cc rejects this sort of thing. */
6495 char tx;
6496 char *t = &tx;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006497 char const *s = 0 ? (char *) 0 : (char const *) 0;
6498
6499 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006500 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006501 }
6502 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6503 int x[] = {25, 17};
6504 const int *foo = &x[0];
6505 ++foo;
6506 }
6507 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6508 typedef const int *iptr;
6509 iptr p = 0;
6510 ++p;
6511 }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006512 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006513 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006514 struct s { int j; const int *ap[3]; } bx;
6515 struct s *b = &bx; b->j = 5;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006516 }
6517 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6518 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006519 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006520 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006521 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006522#endif
6523
6524 ;
6525 return 0;
6526}
6527_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006528if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006529 ac_cv_c_const=yes
6530else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006531 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006534fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006536$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006537if test $ac_cv_c_const = no; then
6538
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006539$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006540
6541fi
6542
6543
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006545$as_echo_n "checking for signed... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006546if ${bh_cv_c_signed+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006547 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006548else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006550/* end confdefs.h. */
6551
6552int
6553main ()
6554{
6555signed char x;
6556 ;
6557 return 0;
6558}
6559_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006560if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006561 bh_cv_c_signed=yes
6562else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006563 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006564fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006566fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006568$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006569 if test $bh_cv_c_signed = no; then
6570
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006571$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006572
6573 fi
6574
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006576$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006577if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006578 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006579else
6580 ac_cv_c_inline=no
6581for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006583/* end confdefs.h. */
6584#ifndef __cplusplus
6585typedef int foo_t;
6586static $ac_kw foo_t static_foo () {return 0; }
6587$ac_kw foo_t foo () {return 0; }
6588#endif
6589
6590_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006591if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006592 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006596done
6597
6598fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006600$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006601
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006602case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006603 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006604 *)
6605 case $ac_cv_c_inline in
6606 no) ac_val=;;
6607 *) ac_val=$ac_cv_c_inline;;
6608 esac
6609 cat >>confdefs.h <<_ACEOF
6610#ifndef __cplusplus
6611#define inline $ac_val
6612#endif
6613_ACEOF
6614 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006615esac
6616
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006617# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6618for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6619 inttypes.h stdint.h unistd.h
6620do :
6621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6622ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6623"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006624if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006625 cat >>confdefs.h <<_ACEOF
6626#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6627_ACEOF
6628
6629fi
6630
6631done
6632
6633
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006634ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006635if test "x$ac_cv_type_off_t" = xyes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006636
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006637else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006638
6639cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006640#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006641_ACEOF
6642
6643fi
6644
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006645ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006646if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006647
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006648else
6649
6650cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006651#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006652_ACEOF
6653
6654fi
6655
6656
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006658$as_echo_n "checking for long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006659if ${ac_cv_type_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006660 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006663/* end confdefs.h. */
6664long long ll = 1LL; int i = 63;
6665int
6666main ()
6667{
6668long long llmax = (long long) -1;
6669 return ll << i | ll >> i | llmax / ll | llmax % ll;
6670 ;
6671 return 0;
6672}
6673_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006674if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006675 ac_cv_type_long_long=yes
6676else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006677 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006678fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006679rm -f core conftest.err conftest.$ac_objext \
6680 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006681fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006683$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006684 if test $ac_cv_type_long_long = yes; then
6685
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006686$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006687
6688 fi
6689
6690
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006692$as_echo_n "checking for long double... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006693if ${gt_cv_c_long_double+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006694 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006695else
6696 if test "$GCC" = yes; then
6697 gt_cv_c_long_double=yes
6698 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006700/* end confdefs.h. */
6701
6702 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6703 long double foo = 0.0;
6704 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6705 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6706
6707int
6708main ()
6709{
6710
6711 ;
6712 return 0;
6713}
6714_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006715if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006716 gt_cv_c_long_double=yes
6717else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006718 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006721 fi
6722fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006724$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006725 if test $gt_cv_c_long_double = yes; then
6726
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006727$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006728
6729 fi
6730
6731
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006733$as_echo_n "checking for wchar_t... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006734if ${gt_cv_c_wchar_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006735 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006736else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006738/* end confdefs.h. */
6739#include <stddef.h>
6740 wchar_t foo = (wchar_t)'\0';
6741int
6742main ()
6743{
6744
6745 ;
6746 return 0;
6747}
6748_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006749if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006750 gt_cv_c_wchar_t=yes
6751else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006752 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006753fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006755fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006757$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006758 if test $gt_cv_c_wchar_t = yes; then
6759
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006760$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006761
6762 fi
6763
6764
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006766$as_echo_n "checking for wint_t... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006767if ${gt_cv_c_wint_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006768 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006769else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006771/* end confdefs.h. */
6772#include <wchar.h>
6773 wint_t foo = (wchar_t)'\0';
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_wint_t=yes
6784else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006785 gt_cv_c_wint_t=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 -05006788fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006790$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006791 if test $gt_cv_c_wint_t = yes; then
6792
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006793$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006794
6795 fi
6796
6797
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006799$as_echo_n "checking for inttypes.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006800if ${jm_ac_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006801 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006802else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006804/* end confdefs.h. */
6805#include <sys/types.h>
6806#include <inttypes.h>
6807int
6808main ()
6809{
6810uintmax_t i = (uintmax_t) -1;
6811 ;
6812 return 0;
6813}
6814_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006815if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816 jm_ac_cv_header_inttypes_h=yes
6817else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006818 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006819fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006821fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006823$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006824 if test $jm_ac_cv_header_inttypes_h = yes; then
6825
6826cat >>confdefs.h <<_ACEOF
6827#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6828_ACEOF
6829
6830 fi
6831
6832
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006834$as_echo_n "checking for stdint.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006835if ${jm_ac_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006836 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006837else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006839/* end confdefs.h. */
6840#include <sys/types.h>
6841#include <stdint.h>
6842int
6843main ()
6844{
6845uintmax_t i = (uintmax_t) -1;
6846 ;
6847 return 0;
6848}
6849_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006850if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006851 jm_ac_cv_header_stdint_h=yes
6852else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006853 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006854fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006856fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006858$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006859 if test $jm_ac_cv_header_stdint_h = yes; then
6860
6861cat >>confdefs.h <<_ACEOF
6862#define HAVE_STDINT_H_WITH_UINTMAX 1
6863_ACEOF
6864
6865 fi
6866
6867
6868
6869
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006871$as_echo_n "checking for intmax_t... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006872if ${gt_cv_c_intmax_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006873 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006874else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006876/* end confdefs.h. */
6877
6878#include <stddef.h>
6879#include <stdlib.h>
6880#if HAVE_STDINT_H_WITH_UINTMAX
6881#include <stdint.h>
6882#endif
6883#if HAVE_INTTYPES_H_WITH_UINTMAX
6884#include <inttypes.h>
6885#endif
6886
6887int
6888main ()
6889{
6890intmax_t x = -1;
6891 ;
6892 return 0;
6893}
6894_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006895if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006896 gt_cv_c_intmax_t=yes
6897else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006898 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006899fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006901fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006903$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006904 if test $gt_cv_c_intmax_t = yes; then
6905
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006906$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006907
6908 fi
6909
6910
6911
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006913$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006914if ${gt_cv_func_printf_posix+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006915 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006916else
6917
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006918 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006919
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006921/* end confdefs.h. */
6922
6923#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6924 notposix
6925#endif
6926
6927_ACEOF
6928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006929 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006930 gt_cv_func_printf_posix="guessing no"
6931else
6932 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006933fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006934rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006936
6937else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006939/* end confdefs.h. */
6940
6941#include <stdio.h>
6942#include <string.h>
6943/* The string "%2$d %1$d", with dollar characters protected from the shell's
6944 dollar expansion (possibly an autoconf bug). */
6945static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6946static char buf[100];
6947int main ()
6948{
6949 sprintf (buf, format, 33, 55);
6950 return (strcmp (buf, "55 33") != 0);
6951}
6952_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006953if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006954 gt_cv_func_printf_posix=yes
6955else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006956 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006957fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6959 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006960fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006961
Theodore Ts'oe1052142006-10-21 21:46:47 -04006962
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006963fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006965$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006966 case $gt_cv_func_printf_posix in
6967 *yes)
6968
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006969$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006970
6971 ;;
6972 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006973
6974# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6975# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006977$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006978if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006979 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006980else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006982/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006983#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006984int
6985main ()
6986{
6987char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006988 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006989 ;
6990 return 0;
6991}
6992_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006993if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006994 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006995else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006996 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006997fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006998rm -f core conftest.err conftest.$ac_objext \
6999 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007000fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007002$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007003if test $ac_cv_working_alloca_h = yes; then
7004
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007005$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007006
7007fi
7008
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007010$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007011if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007012 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007013else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007015/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007016#ifdef __GNUC__
7017# define alloca __builtin_alloca
7018#else
7019# ifdef _MSC_VER
7020# include <malloc.h>
7021# define alloca _alloca
7022# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007023# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007024# include <alloca.h>
7025# else
7026# ifdef _AIX
7027 #pragma alloca
7028# else
7029# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007030void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007031# endif
7032# endif
7033# endif
7034# endif
7035#endif
7036
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007037int
7038main ()
7039{
7040char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007041 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007042 ;
7043 return 0;
7044}
7045_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007046if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007047 ac_cv_func_alloca_works=yes
7048else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007049 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007050fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007051rm -f core conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007053fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007055$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007056
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007057if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007058
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007059$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007060
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007061else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007062 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7063# that cause trouble. Some versions do not even contain alloca or
7064# contain a buggy version. If you still want to use their alloca,
7065# use ar to extract alloca.o from them instead of compiling alloca.c.
7066
Theodore Ts'oe1052142006-10-21 21:46:47 -04007067ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007068
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007069$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070
7071
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007073$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007074if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007075 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007076else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007078/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007079#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007080webecray
7081#else
7082wenotbecray
7083#endif
7084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007085_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007087 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007088 ac_cv_os_cray=yes
7089else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007090 ac_cv_os_cray=no
7091fi
7092rm -f conftest*
7093
7094fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007096$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007097if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007098 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007100ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007101if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007102
7103cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007104#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007105_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007107 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007108fi
7109
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007110 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007111fi
7112
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007114$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007115if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007116 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007117else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007118 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007119 ac_cv_c_stack_direction=0
7120else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007122/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007123$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007124int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007125find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007126{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007127 int dir, dummy = 0;
7128 if (! addr)
7129 addr = &dummy;
7130 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7131 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7132 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007133}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007134
7135int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007136main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007137{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007138 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007139}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007140_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007141if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007142 ac_cv_c_stack_direction=1
7143else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007144 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007145fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7147 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007148fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007150fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007152$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007153cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007154#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007155_ACEOF
7156
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007157
7158fi
7159
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007160
7161
7162
7163 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007164do :
7165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007166ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7167"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007168if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007169 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007170#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007171_ACEOF
7172
7173fi
7174
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007175done
7176
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007177
7178
7179
7180
7181
7182
7183
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007184for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007185do :
7186 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007187if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007188 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007189#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007190_ACEOF
7191
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007192fi
7193done
7194
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007196$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007197if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007198 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007199else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007200 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007201 ac_cv_func_mmap_fixed_mapped=no
7202else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007204/* end confdefs.h. */
7205$ac_includes_default
7206/* malloc might have been renamed as rpl_malloc. */
7207#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007208
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007209/* Thanks to Mike Haertel and Jim Avera for this test.
7210 Here is a matrix of mmap possibilities:
7211 mmap private not fixed
7212 mmap private fixed at somewhere currently unmapped
7213 mmap private fixed at somewhere already mapped
7214 mmap shared not fixed
7215 mmap shared fixed at somewhere currently unmapped
7216 mmap shared fixed at somewhere already mapped
7217 For private mappings, we should verify that changes cannot be read()
7218 back from the file, nor mmap's back from the file at a different
7219 address. (There have been systems where private was not correctly
7220 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007221 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007222 like early versions of FreeBSD and possibly contemporary NetBSD.)
7223 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007224 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007225
7226 Grep wants private fixed already mapped.
7227 The main things grep needs to know about mmap are:
7228 * does it exist and is it safe to write into the mmap'd area
7229 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007230
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007231#include <fcntl.h>
7232#include <sys/mman.h>
7233
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007234#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007235char *malloc ();
7236#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007237
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007238/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007239#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007240# ifdef _SC_PAGESIZE
7241# define getpagesize() sysconf(_SC_PAGESIZE)
7242# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007243# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007244# include <sys/param.h>
7245# ifdef EXEC_PAGESIZE
7246# define getpagesize() EXEC_PAGESIZE
7247# else /* no EXEC_PAGESIZE */
7248# ifdef NBPG
7249# define getpagesize() NBPG * CLSIZE
7250# ifndef CLSIZE
7251# define CLSIZE 1
7252# endif /* no CLSIZE */
7253# else /* no NBPG */
7254# ifdef NBPC
7255# define getpagesize() NBPC
7256# else /* no NBPC */
7257# ifdef PAGESIZE
7258# define getpagesize() PAGESIZE
7259# endif /* PAGESIZE */
7260# endif /* no NBPC */
7261# endif /* no NBPG */
7262# endif /* no EXEC_PAGESIZE */
7263# else /* no HAVE_SYS_PARAM_H */
7264# define getpagesize() 8192 /* punt totally */
7265# endif /* no HAVE_SYS_PARAM_H */
7266# endif /* no _SC_PAGESIZE */
7267
7268#endif /* no HAVE_GETPAGESIZE */
7269
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007270int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007272{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007273 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007274 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007275 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007276 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007278 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007279
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007280 /* First, make a file with some known garbage in it. */
7281 data = (char *) malloc (pagesize);
7282 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007283 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007284 for (i = 0; i < pagesize; ++i)
7285 *(data + i) = rand ();
7286 umask (0);
7287 fd = creat ("conftest.mmap", 0600);
7288 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007289 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007290 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007291 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007292 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007293
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007294 /* Next, check that the tail of a page is zero-filled. File must have
7295 non-zero length, otherwise we risk SIGBUS for entire page. */
7296 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7297 if (fd2 < 0)
7298 return 4;
7299 cdata2 = "";
7300 if (write (fd2, cdata2, 1) != 1)
7301 return 5;
7302 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7303 if (data2 == MAP_FAILED)
7304 return 6;
7305 for (i = 0; i < pagesize; ++i)
7306 if (*(data2 + i))
7307 return 7;
7308 close (fd2);
7309 if (munmap (data2, pagesize))
7310 return 8;
7311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007312 /* Next, try to mmap the file at a fixed address which already has
7313 something else allocated at it. If we can, also make sure that
7314 we see the same garbage. */
7315 fd = open ("conftest.mmap", O_RDWR);
7316 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007317 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7319 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007320 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007321 for (i = 0; i < pagesize; ++i)
7322 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007323 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007324
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007325 /* Finally, make sure that changes to the mapped area do not
7326 percolate back to the file as seen by read(). (This is a bug on
7327 some variants of i386 svr4.0.) */
7328 for (i = 0; i < pagesize; ++i)
7329 *(data2 + i) = *(data2 + i) + 1;
7330 data3 = (char *) malloc (pagesize);
7331 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007332 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007333 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007334 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007335 for (i = 0; i < pagesize; ++i)
7336 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007337 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007338 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007339 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007340}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007341_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007342if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007343 ac_cv_func_mmap_fixed_mapped=yes
7344else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007345 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007346fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7348 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007349fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007350
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007351fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007353$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007354if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007355
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007356$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007357
7358fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007359rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007360
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007361
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007362 { $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 +01007363$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007364if ${ac_cv_gnu_library_2_1+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007365 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007366else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007368/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007369
7370#include <features.h>
7371#ifdef __GNU_LIBRARY__
7372 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7373 Lucky GNU user
7374 #endif
7375#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007376
7377_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007379 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007380 ac_cv_gnu_library_2_1=yes
7381else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007382 ac_cv_gnu_library_2_1=no
7383fi
7384rm -f conftest*
7385
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007386
7387
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007388fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007390$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007391
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007392 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007393
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007394
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007395
7396
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007398$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007399if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007400 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007401else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007402
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007403 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007404
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007405 # Guess based on the CPU.
7406 case "$host_cpu" in
7407 alpha* | i3456786 | m68k | s390*)
7408 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7409 *)
7410 gt_cv_int_divbyzero_sigfpe="guessing no";;
7411 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007412
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007413else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007415/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007416
7417#include <stdlib.h>
7418#include <signal.h>
7419
7420static void
7421#ifdef __cplusplus
7422sigfpe_handler (int sig)
7423#else
7424sigfpe_handler (sig) int sig;
7425#endif
7426{
7427 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7428 exit (sig != SIGFPE);
7429}
7430
7431int x = 1;
7432int y = 0;
7433int z;
7434int nan;
7435
7436int main ()
7437{
7438 signal (SIGFPE, sigfpe_handler);
7439/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7440#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7441 signal (SIGTRAP, sigfpe_handler);
7442#endif
7443/* Linux/SPARC yields signal SIGILL. */
7444#if defined (__sparc__) && defined (__linux__)
7445 signal (SIGILL, sigfpe_handler);
7446#endif
7447
7448 z = x / y;
7449 nan = y / y;
7450 exit (1);
7451}
7452
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007453_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007454if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007455 gt_cv_int_divbyzero_sigfpe=yes
7456else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007457 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007458fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7460 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007461fi
7462
Theodore Ts'oe1052142006-10-21 21:46:47 -04007463
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007464fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007466$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007467 case "$gt_cv_int_divbyzero_sigfpe" in
7468 *yes) value=1;;
7469 *) value=0;;
7470 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007471
7472cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007473#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007474_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007475
7476
7477
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007479$as_echo_n "checking for unsigned long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007480if ${ac_cv_type_unsigned_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007481 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007482else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007484/* end confdefs.h. */
7485unsigned long long ull = 1ULL; int i = 63;
7486int
7487main ()
7488{
7489unsigned long long ullmax = (unsigned long long) -1;
7490 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7491 ;
7492 return 0;
7493}
7494_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007495if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007496 ac_cv_type_unsigned_long_long=yes
7497else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007498 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007499fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007500rm -f core conftest.err conftest.$ac_objext \
7501 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007502fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007504$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007505 if test $ac_cv_type_unsigned_long_long = yes; then
7506
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007507$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007508
7509 fi
7510
7511
7512
7513
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007514 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 -05007515
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007516 test $ac_cv_type_unsigned_long_long = yes \
7517 && ac_type='unsigned long long' \
7518 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007519
7520cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007521#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007522_ACEOF
7523
7524 else
7525
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007526$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007527
7528 fi
7529
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007530
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007532$as_echo_n "checking for inttypes.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007533if ${gt_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007534 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007535else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007536
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007538/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007539#include <sys/types.h>
7540#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541int
7542main ()
7543{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007544
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007545 ;
7546 return 0;
7547}
7548_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007549if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007550 gt_cv_header_inttypes_h=yes
7551else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007552 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007553fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007555
7556fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007558$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007559 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007560
7561cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007562#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007563_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007564
7565 fi
7566
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007567
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007568
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007569 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007570 { $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 +01007571$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007572if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007573 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007574else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007575
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007577/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007578#include <inttypes.h>
7579#ifdef PRId32
7580char *p = PRId32;
7581#endif
7582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007583int
7584main ()
7585{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007587 ;
7588 return 0;
7589}
7590_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007591if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007592 gt_cv_inttypes_pri_broken=no
7593else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007594 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007595fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007597
7598fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007600$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007601 fi
7602 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007603
7604cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007605#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007606_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007607
7608 fi
7609
7610
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007611 for ac_header in stdint.h
7612do :
7613 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007614if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007615 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007616#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007617_ACEOF
7618
7619fi
7620
7621done
7622
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007624$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007625 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007627/* end confdefs.h. */
7628
7629#include <limits.h>
7630#if HAVE_STDINT_H
7631#include <stdint.h>
7632#endif
7633#ifdef SIZE_MAX
7634Found it
7635#endif
7636
7637_ACEOF
7638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007639 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007640 result=yes
7641fi
7642rm -f conftest*
7643
7644 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007645 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 -05007646
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007647else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007648 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007650
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007651
7652 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7653
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007654else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007655 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007656fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007657
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007658
7659 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007661else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007662 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007663fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007664
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007665
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007668/* end confdefs.h. */
7669#include <stddef.h>
7670 extern size_t foo;
7671 extern unsigned long foo;
7672
7673int
7674main ()
7675{
7676
7677 ;
7678 return 0;
7679}
7680_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007681if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007682 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007683fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007685 fi
7686 if test -z "$result"; then
7687 if test "$fits_in_uint" = 1; then
7688 result="$res_hi$res_lo"U
7689 else
7690 result="$res_hi$res_lo"UL
7691 fi
7692 else
7693 result='~(size_t)0'
7694 fi
7695 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007697$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007698 if test "$result" != yes; then
7699
7700cat >>confdefs.h <<_ACEOF
7701#define SIZE_MAX $result
7702_ACEOF
7703
7704 fi
7705
7706
7707
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007708 for ac_header in stdint.h
7709do :
7710 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007711if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007712 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007713#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007714_ACEOF
7715
7716fi
7717
7718done
7719
7720
7721
7722 if test "X$prefix" = "XNONE"; then
7723 acl_final_prefix="$ac_default_prefix"
7724 else
7725 acl_final_prefix="$prefix"
7726 fi
7727 if test "X$exec_prefix" = "XNONE"; then
7728 acl_final_exec_prefix='${prefix}'
7729 else
7730 acl_final_exec_prefix="$exec_prefix"
7731 fi
7732 acl_save_prefix="$prefix"
7733 prefix="$acl_final_prefix"
7734 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7735 prefix="$acl_save_prefix"
7736
7737
Theodore Ts'oe1052142006-10-21 21:46:47 -04007738# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007739if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007740 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007741else
7742 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007743fi
7744
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007745# Prepare PATH_SEPARATOR.
7746# The user is always right.
7747if test "${PATH_SEPARATOR+set}" != set; then
7748 echo "#! /bin/sh" >conf$$.sh
7749 echo "exit 0" >>conf$$.sh
7750 chmod +x conf$$.sh
7751 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7752 PATH_SEPARATOR=';'
7753 else
7754 PATH_SEPARATOR=:
7755 fi
7756 rm -f conf$$.sh
7757fi
7758ac_prog=ld
7759if test "$GCC" = yes; then
7760 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007762$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007763 case $host in
7764 *-*-mingw*)
7765 # gcc leaves a trailing carriage return which upsets mingw
7766 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7767 *)
7768 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7769 esac
7770 case $ac_prog in
7771 # Accept absolute paths.
7772 [\\/]* | [A-Za-z]:[\\/]*)
7773 re_direlt='/[^/][^/]*/\.\./'
7774 # Canonicalize the path of ld
7775 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7776 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7777 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7778 done
7779 test -z "$LD" && LD="$ac_prog"
7780 ;;
7781 "")
7782 # If it fails, then pretend we aren't using GCC.
7783 ac_prog=ld
7784 ;;
7785 *)
7786 # If it is relative, then search for the first ld in PATH.
7787 with_gnu_ld=unknown
7788 ;;
7789 esac
7790elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007792$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007793else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007795$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007796fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007797if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007798 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007799else
7800 if test -z "$LD"; then
7801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7802 for ac_dir in $PATH; do
7803 test -z "$ac_dir" && ac_dir=.
7804 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7805 acl_cv_path_LD="$ac_dir/$ac_prog"
7806 # Check to see if the program is GNU ld. I'd rather use --version,
7807 # but apparently some GNU ld's only accept -v.
7808 # Break only if it was the GNU/non-GNU ld that we prefer.
7809 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7810 *GNU* | *'with BFD'*)
7811 test "$with_gnu_ld" != no && break ;;
7812 *)
7813 test "$with_gnu_ld" != yes && break ;;
7814 esac
7815 fi
7816 done
7817 IFS="$ac_save_ifs"
7818else
7819 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7820fi
7821fi
7822
7823LD="$acl_cv_path_LD"
7824if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007826$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007827else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007829$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007830fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007831test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007833$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007834if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007835 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007836else
7837 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7838case `$LD -v 2>&1 </dev/null` in
7839*GNU* | *'with BFD'*)
7840 acl_cv_prog_gnu_ld=yes ;;
7841*)
7842 acl_cv_prog_gnu_ld=no ;;
7843esac
7844fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007846$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007847with_gnu_ld=$acl_cv_prog_gnu_ld
7848
7849
7850
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007852$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007853if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007854 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007855else
7856
7857 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7858 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7859 . ./conftest.sh
7860 rm -f ./conftest.sh
7861 acl_cv_rpath=done
7862
7863fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007865$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007866 wl="$acl_cv_wl"
7867 libext="$acl_cv_libext"
7868 shlibext="$acl_cv_shlibext"
7869 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7870 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7871 hardcode_direct="$acl_cv_hardcode_direct"
7872 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007873 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007874if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007875 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007876else
7877 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007878fi
7879
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007880
7881
7882
7883
7884
7885
7886
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007887 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007888
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007889 acl_save_prefix="$prefix"
7890 prefix="$acl_final_prefix"
7891 acl_save_exec_prefix="$exec_prefix"
7892 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007893
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007894 eval additional_includedir=\"$includedir\"
7895 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007896
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007897 exec_prefix="$acl_save_exec_prefix"
7898 prefix="$acl_save_prefix"
7899
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007900
Theodore Ts'oe1052142006-10-21 21:46:47 -04007901# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007902if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007903 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007904 if test "X$withval" = "Xno"; then
7905 use_additional=no
7906 else
7907 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007908
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007909 acl_save_prefix="$prefix"
7910 prefix="$acl_final_prefix"
7911 acl_save_exec_prefix="$exec_prefix"
7912 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007913
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007914 eval additional_includedir=\"$includedir\"
7915 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007916
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007917 exec_prefix="$acl_save_exec_prefix"
7918 prefix="$acl_save_prefix"
7919
7920 else
7921 additional_includedir="$withval/include"
7922 additional_libdir="$withval/lib"
7923 fi
7924 fi
7925
Theodore Ts'oe1052142006-10-21 21:46:47 -04007926fi
7927
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007928 LIBICONV=
7929 LTLIBICONV=
7930 INCICONV=
7931 rpathdirs=
7932 ltrpathdirs=
7933 names_already_handled=
7934 names_next_round='iconv '
7935 while test -n "$names_next_round"; do
7936 names_this_round="$names_next_round"
7937 names_next_round=
7938 for name in $names_this_round; do
7939 already_handled=
7940 for n in $names_already_handled; do
7941 if test "$n" = "$name"; then
7942 already_handled=yes
7943 break
7944 fi
7945 done
7946 if test -z "$already_handled"; then
7947 names_already_handled="$names_already_handled $name"
7948 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7949 eval value=\"\$HAVE_LIB$uppername\"
7950 if test -n "$value"; then
7951 if test "$value" = yes; then
7952 eval value=\"\$LIB$uppername\"
7953 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7954 eval value=\"\$LTLIB$uppername\"
7955 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7956 else
7957 :
7958 fi
7959 else
7960 found_dir=
7961 found_la=
7962 found_so=
7963 found_a=
7964 if test $use_additional = yes; then
7965 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7966 found_dir="$additional_libdir"
7967 found_so="$additional_libdir/lib$name.$shlibext"
7968 if test -f "$additional_libdir/lib$name.la"; then
7969 found_la="$additional_libdir/lib$name.la"
7970 fi
7971 else
7972 if test -f "$additional_libdir/lib$name.$libext"; then
7973 found_dir="$additional_libdir"
7974 found_a="$additional_libdir/lib$name.$libext"
7975 if test -f "$additional_libdir/lib$name.la"; then
7976 found_la="$additional_libdir/lib$name.la"
7977 fi
7978 fi
7979 fi
7980 fi
7981 if test "X$found_dir" = "X"; then
7982 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007983
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007984 acl_save_prefix="$prefix"
7985 prefix="$acl_final_prefix"
7986 acl_save_exec_prefix="$exec_prefix"
7987 exec_prefix="$acl_final_exec_prefix"
7988 eval x=\"$x\"
7989 exec_prefix="$acl_save_exec_prefix"
7990 prefix="$acl_save_prefix"
7991
7992 case "$x" in
7993 -L*)
7994 dir=`echo "X$x" | sed -e 's/^X-L//'`
7995 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7996 found_dir="$dir"
7997 found_so="$dir/lib$name.$shlibext"
7998 if test -f "$dir/lib$name.la"; then
7999 found_la="$dir/lib$name.la"
8000 fi
8001 else
8002 if test -f "$dir/lib$name.$libext"; then
8003 found_dir="$dir"
8004 found_a="$dir/lib$name.$libext"
8005 if test -f "$dir/lib$name.la"; then
8006 found_la="$dir/lib$name.la"
8007 fi
8008 fi
8009 fi
8010 ;;
8011 esac
8012 if test "X$found_dir" != "X"; then
8013 break
8014 fi
8015 done
8016 fi
8017 if test "X$found_dir" != "X"; then
8018 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8019 if test "X$found_so" != "X"; then
8020 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8021 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8022 else
8023 haveit=
8024 for x in $ltrpathdirs; do
8025 if test "X$x" = "X$found_dir"; then
8026 haveit=yes
8027 break
8028 fi
8029 done
8030 if test -z "$haveit"; then
8031 ltrpathdirs="$ltrpathdirs $found_dir"
8032 fi
8033 if test "$hardcode_direct" = yes; then
8034 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8035 else
8036 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8037 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8038 haveit=
8039 for x in $rpathdirs; do
8040 if test "X$x" = "X$found_dir"; then
8041 haveit=yes
8042 break
8043 fi
8044 done
8045 if test -z "$haveit"; then
8046 rpathdirs="$rpathdirs $found_dir"
8047 fi
8048 else
8049 haveit=
8050 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008051
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008052 acl_save_prefix="$prefix"
8053 prefix="$acl_final_prefix"
8054 acl_save_exec_prefix="$exec_prefix"
8055 exec_prefix="$acl_final_exec_prefix"
8056 eval x=\"$x\"
8057 exec_prefix="$acl_save_exec_prefix"
8058 prefix="$acl_save_prefix"
8059
8060 if test "X$x" = "X-L$found_dir"; then
8061 haveit=yes
8062 break
8063 fi
8064 done
8065 if test -z "$haveit"; then
8066 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8067 fi
8068 if test "$hardcode_minus_L" != no; then
8069 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8070 else
8071 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8072 fi
8073 fi
8074 fi
8075 fi
8076 else
8077 if test "X$found_a" != "X"; then
8078 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8079 else
8080 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8081 fi
8082 fi
8083 additional_includedir=
8084 case "$found_dir" in
8085 */lib | */lib/)
8086 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8087 additional_includedir="$basedir/include"
8088 ;;
8089 esac
8090 if test "X$additional_includedir" != "X"; then
8091 if test "X$additional_includedir" != "X/usr/include"; then
8092 haveit=
8093 if test "X$additional_includedir" = "X/usr/local/include"; then
8094 if test -n "$GCC"; then
8095 case $host_os in
8096 linux*) haveit=yes;;
8097 esac
8098 fi
8099 fi
8100 if test -z "$haveit"; then
8101 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008102
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008103 acl_save_prefix="$prefix"
8104 prefix="$acl_final_prefix"
8105 acl_save_exec_prefix="$exec_prefix"
8106 exec_prefix="$acl_final_exec_prefix"
8107 eval x=\"$x\"
8108 exec_prefix="$acl_save_exec_prefix"
8109 prefix="$acl_save_prefix"
8110
8111 if test "X$x" = "X-I$additional_includedir"; then
8112 haveit=yes
8113 break
8114 fi
8115 done
8116 if test -z "$haveit"; then
8117 if test -d "$additional_includedir"; then
8118 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8119 fi
8120 fi
8121 fi
8122 fi
8123 fi
8124 if test -n "$found_la"; then
8125 save_libdir="$libdir"
8126 case "$found_la" in
8127 */* | *\\*) . "$found_la" ;;
8128 *) . "./$found_la" ;;
8129 esac
8130 libdir="$save_libdir"
8131 for dep in $dependency_libs; do
8132 case "$dep" in
8133 -L*)
8134 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8135 if test "X$additional_libdir" != "X/usr/lib"; then
8136 haveit=
8137 if test "X$additional_libdir" = "X/usr/local/lib"; then
8138 if test -n "$GCC"; then
8139 case $host_os in
8140 linux*) haveit=yes;;
8141 esac
8142 fi
8143 fi
8144 if test -z "$haveit"; then
8145 haveit=
8146 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008147
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008148 acl_save_prefix="$prefix"
8149 prefix="$acl_final_prefix"
8150 acl_save_exec_prefix="$exec_prefix"
8151 exec_prefix="$acl_final_exec_prefix"
8152 eval x=\"$x\"
8153 exec_prefix="$acl_save_exec_prefix"
8154 prefix="$acl_save_prefix"
8155
8156 if test "X$x" = "X-L$additional_libdir"; then
8157 haveit=yes
8158 break
8159 fi
8160 done
8161 if test -z "$haveit"; then
8162 if test -d "$additional_libdir"; then
8163 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8164 fi
8165 fi
8166 haveit=
8167 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008168
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008169 acl_save_prefix="$prefix"
8170 prefix="$acl_final_prefix"
8171 acl_save_exec_prefix="$exec_prefix"
8172 exec_prefix="$acl_final_exec_prefix"
8173 eval x=\"$x\"
8174 exec_prefix="$acl_save_exec_prefix"
8175 prefix="$acl_save_prefix"
8176
8177 if test "X$x" = "X-L$additional_libdir"; then
8178 haveit=yes
8179 break
8180 fi
8181 done
8182 if test -z "$haveit"; then
8183 if test -d "$additional_libdir"; then
8184 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8185 fi
8186 fi
8187 fi
8188 fi
8189 ;;
8190 -R*)
8191 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8192 if test "$enable_rpath" != no; then
8193 haveit=
8194 for x in $rpathdirs; do
8195 if test "X$x" = "X$dir"; then
8196 haveit=yes
8197 break
8198 fi
8199 done
8200 if test -z "$haveit"; then
8201 rpathdirs="$rpathdirs $dir"
8202 fi
8203 haveit=
8204 for x in $ltrpathdirs; do
8205 if test "X$x" = "X$dir"; then
8206 haveit=yes
8207 break
8208 fi
8209 done
8210 if test -z "$haveit"; then
8211 ltrpathdirs="$ltrpathdirs $dir"
8212 fi
8213 fi
8214 ;;
8215 -l*)
8216 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8217 ;;
8218 *.la)
8219 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8220 ;;
8221 *)
8222 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8223 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8224 ;;
8225 esac
8226 done
8227 fi
8228 else
8229 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8230 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8231 fi
8232 fi
8233 fi
8234 done
8235 done
8236 if test "X$rpathdirs" != "X"; then
8237 if test -n "$hardcode_libdir_separator"; then
8238 alldirs=
8239 for found_dir in $rpathdirs; do
8240 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8241 done
8242 acl_save_libdir="$libdir"
8243 libdir="$alldirs"
8244 eval flag=\"$hardcode_libdir_flag_spec\"
8245 libdir="$acl_save_libdir"
8246 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8247 else
8248 for found_dir in $rpathdirs; do
8249 acl_save_libdir="$libdir"
8250 libdir="$found_dir"
8251 eval flag=\"$hardcode_libdir_flag_spec\"
8252 libdir="$acl_save_libdir"
8253 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8254 done
8255 fi
8256 fi
8257 if test "X$ltrpathdirs" != "X"; then
8258 for found_dir in $ltrpathdirs; do
8259 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8260 done
8261 fi
8262
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008263
8264
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008265
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008266
8267
8268
8269
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008270 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008271if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008272
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008273else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008274
8275$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008276
8277
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008278fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008279
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008280 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 -04008281stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008282do :
8283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8284ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008285if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008286 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008288_ACEOF
8289
8290fi
8291
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008292done
8293
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008294 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008295mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8296strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8297__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008298do :
8299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8300ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008301if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008302 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008303#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008304_ACEOF
8305
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008306fi
8307done
8308
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008310
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008312$as_echo_n "checking whether _snprintf is declared... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008313if ${ac_cv_have_decl__snprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008314 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008315else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008317/* end confdefs.h. */
8318#include <stdio.h>
8319int
8320main ()
8321{
8322
8323#ifndef _snprintf
8324 char *p = (char *) _snprintf;
8325#endif
8326
8327 ;
8328 return 0;
8329}
8330_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008331if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008332 ac_cv_have_decl__snprintf=yes
8333else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008334 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008335fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008337fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008339$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008340 if test $ac_cv_have_decl__snprintf = yes; then
8341 gt_value=1
8342 else
8343 gt_value=0
8344 fi
8345
8346cat >>confdefs.h <<_ACEOF
8347#define HAVE_DECL__SNPRINTF $gt_value
8348_ACEOF
8349
8350
8351
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008353$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008354if ${ac_cv_have_decl__snwprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008355 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008356else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008358/* end confdefs.h. */
8359#include <stdio.h>
8360int
8361main ()
8362{
8363
8364#ifndef _snwprintf
8365 char *p = (char *) _snwprintf;
8366#endif
8367
8368 ;
8369 return 0;
8370}
8371_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008372if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008373 ac_cv_have_decl__snwprintf=yes
8374else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008375 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008376fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008378fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008380$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008381 if test $ac_cv_have_decl__snwprintf = yes; then
8382 gt_value=1
8383 else
8384 gt_value=0
8385 fi
8386
8387cat >>confdefs.h <<_ACEOF
8388#define HAVE_DECL__SNWPRINTF $gt_value
8389_ACEOF
8390
8391
8392
8393
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008395$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008396if ${ac_cv_have_decl_feof_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008397 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008398else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008400/* end confdefs.h. */
8401#include <stdio.h>
8402int
8403main ()
8404{
8405
8406#ifndef feof_unlocked
8407 char *p = (char *) feof_unlocked;
8408#endif
8409
8410 ;
8411 return 0;
8412}
8413_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008414if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008415 ac_cv_have_decl_feof_unlocked=yes
8416else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008417 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008418fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008420fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008422$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008423 if test $ac_cv_have_decl_feof_unlocked = yes; then
8424 gt_value=1
8425 else
8426 gt_value=0
8427 fi
8428
8429cat >>confdefs.h <<_ACEOF
8430#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8431_ACEOF
8432
8433
8434
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008436$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008437if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008438 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008439else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008441/* end confdefs.h. */
8442#include <stdio.h>
8443int
8444main ()
8445{
8446
8447#ifndef fgets_unlocked
8448 char *p = (char *) fgets_unlocked;
8449#endif
8450
8451 ;
8452 return 0;
8453}
8454_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008455if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008456 ac_cv_have_decl_fgets_unlocked=yes
8457else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008458 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008459fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008461fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008463$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008464 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8465 gt_value=1
8466 else
8467 gt_value=0
8468 fi
8469
8470cat >>confdefs.h <<_ACEOF
8471#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8472_ACEOF
8473
8474
8475
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008477$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008478if ${ac_cv_have_decl_getc_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008479 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008480else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008482/* end confdefs.h. */
8483#include <stdio.h>
8484int
8485main ()
8486{
8487
8488#ifndef getc_unlocked
8489 char *p = (char *) getc_unlocked;
8490#endif
8491
8492 ;
8493 return 0;
8494}
8495_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008496if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008497 ac_cv_have_decl_getc_unlocked=yes
8498else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008499 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008500fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008502fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008504$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008505 if test $ac_cv_have_decl_getc_unlocked = yes; then
8506 gt_value=1
8507 else
8508 gt_value=0
8509 fi
8510
8511cat >>confdefs.h <<_ACEOF
8512#define HAVE_DECL_GETC_UNLOCKED $gt_value
8513_ACEOF
8514
8515
8516
8517 case $gt_cv_func_printf_posix in
8518 *yes) HAVE_POSIX_PRINTF=1 ;;
8519 *) HAVE_POSIX_PRINTF=0 ;;
8520 esac
8521
8522 if test "$ac_cv_func_asprintf" = yes; then
8523 HAVE_ASPRINTF=1
8524 else
8525 HAVE_ASPRINTF=0
8526 fi
8527
8528 if test "$ac_cv_func_snprintf" = yes; then
8529 HAVE_SNPRINTF=1
8530 else
8531 HAVE_SNPRINTF=0
8532 fi
8533
8534 if test "$ac_cv_func_wprintf" = yes; then
8535 HAVE_WPRINTF=1
8536 else
8537 HAVE_WPRINTF=0
8538 fi
8539
8540
8541
8542
8543
8544
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008545
8546 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008547
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008548 for element in $INCICONV; do
8549 haveit=
8550 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008551
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008552 acl_save_prefix="$prefix"
8553 prefix="$acl_final_prefix"
8554 acl_save_exec_prefix="$exec_prefix"
8555 exec_prefix="$acl_final_exec_prefix"
8556 eval x=\"$x\"
8557 exec_prefix="$acl_save_exec_prefix"
8558 prefix="$acl_save_prefix"
8559
8560 if test "X$x" = "X$element"; then
8561 haveit=yes
8562 break
8563 fi
8564 done
8565 if test -z "$haveit"; then
8566 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8567 fi
8568 done
8569
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008570
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008572$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008573if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008574 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008575else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008576
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008577 am_cv_func_iconv="no, consider installing GNU libiconv"
8578 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008580/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008581#include <stdlib.h>
8582#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008583int
8584main ()
8585{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008586iconv_t cd = iconv_open("","");
8587 iconv(cd,NULL,NULL,NULL,NULL);
8588 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008589 ;
8590 return 0;
8591}
8592_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008593if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008594 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008595fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008596rm -f core conftest.err conftest.$ac_objext \
8597 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008598 if test "$am_cv_func_iconv" != yes; then
8599 am_save_LIBS="$LIBS"
8600 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008602/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008603#include <stdlib.h>
8604#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008605int
8606main ()
8607{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008608iconv_t cd = iconv_open("","");
8609 iconv(cd,NULL,NULL,NULL,NULL);
8610 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008611 ;
8612 return 0;
8613}
8614_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008615if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008616 am_cv_lib_iconv=yes
8617 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008618fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008619rm -f core conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008621 LIBS="$am_save_LIBS"
8622 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008623
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008624fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008626$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008627 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008628
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008629$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008630
8631 fi
8632 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008634$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008636$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008637 else
8638 CPPFLAGS="$am_save_CPPFLAGS"
8639 LIBICONV=
8640 LTLIBICONV=
8641 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008642
8643
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008644
8645 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008647$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008648 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008649 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008650else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008651
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008653/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008654
8655#include <stdlib.h>
8656#include <iconv.h>
8657extern
8658#ifdef __cplusplus
8659"C"
8660#endif
8661#if defined(__STDC__) || defined(__cplusplus)
8662size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8663#else
8664size_t iconv();
8665#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008667int
8668main ()
8669{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008670
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008671 ;
8672 return 0;
8673}
8674_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008675if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008676 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008677else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008678 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008679fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008681 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 +00008682fi
8683
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008684 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008686 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008687$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008688 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008689
8690cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008691#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008692_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008693
8694 fi
8695
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008696
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008698$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008699if ${am_cv_langinfo_codeset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008700 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008701else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008703/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008704#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008705int
8706main ()
8707{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008708char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008709 ;
8710 return 0;
8711}
8712_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008713if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008714 am_cv_langinfo_codeset=yes
8715else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008716 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008717fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008718rm -f core conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008720
8721fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008723$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008724 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008725
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008726$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008727
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008728 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008729
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008730 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008731
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008733$as_echo_n "checking for LC_MESSAGES... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008734if ${am_cv_val_LC_MESSAGES+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008735 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008736else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008738/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008739#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008740int
8741main ()
8742{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008743return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008744 ;
8745 return 0;
8746}
8747_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008748if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008749 am_cv_val_LC_MESSAGES=yes
8750else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008751 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008752fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008753rm -f core conftest.err conftest.$ac_objext \
8754 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008755fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008757$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008758 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008759
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008760$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008761
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008762 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008763
8764 fi
8765
8766 for ac_prog in bison
8767do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008768 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008769set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008771$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008772if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008773 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008774else
8775 if test -n "$INTLBISON"; then
8776 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8777else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779for as_dir in $PATH
8780do
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008783 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008785 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008787 break 2
8788 fi
8789done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008790 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008791IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008792
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008793fi
8794fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008795INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008796if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008798$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008799else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008801$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008802fi
8803
Theodore Ts'oe1052142006-10-21 21:46:47 -04008804
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008805 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008806done
8807
8808 if test -z "$INTLBISON"; then
8809 ac_verc_fail=yes
8810 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008812$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008813 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8814 case $ac_prog_version in
8815 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8816 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8817 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8818 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8819 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008821$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008822 fi
8823 if test $ac_verc_fail = yes; then
8824 INTLBISON=:
8825 fi
8826
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008827
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008828
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008829
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008830
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008831
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008832
8833
8834
8835
8836
8837
8838
8839
8840
8841
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008843$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008844 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008845if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008846 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008847else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008848 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008849fi
8850
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008852$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008853
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008854
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008855
8856
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008857 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008858 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008859
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008860 LIBINTL=
8861 LTLIBINTL=
8862 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008863
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008864 if test "$USE_NLS" = "yes"; then
8865 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008866
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008868$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008869
Theodore Ts'oe1052142006-10-21 21:46:47 -04008870# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008871if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008872 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008873else
8874 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008875fi
8876
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008878$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008879
8880 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8881 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008882
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008883
8884
8885
8886
8887
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008889$as_echo_n "checking for GNU gettext in libc... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10008890if ${gt_cv_func_gnugettext1_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008891 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008892else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008894/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008895#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008896extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008897extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008898int
8899main ()
8900{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008901bindtextdomain ("", "");
8902return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008903 ;
8904 return 0;
8905}
8906_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008907if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008908 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008909else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008910 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008911fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008912rm -f core conftest.err conftest.$ac_objext \
8913 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008914fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008916$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008917
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008918 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008919
8920
8921
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008922 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008923
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008924 acl_save_prefix="$prefix"
8925 prefix="$acl_final_prefix"
8926 acl_save_exec_prefix="$exec_prefix"
8927 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008928
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008929 eval additional_includedir=\"$includedir\"
8930 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008931
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008932 exec_prefix="$acl_save_exec_prefix"
8933 prefix="$acl_save_prefix"
8934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008935
Theodore Ts'oe1052142006-10-21 21:46:47 -04008936# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008937if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008938 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008939 if test "X$withval" = "Xno"; then
8940 use_additional=no
8941 else
8942 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008943
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008944 acl_save_prefix="$prefix"
8945 prefix="$acl_final_prefix"
8946 acl_save_exec_prefix="$exec_prefix"
8947 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008948
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008949 eval additional_includedir=\"$includedir\"
8950 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008951
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008952 exec_prefix="$acl_save_exec_prefix"
8953 prefix="$acl_save_prefix"
8954
8955 else
8956 additional_includedir="$withval/include"
8957 additional_libdir="$withval/lib"
8958 fi
8959 fi
8960
Theodore Ts'oe1052142006-10-21 21:46:47 -04008961fi
8962
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008963 LIBINTL=
8964 LTLIBINTL=
8965 INCINTL=
8966 rpathdirs=
8967 ltrpathdirs=
8968 names_already_handled=
8969 names_next_round='intl '
8970 while test -n "$names_next_round"; do
8971 names_this_round="$names_next_round"
8972 names_next_round=
8973 for name in $names_this_round; do
8974 already_handled=
8975 for n in $names_already_handled; do
8976 if test "$n" = "$name"; then
8977 already_handled=yes
8978 break
8979 fi
8980 done
8981 if test -z "$already_handled"; then
8982 names_already_handled="$names_already_handled $name"
8983 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8984 eval value=\"\$HAVE_LIB$uppername\"
8985 if test -n "$value"; then
8986 if test "$value" = yes; then
8987 eval value=\"\$LIB$uppername\"
8988 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8989 eval value=\"\$LTLIB$uppername\"
8990 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8991 else
8992 :
8993 fi
8994 else
8995 found_dir=
8996 found_la=
8997 found_so=
8998 found_a=
8999 if test $use_additional = yes; then
9000 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9001 found_dir="$additional_libdir"
9002 found_so="$additional_libdir/lib$name.$shlibext"
9003 if test -f "$additional_libdir/lib$name.la"; then
9004 found_la="$additional_libdir/lib$name.la"
9005 fi
9006 else
9007 if test -f "$additional_libdir/lib$name.$libext"; then
9008 found_dir="$additional_libdir"
9009 found_a="$additional_libdir/lib$name.$libext"
9010 if test -f "$additional_libdir/lib$name.la"; then
9011 found_la="$additional_libdir/lib$name.la"
9012 fi
9013 fi
9014 fi
9015 fi
9016 if test "X$found_dir" = "X"; then
9017 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009018
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009019 acl_save_prefix="$prefix"
9020 prefix="$acl_final_prefix"
9021 acl_save_exec_prefix="$exec_prefix"
9022 exec_prefix="$acl_final_exec_prefix"
9023 eval x=\"$x\"
9024 exec_prefix="$acl_save_exec_prefix"
9025 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009026
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009027 case "$x" in
9028 -L*)
9029 dir=`echo "X$x" | sed -e 's/^X-L//'`
9030 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9031 found_dir="$dir"
9032 found_so="$dir/lib$name.$shlibext"
9033 if test -f "$dir/lib$name.la"; then
9034 found_la="$dir/lib$name.la"
9035 fi
9036 else
9037 if test -f "$dir/lib$name.$libext"; then
9038 found_dir="$dir"
9039 found_a="$dir/lib$name.$libext"
9040 if test -f "$dir/lib$name.la"; then
9041 found_la="$dir/lib$name.la"
9042 fi
9043 fi
9044 fi
9045 ;;
9046 esac
9047 if test "X$found_dir" != "X"; then
9048 break
9049 fi
9050 done
9051 fi
9052 if test "X$found_dir" != "X"; then
9053 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9054 if test "X$found_so" != "X"; then
9055 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9056 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9057 else
9058 haveit=
9059 for x in $ltrpathdirs; do
9060 if test "X$x" = "X$found_dir"; then
9061 haveit=yes
9062 break
9063 fi
9064 done
9065 if test -z "$haveit"; then
9066 ltrpathdirs="$ltrpathdirs $found_dir"
9067 fi
9068 if test "$hardcode_direct" = yes; then
9069 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9070 else
9071 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9072 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9073 haveit=
9074 for x in $rpathdirs; do
9075 if test "X$x" = "X$found_dir"; then
9076 haveit=yes
9077 break
9078 fi
9079 done
9080 if test -z "$haveit"; then
9081 rpathdirs="$rpathdirs $found_dir"
9082 fi
9083 else
9084 haveit=
9085 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009086
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009087 acl_save_prefix="$prefix"
9088 prefix="$acl_final_prefix"
9089 acl_save_exec_prefix="$exec_prefix"
9090 exec_prefix="$acl_final_exec_prefix"
9091 eval x=\"$x\"
9092 exec_prefix="$acl_save_exec_prefix"
9093 prefix="$acl_save_prefix"
9094
9095 if test "X$x" = "X-L$found_dir"; then
9096 haveit=yes
9097 break
9098 fi
9099 done
9100 if test -z "$haveit"; then
9101 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9102 fi
9103 if test "$hardcode_minus_L" != no; then
9104 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9105 else
9106 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9107 fi
9108 fi
9109 fi
9110 fi
9111 else
9112 if test "X$found_a" != "X"; then
9113 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9114 else
9115 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9116 fi
9117 fi
9118 additional_includedir=
9119 case "$found_dir" in
9120 */lib | */lib/)
9121 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9122 additional_includedir="$basedir/include"
9123 ;;
9124 esac
9125 if test "X$additional_includedir" != "X"; then
9126 if test "X$additional_includedir" != "X/usr/include"; then
9127 haveit=
9128 if test "X$additional_includedir" = "X/usr/local/include"; then
9129 if test -n "$GCC"; then
9130 case $host_os in
9131 linux*) haveit=yes;;
9132 esac
9133 fi
9134 fi
9135 if test -z "$haveit"; then
9136 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009137
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009138 acl_save_prefix="$prefix"
9139 prefix="$acl_final_prefix"
9140 acl_save_exec_prefix="$exec_prefix"
9141 exec_prefix="$acl_final_exec_prefix"
9142 eval x=\"$x\"
9143 exec_prefix="$acl_save_exec_prefix"
9144 prefix="$acl_save_prefix"
9145
9146 if test "X$x" = "X-I$additional_includedir"; then
9147 haveit=yes
9148 break
9149 fi
9150 done
9151 if test -z "$haveit"; then
9152 if test -d "$additional_includedir"; then
9153 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9154 fi
9155 fi
9156 fi
9157 fi
9158 fi
9159 if test -n "$found_la"; then
9160 save_libdir="$libdir"
9161 case "$found_la" in
9162 */* | *\\*) . "$found_la" ;;
9163 *) . "./$found_la" ;;
9164 esac
9165 libdir="$save_libdir"
9166 for dep in $dependency_libs; do
9167 case "$dep" in
9168 -L*)
9169 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9170 if test "X$additional_libdir" != "X/usr/lib"; then
9171 haveit=
9172 if test "X$additional_libdir" = "X/usr/local/lib"; then
9173 if test -n "$GCC"; then
9174 case $host_os in
9175 linux*) haveit=yes;;
9176 esac
9177 fi
9178 fi
9179 if test -z "$haveit"; then
9180 haveit=
9181 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009182
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009183 acl_save_prefix="$prefix"
9184 prefix="$acl_final_prefix"
9185 acl_save_exec_prefix="$exec_prefix"
9186 exec_prefix="$acl_final_exec_prefix"
9187 eval x=\"$x\"
9188 exec_prefix="$acl_save_exec_prefix"
9189 prefix="$acl_save_prefix"
9190
9191 if test "X$x" = "X-L$additional_libdir"; then
9192 haveit=yes
9193 break
9194 fi
9195 done
9196 if test -z "$haveit"; then
9197 if test -d "$additional_libdir"; then
9198 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9199 fi
9200 fi
9201 haveit=
9202 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009203
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009204 acl_save_prefix="$prefix"
9205 prefix="$acl_final_prefix"
9206 acl_save_exec_prefix="$exec_prefix"
9207 exec_prefix="$acl_final_exec_prefix"
9208 eval x=\"$x\"
9209 exec_prefix="$acl_save_exec_prefix"
9210 prefix="$acl_save_prefix"
9211
9212 if test "X$x" = "X-L$additional_libdir"; then
9213 haveit=yes
9214 break
9215 fi
9216 done
9217 if test -z "$haveit"; then
9218 if test -d "$additional_libdir"; then
9219 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9220 fi
9221 fi
9222 fi
9223 fi
9224 ;;
9225 -R*)
9226 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9227 if test "$enable_rpath" != no; then
9228 haveit=
9229 for x in $rpathdirs; do
9230 if test "X$x" = "X$dir"; then
9231 haveit=yes
9232 break
9233 fi
9234 done
9235 if test -z "$haveit"; then
9236 rpathdirs="$rpathdirs $dir"
9237 fi
9238 haveit=
9239 for x in $ltrpathdirs; do
9240 if test "X$x" = "X$dir"; then
9241 haveit=yes
9242 break
9243 fi
9244 done
9245 if test -z "$haveit"; then
9246 ltrpathdirs="$ltrpathdirs $dir"
9247 fi
9248 fi
9249 ;;
9250 -l*)
9251 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9252 ;;
9253 *.la)
9254 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9255 ;;
9256 *)
9257 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9258 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9259 ;;
9260 esac
9261 done
9262 fi
9263 else
9264 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9265 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9266 fi
9267 fi
9268 fi
9269 done
9270 done
9271 if test "X$rpathdirs" != "X"; then
9272 if test -n "$hardcode_libdir_separator"; then
9273 alldirs=
9274 for found_dir in $rpathdirs; do
9275 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9276 done
9277 acl_save_libdir="$libdir"
9278 libdir="$alldirs"
9279 eval flag=\"$hardcode_libdir_flag_spec\"
9280 libdir="$acl_save_libdir"
9281 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9282 else
9283 for found_dir in $rpathdirs; do
9284 acl_save_libdir="$libdir"
9285 libdir="$found_dir"
9286 eval flag=\"$hardcode_libdir_flag_spec\"
9287 libdir="$acl_save_libdir"
9288 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9289 done
9290 fi
9291 fi
9292 if test "X$ltrpathdirs" != "X"; then
9293 for found_dir in $ltrpathdirs; do
9294 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9295 done
9296 fi
9297
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009299$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009300if ${gt_cv_func_gnugettext1_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009301 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009302else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009303 gt_save_CPPFLAGS="$CPPFLAGS"
9304 CPPFLAGS="$CPPFLAGS $INCINTL"
9305 gt_save_LIBS="$LIBS"
9306 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009308/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009309#include <libintl.h>
9310extern int _nl_msg_cat_cntr;
9311extern
9312#ifdef __cplusplus
9313"C"
9314#endif
9315const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009316int
9317main ()
9318{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009319bindtextdomain ("", "");
9320return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009321 ;
9322 return 0;
9323}
9324_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009325if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009326 gt_cv_func_gnugettext1_libintl=yes
9327else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009328 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009329fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009330rm -f core conftest.err conftest.$ac_objext \
9331 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009332 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9333 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009335/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009336#include <libintl.h>
9337extern int _nl_msg_cat_cntr;
9338extern
9339#ifdef __cplusplus
9340"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009341#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009342const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009343int
9344main ()
9345{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009346bindtextdomain ("", "");
9347return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009348 ;
9349 return 0;
9350}
9351_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009352if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009353 LIBINTL="$LIBINTL $LIBICONV"
9354 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9355 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009356
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009357fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009358rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009360 fi
9361 CPPFLAGS="$gt_save_CPPFLAGS"
9362 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009363fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009365$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009366 fi
9367
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009368 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9369 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009370 && test "$PACKAGE" != gettext-runtime \
9371 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009372 gt_use_preinstalled_gnugettext=yes
9373 else
9374 LIBINTL=
9375 LTLIBINTL=
9376 INCINTL=
9377 fi
9378
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009379
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009380 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9381 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009382 fi
9383 fi
9384
9385 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009386 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009387 USE_INCLUDED_LIBINTL=yes
9388 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9389 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9390 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009391 fi
9392
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009393 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9394 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9395 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009396 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009397
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009398
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009399 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9400 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009401
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009402$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009403
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009404 else
9405 USE_NLS=no
9406 fi
9407 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009408
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009410$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009412$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009413 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009415$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009416 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9417 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9418 gt_source="external libintl"
9419 else
9420 gt_source="libc"
9421 fi
9422 else
9423 gt_source="included intl directory"
9424 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009426$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009427 fi
9428
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009429 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009430
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009431 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9432 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009434$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009436$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009437
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009438 for element in $INCINTL; do
9439 haveit=
9440 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009441
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009442 acl_save_prefix="$prefix"
9443 prefix="$acl_final_prefix"
9444 acl_save_exec_prefix="$exec_prefix"
9445 exec_prefix="$acl_final_exec_prefix"
9446 eval x=\"$x\"
9447 exec_prefix="$acl_save_exec_prefix"
9448 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009449
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009450 if test "X$x" = "X$element"; then
9451 haveit=yes
9452 break
9453 fi
9454 done
9455 if test -z "$haveit"; then
9456 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9457 fi
9458 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009459
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009460 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009461
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009462
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009463$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009464
9465
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009466$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009467
9468 fi
9469
9470 POSUB=po
9471 fi
9472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009473
9474 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009475 BUILD_INCLUDED_LIBINTL=yes
9476 fi
9477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009478
9479
9480
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009481
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009482 nls_cv_header_intl=
9483 nls_cv_header_libgt=
9484
9485 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009486
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009487
9488 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009489
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009490
9491 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009492
9493
9494 if test "$USE_INCLUDED_LIBINTL" = yes; then
9495 INTLOBJS="\$(GETTOBJS)"
9496 fi
9497
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009498
9499 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009500
9501
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009502
9503 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009504
9505
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009506
9507
9508
9509
9510
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009512$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9513set x ${MAKE-make}
9514ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009515if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009516 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009517else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009518 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009519SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009520all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009521 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009522_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009523# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009524case `${MAKE-make} -f conftest.make 2>/dev/null` in
9525 *@@@%%%=?*=@@@%%%*)
9526 eval ac_cv_prog_make_${ac_make}_set=yes;;
9527 *)
9528 eval ac_cv_prog_make_${ac_make}_set=no;;
9529esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009530rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009531fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009532if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009534$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009535 SET_MAKE=
9536else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009538$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009539 SET_MAKE="MAKE=${MAKE-make}"
9540fi
9541
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009543$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009544if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009545 $as_echo_n "(cached) " >&6
9546else
9547 _cv_gnu_make_command='' ;
9548 for a in "$MAKE" make gmake gnumake ; do
9549 if test -z "$a" ; then continue ; fi ;
9550 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9551 _cv_gnu_make_command=$a ;
9552 break;
9553 fi
9554 done ;
9555
9556fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009558$as_echo "$_cv_gnu_make_command" >&6; } ;
9559 if test "x$_cv_gnu_make_command" != "x" ; then
9560 ifGNUmake='' ;
9561 ifNotGNUmake='#' ;
9562 else
9563 ifGNUmake='#' ;
9564 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009566$as_echo "\"Not found\"" >&6; };
9567 fi
9568
9569
9570
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009571# Extract the first word of "ln", so it can be a program name with args.
9572set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009574$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009575if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009576 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009577else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009578 case $LN in
9579 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009580 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9581 ;;
9582 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584for as_dir in $PATH
9585do
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009588 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009590 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009592 break 2
9593 fi
9594done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009595 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009596IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009597
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009598 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9599 ;;
9600esac
9601fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009602LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009603if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009605$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009606else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009608$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009609fi
9610
Theodore Ts'oe1052142006-10-21 21:46:47 -04009611
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009613$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009614LN_S=$as_ln_s
9615if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009617$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009618else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009620$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009621fi
9622
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009623# Extract the first word of "mv", so it can be a program name with args.
9624set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009626$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009627if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009628 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009629else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009630 case $MV in
9631 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009632 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9633 ;;
9634 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $PATH
9637do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009640 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009642 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009644 break 2
9645 fi
9646done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009647 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009648IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009649
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009650 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9651 ;;
9652esac
9653fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009654MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009655if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009657$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009658else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009660$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009661fi
9662
Theodore Ts'oe1052142006-10-21 21:46:47 -04009663
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009664# Extract the first word of "cp", so it can be a program name with args.
9665set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009667$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009668if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009669 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009670else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009671 case $CP in
9672 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009673 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9674 ;;
9675 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677for as_dir in $PATH
9678do
9679 IFS=$as_save_IFS
9680 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009681 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009683 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009685 break 2
9686 fi
9687done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009688 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009689IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009690
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009691 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9692 ;;
9693esac
9694fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009695CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009696if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009698$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009699else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009701$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009702fi
9703
Theodore Ts'oe1052142006-10-21 21:46:47 -04009704
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009705# Extract the first word of "rm", so it can be a program name with args.
9706set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009708$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009709if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009710 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009711else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009712 case $RM in
9713 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009714 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9715 ;;
9716 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718for as_dir in $PATH
9719do
9720 IFS=$as_save_IFS
9721 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009722 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009724 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009726 break 2
9727 fi
9728done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009729 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009730IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009731
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009732 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9733 ;;
9734esac
9735fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009736RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009737if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009739$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009740else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009742$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009743fi
9744
Theodore Ts'oe1052142006-10-21 21:46:47 -04009745
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009746# Extract the first word of "chmod", so it can be a program name with args.
9747set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009749$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009750if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009751 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009752else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009753 case $CHMOD in
9754 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009755 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9756 ;;
9757 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759for as_dir in $PATH
9760do
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009763 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009765 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009767 break 2
9768 fi
9769done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009770 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009771IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009772
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009773 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9774 ;;
9775esac
9776fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009777CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009778if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009780$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009781else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009783$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009784fi
9785
Theodore Ts'oe1052142006-10-21 21:46:47 -04009786
Theodore Ts'o32237012005-01-17 19:13:39 -05009787for ac_prog in gawk mawk nawk awk
9788do
9789 # Extract the first word of "$ac_prog", so it can be a program name with args.
9790set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009792$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009793if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009794 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009795else
Theodore Ts'o32237012005-01-17 19:13:39 -05009796 if test -n "$AWK"; then
9797 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9798else
9799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009800for as_dir in $PATH
9801do
9802 IFS=$as_save_IFS
9803 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009804 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -05009806 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009808 break 2
9809 fi
9810done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009811 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009812IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009813
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009814fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009815fi
9816AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009817if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009819$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009820else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009822$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009823fi
9824
Theodore Ts'oe1052142006-10-21 21:46:47 -04009825
Theodore Ts'o32237012005-01-17 19:13:39 -05009826 test -n "$AWK" && break
9827done
9828
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009830$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009831if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009832 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009833else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009834 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9835 then ac_cv_path_EGREP="$GREP -E"
9836 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009837 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009838 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009839 # Loop through the user's path and test for each of PROGNAME-LIST
9840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009841for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9842do
9843 IFS=$as_save_IFS
9844 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009845 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009848 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009849# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009850 # Check for GNU $ac_path_EGREP
9851case `"$ac_path_EGREP" --version 2>&1` in
9852*GNU*)
9853 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9854*)
9855 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009856 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009857 while :
9858 do
9859 cat "conftest.in" "conftest.in" >"conftest.tmp"
9860 mv "conftest.tmp" "conftest.in"
9861 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009862 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009863 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009865 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009866 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9867 # Best one so far, save it but keep looking for a better one
9868 ac_cv_path_EGREP="$ac_path_EGREP"
9869 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009870 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009871 # 10*(2^10) chars as input seems more than enough
9872 test $ac_count -gt 10 && break
9873 done
9874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9875esac
9876
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009877 $ac_path_EGREP_found && break 3
9878 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009879 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009880 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009881IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009882 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009883 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 +01009884 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009885else
9886 ac_cv_path_EGREP=$EGREP
9887fi
9888
Theodore Ts'oe1052142006-10-21 21:46:47 -04009889 fi
9890fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009892$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009893 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009894
9895
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009896# Extract the first word of "sed", so it can be a program name with args.
9897set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009899$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009900if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009901 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009902else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009903 case $SED in
9904 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009905 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9906 ;;
9907 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909for as_dir in $PATH
9910do
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009913 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009915 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009917 break 2
9918 fi
9919done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009920 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009921IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009922
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009923 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9924 ;;
9925esac
9926fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009927SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009928if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009930$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009931else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009933$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009934fi
9935
Theodore Ts'oe1052142006-10-21 21:46:47 -04009936
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009937# Extract the first word of "perl", so it can be a program name with args.
9938set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009940$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009941if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009942 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009943else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009944 case $PERL in
9945 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009946 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9947 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009948 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950for as_dir in $PATH
9951do
9952 IFS=$as_save_IFS
9953 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009954 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009956 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009958 break 2
9959 fi
9960done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009961 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009962IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009963
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009964 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9965 ;;
9966esac
9967fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009968PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009969if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009971$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009972else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009974$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009975fi
9976
Theodore Ts'oe1052142006-10-21 21:46:47 -04009977
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009978# Extract the first word of "ldconfig", so it can be a program name with args.
9979set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009981$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009982if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009983 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009984else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009985 case $LDCONFIG in
9986 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009987 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9988 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009989 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991for as_dir in $PATH
9992do
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009995 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009997 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009999 break 2
10000 fi
10001done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010002 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010003IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010005 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10006 ;;
10007esac
10008fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010009LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010010if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010012$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010013else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010015$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010016fi
10017
Theodore Ts'oe1052142006-10-21 21:46:47 -040010018
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010019if test -n "$ac_tool_prefix"; then
10020 # 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 +000010021set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010023$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010024if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010025 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010026else
10027 if test -n "$AR"; then
10028 ac_cv_prog_AR="$AR" # Let the user override the test.
10029else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031for as_dir in $PATH
10032do
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010035 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010037 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010039 break 2
10040 fi
10041done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010042 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010043IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010044
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010045fi
10046fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010047AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010048if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010050$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010051else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010053$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010054fi
10055
Theodore Ts'oe1052142006-10-21 21:46:47 -040010056
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010057fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010058if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010059 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010060 # Extract the first word of "ar", so it can be a program name with args.
10061set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010063$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010064if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010065 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010066else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010067 if test -n "$ac_ct_AR"; then
10068 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010069else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071for as_dir in $PATH
10072do
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010075 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010077 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010079 break 2
10080 fi
10081done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010082 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010083IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010084
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010085fi
10086fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010087ac_ct_AR=$ac_cv_prog_ac_ct_AR
10088if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010090$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010091else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010093$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010094fi
10095
Theodore Ts'oe1052142006-10-21 21:46:47 -040010096 if test "x$ac_ct_AR" = x; then
10097 AR="ar"
10098 else
10099 case $cross_compiling:$ac_tool_warned in
10100yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010101{ $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 +010010102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010103ac_tool_warned=yes ;;
10104esac
10105 AR=$ac_ct_AR
10106 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010107else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010108 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010109fi
10110
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010111if test -n "$ac_tool_prefix"; then
10112 # 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 +000010113set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010115$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010116if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010117 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010118else
10119 if test -n "$RANLIB"; then
10120 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10121else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123for as_dir in $PATH
10124do
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010127 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010129 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010131 break 2
10132 fi
10133done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010134 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010135IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010136
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010137fi
10138fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010139RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010140if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010142$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010143else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010145$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010146fi
10147
Theodore Ts'oe1052142006-10-21 21:46:47 -040010148
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010149fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010150if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010151 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010152 # Extract the first word of "ranlib", so it can be a program name with args.
10153set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010155$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010156if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010157 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010158else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010159 if test -n "$ac_ct_RANLIB"; then
10160 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010161else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10163for as_dir in $PATH
10164do
10165 IFS=$as_save_IFS
10166 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010167 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010169 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010171 break 2
10172 fi
10173done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010174 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010175IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010176
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010177fi
10178fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010179ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10180if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010182$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010183else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010185$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010186fi
10187
Theodore Ts'oe1052142006-10-21 21:46:47 -040010188 if test "x$ac_ct_RANLIB" = x; then
10189 RANLIB=":"
10190 else
10191 case $cross_compiling:$ac_tool_warned in
10192yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010193{ $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 +010010194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010195ac_tool_warned=yes ;;
10196esac
10197 RANLIB=$ac_ct_RANLIB
10198 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010199else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010200 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010201fi
10202
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010203if test -n "$ac_tool_prefix"; then
10204 # 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 +000010205set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010207$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010208if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010209 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010210else
10211 if test -n "$STRIP"; then
10212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10213else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215for as_dir in $PATH
10216do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010219 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010221 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010223 break 2
10224 fi
10225done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010226 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010227IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010228
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010229fi
10230fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010231STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010232if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010234$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010235else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010237$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010238fi
10239
Theodore Ts'oe1052142006-10-21 21:46:47 -040010240
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010241fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010242if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010243 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010244 # Extract the first word of "strip", so it can be a program name with args.
10245set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010247$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010248if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010249 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010250else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010251 if test -n "$ac_ct_STRIP"; then
10252 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010253else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255for as_dir in $PATH
10256do
10257 IFS=$as_save_IFS
10258 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010259 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010261 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010263 break 2
10264 fi
10265done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010266 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010267IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010268
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010269fi
10270fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010271ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10272if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010274$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010275else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010277$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010278fi
10279
Theodore Ts'oe1052142006-10-21 21:46:47 -040010280 if test "x$ac_ct_STRIP" = x; then
10281 STRIP=":"
10282 else
10283 case $cross_compiling:$ac_tool_warned in
10284yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010285{ $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 +010010286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010287ac_tool_warned=yes ;;
10288esac
10289 STRIP=$ac_ct_STRIP
10290 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010291else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010292 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010293fi
10294
Manish Katiyar7321d942008-04-14 17:20:03 +053010295# Extract the first word of "makeinfo", so it can be a program name with args.
10296set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010298$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010299if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010300 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010301else
10302 if test -n "$MAKEINFO"; then
10303 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10304else
10305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306for as_dir in $PATH
10307do
10308 IFS=$as_save_IFS
10309 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010310 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053010312 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010314 break 2
10315 fi
10316done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010317 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010318IFS=$as_save_IFS
10319
10320fi
10321fi
10322MAKEINFO=$ac_cv_prog_MAKEINFO
10323if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010325$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010326else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010328$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010329fi
10330
10331
10332if test "_$MAKEINFO" = "_"; then
10333 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10334else
10335 case "$MAKEINFO" in
10336 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010338*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010339$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010340*** Makeinfo is missing. Info documentation will not be built." >&2;}
10341 ;;
10342 *)
10343 ;;
10344 esac
10345fi
10346
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010347
Theodore Ts'o6c133521999-07-03 20:37:03 +000010348# See if we need a separate native compiler.
10349if test $cross_compiling = no; then
10350 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010351
Theodore Ts'o6c133521999-07-03 20:37:03 +000010352else
10353 for ac_prog in gcc cc
10354do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010355 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010356set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010358$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010359if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010360 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010361else
10362 if test -n "$BUILD_CC"; then
10363 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10364else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010367do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010370 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010372 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010374 break 2
10375 fi
10376done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010377 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010378IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010379
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010380fi
10381fi
10382BUILD_CC=$ac_cv_prog_BUILD_CC
10383if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010385$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010386else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010388$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010389fi
10390
Theodore Ts'oe1052142006-10-21 21:46:47 -040010391
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010392 test -n "$BUILD_CC" && break
10393done
10394
10395fi
Mike Frysinger677fc912012-03-06 20:13:54 -050010396for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010397do :
10398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10399ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010400if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010401 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010402#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010403_ACEOF
10404
10405fi
10406
10407done
10408
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010409for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010410do :
10411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10412ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010413#if HAVE_SYS_QUEUE_H
10414#include <sys/queue.h>
10415#endif
10416
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010417"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010418if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010419 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010420#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010421_ACEOF
10422
10423fi
10424
10425done
10426
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010427for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010428do :
10429 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010430#if HAVE_SYS_TYPES_H
10431#include <sys/types.h>
10432#endif
10433#if HAVE_SYS_SOCKET
10434#include <sys/socket.h>
10435#endif
10436
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010437"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010438if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010439 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010440#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010441_ACEOF
10442
10443fi
10444
10445done
10446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010447for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010448do :
10449 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010450if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010451 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010452#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010453_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010454
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010455ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010456if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010457
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010458$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010459
10460fi
10461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010462fi
10463done
10464
10465
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010466ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10467"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010468if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010469
10470$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010471
10472fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010473
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010474ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10475"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010476if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010477
10478$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010479
Theodore Ts'offf45482003-04-13 00:44:19 -040010480fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010481
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010482ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10483"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010484if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010485
10486$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010487
10488fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010489
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010490ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010491 #define _LARGEFILE64_SOURCE
10492 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010493"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010494if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010495
10496$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010497
10498fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010499
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010500# The cast to long int works around a bug in the HP C Compiler
10501# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10502# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10503# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010505$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010506if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010507 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010509 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 -050010510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010511else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010512 if test "$ac_cv_type_short" = yes; then
10513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010515as_fn_error 77 "cannot compute sizeof (short)
10516See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010517 else
10518 ac_cv_sizeof_short=0
10519 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010520fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010522fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010524$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010525
10526
10527
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010528cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010529#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010530_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010531
10532
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010533# The cast to long int works around a bug in the HP C Compiler
10534# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10535# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10536# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010538$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010539if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010540 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010542 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 -050010543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010544else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010545 if test "$ac_cv_type_int" = yes; then
10546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010548as_fn_error 77 "cannot compute sizeof (int)
10549See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010550 else
10551 ac_cv_sizeof_int=0
10552 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010553fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010555fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010557$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010558
10559
10560
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010561cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010562#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010563_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010564
10565
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010566# The cast to long int works around a bug in the HP C Compiler
10567# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10568# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10569# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010571$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010572if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010573 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010574else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010575 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 -050010576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010577else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010578 if test "$ac_cv_type_long" = yes; then
10579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010581as_fn_error 77 "cannot compute sizeof (long)
10582See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010583 else
10584 ac_cv_sizeof_long=0
10585 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010586fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010588fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010590$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010591
10592
10593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010594cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010595#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010596_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010597
10598
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010599# The cast to long int works around a bug in the HP C Compiler
10600# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10601# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10602# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010604$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010605if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010606 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010607else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010608 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 -050010609
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010610else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010611 if test "$ac_cv_type_long_long" = yes; then
10612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010614as_fn_error 77 "cannot compute sizeof (long long)
10615See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010616 else
10617 ac_cv_sizeof_long_long=0
10618 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010619fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010620
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010621fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010623$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010624
10625
10626
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010627cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010628#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010629_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010630
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010631
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010632SIZEOF_SHORT=$ac_cv_sizeof_short
10633SIZEOF_INT=$ac_cv_sizeof_int
10634SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010635SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10636
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010637
10638
10639
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010641$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010642if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010643 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010644else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010645 ac_cv_c_bigendian=unknown
10646 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010648/* end confdefs.h. */
10649#ifndef __APPLE_CC__
10650 not a universal capable compiler
10651 #endif
10652 typedef int dummy;
10653
10654_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010655if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010656
10657 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010658 # there are at least two -arch flags with different values.
10659 ac_arch=
10660 ac_prev=
10661 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10662 if test -n "$ac_prev"; then
10663 case $ac_word in
10664 i?86 | x86_64 | ppc | ppc64)
10665 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10666 ac_arch=$ac_word
10667 else
10668 ac_cv_c_bigendian=universal
10669 break
10670 fi
10671 ;;
10672 esac
10673 ac_prev=
10674 elif test "x$ac_word" = "x-arch"; then
10675 ac_prev=arch
10676 fi
10677 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010678fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10680 if test $ac_cv_c_bigendian = unknown; then
10681 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010683/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010684#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010685 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010686
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010687int
10688main ()
10689{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010690#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10691 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10692 && LITTLE_ENDIAN)
10693 bogus endian macros
10694 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010695
10696 ;
10697 return 0;
10698}
10699_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010700if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010701 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010703/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010704#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010705 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010706
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010707int
10708main ()
10709{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010710#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010711 not big endian
10712 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010713
10714 ;
10715 return 0;
10716}
10717_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010718if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010719 ac_cv_c_bigendian=yes
10720else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010721 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010722fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010724fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726 fi
10727 if test $ac_cv_c_bigendian = unknown; then
10728 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010731#include <limits.h>
10732
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010733int
10734main ()
10735{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010736#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10737 bogus endian macros
10738 #endif
10739
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010740 ;
10741 return 0;
10742}
10743_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010744if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010745 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010747/* end confdefs.h. */
10748#include <limits.h>
10749
10750int
10751main ()
10752{
10753#ifndef _BIG_ENDIAN
10754 not big endian
10755 #endif
10756
10757 ;
10758 return 0;
10759}
10760_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010761if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010762 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010763else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010764 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010765fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010767fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 fi
10770 if test $ac_cv_c_bigendian = unknown; then
10771 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010772 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010773 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010775/* end confdefs.h. */
10776short int ascii_mm[] =
10777 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10778 short int ascii_ii[] =
10779 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10780 int use_ascii (int i) {
10781 return ascii_mm[i] + ascii_ii[i];
10782 }
10783 short int ebcdic_ii[] =
10784 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10785 short int ebcdic_mm[] =
10786 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10787 int use_ebcdic (int i) {
10788 return ebcdic_mm[i] + ebcdic_ii[i];
10789 }
10790 extern int foo;
10791
10792int
10793main ()
10794{
10795return use_ascii (foo) == use_ebcdic (foo);
10796 ;
10797 return 0;
10798}
10799_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010800if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010801 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10802 ac_cv_c_bigendian=yes
10803 fi
10804 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10805 if test "$ac_cv_c_bigendian" = unknown; then
10806 ac_cv_c_bigendian=no
10807 else
10808 # finding both strings is unlikely to happen, but who knows?
10809 ac_cv_c_bigendian=unknown
10810 fi
10811 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010812fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010814else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010816/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010817$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010818int
10819main ()
10820{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010821
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010822 /* Are we little or big endian? From Harbison&Steele. */
10823 union
10824 {
10825 long int l;
10826 char c[sizeof (long int)];
10827 } u;
10828 u.l = 1;
10829 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010830
10831 ;
10832 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010833}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010834_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010835if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010836 ac_cv_c_bigendian=no
10837else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010838 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010839fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10841 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010842fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010843
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010844 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010845fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010847$as_echo "$ac_cv_c_bigendian" >&6; }
10848 case $ac_cv_c_bigendian in #(
10849 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010850 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010851;; #(
10852 no)
10853 ;; #(
10854 universal)
10855
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010856$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010857
10858 ;; #(
10859 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010860 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010861 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010862 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010863
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010864BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010865ASM_TYPES_HEADER=./asm_types.h
10866
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010867echo "/* These defines are needed for the public ext2fs.h header file */" \
10868 > public_config.h
10869if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10870 uniq tmp_config.$$ >> public_config.h
10871else
10872 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10873fi
10874if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10875 uniq tmp_config.$$ >> public_config.h
10876else
10877 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10878fi
10879rm -f tmp_config.$$
10880PUBLIC_CONFIG_HEADER=./public_config.h
10881
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010882for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010883do :
10884 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010885if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010886 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010887#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010888_ACEOF
10889
10890fi
10891
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010892done
10893
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010894ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010895if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010896
10897cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010898#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010899_ACEOF
10900
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010901
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010902fi
10903
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010904{ $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 +010010905$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010906if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010907 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010908else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010910/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010911#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010912int
10913main ()
10914{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010915struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010916 ;
10917 return 0;
10918}
10919_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010920if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010921 e2fsprogs_cv_struct_st_flags=yes
10922else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010923 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010924fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10926fi
10927
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010929$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010930if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010932$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010933 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010934 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010935else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010937/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010938#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010939int
10940main ()
10941{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010942struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010943 ;
10944 return 0;
10945}
10946_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010947if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010948 e2fsprogs_cv_struct_st_flags_immut=yes
10949else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010950 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010951fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10953fi
10954
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010956$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010957 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010958
10959$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010960
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010961 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010962fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010963ac_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 -050010964 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010965"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010966if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010967
10968cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010969#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010970_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010971
10972fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010973
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010974if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010976$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100010977if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010978 $as_echo_n "(cached) " >&6
10979else
10980 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010982/* end confdefs.h. */
10983
10984/* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10987#ifdef __cplusplus
10988extern "C"
10989#endif
10990char blkid_probe_all ();
10991int
10992main ()
10993{
10994return blkid_probe_all ();
10995 ;
10996 return 0;
10997}
10998_ACEOF
10999for ac_lib in '' blkid; do
11000 if test -z "$ac_lib"; then
11001 ac_res="none required"
11002 else
11003 ac_res=-l$ac_lib
11004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11005 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011006 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011007 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011008fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011009rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011011 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011012 break
11013fi
11014done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011015if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011016
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011017else
11018 ac_cv_search_blkid_probe_all=no
11019fi
11020rm conftest.$ac_ext
11021LIBS=$ac_func_search_save_LIBS
11022fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011024$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11025ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011026if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11028
11029fi
11030
11031fi
Theodore Ts'o3b802e42012-05-28 10:38:06 -040011032for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011033do :
11034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11035ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011036if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011037 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011038#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011039_ACEOF
11040
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011041fi
11042done
11043
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011044SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011046$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011047if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011048 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011049else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011050 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011051LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011053/* end confdefs.h. */
11054
Theodore Ts'oe1052142006-10-21 21:46:47 -040011055/* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011058#ifdef __cplusplus
11059extern "C"
11060#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011061char socket ();
11062int
11063main ()
11064{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011065return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011066 ;
11067 return 0;
11068}
11069_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011070if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011071 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011072else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011073 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011074fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011075rm -f core conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011077LIBS=$ac_check_lib_save_LIBS
11078fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011080$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011081if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011082 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011083fi
11084
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011085
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011087$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011088if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011089 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011090else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011092/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011093#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011094
11095_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011097 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011098 ac_cv_have_optreset=yes
11099else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011100 ac_cv_have_optreset=no
11101fi
11102rm -f conftest*
11103
11104fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011106$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011107if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011108
11109$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011110
11111fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011112
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011113SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011114ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011115if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011116
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011117else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011119$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011120if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011121 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011122else
11123 ac_check_lib_save_LIBS=$LIBS
11124LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011126/* end confdefs.h. */
11127
11128/* Override any GCC internal prototype to avoid an error.
11129 Use char because int might match the return type of a GCC
11130 builtin and then its argument prototype would still apply. */
11131#ifdef __cplusplus
11132extern "C"
11133#endif
11134char sem_init ();
11135int
11136main ()
11137{
11138return sem_init ();
11139 ;
11140 return 0;
11141}
11142_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011143if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011144 ac_cv_lib_pthread_sem_init=yes
11145else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011146 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011147fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011148rm -f core conftest.err conftest.$ac_objext \
11149 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011150LIBS=$ac_check_lib_save_LIBS
11151fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011153$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011154if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011155 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011156
11157 SEM_INIT_LIB=-lpthread
11158else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011160$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011161if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011162 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011163else
11164 ac_check_lib_save_LIBS=$LIBS
11165LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011167/* end confdefs.h. */
11168
11169/* Override any GCC internal prototype to avoid an error.
11170 Use char because int might match the return type of a GCC
11171 builtin and then its argument prototype would still apply. */
11172#ifdef __cplusplus
11173extern "C"
11174#endif
11175char sem_init ();
11176int
11177main ()
11178{
11179return sem_init ();
11180 ;
11181 return 0;
11182}
11183_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011184if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011185 ac_cv_lib_rt_sem_init=yes
11186else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011187 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011188fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011189rm -f core conftest.err conftest.$ac_objext \
11190 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011191LIBS=$ac_check_lib_save_LIBS
11192fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011194$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011195if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011196 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011197
11198 SEM_INIT_LIB=-lrt
11199else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011201$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011202if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011203 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011204else
11205 ac_check_lib_save_LIBS=$LIBS
11206LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011208/* end confdefs.h. */
11209
11210/* Override any GCC internal prototype to avoid an error.
11211 Use char because int might match the return type of a GCC
11212 builtin and then its argument prototype would still apply. */
11213#ifdef __cplusplus
11214extern "C"
11215#endif
11216char sem_init ();
11217int
11218main ()
11219{
11220return sem_init ();
11221 ;
11222 return 0;
11223}
11224_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011225if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011226 ac_cv_lib_posix4_sem_init=yes
11227else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011228 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011229fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011230rm -f core conftest.err conftest.$ac_objext \
11231 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011232LIBS=$ac_check_lib_save_LIBS
11233fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011235$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011236if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011237 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011238
11239 SEM_INIT_LIB=-lposix4
11240fi
11241
11242fi
11243
11244fi
11245
11246fi
11247
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011249$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011250if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011251 UNI_DIFF_OPTS=-u
11252else
11253 UNI_DIFF_OPTS=-c
11254fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011256$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011257
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011258case "$host_os" in
11259linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011260
11261$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011262
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011263 ;;
11264esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011265LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011266CYGWIN_CMT="#"
11267UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011268case "$host_os" in
11269linux*)
11270 LINUX_CMT=
11271 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011272cygwin)
11273 CYGWIN_CMT=
11274 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011275 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011276esac
11277
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011278
11279
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011280case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011281linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011282 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11283 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011284 { $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 +010011285$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011286 fi
11287 ;;
11288esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011289case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011290linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011291 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011292 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011293 { $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 +010011294$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011295 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011297$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011298 mandir=/usr/share/man
11299 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011300 fi
11301;;
11302esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011303if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011304 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011305 root_prefix="$ac_default_prefix"
11306 else
11307 root_prefix="$prefix"
11308 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011309 root_bindir=$bindir
11310 root_sbindir=$sbindir
11311 root_libdir=$libdir
11312 root_sysconfdir=$sysconfdir
11313else
11314 root_bindir='${root_prefix}/bin'
11315 root_sbindir='${root_prefix}/sbin'
11316 root_libdir='${root_prefix}/lib'
11317 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011318fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011319if test "$bindir" != '${exec_prefix}/bin'; then
11320 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011322$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011323fi
11324if test "$sbindir" != '${exec_prefix}/sbin'; then
11325 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011327$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011328fi
11329if test "$libdir" != '${exec_prefix}/lib'; then
11330 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011332$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011333fi
11334if test "$sysconfdir" != '${prefix}/etc'; then
11335 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011337$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011338fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011339
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011340
11341
11342
11343
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011344
11345# Check whether --with-multiarch was given.
11346if test "${with_multiarch+set}" = set; then :
11347 withval=$with_multiarch; libdir=$libdir/$withval
11348root_libdir=$root_libdir/$withval
11349
11350fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011352$as_echo_n "checking whether linker accepts -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011353if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011354 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011355else
11356 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011358/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011359#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011360int
11361main ()
11362{
Theodore Ts'oae851481997-04-29 18:13:24 +000011363fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011364 ;
11365 return 0;
11366}
11367_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011368if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011369 ac_cv_e2fsprogs_use_static=yes
11370else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011371 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011372fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011373rm -f core conftest.err conftest.$ac_objext \
11374 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011375LDFLAGS=$SAVE_LDFLAGS
11376fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011377
Theodore Ts'odefde781999-01-04 07:39:19 +000011378case "$host_os" in
11379solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011381;;
11382esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011384$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011385LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011386if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011387 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011388fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011389
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011390case "$host_os" in
11391darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011393$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011394
11395$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011396
11397 ;;
11398esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011399SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11400ET_DIR=`cd ${srcdir}/lib/et; pwd`
11401
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011402
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011403if test "$cross_compiling" = yes ; then
11404 DO_TEST_SUITE=
11405else
11406 DO_TEST_SUITE=check
11407fi
11408
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011409INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11410if test -n "$CPPFLAGS" ; then
11411 INCLUDES="$INCLUDES $CPPFLAGS"
11412fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011413if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011414 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011415fi
11416
Theodore Ts'odd947da2005-11-09 18:37:07 -040011417if test $cross_compiling = no; then
Theodore Ts'oc1986ec2012-06-13 15:29:13 -040011418 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040011419 BUILD_LDFLAGS="$LDFLAGS"
11420else
11421 BUILD_CFLAGS=
11422 BUILD_LDFLAGS=
11423fi
11424
11425
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011426test -d lib || mkdir lib
11427test -d include || mkdir include
11428test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011429test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011430for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040011431 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011432 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11433 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011434 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011435 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011436 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11437 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011438 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011439 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011440 resize/Makefile doc/Makefile intl/Makefile \
11441 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011442 if test -d `dirname ${srcdir}/$i` ; then
11443 outlist="$outlist $i"
11444 fi
11445done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011446ac_config_files="$ac_config_files $outlist"
11447
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011448cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011449# This file is a shell script that caches the results of configure
11450# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011451# scripts and configure runs, see configure's option --config-cache.
11452# It is not useful on other systems. If it contains results you don't
11453# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011454#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011455# config.status only pays attention to the cache file if you give it
11456# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011457#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011458# `ac_cv_env_foo' variables (set or unset) will be overridden when
11459# loading this file, other *unset* `ac_cv_foo' will be assigned the
11460# following values.
11461
11462_ACEOF
11463
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011464# The following way of writing the cache mishandles newlines in values,
11465# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011466# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011467# Ultrix sh set writes to stderr and can't be redirected directly,
11468# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011469(
11470 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11471 eval ac_val=\$$ac_var
11472 case $ac_val in #(
11473 *${as_nl}*)
11474 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011475 *_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 +010011476$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011477 esac
11478 case $ac_var in #(
11479 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011481 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011482 esac ;;
11483 esac
11484 done
11485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011486 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011487 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11488 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011489 # `set' does not quote correctly, so add quotes: double-quote
11490 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011491 sed -n \
11492 "s/'/'\\\\''/g;
11493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011494 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011495 *)
11496 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011498 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011499 esac |
11500 sort
11501) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011502 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011503 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011504 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011505 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11507 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11509 :end' >>confcache
11510if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11511 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011512 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011513 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011514$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011515 if test ! -f "$cache_file" || test -h "$cache_file"; then
11516 cat confcache >"$cache_file"
11517 else
11518 case $cache_file in #(
11519 */* | ?:*)
11520 mv -f confcache "$cache_file"$$ &&
11521 mv -f "$cache_file"$$ "$cache_file" ;; #(
11522 *)
11523 mv -f confcache "$cache_file" ;;
11524 esac
11525 fi
11526 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011527 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011528 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011529$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011530 fi
11531fi
11532rm -f confcache
11533
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011534test "x$prefix" = xNONE && prefix=$ac_default_prefix
11535# Let make expand exec_prefix.
11536test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11537
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011538DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011539
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011540ac_libobjs=
11541ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011542U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011543for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11544 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011545 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011546 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011547 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11548 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011549 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11550 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011551done
11552LIBOBJS=$ac_libobjs
11553
11554LTLIBOBJS=$ac_ltlibobjs
11555
11556
11557
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011558
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011559: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011560ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011561ac_clean_files_save=$ac_clean_files
11562ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011563{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011564$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011565as_write_fail=0
11566cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011567#! $SHELL
11568# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011569# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011570# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011573debug=false
11574ac_cs_recheck=false
11575ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011576
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011577SHELL=\${CONFIG_SHELL-$SHELL}
11578export SHELL
11579_ASEOF
11580cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11581## -------------------- ##
11582## M4sh Initialization. ##
11583## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011584
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011585# Be more Bourne compatible
11586DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011587if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011588 emulate sh
11589 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011590 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011591 # is contrary to our usage. Disable this feature.
11592 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011593 setopt NO_GLOB_SUBST
11594else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011595 case `(set -o) 2>/dev/null` in #(
11596 *posix*) :
11597 set -o posix ;; #(
11598 *) :
11599 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011600esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011601fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011602
11603
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011604as_nl='
11605'
11606export as_nl
11607# Printing a long string crashes Solaris 7 /usr/bin/printf.
11608as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11609as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11610as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011611# Prefer a ksh shell builtin over an external printf program on Solaris,
11612# but without wasting forks for bash or zsh.
11613if test -z "$BASH_VERSION$ZSH_VERSION" \
11614 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11615 as_echo='print -r --'
11616 as_echo_n='print -rn --'
11617elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011618 as_echo='printf %s\n'
11619 as_echo_n='printf %s'
11620else
11621 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11622 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11623 as_echo_n='/usr/ucb/echo -n'
11624 else
11625 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11626 as_echo_n_body='eval
11627 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011628 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011629 *"$as_nl"*)
11630 expr "X$arg" : "X\\(.*\\)$as_nl";
11631 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11632 esac;
11633 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11634 '
11635 export as_echo_n_body
11636 as_echo_n='sh -c $as_echo_n_body as_echo'
11637 fi
11638 export as_echo_body
11639 as_echo='sh -c $as_echo_body as_echo'
11640fi
11641
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011642# The user is always right.
11643if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011644 PATH_SEPARATOR=:
11645 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11646 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11647 PATH_SEPARATOR=';'
11648 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011649fi
11650
Theodore Ts'oe1052142006-10-21 21:46:47 -040011651
11652# IFS
11653# We need space, tab and new line, in precisely that order. Quoting is
11654# there to prevent editors from complaining about space-tab.
11655# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11656# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011657IFS=" "" $as_nl"
11658
11659# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011660as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011661case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011662 *[\\/]* ) as_myself=$0 ;;
11663 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011664for as_dir in $PATH
11665do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011668 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11669 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011670IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011671
Theodore Ts'oe1052142006-10-21 21:46:47 -040011672 ;;
11673esac
11674# We did not find ourselves, most probably we were run as `sh COMMAND'
11675# in which case we are not to be found in the path.
11676if test "x$as_myself" = x; then
11677 as_myself=$0
11678fi
11679if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011680 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011681 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011682fi
11683
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011684# Unset variables that we do not need and which cause bugs (e.g. in
11685# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11686# suppresses any "Segmentation fault" message there. '((' could
11687# trigger a bug in pdksh 5.2.14.
11688for as_var in BASH_ENV ENV MAIL MAILPATH
11689do eval test x\${$as_var+set} = xset \
11690 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011691done
11692PS1='$ '
11693PS2='> '
11694PS4='+ '
11695
11696# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011697LC_ALL=C
11698export LC_ALL
11699LANGUAGE=C
11700export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011701
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011702# CDPATH.
11703(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11704
11705
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011706# as_fn_error STATUS ERROR [LINENO LOG_FD]
11707# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011708# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11709# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011710# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011711as_fn_error ()
11712{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011713 as_status=$1; test $as_status -eq 0 && as_status=1
11714 if test "$4"; then
11715 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11716 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011717 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011718 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011719 as_fn_exit $as_status
11720} # as_fn_error
11721
11722
11723# as_fn_set_status STATUS
11724# -----------------------
11725# Set $? to STATUS, without forking.
11726as_fn_set_status ()
11727{
11728 return $1
11729} # as_fn_set_status
11730
11731# as_fn_exit STATUS
11732# -----------------
11733# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11734as_fn_exit ()
11735{
11736 set +e
11737 as_fn_set_status $1
11738 exit $1
11739} # as_fn_exit
11740
11741# as_fn_unset VAR
11742# ---------------
11743# Portably unset VAR.
11744as_fn_unset ()
11745{
11746 { eval $1=; unset $1;}
11747}
11748as_unset=as_fn_unset
11749# as_fn_append VAR VALUE
11750# ----------------------
11751# Append the text in VALUE to the end of the definition contained in VAR. Take
11752# advantage of any shell optimizations that allow amortized linear growth over
11753# repeated appends, instead of the typical quadratic growth present in naive
11754# implementations.
11755if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11756 eval 'as_fn_append ()
11757 {
11758 eval $1+=\$2
11759 }'
11760else
11761 as_fn_append ()
11762 {
11763 eval $1=\$$1\$2
11764 }
11765fi # as_fn_append
11766
11767# as_fn_arith ARG...
11768# ------------------
11769# Perform arithmetic evaluation on the ARGs, and store the result in the
11770# global $as_val. Take advantage of shells that can avoid forks. The arguments
11771# must be portable across $(()) and expr.
11772if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11773 eval 'as_fn_arith ()
11774 {
11775 as_val=$(( $* ))
11776 }'
11777else
11778 as_fn_arith ()
11779 {
11780 as_val=`expr "$@" || test $? -eq 1`
11781 }
11782fi # as_fn_arith
11783
11784
Theodore Ts'oe1052142006-10-21 21:46:47 -040011785if expr a : '\(a\)' >/dev/null 2>&1 &&
11786 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11787 as_expr=expr
11788else
11789 as_expr=false
11790fi
11791
11792if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11793 as_basename=basename
11794else
11795 as_basename=false
11796fi
11797
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011798if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11799 as_dirname=dirname
11800else
11801 as_dirname=false
11802fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011803
Theodore Ts'oe1052142006-10-21 21:46:47 -040011804as_me=`$as_basename -- "$0" ||
11805$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11806 X"$0" : 'X\(//\)$' \| \
11807 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011808$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011809 sed '/^.*\/\([^/][^/]*\)\/*$/{
11810 s//\1/
11811 q
11812 }
11813 /^X\/\(\/\/\)$/{
11814 s//\1/
11815 q
11816 }
11817 /^X\/\(\/\).*/{
11818 s//\1/
11819 q
11820 }
11821 s/.*/./; q'`
11822
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011823# Avoid depending upon Character Ranges.
11824as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11825as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11826as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11827as_cr_digits='0123456789'
11828as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011829
11830ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011831case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011832-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011833 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011834 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011835 xy) ECHO_C='\c';;
11836 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11837 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011838 esac;;
11839*)
11840 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011841esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011842
11843rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011844if test -d conf$$.dir; then
11845 rm -f conf$$.dir/conf$$.file
11846else
11847 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011848 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011849fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011850if (echo >conf$$.file) 2>/dev/null; then
11851 if ln -s conf$$.file conf$$ 2>/dev/null; then
11852 as_ln_s='ln -s'
11853 # ... but there are two gotchas:
11854 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11855 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011856 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011857 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011858 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011859 elif ln conf$$.file conf$$ 2>/dev/null; then
11860 as_ln_s=ln
11861 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011862 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011863 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011864else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011865 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011866fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011867rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11868rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011869
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011870
11871# as_fn_mkdir_p
11872# -------------
11873# Create "$as_dir" as a directory, including parents if necessary.
11874as_fn_mkdir_p ()
11875{
11876
11877 case $as_dir in #(
11878 -*) as_dir=./$as_dir;;
11879 esac
11880 test -d "$as_dir" || eval $as_mkdir_p || {
11881 as_dirs=
11882 while :; do
11883 case $as_dir in #(
11884 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11885 *) as_qdir=$as_dir;;
11886 esac
11887 as_dirs="'$as_qdir' $as_dirs"
11888 as_dir=`$as_dirname -- "$as_dir" ||
11889$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11890 X"$as_dir" : 'X\(//\)[^/]' \| \
11891 X"$as_dir" : 'X\(//\)$' \| \
11892 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11893$as_echo X"$as_dir" |
11894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11895 s//\1/
11896 q
11897 }
11898 /^X\(\/\/\)[^/].*/{
11899 s//\1/
11900 q
11901 }
11902 /^X\(\/\/\)$/{
11903 s//\1/
11904 q
11905 }
11906 /^X\(\/\).*/{
11907 s//\1/
11908 q
11909 }
11910 s/.*/./; q'`
11911 test -d "$as_dir" && break
11912 done
11913 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011914 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011915
11916
11917} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011918if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011919 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011920else
11921 test -d ./-p && rmdir ./-p
11922 as_mkdir_p=false
11923fi
11924
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011925
11926# as_fn_executable_p FILE
11927# -----------------------
11928# Test if FILE is an executable regular file.
11929as_fn_executable_p ()
11930{
11931 test -f "$1" && test -x "$1"
11932} # as_fn_executable_p
11933as_test_x='test -x'
11934as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011935
11936# Sed expression to map a string onto a valid CPP name.
11937as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11938
11939# Sed expression to map a string onto a valid variable name.
11940as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11941
11942
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011943exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011944## ----------------------------------- ##
11945## Main body of $CONFIG_STATUS script. ##
11946## ----------------------------------- ##
11947_ASEOF
11948test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011949
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11951# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011952# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011953# values after options handling.
11954ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011955This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011956generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011957
11958 CONFIG_FILES = $CONFIG_FILES
11959 CONFIG_HEADERS = $CONFIG_HEADERS
11960 CONFIG_LINKS = $CONFIG_LINKS
11961 CONFIG_COMMANDS = $CONFIG_COMMANDS
11962 $ $0 $@
11963
Theodore Ts'oe1052142006-10-21 21:46:47 -040011964on `(hostname || uname -n) 2>/dev/null | sed 1q`
11965"
11966
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011967_ACEOF
11968
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011969case $ac_config_files in *"
11970"*) set x $ac_config_files; shift; ac_config_files=$*;;
11971esac
11972
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011973case $ac_config_headers in *"
11974"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11975esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011976
11977
11978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011979# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011980config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011981config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011982config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011983
Theodore Ts'oe1052142006-10-21 21:46:47 -040011984_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011985
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011987ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011988\`$as_me' instantiates files and other configuration actions
11989from templates according to the current configuration. Unless the files
11990and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011991
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011992Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011993
11994 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011995 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011996 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011997 -q, --quiet, --silent
11998 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011999 -d, --debug don't remove temporary files
12000 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012001 --file=FILE[:TEMPLATE]
12002 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012003 --header=FILE[:TEMPLATE]
12004 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012005
12006Configuration files:
12007$config_files
12008
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012009Configuration headers:
12010$config_headers
12011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012012Configuration commands:
12013$config_commands
12014
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012015Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012016
Theodore Ts'oe1052142006-10-21 21:46:47 -040012017_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012019ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020ac_cs_version="\\
12021config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012022configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012023 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012024
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012025Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012026This config.status script is free software; the Free Software Foundation
12027gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040012028
12029ac_pwd='$ac_pwd'
12030srcdir='$srcdir'
12031INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012032AWK='$AWK'
12033test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012034_ACEOF
12035
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12037# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012038ac_need_defaults=:
12039while test $# != 0
12040do
12041 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012042 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012043 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12044 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012045 ac_shift=:
12046 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012047 --*=)
12048 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12049 ac_optarg=
12050 ac_shift=:
12051 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012052 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012053 ac_option=$1
12054 ac_optarg=$2
12055 ac_shift=shift
12056 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012057 esac
12058
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012059 case $ac_option in
12060 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012061 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12062 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012063 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012064 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012065 --config | --confi | --conf | --con | --co | --c )
12066 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012067 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012068 debug=: ;;
12069 --file | --fil | --fi | --f )
12070 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012071 case $ac_optarg in
12072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012073 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012074 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012075 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012076 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012077 --header | --heade | --head | --hea )
12078 $ac_shift
12079 case $ac_optarg in
12080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12081 esac
12082 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12083 ac_need_defaults=false;;
12084 --he | --h)
12085 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012086 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012087Try \`$0 --help' for more information.";;
12088 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012089 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12091 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12092 ac_cs_silent=: ;;
12093
12094 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012095 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012096Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012097
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012098 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012099 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012100
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012101 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012102 shift
12103done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012104
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012107if $ac_cs_silent; then
12108 exec 6>/dev/null
12109 ac_configure_extra_args="$ac_configure_extra_args --silent"
12110fi
12111
12112_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012114if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012115 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012116 shift
12117 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12118 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012119 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012120 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012121fi
12122
12123_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012125exec 5>>config.log
12126{
12127 echo
12128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12129## Running $as_me. ##
12130_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012131 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012132} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012133
Theodore Ts'oe1052142006-10-21 21:46:47 -040012134_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012136#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012137# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012138#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012139# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012140 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012141 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012142 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012143 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12144 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012145
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012146
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012147_ACEOF
12148
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012150
12151# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012152for ac_config_target in $ac_config_targets
12153do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012154 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012155 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012156 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12157 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12158
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012159 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160 esac
12161done
12162
Theodore Ts'oe1052142006-10-21 21:46:47 -040012163
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012164# If the user did not use the arguments to specify the items to instantiate,
12165# then the envvar interface is used. Set only those that are not.
12166# We use the long form for the default assignment because of an extremely
12167# bizarre bug on SunOS 4.1.3.
12168if $ac_need_defaults; then
12169 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012170 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012171 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12172fi
12173
12174# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012175# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012176# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012177# Hook for its removal unless debugging.
12178# Note that there is a small window in which the directory will not be cleaned:
12179# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012180$debug ||
12181{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012182 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040012183 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012184 : "${ac_tmp:=$tmp}"
12185 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040012186' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012187 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012188}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012189# Create a (secure) tmp directory for tmp files.
12190
12191{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012192 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012193 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012194} ||
12195{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012196 tmp=./conf$$-$RANDOM
12197 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012198} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12199ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012200
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012201# Set up the scripts for CONFIG_FILES section.
12202# No need to generate them if there are no CONFIG_FILES.
12203# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012204if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012205
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012206if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12207 ac_cs_awk_getline=:
12208 ac_cs_awk_pipe_init=
12209 ac_cs_awk_read_file='
12210 while ((getline aline < (F[key])) > 0)
12211 print(aline)
12212 close(F[key])'
12213 ac_cs_awk_pipe_fini=
12214else
12215 ac_cs_awk_getline=false
12216 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12217 ac_cs_awk_read_file='
12218 print "|#_!!_#|"
12219 print "cat " F[key] " &&"
12220 '$ac_cs_awk_pipe_init
12221 # The final `:' finishes the AND list.
12222 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12223fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012224ac_cr=`echo X | tr X '\015'`
12225# On cygwin, bash can eat \r inside `` if the user requested igncr.
12226# But we know of no other shell where ac_cr would be empty at this
12227# point, so we can use a bashism as a fallback.
12228if test "x$ac_cr" = x; then
12229 eval ac_cr=\$\'\\r\'
12230fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012231ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12232if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012233 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012234else
12235 ac_cs_awk_cr=$ac_cr
12236fi
12237
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012238echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012239_ACEOF
12240
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012241# Create commands to substitute file output variables.
12242{
12243 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012244 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012245 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12246 echo "_ACAWK" &&
12247 echo "_ACEOF"
12248} >conf$$files.sh &&
12249. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012250 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012251rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012252
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012253{
12254 echo "cat >conf$$subs.awk <<_ACEOF" &&
12255 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12256 echo "_ACEOF"
12257} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12259ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012260ac_delim='%!_!# '
12261for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012262 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012264
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012265 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12266 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012267 break
12268 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012270 else
12271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012272 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012273done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012274rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012275
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012277cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012278_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012279sed -n '
12280h
12281s/^/S["/; s/!.*/"]=/
12282p
12283g
12284s/^[^!]*!//
12285:repl
12286t repl
12287s/'"$ac_delim"'$//
12288t delim
12289:nl
12290h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012291s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012292t more1
12293s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12294p
12295n
12296b repl
12297:more1
12298s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12299p
12300g
12301s/.\{148\}//
12302t nl
12303:delim
12304h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012305s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012306t more2
12307s/["\\]/\\&/g; s/^/"/; s/$/"/
12308p
12309b
12310:more2
12311s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12312p
12313g
12314s/.\{148\}//
12315t delim
12316' <conf$$subs.awk | sed '
12317/^[^""]/{
12318 N
12319 s/\n//
12320}
12321' >>$CONFIG_STATUS || ac_write_fail=1
12322rm -f conf$$subs.awk
12323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12324_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012325cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012326 for (key in S) S_is_set[key] = 1
12327 FS = ""
12328 \$ac_cs_awk_pipe_init
12329}
12330{
12331 line = $ 0
12332 nfields = split(line, field, "@")
12333 substed = 0
12334 len = length(field[1])
12335 for (i = 2; i < nfields; i++) {
12336 key = field[i]
12337 keylen = length(key)
12338 if (S_is_set[key]) {
12339 value = S[key]
12340 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12341 len += length(value) + length(field[++i])
12342 substed = 1
12343 } else
12344 len += 1 + keylen
12345 }
12346 if (nfields == 3 && !substed) {
12347 key = field[2]
12348 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12349 \$ac_cs_awk_read_file
12350 next
12351 }
12352 }
12353 print line
12354}
12355\$ac_cs_awk_pipe_fini
12356_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012357_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12359if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12360 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12361else
12362 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012363fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12364 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012365_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012366
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012367# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12368# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040012369# trailing colons and then remove the whole line if VPATH becomes empty
12370# (actually we leave an empty line to preserve line numbers).
12371if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012372 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12373h
12374s///
12375s/^/:/
12376s/[ ]*$/:/
12377s/:\$(srcdir):/:/g
12378s/:\${srcdir}:/:/g
12379s/:@srcdir@:/:/g
12380s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012381s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012382x
12383s/\(=[ ]*\).*/\1/
12384G
12385s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012386s/^[^=]*=[ ]*$//
12387}'
12388fi
12389
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012391fi # test -n "$CONFIG_FILES"
12392
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012393# Set up the scripts for CONFIG_HEADERS section.
12394# No need to generate them if there are no CONFIG_HEADERS.
12395# This happens for instance with `./config.status Makefile'.
12396if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012397cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012398BEGIN {
12399_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012400
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012401# Transform confdefs.h into an awk script `defines.awk', embedded as
12402# here-document in config.status, that substitutes the proper values into
12403# config.h.in to produce config.h.
12404
12405# Create a delimiter string that does not exist in confdefs.h, to ease
12406# handling of long lines.
12407ac_delim='%!_!# '
12408for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012409 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12410 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012411 break
12412 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012413 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012414 else
12415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12416 fi
12417done
12418
12419# For the awk script, D is an array of macro values keyed by name,
12420# likewise P contains macro parameters if any. Preserve backslash
12421# newline sequences.
12422
12423ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12424sed -n '
12425s/.\{148\}/&'"$ac_delim"'/g
12426t rset
12427:rset
12428s/^[ ]*#[ ]*define[ ][ ]*/ /
12429t def
12430d
12431:def
12432s/\\$//
12433t bsnl
12434s/["\\]/\\&/g
12435s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12436D["\1"]=" \3"/p
12437s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12438d
12439:bsnl
12440s/["\\]/\\&/g
12441s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12442D["\1"]=" \3\\\\\\n"\\/p
12443t cont
12444s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12445t cont
12446d
12447:cont
12448n
12449s/.\{148\}/&'"$ac_delim"'/g
12450t clear
12451:clear
12452s/\\$//
12453t bsnlc
12454s/["\\]/\\&/g; s/^/"/; s/$/"/p
12455d
12456:bsnlc
12457s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12458b cont
12459' <confdefs.h | sed '
12460s/'"$ac_delim"'/"\\\
12461"/g' >>$CONFIG_STATUS || ac_write_fail=1
12462
12463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12464 for (key in D) D_is_set[key] = 1
12465 FS = ""
12466}
12467/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12468 line = \$ 0
12469 split(line, arg, " ")
12470 if (arg[1] == "#") {
12471 defundef = arg[2]
12472 mac1 = arg[3]
12473 } else {
12474 defundef = substr(arg[1], 2)
12475 mac1 = arg[2]
12476 }
12477 split(mac1, mac2, "(") #)
12478 macro = mac2[1]
12479 prefix = substr(line, 1, index(line, defundef) - 1)
12480 if (D_is_set[macro]) {
12481 # Preserve the white space surrounding the "#".
12482 print prefix "define", macro P[macro] D[macro]
12483 next
12484 } else {
12485 # Replace #undef with comments. This is necessary, for example,
12486 # in the case of _POSIX_SOURCE, which is predefined and required
12487 # on some systems where configure will not decide to define it.
12488 if (defundef == "undef") {
12489 print "/*", prefix defundef, macro, "*/"
12490 next
12491 }
12492 }
12493}
12494{ print }
12495_ACAWK
12496_ACEOF
12497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012498 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012499fi # test -n "$CONFIG_HEADERS"
12500
12501
12502eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012503shift
12504for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012505do
12506 case $ac_tag in
12507 :[FHLC]) ac_mode=$ac_tag; continue;;
12508 esac
12509 case $ac_mode$ac_tag in
12510 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012511 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012512 :[FH]-) ac_tag=-:-;;
12513 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12514 esac
12515 ac_save_IFS=$IFS
12516 IFS=:
12517 set x $ac_tag
12518 IFS=$ac_save_IFS
12519 shift
12520 ac_file=$1
12521 shift
12522
12523 case $ac_mode in
12524 :L) ac_source=$1;;
12525 :[FH])
12526 ac_file_inputs=
12527 for ac_f
12528 do
12529 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012530 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012531 *) # Look for the file first in the build tree, then in the source tree
12532 # (if the path is not absolute). The absolute path cannot be DOS-style,
12533 # because $ac_f cannot contain `:'.
12534 test -f "$ac_f" ||
12535 case $ac_f in
12536 [\\/$]*) false;;
12537 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12538 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012539 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012540 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012541 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012542 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012543 done
12544
12545 # Let's still pretend it is `configure' which instantiates (i.e., don't
12546 # use $as_me), people would be surprised to read:
12547 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012548 configure_input='Generated from '`
12549 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12550 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012551 if test x"$ac_file" != x-; then
12552 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012553 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012554$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012555 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012556 # Neutralize special characters interpreted by sed in replacement strings.
12557 case $configure_input in #(
12558 *\&* | *\|* | *\\* )
12559 ac_sed_conf_input=`$as_echo "$configure_input" |
12560 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12561 *) ac_sed_conf_input=$configure_input;;
12562 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012563
12564 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012565 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12566 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012567 esac
12568 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012569 esac
12570
Theodore Ts'oe1052142006-10-21 21:46:47 -040012571 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012572$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12573 X"$ac_file" : 'X\(//\)[^/]' \| \
12574 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012575 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012576$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12578 s//\1/
12579 q
12580 }
12581 /^X\(\/\/\)[^/].*/{
12582 s//\1/
12583 q
12584 }
12585 /^X\(\/\/\)$/{
12586 s//\1/
12587 q
12588 }
12589 /^X\(\/\).*/{
12590 s//\1/
12591 q
12592 }
12593 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012594 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012595 ac_builddir=.
12596
Theodore Ts'oe1052142006-10-21 21:46:47 -040012597case "$ac_dir" in
12598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12599*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012601 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012603 case $ac_top_builddir_sub in
12604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12606 esac ;;
12607esac
12608ac_abs_top_builddir=$ac_pwd
12609ac_abs_builddir=$ac_pwd$ac_dir_suffix
12610# for backward compatibility:
12611ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012612
12613case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012614 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012615 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012616 ac_top_srcdir=$ac_top_builddir_sub
12617 ac_abs_top_srcdir=$ac_pwd ;;
12618 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012619 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012620 ac_top_srcdir=$srcdir
12621 ac_abs_top_srcdir=$srcdir ;;
12622 *) # Relative name.
12623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12624 ac_top_srcdir=$ac_top_build_prefix$srcdir
12625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012626esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012628
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012629
Theodore Ts'oe1052142006-10-21 21:46:47 -040012630 case $ac_mode in
12631 :F)
12632 #
12633 # CONFIG_FILE
12634 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012635
12636 case $INSTALL in
12637 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012638 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012639 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012640_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012641
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012643# If the template does not know about datarootdir, expand it.
12644# FIXME: This hack should be removed a few years after 2.60.
12645ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012646ac_sed_dataroot='
12647/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012648 p
12649 q
12650}
12651/@datadir@/p
12652/@docdir@/p
12653/@infodir@/p
12654/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012655/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012656case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012657*datarootdir*) ac_datarootdir_seen=yes;;
12658*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012659 { $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 +010012660$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012661_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012663 ac_datarootdir_hack='
12664 s&@datadir@&$datadir&g
12665 s&@docdir@&$docdir&g
12666 s&@infodir@&$infodir&g
12667 s&@localedir@&$localedir&g
12668 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012669 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012670esac
12671_ACEOF
12672
12673# Neutralize VPATH when `$srcdir' = `.'.
12674# Shell code in configure.ac might set extrasub.
12675# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12677ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012678$extrasub
12679_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012681:t
12682/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012683s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012684s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012685s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012686s&@srcdir@&$ac_srcdir&;t t
12687s&@abs_srcdir@&$ac_abs_srcdir&;t t
12688s&@top_srcdir@&$ac_top_srcdir&;t t
12689s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12690s&@builddir@&$ac_builddir&;t t
12691s&@abs_builddir@&$ac_abs_builddir&;t t
12692s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12693s&@INSTALL@&$ac_INSTALL&;t t
12694$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012695"
12696eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12697if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012698 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012699else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012700 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12701fi \
12702 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012703
Theodore Ts'oe1052142006-10-21 21:46:47 -040012704test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012705 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12706 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12707 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012709which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012710$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012711which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012712
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012713 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012714 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012715 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12716 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012717 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012718 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012719 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012720 :H)
12721 #
12722 # CONFIG_HEADER
12723 #
12724 if test x"$ac_file" != x-; then
12725 {
12726 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012727 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12728 } >"$ac_tmp/config.h" \
12729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12730 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012731 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12732$as_echo "$as_me: $ac_file is unchanged" >&6;}
12733 else
12734 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012735 mv "$ac_tmp/config.h" "$ac_file" \
12736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012737 fi
12738 else
12739 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012740 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12741 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012742 fi
12743 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012744
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012745 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012746$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012747 ;;
12748 esac
12749
12750
12751 case $ac_file$ac_mode in
12752 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012753 for ac_file in $CONFIG_FILES; do
12754 # Support "outfile[:infile[:infile...]]"
12755 case "$ac_file" in
12756 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012757 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012758 # PO directories have a Makefile.in generated from Makefile.in.in.
12759 case "$ac_file" in */Makefile.in)
12760 # Adjust a relative srcdir.
12761 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12762 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12763 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12764 # In autoconf-2.13 it is called $ac_given_srcdir.
12765 # In autoconf-2.50 it is called $srcdir.
12766 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12767 case "$ac_given_srcdir" in
12768 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12769 /*) top_srcdir="$ac_given_srcdir" ;;
12770 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12771 esac
12772 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12773 rm -f "$ac_dir/POTFILES"
12774 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12775 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 -050012776 POMAKEFILEDEPS="POTFILES.in"
12777 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012778 # on $ac_dir but don't depend on user-specified configuration
12779 # parameters.
12780 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12781 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012782 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012783 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12784 fi
12785 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12786 # Hide the ALL_LINGUAS assigment from automake.
12787 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012788 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12789 else
12790 # The set of available languages was given in configure.in.
12791 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012792 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012793 # Compute POFILES
12794 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12795 # Compute UPDATEPOFILES
12796 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12797 # Compute DUMMYPOFILES
12798 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12799 # Compute GMOFILES
12800 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012801 case "$ac_given_srcdir" in
12802 .) srcdirpre= ;;
12803 *) srcdirpre='$(srcdir)/' ;;
12804 esac
12805 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012806 UPDATEPOFILES=
12807 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012808 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012809 for lang in $ALL_LINGUAS; do
12810 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012811 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12812 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012813 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012814 done
12815 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12816 # environment variable.
12817 INST_LINGUAS=
12818 if test -n "$ALL_LINGUAS"; then
12819 for presentlang in $ALL_LINGUAS; do
12820 useit=no
12821 if test "%UNSET%" != "$LINGUAS"; then
12822 desiredlanguages="$LINGUAS"
12823 else
12824 desiredlanguages="$ALL_LINGUAS"
12825 fi
12826 for desiredlang in $desiredlanguages; do
12827 # Use the presentlang catalog if desiredlang is
12828 # a. equal to presentlang, or
12829 # b. a variant of presentlang (because in this case,
12830 # presentlang can be used as a fallback for messages
12831 # which are not translated in the desiredlang catalog).
12832 case "$desiredlang" in
12833 "$presentlang"*) useit=yes;;
12834 esac
12835 done
12836 if test $useit = yes; then
12837 INST_LINGUAS="$INST_LINGUAS $presentlang"
12838 fi
12839 done
12840 fi
12841 CATALOGS=
12842 if test -n "$INST_LINGUAS"; then
12843 for lang in $INST_LINGUAS; do
12844 CATALOGS="$CATALOGS $lang.gmo"
12845 done
12846 fi
12847 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012848 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 -040012849 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12850 if test -f "$f"; then
12851 case "$f" in
12852 *.orig | *.bak | *~) ;;
12853 *) cat "$f" >> "$ac_dir/Makefile" ;;
12854 esac
12855 fi
12856 done
12857 fi
12858 ;;
12859 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012860 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012861
Theodore Ts'oe1052142006-10-21 21:46:47 -040012862 esac
12863done # for ac_tag
12864
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012865
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012866as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012867_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012868ac_clean_files=$ac_clean_files_save
12869
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012870test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012871 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012872
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012873
12874# configure is writing to config.log, and then calls config.status.
12875# config.status does its own redirection, appending to config.log.
12876# Unfortunately, on DOS this fails, as config.log is still kept open
12877# by configure, so config.status won't be able to write to it; its
12878# output is simply discarded. So we exec the FD to /dev/null,
12879# effectively closing config.log, so it can be properly (re)opened and
12880# appended to by config.status. When coming back to configure, we
12881# need to make the FD available again.
12882if test "$no_create" != yes; then
12883 ac_cs_success=:
12884 ac_config_status_args=
12885 test "$silent" = yes &&
12886 ac_config_status_args="$ac_config_status_args --quiet"
12887 exec 5>/dev/null
12888 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12889 exec 5>>config.log
12890 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12891 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012892 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012893fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012894if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012896$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12897fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012898
Theodore Ts'oee683a12005-02-05 15:53:56 -050012899if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi