blob: 6f8f1ab73553dba0f301cb87e1b700ec9ba6b4ef [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018 emulate sh
19 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040023 setopt NO_GLOB_SUBST
24else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040030esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032
33
Scott James Remnant39fd3d42009-05-14 13:03:25 +010034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010048 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050058 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010059 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040090as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050091case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500101
Theodore Ts'oe1052142006-10-21 21:46:47 -0400102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500111 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400112fi
113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500356
357
358} # as_fn_mkdir_p
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500414 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400415 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500416 as_fn_exit $as_status
417} # as_fn_error
418
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437
Theodore Ts'oe1052142006-10-21 21:46:47 -0400438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100442$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463
464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500474 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500482 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500487
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500496 # Exit status is that of the last command.
497 exit
498}
499
Theodore Ts'oe1052142006-10-21 21:46:47 -0400500ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500501case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500503 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400508 esac;;
509*)
510 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500512
513rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100518 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400526 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400528 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400535 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500539
540if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500541 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559
560# Name of the host.
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565#
566# Initializations.
567#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000568ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400569ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500570ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400571LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500583PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <sys/types.h>
591#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400592#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593# include <sys/stat.h>
594#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400595#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596# include <stdlib.h>
597# include <stddef.h>
598#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400599# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600# include <stdlib.h>
601# endif
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500605# include <memory.h>
606# endif
607# include <string.h>
608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500610# include <strings.h>
611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400614#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400618#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500619# include <unistd.h>
620#endif"
621
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400622ac_header_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100623ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400624LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100625BUILD_LDFLAGS
626BUILD_CFLAGS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400627INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100628DO_TEST_SUITE
629ET_DIR
630SS_DIR
631LDFLAG_STATIC
632root_sysconfdir
633root_libdir
634root_sbindir
635root_bindir
636root_prefix
637UNIX_CMT
638CYGWIN_CMT
639LINUX_CMT
640UNI_DIFF_OPTS
641SEM_INIT_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100642SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400643SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100644SIZEOF_LONG_LONG
645SIZEOF_LONG
646SIZEOF_INT
647SIZEOF_SHORT
648BUILD_CC
649MAKEINFO
650STRIP
651AR
652LDCONFIG
653PERL
654SED
655AWK
656CHMOD
657RM
658CP
659MV
660LN_S
661LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400662ifNotGNUmake
663ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100664BINARY_TYPE
665POSUB
666LTLIBINTL
667LIBINTL
668INTLLIBS
669INTL_LIBTOOL_SUFFIX_PREFIX
670INTLOBJS
671GENCAT
672INSTOBJEXT
673DATADIRNAME
674CATOBJEXT
675USE_INCLUDED_LIBINTL
676BUILD_INCLUDED_LIBINTL
677INTLBISON
678LTLIBICONV
679LIBICONV
680HAVE_WPRINTF
681HAVE_SNPRINTF
682HAVE_ASPRINTF
683HAVE_POSIX_PRINTF
684GLIBC21
685ALLOCA
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400686EGREP
687GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100688RANLIB
689MSGMERGE
690XGETTEXT
691GMSGFMT
692MSGFMT
693USE_NLS
694MKINSTALLDIRS
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698SET_MAKE
699VERSION
700PACKAGE
701GETTEXT_PACKAGE
702UUIDD_CMT
703E2INITRD_MAN
704E2INITRD_PROG
705FSCK_MAN
706FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500707DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100708RESIZER_CMT
709IMAGER_CMT
710DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700711QUOTA_CMT
712DEPPROFILED_LIBQUOTA
713PROFILED_LIBQUOTA
714DEPSTATIC_LIBQUOTA
715STATIC_LIBQUOTA
716DEPLIBQUOTA
717LIBQUOTA
Eric Sandeenf5589f42013-10-14 08:54:15 -0400718QUOTA_MAN_COMMENT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100719BLKID_CMT
720DEPPROFILED_LIBBLKID
721PROFILED_LIBBLKID
722DEPSTATIC_LIBBLKID
723STATIC_LIBBLKID
724DEPLIBBLKID
725LIBBLKID
726UUID_CMT
727DEPPROFILED_LIBUUID
728PROFILED_LIBUUID
729DEPSTATIC_LIBUUID
730STATIC_LIBUUID
731DEPLIBUUID
732LIBUUID
733PKG_CONFIG
734TEST_IO_CMT
735PRIVATE_LIBS_CMT
736LDFLAG_DYNAMIC
737PROFILED_LIB_EXT
738STATIC_LIB_EXT
739LIB_EXT
740CHECKER_CMT
741PROFILE_CMT
742BSDLIB_CMT
743ELF_CMT
744HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400745Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400746ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400747E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400748LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400749SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400750LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100751MAINTAINER_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100752CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400753RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500754DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100755OBJEXT
756EXEEXT
757ac_ct_CC
758CPPFLAGS
759LDFLAGS
760CFLAGS
761CC
762host_os
763host_vendor
764host_cpu
765host
766build_os
767build_vendor
768build_cpu
769build
770E2FSPROGS_PKGVER
771E2FSPROGS_VERSION
772E2FSPROGS_DAY
773E2FSPROGS_MONTH
774E2FSPROGS_YEAR
775target_alias
776host_alias
777build_alias
778LIBS
779ECHO_T
780ECHO_N
781ECHO_C
782DEFS
783mandir
784localedir
785libdir
786psdir
787pdfdir
788dvidir
789htmldir
790infodir
791docdir
792oldincludedir
793includedir
794localstatedir
795sharedstatedir
796sysconfdir
797datadir
798datarootdir
799libexecdir
800sbindir
801bindir
802program_transform_name
803prefix
804exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500805PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100806PACKAGE_BUGREPORT
807PACKAGE_STRING
808PACKAGE_VERSION
809PACKAGE_TARNAME
810PACKAGE_NAME
811PATH_SEPARATOR
812SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400813ac_subst_files='MCONFIG
814MAKEFILE_ELF
815MAKEFILE_BSDLIB
816MAKEFILE_PROFILE
817MAKEFILE_CHECKER
818MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400819ASM_TYPES_HEADER
820PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100821ac_user_opts='
822enable_option_checking
823with_diet_libc
824with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100825with_ccopts
826with_ldopts
827with_root_prefix
828enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400829enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400830enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400831enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400832enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400833enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100834enable_compression
835enable_htree
836enable_elf_shlibs
837enable_bsd_shlibs
838enable_profile
839enable_checker
840enable_jbd_debug
841enable_blkid_debug
842enable_testio_debug
843enable_libuuid
844enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500845enable_quota
Theodore Ts'o3df60142013-06-16 16:14:40 -0400846enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100847enable_debugfs
848enable_imager
849enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500850enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100851enable_fsck
852enable_e2initrd_helper
853enable_tls
854enable_uuidd
855enable_nls
856with_gnu_ld
857enable_rpath
858with_libiconv_prefix
859with_included_gettext
860with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400861with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100862'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400863 ac_precious_vars='build_alias
864host_alias
865target_alias
866CC
867CFLAGS
868LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400869LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400870CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400871CPP
872PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400873
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000874
875# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500876ac_init_help=
877ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100878ac_unrecognized_opts=
879ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000880# The variables have the same names as the options, with
881# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500882cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000883exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000884no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000885no_recursion=
886prefix=NONE
887program_prefix=NONE
888program_suffix=NONE
889program_transform_name=s,x,x,
890silent=
891site=
892srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000893verbose=
894x_includes=NONE
895x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500896
897# Installation directory options.
898# These are left unexpanded so users can "make install exec_prefix=/foo"
899# and all the variables that are supposed to be based on exec_prefix
900# by default will actually change.
901# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400902# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000903bindir='${exec_prefix}/bin'
904sbindir='${exec_prefix}/sbin'
905libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400906datarootdir='${prefix}/share'
907datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000908sysconfdir='${prefix}/etc'
909sharedstatedir='${prefix}/com'
910localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000911includedir='${prefix}/include'
912oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400913docdir='${datarootdir}/doc/${PACKAGE}'
914infodir='${datarootdir}/info'
915htmldir='${docdir}'
916dvidir='${docdir}'
917pdfdir='${docdir}'
918psdir='${docdir}'
919libdir='${exec_prefix}/lib'
920localedir='${datarootdir}/locale'
921mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000923ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400924ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000925for ac_option
926do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000927 # If the previous option needs an argument, assign it.
928 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400929 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000930 ac_prev=
931 continue
932 fi
933
Theodore Ts'oe1052142006-10-21 21:46:47 -0400934 case $ac_option in
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400935 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936 *=) ac_optarg= ;;
937 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400938 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000939
940 # Accept the important Cygnus configure options, so we can diagnose typos.
941
Theodore Ts'oe1052142006-10-21 21:46:47 -0400942 case $ac_dashdash$ac_option in
943 --)
944 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000945
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 ac_prev=bindir ;;
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500949 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000950
951 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500952 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500954 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000955
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500961 cache_file=$ac_optarg ;;
962
963 --config-cache | -C)
964 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000965
Theodore Ts'oe1052142006-10-21 21:46:47 -0400966 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000967 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500969 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000970
Theodore Ts'oe1052142006-10-21 21:46:47 -0400971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
977
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000978 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000980 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400982 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
986 *"
987"enable_$ac_useropt"
988"*) ;;
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
991 esac
992 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400993
994 -docdir | --docdir | --docdi | --doc | --do)
995 ac_prev=docdir ;;
996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997 docdir=$ac_optarg ;;
998
999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 ac_prev=dvidir ;;
1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001003
1004 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001006 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001008 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013"enable_$ac_useropt"
1014"*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001019
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001027 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001028
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1031 with_gas=yes ;;
1032
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001039
1040 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001041 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001042 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001043 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001044
Theodore Ts'oe1052142006-10-21 21:46:47 -04001045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 ac_prev=htmldir ;;
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 | --ht=*)
1049 htmldir=$ac_optarg ;;
1050
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001056 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001057
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 ac_prev=infodir ;;
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001061 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001062
1063 -libdir | --libdir | --libdi | --libd)
1064 ac_prev=libdir ;;
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001066 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001067
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001073 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001074
Theodore Ts'oe1052142006-10-21 21:46:47 -04001075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1079
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001080 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001081 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001085 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001086
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 ac_prev=mandir ;;
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001090 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001091
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1094 with_fp=no ;;
1095
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001097 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001098 no_create=yes ;;
1099
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102 no_recursion=yes ;;
1103
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001111 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001112
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 ac_prev=prefix ;;
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001116 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001117
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001123 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001124
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001130 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001131
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001147 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001148
Theodore Ts'oe1052142006-10-21 21:46:47 -04001149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 ac_prev=pdfdir ;;
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1153
1154 -psdir | --psdir | --psdi | --psd | --ps)
1155 ac_prev=psdir ;;
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157 psdir=$ac_optarg ;;
1158
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1161 silent=yes ;;
1162
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 ac_prev=sbindir ;;
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001167 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001168
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1172 | --sha | --sh)
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001178 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001179
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001180 -site | --site | --sit)
1181 ac_prev=site ;;
1182 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001183 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001184
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 ac_prev=srcdir ;;
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001188 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001189
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001195 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001196
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001197 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001198 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001200 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001201
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 verbose=yes ;;
1204
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001207
1208 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001210 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001212 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217"with_$ac_useropt"
1218"*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001223
1224 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001226 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001228 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233"with_$ac_useropt"
1234"*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001249 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001256 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001257
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001260 ;;
1261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001262 *=*)
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001268 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001269 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001270 export $ac_envvar ;;
1271
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001272 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001273 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001278 ;;
1279
1280 esac
1281done
1282
1283if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001285 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001286fi
1287
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001288if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1290 no) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 esac
1294fi
1295
1296# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001297for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001301do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001302 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001303 # Remove trailing slashes.
1304 case $ac_val in
1305 */ )
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1308 esac
1309 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001310 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001313 esac
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001316
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001317# There might be people who depend on the old broken behavior: `$host'
1318# used to hold the argument of --host etc.
1319# FIXME: To remove some day.
1320build=$build_alias
1321host=$host_alias
1322target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001323
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001324# FIXME: To remove some day.
1325if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1330 fi
1331fi
1332
1333ac_tool_prefix=
1334test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336test "$silent" = yes && exec 6>/dev/null
1337
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001338
Theodore Ts'oe1052142006-10-21 21:46:47 -04001339ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340ac_ls_di=`ls -di .` &&
1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001342 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001343test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001344 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001345
1346
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001347# Find the source files, if location was not specified.
1348if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001350 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\).*/{
1370 s//\1/
1371 q
1372 }
1373 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001374 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001375 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001376 srcdir=..
1377 fi
1378else
1379 ac_srcdir_defaulted=no
1380fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001381if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001384fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386ac_abs_confdir=`(
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001388 pwd)`
1389# When building in place, set srcdir=.
1390if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1392fi
1393# Remove unnecessary trailing slashes from srcdir.
1394# Double slashes in file names in object file debugging info
1395# mess up M-x gdb in Emacs.
1396case $srcdir in
1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398esac
1399for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001405
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001406#
1407# Report the --help message.
1408#
1409if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
1413\`configure' configures this package to adapt to many kinds of systems.
1414
1415Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418VAR=VALUE. See below for descriptions of some of the useful variables.
1419
1420Defaults for the options are specified in brackets.
1421
1422Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001427 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001433Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001435 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001437 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001438
1439By default, \`make install' will install all the files in
1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442for instance \`--prefix=\$HOME'.
1443
1444For better control, use the options below.
1445
1446Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001466_ACEOF
1467
1468 cat <<\_ACEOF
1469
1470System types:
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473_ACEOF
1474fi
1475
1476if test -n "$ac_init_help"; then
1477
1478 cat <<\_ACEOF
1479
1480Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001481 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001484 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001485 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001486 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001487
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001488 --enable-symlink-build use symlinks while building instead of hard links
1489 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001490 --enable-compression enable EXPERIMENTAL compression support
1491 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492 --enable-elf-shlibs select ELF shared libraries
1493 --enable-bsd-shlibs select BSD shared libraries
1494 --enable-profile build profiling libraries
1495 --enable-checker build checker libraries
1496 --enable-jbd-debug enable journal debugging
1497 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001498 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001499 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001500 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001501 --enable-quota enable quota support
Theodore Ts'o3df60142013-06-16 16:14:40 -04001502 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001503 --disable-debugfs disable support of debugfs program
1504 --disable-imager disable support of e2image program
1505 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001506 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001507 --enable-fsck build fsck wrapper program
1508 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001509 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001510 --disable-uuidd disable building the uuid daemon
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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001608generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001609
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001610Copyright (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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001654 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 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001686 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001700 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001726 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001737 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001779 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001793if 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001834 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001847if 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001865 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001877if 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001932 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001944 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001947if 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001983rm -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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002010if 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002019 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)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002040test_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)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002057test_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)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002084test_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)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002101test_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)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002136test_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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002201 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002215if 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002259 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002263# 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002270 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{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002283#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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002305 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002313generated 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002423 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002424## Cache variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002425## ---------------- ##"
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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002459 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460## Output variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002461## ----------------- ##"
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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002474 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002475## File substitutions. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002476## ------------------- ##"
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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002490 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491## confdefs.h. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002492## ----------- ##"
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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002547 # 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002567 . "$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;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002650 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002666 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002681 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 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002758 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002762if ${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 &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002769 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` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002771 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*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002778*) 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002796if ${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` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002803 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*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002811*) 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002838if ${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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002850 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002878if ${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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002890 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002931if ${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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002943 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002971if ${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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002984 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003030if ${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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003042 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003074if ${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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003086 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;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003128as_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;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003243as_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;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003286as_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;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003344as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003345If you meant to cross compile, use \`--host'.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003346See \`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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003357if ${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;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003397as_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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003408if ${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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003445if ${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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003523if ${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>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003532struct 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003620if ${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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003654if 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 :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003674 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 :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003680 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 :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003686 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003699if ${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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003711 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003739if ${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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003751 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003792if ${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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003804 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003832if ${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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003845 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003891if ${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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003903 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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003935if ${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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003947 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;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003989as_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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004019if ${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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004056if ${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; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004134if ${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>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004143struct 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004244 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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004274rm -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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004290rm -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.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004294rm -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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004333rm -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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004349rm -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.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004353rm -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;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004359as_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
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004438relative_symlink_defined=
4439# Check whether --enable-relative-symlinks was given.
4440if test "${enable_relative_symlinks+set}" = set; then :
4441 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004442then
4443 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004444 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4446$as_echo "Disabling relative symlinks for install" >&6; }
4447else
4448 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004449 relative_symlink_defined=yes
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4451$as_echo "Enabling relative symlinks for install" >&6; }
4452fi
4453fi
4454
4455# Check whether --enable-symlink-relative-symlinks was given.
4456if test "${enable_symlink_relative_symlinks+set}" = set; then :
4457 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4458then
4459 SYMLINK_RELATIVE=yes
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4461$as_echo "Disabling relative symlinks for install" >&6; }
4462else
4463 SYMLINK_RELATIVE=--relative
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4465$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004466fi
4467
4468else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004469 if test -z "$relative_symlink_defined"
4470then
4471 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4473$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004474fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004475
4476fi
4477
4478
4479# Check whether --enable-symlink-build was given.
4480if test "${enable_symlink_build+set}" = set; then :
4481 enableval=$enable_symlink_build; if test "$enableval" = "no"
4482then
4483 LINK_BUILD_FLAGS=
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4485$as_echo "Disabling symlinks for build" >&6; }
4486else
4487 LINK_BUILD_FLAGS=-s
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4489$as_echo "Enabling symlinks for build" >&6; }
4490fi
4491
4492else
4493 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4495$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004496
4497fi
4498
4499
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004500# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004501if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004502 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4503then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004505$as_echo "Disabling verbose make commands" >&6; }
4506 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004507 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004508 Q=@
4509else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004511$as_echo "Enabling verbose make commands" >&6; }
4512 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004513 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004514 Q=
4515fi
4516
4517else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004519$as_echo "Disabling verbose make commands" >&6; }
4520E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004521ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004522Q=@
4523
4524fi
4525
4526
4527
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004528
Theodore Ts'oe1052142006-10-21 21:46:47 -04004529# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004530if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004531 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004532then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004534$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004535else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004536
4537$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004538
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004540$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004542$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004543fi
4544
4545else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004547$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004548
Theodore Ts'oe1052142006-10-21 21:46:47 -04004549fi
4550
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004551
Theodore Ts'oe1052142006-10-21 21:46:47 -04004552# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004553if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004554 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004555then
4556 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004558$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004559else
4560 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004561 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004562
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004564$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004565fi
4566
4567else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004568 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004569$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004570
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004572$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004573
Theodore Ts'oe1052142006-10-21 21:46:47 -04004574fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004575
Theodore Ts'oe1052142006-10-21 21:46:47 -04004576
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004577E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004578LDFLAG_DYNAMIC=
4579PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004580# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004581if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004582 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004583then
4584 ELF_CMT=#
4585 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004587$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004588else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004589 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004590 ELF_CMT=
4591 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004592 case "$host_os" in
4593 solaris2.*)
4594 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4595 ;;
4596 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004597 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004598 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004599 PRIVATE_LIBS_CMT=#
4600 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004602$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004603fi
4604
4605else
4606 MAKEFILE_ELF=/dev/null
4607ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004609$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004610
Theodore Ts'oe1052142006-10-21 21:46:47 -04004611fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004612
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004613
Theodore Ts'oe1052142006-10-21 21:46:47 -04004614
4615# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004616if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004617 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004618then
4619 BSDLIB_CMT=#
4620 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004622$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004623else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004624 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004625 BSDLIB_CMT=
4626 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004627 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004628 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004629 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004630 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4631 LIB_EXT=.dylib
4632 ;;
4633 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004635$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004636fi
4637
4638else
4639 MAKEFILE_BSDLIB=/dev/null
4640BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004642$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004643
Theodore Ts'oe1052142006-10-21 21:46:47 -04004644fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004645
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004646
Theodore Ts'oe1052142006-10-21 21:46:47 -04004647
4648# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004649if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004650 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004651then
4652 PROFILE_CMT=#
4653 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004655$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004656else
4657 PROFILE_CMT=
4658 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4659 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004661$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004662fi
4663
4664else
4665 PROFILE_CMT=#
4666MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004668$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004669
Theodore Ts'oe1052142006-10-21 21:46:47 -04004670fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004671
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004672
Theodore Ts'oe1052142006-10-21 21:46:47 -04004673
4674# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004675if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004676 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004677then
4678 CHECKER_CMT=#
4679 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004681$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004682else
4683 CHECKER_CMT=
4684 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004686$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004687fi
4688
4689else
4690 CHECKER_CMT=#
4691MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004693$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004694
Theodore Ts'oe1052142006-10-21 21:46:47 -04004695fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004696
4697
4698
4699
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004700
Theodore Ts'oe1052142006-10-21 21:46:47 -04004701
Theodore Ts'o55da9872008-09-02 23:12:38 -04004702
4703
Theodore Ts'oe1052142006-10-21 21:46:47 -04004704# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004705if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004706 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004707then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004709$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004710else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004711
4712$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004713
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004715$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004716fi
4717
4718else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004720$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004721
Theodore Ts'oe1052142006-10-21 21:46:47 -04004722fi
4723
4724# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004725if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004726 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004727then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004729$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004730else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004731
4732$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004733
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004735$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004736fi
4737
4738else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004740$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004741
Theodore Ts'oe1052142006-10-21 21:46:47 -04004742fi
4743
4744# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004745if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004746 enableval=$enable_testio_debug;
4747if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004748then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004750$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004751 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004752else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004753 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004754 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004755
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004757$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004758fi
4759
4760else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004762$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004763$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004764
4765TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004766
Theodore Ts'oe1052142006-10-21 21:46:47 -04004767fi
4768
Theodore Ts'oaf773652008-09-01 11:27:27 -04004769
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004770
4771
4772if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4775set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004777$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004778if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004779 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004780else
4781 case $PKG_CONFIG in
4782 [\\/]* | ?:[\\/]*)
4783 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4784 ;;
4785 *)
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004791 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004793 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004795 break 2
4796 fi
4797done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004798 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004799IFS=$as_save_IFS
4800
4801 ;;
4802esac
4803fi
4804PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4805if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004807$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004808else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004810$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004811fi
4812
4813
4814fi
4815if test -z "$ac_cv_path_PKG_CONFIG"; then
4816 ac_pt_PKG_CONFIG=$PKG_CONFIG
4817 # Extract the first word of "pkg-config", so it can be a program name with args.
4818set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004820$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004821if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004822 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004823else
4824 case $ac_pt_PKG_CONFIG in
4825 [\\/]* | ?:[\\/]*)
4826 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4827 ;;
4828 *)
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004834 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004836 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004838 break 2
4839 fi
4840done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004841 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004842IFS=$as_save_IFS
4843
4844 ;;
4845esac
4846fi
4847ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4848if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004850$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004851else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004853$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004854fi
4855
4856 if test "x$ac_pt_PKG_CONFIG" = x; then
4857 PKG_CONFIG=""
4858 else
4859 case $cross_compiling:$ac_tool_warned in
4860yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004861{ $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 +01004862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004863ac_tool_warned=yes ;;
4864esac
4865 PKG_CONFIG=$ac_pt_PKG_CONFIG
4866 fi
4867else
4868 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4869fi
4870
4871fi
4872if test -n "$PKG_CONFIG"; then
4873 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004874 { $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 +01004875$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004876 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004878$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004879 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004881$as_echo "no" >&6; }
4882 PKG_CONFIG=""
4883 fi
4884
4885fi
4886LIBUUID=
4887DEPLIBUUID=
4888STATIC_LIBUUID=
4889DEPSTATIC_LIBUUID=
4890PROFILED_LIBUUID=
4891DEPPROFILED_LIBUUID=
4892UUID_CMT=
4893# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004894if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004895 enableval=$enable_libuuid; if test "$enableval" = "no"
4896then
4897 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004898 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004899 fi
4900
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004902$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004903if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004904 $as_echo_n "(cached) " >&6
4905else
4906 ac_check_lib_save_LIBS=$LIBS
4907LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004909/* end confdefs.h. */
4910
4911/* Override any GCC internal prototype to avoid an error.
4912 Use char because int might match the return type of a GCC
4913 builtin and then its argument prototype would still apply. */
4914#ifdef __cplusplus
4915extern "C"
4916#endif
4917char uuid_generate ();
4918int
4919main ()
4920{
4921return uuid_generate ();
4922 ;
4923 return 0;
4924}
4925_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004926if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004927 ac_cv_lib_uuid_uuid_generate=yes
4928else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004929 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004930fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004931rm -f core conftest.err conftest.$ac_objext \
4932 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004933LIBS=$ac_check_lib_save_LIBS
4934fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004936$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004937if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004938 LIBUUID=`$PKG_CONFIG --libs uuid`;
4939 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4940else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004941 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004942fi
4943
4944 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004946$as_echo "Disabling private uuid library" >&6; }
4947else
4948 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4949 DEPLIBUUID=$LIBUUID
4950 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4951 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4952 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4953 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004955$as_echo "Enabling private uuid library" >&6; }
4956fi
4957
4958else
4959 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4960DEPLIBUUID=$LIBUUID
4961STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4962DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4963PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4964DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004966$as_echo "Enabling private uuid library by default" >&6; }
4967
4968fi
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4980 if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4982set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004984$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004985if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004986 $as_echo_n "(cached) " >&6
4987else
4988 case $PKG_CONFIG in
4989 [\\/]* | ?:[\\/]*)
4990 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4991 ;;
4992 *)
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004998 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005000 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005002 break 2
5003 fi
5004done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005005 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005006IFS=$as_save_IFS
5007
5008 ;;
5009esac
5010fi
5011PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5012if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005014$as_echo "$PKG_CONFIG" >&6; }
5015else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005017$as_echo "no" >&6; }
5018fi
5019
5020
5021fi
5022if test -z "$ac_cv_path_PKG_CONFIG"; then
5023 ac_pt_PKG_CONFIG=$PKG_CONFIG
5024 # Extract the first word of "pkg-config", so it can be a program name with args.
5025set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005027$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005028if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005029 $as_echo_n "(cached) " >&6
5030else
5031 case $ac_pt_PKG_CONFIG in
5032 [\\/]* | ?:[\\/]*)
5033 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5034 ;;
5035 *)
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037for as_dir in $PATH
5038do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005041 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005043 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005045 break 2
5046 fi
5047done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005048 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005049IFS=$as_save_IFS
5050
5051 ;;
5052esac
5053fi
5054ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5055if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005057$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5058else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005060$as_echo "no" >&6; }
5061fi
5062
5063 if test "x$ac_pt_PKG_CONFIG" = x; then
5064 PKG_CONFIG=""
5065 else
5066 case $cross_compiling:$ac_tool_warned in
5067yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005068{ $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 +01005069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5070ac_tool_warned=yes ;;
5071esac
5072 PKG_CONFIG=$ac_pt_PKG_CONFIG
5073 fi
5074else
5075 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5076fi
5077
5078fi
5079if test -n "$PKG_CONFIG"; then
5080 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005081 { $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 +01005082$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5083 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005085$as_echo "yes" >&6; }
5086 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005088$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005089 PKG_CONFIG=""
5090 fi
5091
5092fi
5093LIBBLKID=
5094DEPLIBBLKID=
5095STATIC_LIBBLKID=
5096DEPSTATIC_LIBBLKID=
5097PROFILED_LIBBLKID=
5098DEPPROFILED_LIBBLKID=
5099BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005100
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005101# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005102if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005103 enableval=$enable_libblkid; if test "$enableval" = "no"
5104then
5105 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005106 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005107 fi
5108
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005110$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005111if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005112 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005113else
5114 ac_check_lib_save_LIBS=$LIBS
5115LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005117/* end confdefs.h. */
5118
5119/* Override any GCC internal prototype to avoid an error.
5120 Use char because int might match the return type of a GCC
5121 builtin and then its argument prototype would still apply. */
5122#ifdef __cplusplus
5123extern "C"
5124#endif
5125char blkid_get_cache ();
5126int
5127main ()
5128{
5129return blkid_get_cache ();
5130 ;
5131 return 0;
5132}
5133_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005134if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005135 ac_cv_lib_blkid_blkid_get_cache=yes
5136else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005137 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005138fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005139rm -f core conftest.err conftest.$ac_objext \
5140 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005141LIBS=$ac_check_lib_save_LIBS
5142fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005144$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005145if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005146 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5147 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5148else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005149 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005150fi
5151
5152 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005154$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005155else
5156 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5157 DEPLIBBLKID=$LIBBLKID
5158 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5159 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5160 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5161 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005162 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005163
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005165$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005166fi
5167
5168else
5169 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5170DEPLIBBLKID=$LIBBLKID
5171STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5172DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5173PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5174DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005175$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005176
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005178$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005179
5180fi
5181
5182
5183
5184
5185
5186
5187
5188
Eric Sandeenf5589f42013-10-14 08:54:15 -04005189QUOTA_MAN_COMMENT='.\"'
Niu Yawei43075b42013-10-14 09:49:27 -04005190QUOTA_CMT=
Eric Sandeenf5589f42013-10-14 08:54:15 -04005191
Aditya Kalif239fef2011-07-20 11:40:02 -07005192
5193
5194if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5195 if test -n "$ac_tool_prefix"; then
5196 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5197set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005200if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005201 $as_echo_n "(cached) " >&6
5202else
5203 case $PKG_CONFIG in
5204 [\\/]* | ?:[\\/]*)
5205 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5206 ;;
5207 *)
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005215 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219done
5220 done
5221IFS=$as_save_IFS
5222
5223 ;;
5224esac
5225fi
5226PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5227if test -n "$PKG_CONFIG"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5229$as_echo "$PKG_CONFIG" >&6; }
5230else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232$as_echo "no" >&6; }
5233fi
5234
5235
5236fi
5237if test -z "$ac_cv_path_PKG_CONFIG"; then
5238 ac_pt_PKG_CONFIG=$PKG_CONFIG
5239 # Extract the first word of "pkg-config", so it can be a program name with args.
5240set dummy pkg-config; ac_word=$2
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005243if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005244 $as_echo_n "(cached) " >&6
5245else
5246 case $ac_pt_PKG_CONFIG in
5247 [\\/]* | ?:[\\/]*)
5248 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5249 ;;
5250 *)
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005258 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262done
5263 done
5264IFS=$as_save_IFS
5265
5266 ;;
5267esac
5268fi
5269ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5270if test -n "$ac_pt_PKG_CONFIG"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5272$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5273else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275$as_echo "no" >&6; }
5276fi
5277
5278 if test "x$ac_pt_PKG_CONFIG" = x; then
5279 PKG_CONFIG=""
5280 else
5281 case $cross_compiling:$ac_tool_warned in
5282yes:)
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5285ac_tool_warned=yes ;;
5286esac
5287 PKG_CONFIG=$ac_pt_PKG_CONFIG
5288 fi
5289else
5290 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5291fi
5292
5293fi
5294if test -n "$PKG_CONFIG"; then
5295 _pkg_min_version=0.9.0
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5297$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5298 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5300$as_echo "yes" >&6; }
5301 else
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303$as_echo "no" >&6; }
5304 PKG_CONFIG=""
5305 fi
5306
5307fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005308
5309# Check whether --enable-quota was given.
5310if test "${enable_quota+set}" = set; then :
5311 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005312then
Niu Yawei43075b42013-10-14 09:49:27 -04005313 QUOTA_CMT=#
Theodore Ts'o7becb202011-11-14 10:40:43 -05005314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5315$as_echo "Disabling quota support" >&6; }
5316else
Niu Yawei43075b42013-10-14 09:49:27 -04005317 QUOTA_CMT=
Theodore Ts'o7becb202011-11-14 10:40:43 -05005318 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005319
Theodore Ts'o7becb202011-11-14 10:40:43 -05005320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5321$as_echo "Enabling quota support" >&6; }
Eric Sandeenf5589f42013-10-14 08:54:15 -04005322 QUOTA_MAN_COMMENT=""
5323
Aditya Kalif239fef2011-07-20 11:40:02 -07005324fi
5325
5326else
Niu Yawei43075b42013-10-14 09:49:27 -04005327 QUOTA_CMT=#
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
Theodore Ts'o7becb202011-11-14 10:40:43 -05005329$as_echo "Disabling quota support by default" >&6; }
5330
5331fi
5332
5333LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005334DEPLIBQUOTA=$LIBQUOTA
5335STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5336DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5337PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5338DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005339
5340
5341
5342
5343
5344
5345
Theodore Ts'o3df60142013-06-16 16:14:40 -04005346
5347# Check whether --enable-backtrace was given.
5348if test "${enable_backtrace+set}" = set; then :
5349 enableval=$enable_backtrace; if test "$enableval" = "no"
5350then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5352$as_echo "Disabling use of backtrace" >&6; }
5353 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5354
5355else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5357$as_echo "Enabling use of backtrace" >&6; }
5358fi
5359
5360else
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5362$as_echo "Enabling use of backtrace by default" >&6; }
5363
5364fi
5365
Theodore Ts'oe1052142006-10-21 21:46:47 -04005366# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005367if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005368 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005369then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005371$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005372 DEBUGFS_CMT="#"
5373else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005374 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005376$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005377fi
5378
5379else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005381$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005382DEBUGFS_CMT=
5383
Theodore Ts'oe1052142006-10-21 21:46:47 -04005384fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005385
Theodore Ts'oe1052142006-10-21 21:46:47 -04005386
5387# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005388if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005389 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005390then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005392$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005393 IMAGER_CMT="#"
5394else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005395 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005397$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005398fi
5399
5400else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005402$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005403IMAGER_CMT=
5404
Theodore Ts'oe1052142006-10-21 21:46:47 -04005405fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005406
Theodore Ts'oe1052142006-10-21 21:46:47 -04005407
5408# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005409if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005410 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005411then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005413$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005414 RESIZER_CMT="#"
5415else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005416 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005418$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005419fi
5420
5421else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005423$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005424RESIZER_CMT=
5425
Theodore Ts'oe1052142006-10-21 21:46:47 -04005426fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005427
Theodore Ts'oe1052142006-10-21 21:46:47 -04005428
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005429# Check whether --enable-defrag was given.
5430if test "${enable_defrag+set}" = set; then :
5431 enableval=$enable_defrag; if test "$enableval" = "no"
5432then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5434$as_echo "Disabling e4defrag support" >&6; }
5435 DEFRAG_CMT="#"
5436else
5437 DEFRAG_CMT=
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5439$as_echo "Enabling e4defrag support" >&6; }
5440fi
5441
5442else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5444$as_echo "Enabling e4defrag support by default" >&6; }
5445DEFRAG_CMT=
5446
5447fi
5448
5449
Theodore Ts'oe1052142006-10-21 21:46:47 -04005450# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005451if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005452 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005453then
5454 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005456$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005457else
5458 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005460$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005461fi
5462
5463else
5464 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005465 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005466 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005468$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005469 ;;
5470 *)
5471 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005473$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005474esac
5475
Theodore Ts'oe1052142006-10-21 21:46:47 -04005476fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005477
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005478
Theodore Ts'oe1052142006-10-21 21:46:47 -04005479
5480# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005481if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005482 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005483then
5484 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005486$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005487else
5488 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005490$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005491fi
5492
5493else
5494 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005496$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005497
Theodore Ts'oe1052142006-10-21 21:46:47 -04005498fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005499
5500
Theodore Ts'oe1052142006-10-21 21:46:47 -04005501
Theodore Ts'o32493942007-12-31 10:45:01 -05005502# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005503if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005504 enableval=$enable_tls; if test "$enableval" = "no"
5505then
5506 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005508$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005509else
5510 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005512$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005513fi
5514
5515else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005516 if test -n "$WITH_DIET_LIBC"
5517then
5518 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005519 { $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 +01005520$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005521else
5522 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005524$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005525fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005526
5527fi
5528
5529if test "$try_tls" = "yes"
5530then
5531
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005533$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005534 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005535 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005536else
5537
5538 ax_tls_keywords="__thread __declspec(thread) none"
5539 for ax_tls_keyword in $ax_tls_keywords; do
5540 case $ax_tls_keyword in
5541 none) ac_cv_tls=none ; break ;;
5542 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005544/* end confdefs.h. */
5545#include <stdlib.h>
5546 static void
5547 foo(void) {
5548 static $ax_tls_keyword int bar;
5549 exit(1);
5550 }
5551int
5552main ()
5553{
5554
5555 ;
5556 return 0;
5557}
5558_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005559if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005560 ac_cv_tls=$ax_tls_keyword ; break
5561else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005562 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005563
5564fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 esac
5567 done
5568
5569fi
5570
5571
5572 if test "$ac_cv_tls" != "none"; then
5573
5574cat >>confdefs.h <<_ACEOF
5575#define TLS $ac_cv_tls
5576_ACEOF
5577
5578 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005580$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005581
5582fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005583
Theodore Ts'o5610f992007-12-31 11:16:56 -05005584# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005585if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005586 enableval=$enable_uuidd; if test "$enableval" = "no"
5587then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005589$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005590 UUIDD_CMT="#"
5591else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005592 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005593
5594 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005596$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005597fi
5598
5599else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005600 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005601
5602UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005604$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005605
5606fi
5607
5608
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005609MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5610
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005611GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005612PACKAGE=e2fsprogs
5613VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005614VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005616cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005617#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005618_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005619
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005620
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005621cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005622#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005623_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005624
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005625
5626
5627
5628
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005630$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5631set x ${MAKE-make}
5632ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005633if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005634 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005635else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005636 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005637SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005638all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005639 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005640_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005641# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005642case `${MAKE-make} -f conftest.make 2>/dev/null` in
5643 *@@@%%%=?*=@@@%%%*)
5644 eval ac_cv_prog_make_${ac_make}_set=yes;;
5645 *)
5646 eval ac_cv_prog_make_${ac_make}_set=no;;
5647esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005648rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005650if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005652$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005653 SET_MAKE=
5654else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005656$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005657 SET_MAKE="MAKE=${MAKE-make}"
5658fi
5659
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005660# Find a good install program. We prefer a C program (faster),
5661# so one script is as good as another. But avoid the broken or
5662# incompatible versions:
5663# SysV /etc/install, /usr/sbin/install
5664# SunOS /usr/etc/install
5665# IRIX /sbin/install
5666# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005667# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005668# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5669# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5670# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005671# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005672# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005673# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005675$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005676if test -z "$INSTALL"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005677if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005678 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005679else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681for as_dir in $PATH
5682do
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005685 # Account for people who put trailing slashes in PATH elements.
5686case $as_dir/ in #((
5687 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005689 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005690 /usr/ucb/* ) ;;
5691 *)
5692 # OSF1 and SCO ODT 3.0 have their own names for install.
5693 # Don't use installbsd from OSF since it installs stuff as root
5694 # by default.
5695 for ac_prog in ginstall scoinst install; do
5696 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005697 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005698 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005700 # AIX install. It has an incompatible calling convention.
5701 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005702 elif test $ac_prog = install &&
5703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5704 # program-specific install script used by HP pwplus--don't use.
5705 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005706 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005707 rm -rf conftest.one conftest.two conftest.dir
5708 echo one > conftest.one
5709 echo two > conftest.two
5710 mkdir conftest.dir
5711 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5712 test -s conftest.one && test -s conftest.two &&
5713 test -s conftest.dir/conftest.one &&
5714 test -s conftest.dir/conftest.two
5715 then
5716 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5717 break 3
5718 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005719 fi
5720 fi
5721 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005722 done
5723 ;;
5724esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005725
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005726 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005727IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005728
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005729rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005730
5731fi
5732 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005733 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005734 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005735 # As a last resort, use the slow shell script. Don't cache a
5736 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005737 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005738 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005739 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005740 fi
5741fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005743$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005744
5745# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5746# It thinks the first close brace ends the variable substitution.
5747test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5748
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005749test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005750
5751test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5752
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005753
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005754 MKINSTALLDIRS=
5755 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005756 case "$ac_aux_dir" in
5757 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5758 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5759 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005760 fi
5761 if test -z "$MKINSTALLDIRS"; then
5762 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5763 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005764
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005765
5766
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005768$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005769 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005770if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005771 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005772else
5773 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005774fi
5775
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005777$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005778
5779
5780
5781
5782
5783
5784# Prepare PATH_SEPARATOR.
5785# The user is always right.
5786if test "${PATH_SEPARATOR+set}" != set; then
5787 echo "#! /bin/sh" >conf$$.sh
5788 echo "exit 0" >>conf$$.sh
5789 chmod +x conf$$.sh
5790 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5791 PATH_SEPARATOR=';'
5792 else
5793 PATH_SEPARATOR=:
5794 fi
5795 rm -f conf$$.sh
5796fi
5797
5798# Find out how to test for executable files. Don't use a zero-byte file,
5799# as systems may use methods other than mode bits to determine executability.
5800cat >conf$$.file <<_ASEOF
5801#! /bin/sh
5802exit 0
5803_ASEOF
5804chmod +x conf$$.file
5805if test -x conf$$.file >/dev/null 2>&1; then
5806 ac_executable_p="test -x"
5807else
5808 ac_executable_p="test -f"
5809fi
5810rm -f conf$$.file
5811
5812# Extract the first word of "msgfmt", so it can be a program name with args.
5813set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005815$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005816if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005817 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005818else
5819 case "$MSGFMT" in
5820 [\\/]* | ?:[\\/]*)
5821 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5822 ;;
5823 *)
5824 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5825 for ac_dir in $PATH; do
5826 IFS="$ac_save_IFS"
5827 test -z "$ac_dir" && ac_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5830 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5831 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5832 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5833 break 2
5834 fi
5835 fi
5836 done
5837 done
5838 IFS="$ac_save_IFS"
5839 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5840 ;;
5841esac
5842fi
5843MSGFMT="$ac_cv_path_MSGFMT"
5844if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005846$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005847else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005849$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005850fi
5851
5852 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5853set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005855$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005856if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005857 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005858else
5859 case $GMSGFMT in
5860 [\\/]* | ?:[\\/]*)
5861 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5862 ;;
5863 *)
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005869 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005871 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005873 break 2
5874 fi
5875done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005876 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005877IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005878
5879 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5880 ;;
5881esac
5882fi
5883GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005884if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005886$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005887else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005889$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005890fi
5891
5892
5893
Theodore Ts'oe1052142006-10-21 21:46:47 -04005894
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005895# Prepare PATH_SEPARATOR.
5896# The user is always right.
5897if test "${PATH_SEPARATOR+set}" != set; then
5898 echo "#! /bin/sh" >conf$$.sh
5899 echo "exit 0" >>conf$$.sh
5900 chmod +x conf$$.sh
5901 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5902 PATH_SEPARATOR=';'
5903 else
5904 PATH_SEPARATOR=:
5905 fi
5906 rm -f conf$$.sh
5907fi
5908
5909# Find out how to test for executable files. Don't use a zero-byte file,
5910# as systems may use methods other than mode bits to determine executability.
5911cat >conf$$.file <<_ASEOF
5912#! /bin/sh
5913exit 0
5914_ASEOF
5915chmod +x conf$$.file
5916if test -x conf$$.file >/dev/null 2>&1; then
5917 ac_executable_p="test -x"
5918else
5919 ac_executable_p="test -f"
5920fi
5921rm -f conf$$.file
5922
5923# Extract the first word of "xgettext", so it can be a program name with args.
5924set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005926$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005927if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005928 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005929else
5930 case "$XGETTEXT" in
5931 [\\/]* | ?:[\\/]*)
5932 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5933 ;;
5934 *)
5935 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5936 for ac_dir in $PATH; do
5937 IFS="$ac_save_IFS"
5938 test -z "$ac_dir" && ac_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5941 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5942 (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
5943 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5944 break 2
5945 fi
5946 fi
5947 done
5948 done
5949 IFS="$ac_save_IFS"
5950 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5951 ;;
5952esac
5953fi
5954XGETTEXT="$ac_cv_path_XGETTEXT"
5955if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005957$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005958else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005960$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005961fi
5962
5963 rm -f messages.po
5964
5965
5966# Prepare PATH_SEPARATOR.
5967# The user is always right.
5968if test "${PATH_SEPARATOR+set}" != set; then
5969 echo "#! /bin/sh" >conf$$.sh
5970 echo "exit 0" >>conf$$.sh
5971 chmod +x conf$$.sh
5972 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5973 PATH_SEPARATOR=';'
5974 else
5975 PATH_SEPARATOR=:
5976 fi
5977 rm -f conf$$.sh
5978fi
5979
5980# Find out how to test for executable files. Don't use a zero-byte file,
5981# as systems may use methods other than mode bits to determine executability.
5982cat >conf$$.file <<_ASEOF
5983#! /bin/sh
5984exit 0
5985_ASEOF
5986chmod +x conf$$.file
5987if test -x conf$$.file >/dev/null 2>&1; then
5988 ac_executable_p="test -x"
5989else
5990 ac_executable_p="test -f"
5991fi
5992rm -f conf$$.file
5993
5994# Extract the first word of "msgmerge", so it can be a program name with args.
5995set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005997$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005998if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005999 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006000else
6001 case "$MSGMERGE" in
6002 [\\/]* | ?:[\\/]*)
6003 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6004 ;;
6005 *)
6006 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6007 for ac_dir in $PATH; do
6008 IFS="$ac_save_IFS"
6009 test -z "$ac_dir" && ac_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6012 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6013 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6014 break 2
6015 fi
6016 fi
6017 done
6018 done
6019 IFS="$ac_save_IFS"
6020 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6021 ;;
6022esac
6023fi
6024MSGMERGE="$ac_cv_path_MSGMERGE"
6025if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006027$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006028else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006030$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006031fi
6032
6033
6034 if test "$GMSGFMT" != ":"; then
6035 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6036 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6037 : ;
6038 else
6039 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006040 { $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 +01006041$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006042 GMSGFMT=":"
6043 fi
6044 fi
6045
6046 if test "$XGETTEXT" != ":"; then
6047 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6048 (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
6049 : ;
6050 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006051 { $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 +01006052$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006053 XGETTEXT=":"
6054 fi
6055 rm -f messages.po
6056 fi
6057
Theodore Ts'oe1052142006-10-21 21:46:47 -04006058 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006059
6060
6061if test -n "$ac_tool_prefix"; then
6062 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6063set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006065$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006066if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006067 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006068else
6069 if test -n "$RANLIB"; then
6070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6071else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006077 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006081 break 2
6082 fi
6083done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006084 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006085IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006086
6087fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006088fi
6089RANLIB=$ac_cv_prog_RANLIB
6090if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006092$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006093else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006095$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006096fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006097
Theodore Ts'oe1052142006-10-21 21:46:47 -04006098
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006099fi
6100if test -z "$ac_cv_prog_RANLIB"; then
6101 ac_ct_RANLIB=$RANLIB
6102 # Extract the first word of "ranlib", so it can be a program name with args.
6103set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006105$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006106if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006107 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006108else
6109 if test -n "$ac_ct_RANLIB"; then
6110 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6111else
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006117 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006119 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006121 break 2
6122 fi
6123done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006124 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006125IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006127fi
6128fi
6129ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6130if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006132$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006133else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006135$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006136fi
6137
Theodore Ts'oe1052142006-10-21 21:46:47 -04006138 if test "x$ac_ct_RANLIB" = x; then
6139 RANLIB=":"
6140 else
6141 case $cross_compiling:$ac_tool_warned in
6142yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006143{ $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 +01006144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006145ac_tool_warned=yes ;;
6146esac
6147 RANLIB=$ac_ct_RANLIB
6148 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006149else
6150 RANLIB="$ac_cv_prog_RANLIB"
6151fi
6152
6153
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006155$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006156if ${ac_cv_lib_cposix_strerror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006157 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006158else
6159 ac_check_lib_save_LIBS=$LIBS
6160LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006162/* end confdefs.h. */
6163
Theodore Ts'oe1052142006-10-21 21:46:47 -04006164/* Override any GCC internal prototype to avoid an error.
6165 Use char because int might match the return type of a GCC
6166 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006167#ifdef __cplusplus
6168extern "C"
6169#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006170char strerror ();
6171int
6172main ()
6173{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006174return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006175 ;
6176 return 0;
6177}
6178_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006179if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006180 ac_cv_lib_cposix_strerror=yes
6181else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006182 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006183fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006184rm -f core conftest.err conftest.$ac_objext \
6185 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006186LIBS=$ac_check_lib_save_LIBS
6187fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006189$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006190if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006191 LIBS="$LIBS -lcposix"
6192fi
6193
6194
6195
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006196
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6198$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006199if ${ac_cv_path_GREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006200 $as_echo_n "(cached) " >&6
6201else
6202 if test -z "$GREP"; then
6203 ac_path_GREP_found=false
6204 # Loop through the user's path and test for each of PROGNAME-LIST
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6207do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_prog in grep ggrep; do
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006213 as_fn_executable_p "$ac_path_GREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006214# Check for GNU ac_path_GREP and select it if it is found.
6215 # Check for GNU $ac_path_GREP
6216case `"$ac_path_GREP" --version 2>&1` in
6217*GNU*)
6218 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6219*)
6220 ac_count=0
6221 $as_echo_n 0123456789 >"conftest.in"
6222 while :
6223 do
6224 cat "conftest.in" "conftest.in" >"conftest.tmp"
6225 mv "conftest.tmp" "conftest.in"
6226 cp "conftest.in" "conftest.nl"
6227 $as_echo 'GREP' >> "conftest.nl"
6228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6230 as_fn_arith $ac_count + 1 && ac_count=$as_val
6231 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6232 # Best one so far, save it but keep looking for a better one
6233 ac_cv_path_GREP="$ac_path_GREP"
6234 ac_path_GREP_max=$ac_count
6235 fi
6236 # 10*(2^10) chars as input seems more than enough
6237 test $ac_count -gt 10 && break
6238 done
6239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6240esac
6241
6242 $ac_path_GREP_found && break 3
6243 done
6244 done
6245 done
6246IFS=$as_save_IFS
6247 if test -z "$ac_cv_path_GREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006248 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 -04006249 fi
6250else
6251 ac_cv_path_GREP=$GREP
6252fi
6253
6254fi
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6256$as_echo "$ac_cv_path_GREP" >&6; }
6257 GREP="$ac_cv_path_GREP"
6258
6259
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6261$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006262if ${ac_cv_path_EGREP+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006263 $as_echo_n "(cached) " >&6
6264else
6265 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6266 then ac_cv_path_EGREP="$GREP -E"
6267 else
6268 if test -z "$EGREP"; then
6269 ac_path_EGREP_found=false
6270 # Loop through the user's path and test for each of PROGNAME-LIST
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6273do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_prog in egrep; do
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006279 as_fn_executable_p "$ac_path_EGREP" || continue
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006280# Check for GNU ac_path_EGREP and select it if it is found.
6281 # Check for GNU $ac_path_EGREP
6282case `"$ac_path_EGREP" --version 2>&1` in
6283*GNU*)
6284 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6285*)
6286 ac_count=0
6287 $as_echo_n 0123456789 >"conftest.in"
6288 while :
6289 do
6290 cat "conftest.in" "conftest.in" >"conftest.tmp"
6291 mv "conftest.tmp" "conftest.in"
6292 cp "conftest.in" "conftest.nl"
6293 $as_echo 'EGREP' >> "conftest.nl"
6294 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6296 as_fn_arith $ac_count + 1 && ac_count=$as_val
6297 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6298 # Best one so far, save it but keep looking for a better one
6299 ac_cv_path_EGREP="$ac_path_EGREP"
6300 ac_path_EGREP_max=$ac_count
6301 fi
6302 # 10*(2^10) chars as input seems more than enough
6303 test $ac_count -gt 10 && break
6304 done
6305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6306esac
6307
6308 $ac_path_EGREP_found && break 3
6309 done
6310 done
6311 done
6312IFS=$as_save_IFS
6313 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006314 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 -04006315 fi
6316else
6317 ac_cv_path_EGREP=$EGREP
6318fi
6319
6320 fi
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6323$as_echo "$ac_cv_path_EGREP" >&6; }
6324 EGREP="$ac_cv_path_EGREP"
6325
6326
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6328$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006329if ${ac_cv_header_stdc+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006330 $as_echo_n "(cached) " >&6
6331else
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h. */
6334#include <stdlib.h>
6335#include <stdarg.h>
6336#include <string.h>
6337#include <float.h>
6338
6339int
6340main ()
6341{
6342
6343 ;
6344 return 0;
6345}
6346_ACEOF
6347if ac_fn_c_try_compile "$LINENO"; then :
6348 ac_cv_header_stdc=yes
6349else
6350 ac_cv_header_stdc=no
6351fi
6352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353
6354if test $ac_cv_header_stdc = yes; then
6355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357/* end confdefs.h. */
6358#include <string.h>
6359
6360_ACEOF
6361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6362 $EGREP "memchr" >/dev/null 2>&1; then :
6363
6364else
6365 ac_cv_header_stdc=no
6366fi
6367rm -f conftest*
6368
6369fi
6370
6371if test $ac_cv_header_stdc = yes; then
6372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374/* end confdefs.h. */
6375#include <stdlib.h>
6376
6377_ACEOF
6378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6379 $EGREP "free" >/dev/null 2>&1; then :
6380
6381else
6382 ac_cv_header_stdc=no
6383fi
6384rm -f conftest*
6385
6386fi
6387
6388if test $ac_cv_header_stdc = yes; then
6389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6390 if test "$cross_compiling" = yes; then :
6391 :
6392else
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394/* end confdefs.h. */
6395#include <ctype.h>
6396#include <stdlib.h>
6397#if ((' ' & 0x0FF) == 0x020)
6398# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6399# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6400#else
6401# define ISLOWER(c) \
6402 (('a' <= (c) && (c) <= 'i') \
6403 || ('j' <= (c) && (c) <= 'r') \
6404 || ('s' <= (c) && (c) <= 'z'))
6405# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6406#endif
6407
6408#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6409int
6410main ()
6411{
6412 int i;
6413 for (i = 0; i < 256; i++)
6414 if (XOR (islower (i), ISLOWER (i))
6415 || toupper (i) != TOUPPER (i))
6416 return 2;
6417 return 0;
6418}
6419_ACEOF
6420if ac_fn_c_try_run "$LINENO"; then :
6421
6422else
6423 ac_cv_header_stdc=no
6424fi
6425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6426 conftest.$ac_objext conftest.beam conftest.$ac_ext
6427fi
6428
6429fi
6430fi
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6432$as_echo "$ac_cv_header_stdc" >&6; }
6433if test $ac_cv_header_stdc = yes; then
6434
6435$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6436
6437fi
6438
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006440$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006441if ${ac_cv_c_const+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006442 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006443else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006445/* end confdefs.h. */
6446
6447int
6448main ()
6449{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006451#ifndef __cplusplus
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006452 /* Ultrix mips cc rejects this sort of thing. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006453 typedef int charset[2];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006454 const charset cs = { 0, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006455 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006456 char const *const *pcpcc;
6457 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006458 /* NEC SVR4.0.2 mips cc rejects this. */
6459 struct point {int x, y;};
6460 static struct point const zero = {0,0};
6461 /* AIX XL C 1.02.0.0 rejects this.
6462 It does not let you subtract one const X* pointer from another in
6463 an arm of an if-expression whose if-part is not a constant
6464 expression */
6465 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006466 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006467 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006468 ++pcpcc;
6469 ppc = (char**) pcpcc;
6470 pcpcc = (char const *const *) ppc;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006471 { /* SCO 3.2v4 cc rejects this sort of thing. */
6472 char tx;
6473 char *t = &tx;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006474 char const *s = 0 ? (char *) 0 : (char const *) 0;
6475
6476 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006477 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006478 }
6479 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6480 int x[] = {25, 17};
6481 const int *foo = &x[0];
6482 ++foo;
6483 }
6484 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6485 typedef const int *iptr;
6486 iptr p = 0;
6487 ++p;
6488 }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006489 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006490 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006491 struct s { int j; const int *ap[3]; } bx;
6492 struct s *b = &bx; b->j = 5;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006493 }
6494 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6495 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006496 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006497 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006498 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006499#endif
6500
6501 ;
6502 return 0;
6503}
6504_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006505if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006506 ac_cv_c_const=yes
6507else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006508 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006509fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006511fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006513$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006514if test $ac_cv_c_const = no; then
6515
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006516$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006517
6518fi
6519
6520
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006522$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006523if ${bh_cv_c_signed+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006524 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006525else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006527/* end confdefs.h. */
6528
6529int
6530main ()
6531{
6532signed char x;
6533 ;
6534 return 0;
6535}
6536_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006537if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006538 bh_cv_c_signed=yes
6539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006540 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006541fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006543fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006545$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006546 if test $bh_cv_c_signed = no; then
6547
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006548$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006549
6550 fi
6551
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006553$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006554if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006555 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006556else
6557 ac_cv_c_inline=no
6558for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006560/* end confdefs.h. */
6561#ifndef __cplusplus
6562typedef int foo_t;
6563static $ac_kw foo_t static_foo () {return 0; }
6564$ac_kw foo_t foo () {return 0; }
6565#endif
6566
6567_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006568if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006569 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006570fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006573done
6574
6575fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006577$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006578
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006579case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006580 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006581 *)
6582 case $ac_cv_c_inline in
6583 no) ac_val=;;
6584 *) ac_val=$ac_cv_c_inline;;
6585 esac
6586 cat >>confdefs.h <<_ACEOF
6587#ifndef __cplusplus
6588#define inline $ac_val
6589#endif
6590_ACEOF
6591 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006592esac
6593
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006594# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6595for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6596 inttypes.h stdint.h unistd.h
6597do :
6598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6599ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6600"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006601if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006602 cat >>confdefs.h <<_ACEOF
6603#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6604_ACEOF
6605
6606fi
6607
6608done
6609
6610
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006611ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006612if test "x$ac_cv_type_off_t" = xyes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006613
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006614else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006615
6616cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006617#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006618_ACEOF
6619
6620fi
6621
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006622ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006623if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006624
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006625else
6626
6627cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006628#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006629_ACEOF
6630
6631fi
6632
6633
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006635$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006636if ${ac_cv_type_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006637 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006638else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006640/* end confdefs.h. */
6641long long ll = 1LL; int i = 63;
6642int
6643main ()
6644{
6645long long llmax = (long long) -1;
6646 return ll << i | ll >> i | llmax / ll | llmax % ll;
6647 ;
6648 return 0;
6649}
6650_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006651if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006652 ac_cv_type_long_long=yes
6653else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006654 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006655fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006656rm -f core conftest.err conftest.$ac_objext \
6657 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006660$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661 if test $ac_cv_type_long_long = yes; then
6662
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006663$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664
6665 fi
6666
6667
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006669$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006670if ${gt_cv_c_long_double+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006671 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006672else
6673 if test "$GCC" = yes; then
6674 gt_cv_c_long_double=yes
6675 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677/* end confdefs.h. */
6678
6679 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6680 long double foo = 0.0;
6681 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6682 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6683
6684int
6685main ()
6686{
6687
6688 ;
6689 return 0;
6690}
6691_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006692if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006693 gt_cv_c_long_double=yes
6694else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006695 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006696fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006698 fi
6699fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006701$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006702 if test $gt_cv_c_long_double = yes; then
6703
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006704$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006705
6706 fi
6707
6708
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006710$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006711if ${gt_cv_c_wchar_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006712 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006713else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006715/* end confdefs.h. */
6716#include <stddef.h>
6717 wchar_t foo = (wchar_t)'\0';
6718int
6719main ()
6720{
6721
6722 ;
6723 return 0;
6724}
6725_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006726if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006727 gt_cv_c_wchar_t=yes
6728else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006729 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006730fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006734$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006735 if test $gt_cv_c_wchar_t = yes; then
6736
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006737$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006738
6739 fi
6740
6741
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006743$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006744if ${gt_cv_c_wint_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006745 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006746else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006748/* end confdefs.h. */
6749#include <wchar.h>
6750 wint_t foo = (wchar_t)'\0';
6751int
6752main ()
6753{
6754
6755 ;
6756 return 0;
6757}
6758_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006759if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006760 gt_cv_c_wint_t=yes
6761else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006762 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006763fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006765fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006767$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006768 if test $gt_cv_c_wint_t = yes; then
6769
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006770$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006771
6772 fi
6773
6774
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006776$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006777if ${jm_ac_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006778 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006779else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781/* end confdefs.h. */
6782#include <sys/types.h>
6783#include <inttypes.h>
6784int
6785main ()
6786{
6787uintmax_t i = (uintmax_t) -1;
6788 ;
6789 return 0;
6790}
6791_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006792if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006793 jm_ac_cv_header_inttypes_h=yes
6794else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006795 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006796fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006798fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006800$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006801 if test $jm_ac_cv_header_inttypes_h = yes; then
6802
6803cat >>confdefs.h <<_ACEOF
6804#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6805_ACEOF
6806
6807 fi
6808
6809
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006811$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006812if ${jm_ac_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006813 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816/* end confdefs.h. */
6817#include <sys/types.h>
6818#include <stdint.h>
6819int
6820main ()
6821{
6822uintmax_t i = (uintmax_t) -1;
6823 ;
6824 return 0;
6825}
6826_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006827if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006828 jm_ac_cv_header_stdint_h=yes
6829else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006830 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006831fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006833fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006835$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006836 if test $jm_ac_cv_header_stdint_h = yes; then
6837
6838cat >>confdefs.h <<_ACEOF
6839#define HAVE_STDINT_H_WITH_UINTMAX 1
6840_ACEOF
6841
6842 fi
6843
6844
6845
6846
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006848$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006849if ${gt_cv_c_intmax_t+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006850 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006851else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853/* end confdefs.h. */
6854
6855#include <stddef.h>
6856#include <stdlib.h>
6857#if HAVE_STDINT_H_WITH_UINTMAX
6858#include <stdint.h>
6859#endif
6860#if HAVE_INTTYPES_H_WITH_UINTMAX
6861#include <inttypes.h>
6862#endif
6863
6864int
6865main ()
6866{
6867intmax_t x = -1;
6868 ;
6869 return 0;
6870}
6871_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006872if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006873 gt_cv_c_intmax_t=yes
6874else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006875 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006876fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006878fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006880$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006881 if test $gt_cv_c_intmax_t = yes; then
6882
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006883$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884
6885 fi
6886
6887
6888
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006890$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006891if ${gt_cv_func_printf_posix+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006892 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006893else
6894
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006895 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006896
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006898/* end confdefs.h. */
6899
6900#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6901 notposix
6902#endif
6903
6904_ACEOF
6905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006906 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006907 gt_cv_func_printf_posix="guessing no"
6908else
6909 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006910fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006911rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006912
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006913
6914else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006916/* end confdefs.h. */
6917
6918#include <stdio.h>
6919#include <string.h>
6920/* The string "%2$d %1$d", with dollar characters protected from the shell's
6921 dollar expansion (possibly an autoconf bug). */
6922static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6923static char buf[100];
6924int main ()
6925{
6926 sprintf (buf, format, 33, 55);
6927 return (strcmp (buf, "55 33") != 0);
6928}
6929_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006930if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006931 gt_cv_func_printf_posix=yes
6932else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006933 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006934fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6936 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006937fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006938
Theodore Ts'oe1052142006-10-21 21:46:47 -04006939
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006940fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006942$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943 case $gt_cv_func_printf_posix in
6944 *yes)
6945
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006946$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006947
6948 ;;
6949 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006950
6951# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6952# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006954$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006955if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006956 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006957else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006959/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006960#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006961int
6962main ()
6963{
6964char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006965 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006966 ;
6967 return 0;
6968}
6969_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006970if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006971 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006972else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006973 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006974fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006975rm -f core conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006977fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006979$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006980if test $ac_cv_working_alloca_h = yes; then
6981
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006982$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006983
6984fi
6985
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006987$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006988if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006989 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006990else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006993#ifdef __GNUC__
6994# define alloca __builtin_alloca
6995#else
6996# ifdef _MSC_VER
6997# include <malloc.h>
6998# define alloca _alloca
6999# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007000# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007001# include <alloca.h>
7002# else
7003# ifdef _AIX
7004 #pragma alloca
7005# else
7006# ifndef alloca /* predefined by HP cc +Olibcalls */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007007void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007008# endif
7009# endif
7010# endif
7011# endif
7012#endif
7013
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007014int
7015main ()
7016{
7017char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007018 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007019 ;
7020 return 0;
7021}
7022_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007023if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007024 ac_cv_func_alloca_works=yes
7025else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007026 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007028rm -f core conftest.err conftest.$ac_objext \
7029 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007030fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007032$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007033
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007034if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007035
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007036$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007037
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007038else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007039 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7040# that cause trouble. Some versions do not even contain alloca or
7041# contain a buggy version. If you still want to use their alloca,
7042# use ar to extract alloca.o from them instead of compiling alloca.c.
7043
Theodore Ts'oe1052142006-10-21 21:46:47 -04007044ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007045
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007046$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007047
7048
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007050$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007051if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007052 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007053else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007055/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007056#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007057webecray
7058#else
7059wenotbecray
7060#endif
7061
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007062_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007064 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007065 ac_cv_os_cray=yes
7066else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007067 ac_cv_os_cray=no
7068fi
7069rm -f conftest*
7070
7071fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007073$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007074if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007075 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007077ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007078if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007079
7080cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007081#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007082_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007083
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007084 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007085fi
7086
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007087 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007088fi
7089
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007091$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007092if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007093 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007094else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007095 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007096 ac_cv_c_stack_direction=0
7097else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007099/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007100$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007101int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007102find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007103{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007104 int dir, dummy = 0;
7105 if (! addr)
7106 addr = &dummy;
7107 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7108 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7109 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007110}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007111
7112int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007113main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007114{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007115 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007116}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007117_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007118if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007119 ac_cv_c_stack_direction=1
7120else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007121 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007122fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7124 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007125fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007127fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007129$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007130cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007131#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007132_ACEOF
7133
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007134
7135fi
7136
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007137
7138
7139
7140 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007141do :
7142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007143ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7144"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007145if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007146 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007147#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007148_ACEOF
7149
7150fi
7151
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007152done
7153
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007154
7155
7156
7157
7158
7159
7160
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007161for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007162do :
7163 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007164if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007165 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007166#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007167_ACEOF
7168
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007169fi
7170done
7171
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007173$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007174if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007175 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007176else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007177 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007178 ac_cv_func_mmap_fixed_mapped=no
7179else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007181/* end confdefs.h. */
7182$ac_includes_default
7183/* malloc might have been renamed as rpl_malloc. */
7184#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007185
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007186/* Thanks to Mike Haertel and Jim Avera for this test.
7187 Here is a matrix of mmap possibilities:
7188 mmap private not fixed
7189 mmap private fixed at somewhere currently unmapped
7190 mmap private fixed at somewhere already mapped
7191 mmap shared not fixed
7192 mmap shared fixed at somewhere currently unmapped
7193 mmap shared fixed at somewhere already mapped
7194 For private mappings, we should verify that changes cannot be read()
7195 back from the file, nor mmap's back from the file at a different
7196 address. (There have been systems where private was not correctly
7197 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007198 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007199 like early versions of FreeBSD and possibly contemporary NetBSD.)
7200 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007201 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007202
7203 Grep wants private fixed already mapped.
7204 The main things grep needs to know about mmap are:
7205 * does it exist and is it safe to write into the mmap'd area
7206 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007207
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007208#include <fcntl.h>
7209#include <sys/mman.h>
7210
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007211#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007212char *malloc ();
7213#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007215/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007216#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007217# ifdef _SC_PAGESIZE
7218# define getpagesize() sysconf(_SC_PAGESIZE)
7219# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007220# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007221# include <sys/param.h>
7222# ifdef EXEC_PAGESIZE
7223# define getpagesize() EXEC_PAGESIZE
7224# else /* no EXEC_PAGESIZE */
7225# ifdef NBPG
7226# define getpagesize() NBPG * CLSIZE
7227# ifndef CLSIZE
7228# define CLSIZE 1
7229# endif /* no CLSIZE */
7230# else /* no NBPG */
7231# ifdef NBPC
7232# define getpagesize() NBPC
7233# else /* no NBPC */
7234# ifdef PAGESIZE
7235# define getpagesize() PAGESIZE
7236# endif /* PAGESIZE */
7237# endif /* no NBPC */
7238# endif /* no NBPG */
7239# endif /* no EXEC_PAGESIZE */
7240# else /* no HAVE_SYS_PARAM_H */
7241# define getpagesize() 8192 /* punt totally */
7242# endif /* no HAVE_SYS_PARAM_H */
7243# endif /* no _SC_PAGESIZE */
7244
7245#endif /* no HAVE_GETPAGESIZE */
7246
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007247int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007248main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007249{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007250 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007251 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007252 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007253 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007254
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007255 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007256
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007257 /* First, make a file with some known garbage in it. */
7258 data = (char *) malloc (pagesize);
7259 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007260 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007261 for (i = 0; i < pagesize; ++i)
7262 *(data + i) = rand ();
7263 umask (0);
7264 fd = creat ("conftest.mmap", 0600);
7265 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007266 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007267 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007268 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007269 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007270
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007271 /* Next, check that the tail of a page is zero-filled. File must have
7272 non-zero length, otherwise we risk SIGBUS for entire page. */
7273 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7274 if (fd2 < 0)
7275 return 4;
7276 cdata2 = "";
7277 if (write (fd2, cdata2, 1) != 1)
7278 return 5;
7279 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7280 if (data2 == MAP_FAILED)
7281 return 6;
7282 for (i = 0; i < pagesize; ++i)
7283 if (*(data2 + i))
7284 return 7;
7285 close (fd2);
7286 if (munmap (data2, pagesize))
7287 return 8;
7288
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007289 /* Next, try to mmap the file at a fixed address which already has
7290 something else allocated at it. If we can, also make sure that
7291 we see the same garbage. */
7292 fd = open ("conftest.mmap", O_RDWR);
7293 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007294 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007295 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7296 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007297 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007298 for (i = 0; i < pagesize; ++i)
7299 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007300 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007301
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007302 /* Finally, make sure that changes to the mapped area do not
7303 percolate back to the file as seen by read(). (This is a bug on
7304 some variants of i386 svr4.0.) */
7305 for (i = 0; i < pagesize; ++i)
7306 *(data2 + i) = *(data2 + i) + 1;
7307 data3 = (char *) malloc (pagesize);
7308 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007309 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007310 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007311 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007312 for (i = 0; i < pagesize; ++i)
7313 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007314 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007315 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007316 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007317}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007319if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007320 ac_cv_func_mmap_fixed_mapped=yes
7321else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007322 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007323fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7325 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007326fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007327
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007328fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007330$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007331if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007332
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007333$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007334
7335fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007336rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007337
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007338
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007339 { $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 +01007340$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007341if ${ac_cv_gnu_library_2_1+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007342 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007343else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007345/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007346
7347#include <features.h>
7348#ifdef __GNU_LIBRARY__
7349 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7350 Lucky GNU user
7351 #endif
7352#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007353
7354_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007356 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007357 ac_cv_gnu_library_2_1=yes
7358else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007359 ac_cv_gnu_library_2_1=no
7360fi
7361rm -f conftest*
7362
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007363
7364
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007365fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007367$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007368
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007369 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007370
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007371
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007372
7373
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007375$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007376if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007377 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007378else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007379
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007380 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007381
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007382 # Guess based on the CPU.
7383 case "$host_cpu" in
7384 alpha* | i3456786 | m68k | s390*)
7385 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7386 *)
7387 gt_cv_int_divbyzero_sigfpe="guessing no";;
7388 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007389
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007390else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007392/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007393
7394#include <stdlib.h>
7395#include <signal.h>
7396
7397static void
7398#ifdef __cplusplus
7399sigfpe_handler (int sig)
7400#else
7401sigfpe_handler (sig) int sig;
7402#endif
7403{
7404 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7405 exit (sig != SIGFPE);
7406}
7407
7408int x = 1;
7409int y = 0;
7410int z;
7411int nan;
7412
7413int main ()
7414{
7415 signal (SIGFPE, sigfpe_handler);
7416/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7417#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7418 signal (SIGTRAP, sigfpe_handler);
7419#endif
7420/* Linux/SPARC yields signal SIGILL. */
7421#if defined (__sparc__) && defined (__linux__)
7422 signal (SIGILL, sigfpe_handler);
7423#endif
7424
7425 z = x / y;
7426 nan = y / y;
7427 exit (1);
7428}
7429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007430_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007431if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007432 gt_cv_int_divbyzero_sigfpe=yes
7433else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007434 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007435fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7437 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007438fi
7439
Theodore Ts'oe1052142006-10-21 21:46:47 -04007440
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007441fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007443$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007444 case "$gt_cv_int_divbyzero_sigfpe" in
7445 *yes) value=1;;
7446 *) value=0;;
7447 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007448
7449cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007450#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007451_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007452
7453
7454
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007456$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007457if ${ac_cv_type_unsigned_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007458 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007459else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007461/* end confdefs.h. */
7462unsigned long long ull = 1ULL; int i = 63;
7463int
7464main ()
7465{
7466unsigned long long ullmax = (unsigned long long) -1;
7467 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7468 ;
7469 return 0;
7470}
7471_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007472if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007473 ac_cv_type_unsigned_long_long=yes
7474else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007475 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007476fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007477rm -f core conftest.err conftest.$ac_objext \
7478 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007479fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007481$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007482 if test $ac_cv_type_unsigned_long_long = yes; then
7483
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007484$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007485
7486 fi
7487
7488
7489
7490
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007491 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 -05007492
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007493 test $ac_cv_type_unsigned_long_long = yes \
7494 && ac_type='unsigned long long' \
7495 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007496
7497cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007498#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007499_ACEOF
7500
7501 else
7502
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007503$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007504
7505 fi
7506
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007507
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007509$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007510if ${gt_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007511 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007512else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007513
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007515/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007516#include <sys/types.h>
7517#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518int
7519main ()
7520{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007522 ;
7523 return 0;
7524}
7525_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007526if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007527 gt_cv_header_inttypes_h=yes
7528else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007529 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007530fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007532
7533fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007535$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007536 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007537
7538cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007539#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007540_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007541
7542 fi
7543
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007544
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007545
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007546 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007547 { $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 +01007548$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007549if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007550 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007551else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007552
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007554/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007555#include <inttypes.h>
7556#ifdef PRId32
7557char *p = PRId32;
7558#endif
7559
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007560int
7561main ()
7562{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007564 ;
7565 return 0;
7566}
7567_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007568if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007569 gt_cv_inttypes_pri_broken=no
7570else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007571 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007572fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007574
7575fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007577$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007578 fi
7579 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007580
7581cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007582#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007583_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007584
7585 fi
7586
7587
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007588 for ac_header in stdint.h
7589do :
7590 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007591if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007592 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007593#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007594_ACEOF
7595
7596fi
7597
7598done
7599
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007601$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007602 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007604/* end confdefs.h. */
7605
7606#include <limits.h>
7607#if HAVE_STDINT_H
7608#include <stdint.h>
7609#endif
7610#ifdef SIZE_MAX
7611Found it
7612#endif
7613
7614_ACEOF
7615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007616 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007617 result=yes
7618fi
7619rm -f conftest*
7620
7621 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007622 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 -05007623
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007624else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007625 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007626fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007627
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007628
7629 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7630
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007632 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007633fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007634
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007635
7636 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7637
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007638else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007639 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007640fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007641
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007642
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007643 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007645/* end confdefs.h. */
7646#include <stddef.h>
7647 extern size_t foo;
7648 extern unsigned long foo;
7649
7650int
7651main ()
7652{
7653
7654 ;
7655 return 0;
7656}
7657_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007658if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007659 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007660fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007662 fi
7663 if test -z "$result"; then
7664 if test "$fits_in_uint" = 1; then
7665 result="$res_hi$res_lo"U
7666 else
7667 result="$res_hi$res_lo"UL
7668 fi
7669 else
7670 result='~(size_t)0'
7671 fi
7672 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007674$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007675 if test "$result" != yes; then
7676
7677cat >>confdefs.h <<_ACEOF
7678#define SIZE_MAX $result
7679_ACEOF
7680
7681 fi
7682
7683
7684
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007685 for ac_header in stdint.h
7686do :
7687 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007688if test "x$ac_cv_header_stdint_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007689 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007690#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007691_ACEOF
7692
7693fi
7694
7695done
7696
7697
7698
7699 if test "X$prefix" = "XNONE"; then
7700 acl_final_prefix="$ac_default_prefix"
7701 else
7702 acl_final_prefix="$prefix"
7703 fi
7704 if test "X$exec_prefix" = "XNONE"; then
7705 acl_final_exec_prefix='${prefix}'
7706 else
7707 acl_final_exec_prefix="$exec_prefix"
7708 fi
7709 acl_save_prefix="$prefix"
7710 prefix="$acl_final_prefix"
7711 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7712 prefix="$acl_save_prefix"
7713
7714
Theodore Ts'oe1052142006-10-21 21:46:47 -04007715# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007716if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007717 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718else
7719 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007720fi
7721
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007722# Prepare PATH_SEPARATOR.
7723# The user is always right.
7724if test "${PATH_SEPARATOR+set}" != set; then
7725 echo "#! /bin/sh" >conf$$.sh
7726 echo "exit 0" >>conf$$.sh
7727 chmod +x conf$$.sh
7728 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7729 PATH_SEPARATOR=';'
7730 else
7731 PATH_SEPARATOR=:
7732 fi
7733 rm -f conf$$.sh
7734fi
7735ac_prog=ld
7736if test "$GCC" = yes; then
7737 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007739$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007740 case $host in
7741 *-*-mingw*)
7742 # gcc leaves a trailing carriage return which upsets mingw
7743 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7744 *)
7745 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7746 esac
7747 case $ac_prog in
7748 # Accept absolute paths.
7749 [\\/]* | [A-Za-z]:[\\/]*)
7750 re_direlt='/[^/][^/]*/\.\./'
7751 # Canonicalize the path of ld
7752 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7753 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7754 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7755 done
7756 test -z "$LD" && LD="$ac_prog"
7757 ;;
7758 "")
7759 # If it fails, then pretend we aren't using GCC.
7760 ac_prog=ld
7761 ;;
7762 *)
7763 # If it is relative, then search for the first ld in PATH.
7764 with_gnu_ld=unknown
7765 ;;
7766 esac
7767elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007769$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007770else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007772$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007773fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007774if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007775 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007776else
7777 if test -z "$LD"; then
7778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7779 for ac_dir in $PATH; do
7780 test -z "$ac_dir" && ac_dir=.
7781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7782 acl_cv_path_LD="$ac_dir/$ac_prog"
7783 # Check to see if the program is GNU ld. I'd rather use --version,
7784 # but apparently some GNU ld's only accept -v.
7785 # Break only if it was the GNU/non-GNU ld that we prefer.
7786 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7787 *GNU* | *'with BFD'*)
7788 test "$with_gnu_ld" != no && break ;;
7789 *)
7790 test "$with_gnu_ld" != yes && break ;;
7791 esac
7792 fi
7793 done
7794 IFS="$ac_save_ifs"
7795else
7796 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7797fi
7798fi
7799
7800LD="$acl_cv_path_LD"
7801if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007803$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007804else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007806$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007807fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007808test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007810$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007811if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007812 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007813else
7814 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7815case `$LD -v 2>&1 </dev/null` in
7816*GNU* | *'with BFD'*)
7817 acl_cv_prog_gnu_ld=yes ;;
7818*)
7819 acl_cv_prog_gnu_ld=no ;;
7820esac
7821fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007823$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007824with_gnu_ld=$acl_cv_prog_gnu_ld
7825
7826
7827
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007829$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007830if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007831 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007832else
7833
7834 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7835 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7836 . ./conftest.sh
7837 rm -f ./conftest.sh
7838 acl_cv_rpath=done
7839
7840fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007842$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007843 wl="$acl_cv_wl"
7844 libext="$acl_cv_libext"
7845 shlibext="$acl_cv_shlibext"
7846 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7847 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7848 hardcode_direct="$acl_cv_hardcode_direct"
7849 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007850 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007851if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007852 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007853else
7854 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007855fi
7856
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007857
7858
7859
7860
7861
7862
7863
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007864 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007865
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007866 acl_save_prefix="$prefix"
7867 prefix="$acl_final_prefix"
7868 acl_save_exec_prefix="$exec_prefix"
7869 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007870
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007871 eval additional_includedir=\"$includedir\"
7872 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007873
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007874 exec_prefix="$acl_save_exec_prefix"
7875 prefix="$acl_save_prefix"
7876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007877
Theodore Ts'oe1052142006-10-21 21:46:47 -04007878# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007879if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007880 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007881 if test "X$withval" = "Xno"; then
7882 use_additional=no
7883 else
7884 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007885
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007886 acl_save_prefix="$prefix"
7887 prefix="$acl_final_prefix"
7888 acl_save_exec_prefix="$exec_prefix"
7889 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007890
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007891 eval additional_includedir=\"$includedir\"
7892 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007893
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007894 exec_prefix="$acl_save_exec_prefix"
7895 prefix="$acl_save_prefix"
7896
7897 else
7898 additional_includedir="$withval/include"
7899 additional_libdir="$withval/lib"
7900 fi
7901 fi
7902
Theodore Ts'oe1052142006-10-21 21:46:47 -04007903fi
7904
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007905 LIBICONV=
7906 LTLIBICONV=
7907 INCICONV=
7908 rpathdirs=
7909 ltrpathdirs=
7910 names_already_handled=
7911 names_next_round='iconv '
7912 while test -n "$names_next_round"; do
7913 names_this_round="$names_next_round"
7914 names_next_round=
7915 for name in $names_this_round; do
7916 already_handled=
7917 for n in $names_already_handled; do
7918 if test "$n" = "$name"; then
7919 already_handled=yes
7920 break
7921 fi
7922 done
7923 if test -z "$already_handled"; then
7924 names_already_handled="$names_already_handled $name"
7925 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7926 eval value=\"\$HAVE_LIB$uppername\"
7927 if test -n "$value"; then
7928 if test "$value" = yes; then
7929 eval value=\"\$LIB$uppername\"
7930 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7931 eval value=\"\$LTLIB$uppername\"
7932 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7933 else
7934 :
7935 fi
7936 else
7937 found_dir=
7938 found_la=
7939 found_so=
7940 found_a=
7941 if test $use_additional = yes; then
7942 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7943 found_dir="$additional_libdir"
7944 found_so="$additional_libdir/lib$name.$shlibext"
7945 if test -f "$additional_libdir/lib$name.la"; then
7946 found_la="$additional_libdir/lib$name.la"
7947 fi
7948 else
7949 if test -f "$additional_libdir/lib$name.$libext"; then
7950 found_dir="$additional_libdir"
7951 found_a="$additional_libdir/lib$name.$libext"
7952 if test -f "$additional_libdir/lib$name.la"; then
7953 found_la="$additional_libdir/lib$name.la"
7954 fi
7955 fi
7956 fi
7957 fi
7958 if test "X$found_dir" = "X"; then
7959 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007960
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007961 acl_save_prefix="$prefix"
7962 prefix="$acl_final_prefix"
7963 acl_save_exec_prefix="$exec_prefix"
7964 exec_prefix="$acl_final_exec_prefix"
7965 eval x=\"$x\"
7966 exec_prefix="$acl_save_exec_prefix"
7967 prefix="$acl_save_prefix"
7968
7969 case "$x" in
7970 -L*)
7971 dir=`echo "X$x" | sed -e 's/^X-L//'`
7972 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7973 found_dir="$dir"
7974 found_so="$dir/lib$name.$shlibext"
7975 if test -f "$dir/lib$name.la"; then
7976 found_la="$dir/lib$name.la"
7977 fi
7978 else
7979 if test -f "$dir/lib$name.$libext"; then
7980 found_dir="$dir"
7981 found_a="$dir/lib$name.$libext"
7982 if test -f "$dir/lib$name.la"; then
7983 found_la="$dir/lib$name.la"
7984 fi
7985 fi
7986 fi
7987 ;;
7988 esac
7989 if test "X$found_dir" != "X"; then
7990 break
7991 fi
7992 done
7993 fi
7994 if test "X$found_dir" != "X"; then
7995 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7996 if test "X$found_so" != "X"; then
7997 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7998 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7999 else
8000 haveit=
8001 for x in $ltrpathdirs; do
8002 if test "X$x" = "X$found_dir"; then
8003 haveit=yes
8004 break
8005 fi
8006 done
8007 if test -z "$haveit"; then
8008 ltrpathdirs="$ltrpathdirs $found_dir"
8009 fi
8010 if test "$hardcode_direct" = yes; then
8011 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8012 else
8013 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8015 haveit=
8016 for x in $rpathdirs; do
8017 if test "X$x" = "X$found_dir"; then
8018 haveit=yes
8019 break
8020 fi
8021 done
8022 if test -z "$haveit"; then
8023 rpathdirs="$rpathdirs $found_dir"
8024 fi
8025 else
8026 haveit=
8027 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008028
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008029 acl_save_prefix="$prefix"
8030 prefix="$acl_final_prefix"
8031 acl_save_exec_prefix="$exec_prefix"
8032 exec_prefix="$acl_final_exec_prefix"
8033 eval x=\"$x\"
8034 exec_prefix="$acl_save_exec_prefix"
8035 prefix="$acl_save_prefix"
8036
8037 if test "X$x" = "X-L$found_dir"; then
8038 haveit=yes
8039 break
8040 fi
8041 done
8042 if test -z "$haveit"; then
8043 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8044 fi
8045 if test "$hardcode_minus_L" != no; then
8046 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8047 else
8048 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8049 fi
8050 fi
8051 fi
8052 fi
8053 else
8054 if test "X$found_a" != "X"; then
8055 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8056 else
8057 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8058 fi
8059 fi
8060 additional_includedir=
8061 case "$found_dir" in
8062 */lib | */lib/)
8063 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8064 additional_includedir="$basedir/include"
8065 ;;
8066 esac
8067 if test "X$additional_includedir" != "X"; then
8068 if test "X$additional_includedir" != "X/usr/include"; then
8069 haveit=
8070 if test "X$additional_includedir" = "X/usr/local/include"; then
8071 if test -n "$GCC"; then
8072 case $host_os in
8073 linux*) haveit=yes;;
8074 esac
8075 fi
8076 fi
8077 if test -z "$haveit"; then
8078 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008079
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008080 acl_save_prefix="$prefix"
8081 prefix="$acl_final_prefix"
8082 acl_save_exec_prefix="$exec_prefix"
8083 exec_prefix="$acl_final_exec_prefix"
8084 eval x=\"$x\"
8085 exec_prefix="$acl_save_exec_prefix"
8086 prefix="$acl_save_prefix"
8087
8088 if test "X$x" = "X-I$additional_includedir"; then
8089 haveit=yes
8090 break
8091 fi
8092 done
8093 if test -z "$haveit"; then
8094 if test -d "$additional_includedir"; then
8095 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8096 fi
8097 fi
8098 fi
8099 fi
8100 fi
8101 if test -n "$found_la"; then
8102 save_libdir="$libdir"
8103 case "$found_la" in
8104 */* | *\\*) . "$found_la" ;;
8105 *) . "./$found_la" ;;
8106 esac
8107 libdir="$save_libdir"
8108 for dep in $dependency_libs; do
8109 case "$dep" in
8110 -L*)
8111 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8112 if test "X$additional_libdir" != "X/usr/lib"; then
8113 haveit=
8114 if test "X$additional_libdir" = "X/usr/local/lib"; then
8115 if test -n "$GCC"; then
8116 case $host_os in
8117 linux*) haveit=yes;;
8118 esac
8119 fi
8120 fi
8121 if test -z "$haveit"; then
8122 haveit=
8123 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008124
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008125 acl_save_prefix="$prefix"
8126 prefix="$acl_final_prefix"
8127 acl_save_exec_prefix="$exec_prefix"
8128 exec_prefix="$acl_final_exec_prefix"
8129 eval x=\"$x\"
8130 exec_prefix="$acl_save_exec_prefix"
8131 prefix="$acl_save_prefix"
8132
8133 if test "X$x" = "X-L$additional_libdir"; then
8134 haveit=yes
8135 break
8136 fi
8137 done
8138 if test -z "$haveit"; then
8139 if test -d "$additional_libdir"; then
8140 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8141 fi
8142 fi
8143 haveit=
8144 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008145
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008146 acl_save_prefix="$prefix"
8147 prefix="$acl_final_prefix"
8148 acl_save_exec_prefix="$exec_prefix"
8149 exec_prefix="$acl_final_exec_prefix"
8150 eval x=\"$x\"
8151 exec_prefix="$acl_save_exec_prefix"
8152 prefix="$acl_save_prefix"
8153
8154 if test "X$x" = "X-L$additional_libdir"; then
8155 haveit=yes
8156 break
8157 fi
8158 done
8159 if test -z "$haveit"; then
8160 if test -d "$additional_libdir"; then
8161 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8162 fi
8163 fi
8164 fi
8165 fi
8166 ;;
8167 -R*)
8168 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8169 if test "$enable_rpath" != no; then
8170 haveit=
8171 for x in $rpathdirs; do
8172 if test "X$x" = "X$dir"; then
8173 haveit=yes
8174 break
8175 fi
8176 done
8177 if test -z "$haveit"; then
8178 rpathdirs="$rpathdirs $dir"
8179 fi
8180 haveit=
8181 for x in $ltrpathdirs; do
8182 if test "X$x" = "X$dir"; then
8183 haveit=yes
8184 break
8185 fi
8186 done
8187 if test -z "$haveit"; then
8188 ltrpathdirs="$ltrpathdirs $dir"
8189 fi
8190 fi
8191 ;;
8192 -l*)
8193 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8194 ;;
8195 *.la)
8196 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8197 ;;
8198 *)
8199 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8200 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8201 ;;
8202 esac
8203 done
8204 fi
8205 else
8206 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8207 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8208 fi
8209 fi
8210 fi
8211 done
8212 done
8213 if test "X$rpathdirs" != "X"; then
8214 if test -n "$hardcode_libdir_separator"; then
8215 alldirs=
8216 for found_dir in $rpathdirs; do
8217 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8218 done
8219 acl_save_libdir="$libdir"
8220 libdir="$alldirs"
8221 eval flag=\"$hardcode_libdir_flag_spec\"
8222 libdir="$acl_save_libdir"
8223 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8224 else
8225 for found_dir in $rpathdirs; do
8226 acl_save_libdir="$libdir"
8227 libdir="$found_dir"
8228 eval flag=\"$hardcode_libdir_flag_spec\"
8229 libdir="$acl_save_libdir"
8230 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8231 done
8232 fi
8233 fi
8234 if test "X$ltrpathdirs" != "X"; then
8235 for found_dir in $ltrpathdirs; do
8236 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8237 done
8238 fi
8239
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008240
8241
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008242
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008243
8244
8245
8246
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008247 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008248if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008249
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008250else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008251
8252$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008253
8254
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008255fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008256
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008257 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 -04008258stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008259do :
8260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8261ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008262if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008263 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008264#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008265_ACEOF
8266
8267fi
8268
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008269done
8270
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008271 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008272mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8273strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8274__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008275do :
8276 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8277ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008278if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008279 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008280#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008281_ACEOF
8282
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008283fi
8284done
8285
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008286
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008287
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008289$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008290if ${ac_cv_have_decl__snprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008291 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008292else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008294/* end confdefs.h. */
8295#include <stdio.h>
8296int
8297main ()
8298{
8299
8300#ifndef _snprintf
8301 char *p = (char *) _snprintf;
8302#endif
8303
8304 ;
8305 return 0;
8306}
8307_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008308if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008309 ac_cv_have_decl__snprintf=yes
8310else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008311 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008312fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008314fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008316$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008317 if test $ac_cv_have_decl__snprintf = yes; then
8318 gt_value=1
8319 else
8320 gt_value=0
8321 fi
8322
8323cat >>confdefs.h <<_ACEOF
8324#define HAVE_DECL__SNPRINTF $gt_value
8325_ACEOF
8326
8327
8328
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008330$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008331if ${ac_cv_have_decl__snwprintf+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008332 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008333else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008335/* end confdefs.h. */
8336#include <stdio.h>
8337int
8338main ()
8339{
8340
8341#ifndef _snwprintf
8342 char *p = (char *) _snwprintf;
8343#endif
8344
8345 ;
8346 return 0;
8347}
8348_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008349if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008350 ac_cv_have_decl__snwprintf=yes
8351else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008352 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008353fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008355fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008357$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008358 if test $ac_cv_have_decl__snwprintf = yes; then
8359 gt_value=1
8360 else
8361 gt_value=0
8362 fi
8363
8364cat >>confdefs.h <<_ACEOF
8365#define HAVE_DECL__SNWPRINTF $gt_value
8366_ACEOF
8367
8368
8369
8370
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008372$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008373if ${ac_cv_have_decl_feof_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008374 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008375else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008377/* end confdefs.h. */
8378#include <stdio.h>
8379int
8380main ()
8381{
8382
8383#ifndef feof_unlocked
8384 char *p = (char *) feof_unlocked;
8385#endif
8386
8387 ;
8388 return 0;
8389}
8390_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008391if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008392 ac_cv_have_decl_feof_unlocked=yes
8393else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008394 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008395fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008397fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008399$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008400 if test $ac_cv_have_decl_feof_unlocked = yes; then
8401 gt_value=1
8402 else
8403 gt_value=0
8404 fi
8405
8406cat >>confdefs.h <<_ACEOF
8407#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8408_ACEOF
8409
8410
8411
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008413$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008414if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008415 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008416else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008418/* end confdefs.h. */
8419#include <stdio.h>
8420int
8421main ()
8422{
8423
8424#ifndef fgets_unlocked
8425 char *p = (char *) fgets_unlocked;
8426#endif
8427
8428 ;
8429 return 0;
8430}
8431_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008432if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008433 ac_cv_have_decl_fgets_unlocked=yes
8434else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008435 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008438fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008440$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008441 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8442 gt_value=1
8443 else
8444 gt_value=0
8445 fi
8446
8447cat >>confdefs.h <<_ACEOF
8448#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8449_ACEOF
8450
8451
8452
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008454$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008455if ${ac_cv_have_decl_getc_unlocked+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008456 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008457else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008459/* end confdefs.h. */
8460#include <stdio.h>
8461int
8462main ()
8463{
8464
8465#ifndef getc_unlocked
8466 char *p = (char *) getc_unlocked;
8467#endif
8468
8469 ;
8470 return 0;
8471}
8472_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008473if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008474 ac_cv_have_decl_getc_unlocked=yes
8475else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008476 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008477fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008479fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008481$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008482 if test $ac_cv_have_decl_getc_unlocked = yes; then
8483 gt_value=1
8484 else
8485 gt_value=0
8486 fi
8487
8488cat >>confdefs.h <<_ACEOF
8489#define HAVE_DECL_GETC_UNLOCKED $gt_value
8490_ACEOF
8491
8492
8493
8494 case $gt_cv_func_printf_posix in
8495 *yes) HAVE_POSIX_PRINTF=1 ;;
8496 *) HAVE_POSIX_PRINTF=0 ;;
8497 esac
8498
8499 if test "$ac_cv_func_asprintf" = yes; then
8500 HAVE_ASPRINTF=1
8501 else
8502 HAVE_ASPRINTF=0
8503 fi
8504
8505 if test "$ac_cv_func_snprintf" = yes; then
8506 HAVE_SNPRINTF=1
8507 else
8508 HAVE_SNPRINTF=0
8509 fi
8510
8511 if test "$ac_cv_func_wprintf" = yes; then
8512 HAVE_WPRINTF=1
8513 else
8514 HAVE_WPRINTF=0
8515 fi
8516
8517
8518
8519
8520
8521
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008522
8523 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008524
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008525 for element in $INCICONV; do
8526 haveit=
8527 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008528
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008529 acl_save_prefix="$prefix"
8530 prefix="$acl_final_prefix"
8531 acl_save_exec_prefix="$exec_prefix"
8532 exec_prefix="$acl_final_exec_prefix"
8533 eval x=\"$x\"
8534 exec_prefix="$acl_save_exec_prefix"
8535 prefix="$acl_save_prefix"
8536
8537 if test "X$x" = "X$element"; then
8538 haveit=yes
8539 break
8540 fi
8541 done
8542 if test -z "$haveit"; then
8543 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8544 fi
8545 done
8546
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008547
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008549$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008550if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008551 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008552else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008553
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008554 am_cv_func_iconv="no, consider installing GNU libiconv"
8555 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008557/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008558#include <stdlib.h>
8559#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008560int
8561main ()
8562{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008563iconv_t cd = iconv_open("","");
8564 iconv(cd,NULL,NULL,NULL,NULL);
8565 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008566 ;
8567 return 0;
8568}
8569_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008570if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008571 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008572fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008573rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008575 if test "$am_cv_func_iconv" != yes; then
8576 am_save_LIBS="$LIBS"
8577 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008579/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008580#include <stdlib.h>
8581#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008582int
8583main ()
8584{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008585iconv_t cd = iconv_open("","");
8586 iconv(cd,NULL,NULL,NULL,NULL);
8587 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008588 ;
8589 return 0;
8590}
8591_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008592if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008593 am_cv_lib_iconv=yes
8594 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 LIBS="$am_save_LIBS"
8599 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008600
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008601fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008603$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008604 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008605
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008606$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008607
8608 fi
8609 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008611$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008613$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008614 else
8615 CPPFLAGS="$am_save_CPPFLAGS"
8616 LIBICONV=
8617 LTLIBICONV=
8618 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008619
8620
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008621
8622 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008624$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008625 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008626 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008627else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008628
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008630/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008631
8632#include <stdlib.h>
8633#include <iconv.h>
8634extern
8635#ifdef __cplusplus
8636"C"
8637#endif
8638#if defined(__STDC__) || defined(__cplusplus)
8639size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8640#else
8641size_t iconv();
8642#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008643
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008644int
8645main ()
8646{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008647
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008648 ;
8649 return 0;
8650}
8651_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008652if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008653 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008654else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008655 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008656fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008658 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 +00008659fi
8660
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008661 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008663 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008664$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008665 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008666
8667cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008668#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008669_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008670
8671 fi
8672
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008673
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008675$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008676if ${am_cv_langinfo_codeset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008677 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008678else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008680/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008681#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008682int
8683main ()
8684{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008685char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008686 ;
8687 return 0;
8688}
8689_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008690if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008691 am_cv_langinfo_codeset=yes
8692else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008693 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008694fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008695rm -f core conftest.err conftest.$ac_objext \
8696 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008697
8698fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008700$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008701 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008702
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008703$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008704
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008705 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008706
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008707 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008708
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008710$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008711if ${am_cv_val_LC_MESSAGES+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008712 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008713else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008715/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008716#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008717int
8718main ()
8719{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008720return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008721 ;
8722 return 0;
8723}
8724_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008725if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008726 am_cv_val_LC_MESSAGES=yes
8727else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008728 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008729fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008730rm -f core conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008732fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008734$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008735 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008736
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008737$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008738
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008739 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008740
8741 fi
8742
8743 for ac_prog in bison
8744do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008745 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008746set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008748$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008749if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008750 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008751else
8752 if test -n "$INTLBISON"; then
8753 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8754else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756for as_dir in $PATH
8757do
8758 IFS=$as_save_IFS
8759 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008760 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008762 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008764 break 2
8765 fi
8766done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008767 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008768IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008769
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008770fi
8771fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008772INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008773if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008775$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008776else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008778$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008779fi
8780
Theodore Ts'oe1052142006-10-21 21:46:47 -04008781
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008782 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008783done
8784
8785 if test -z "$INTLBISON"; then
8786 ac_verc_fail=yes
8787 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008789$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008790 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8791 case $ac_prog_version in
8792 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8793 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8794 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8795 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8796 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008798$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008799 fi
8800 if test $ac_verc_fail = yes; then
8801 INTLBISON=:
8802 fi
8803
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008804
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008805
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008806
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008807
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008808
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008809
8810
8811
8812
8813
8814
8815
8816
8817
8818
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008820$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008821 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008822if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008823 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008824else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008825 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008826fi
8827
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008829$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008830
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008831
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008832
8833
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008834 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008835 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008836
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008837 LIBINTL=
8838 LTLIBINTL=
8839 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008840
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008841 if test "$USE_NLS" = "yes"; then
8842 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008843
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008845$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008846
Theodore Ts'oe1052142006-10-21 21:46:47 -04008847# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008848if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008849 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008850else
8851 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008852fi
8853
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008855$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008856
8857 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8858 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008859
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008860
8861
8862
8863
8864
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008866$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04008867if ${gt_cv_func_gnugettext1_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008868 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008869else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008871/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008872#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008873extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008874extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008875int
8876main ()
8877{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008878bindtextdomain ("", "");
8879return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008880 ;
8881 return 0;
8882}
8883_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008884if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008885 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008886else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008887 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008888fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008889rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008891fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008893$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008894
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008895 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008896
8897
8898
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008899 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008900
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008901 acl_save_prefix="$prefix"
8902 prefix="$acl_final_prefix"
8903 acl_save_exec_prefix="$exec_prefix"
8904 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008905
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008906 eval additional_includedir=\"$includedir\"
8907 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008908
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008909 exec_prefix="$acl_save_exec_prefix"
8910 prefix="$acl_save_prefix"
8911
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008912
Theodore Ts'oe1052142006-10-21 21:46:47 -04008913# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008914if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008915 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008916 if test "X$withval" = "Xno"; then
8917 use_additional=no
8918 else
8919 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008920
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008921 acl_save_prefix="$prefix"
8922 prefix="$acl_final_prefix"
8923 acl_save_exec_prefix="$exec_prefix"
8924 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008925
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008926 eval additional_includedir=\"$includedir\"
8927 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008928
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008929 exec_prefix="$acl_save_exec_prefix"
8930 prefix="$acl_save_prefix"
8931
8932 else
8933 additional_includedir="$withval/include"
8934 additional_libdir="$withval/lib"
8935 fi
8936 fi
8937
Theodore Ts'oe1052142006-10-21 21:46:47 -04008938fi
8939
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008940 LIBINTL=
8941 LTLIBINTL=
8942 INCINTL=
8943 rpathdirs=
8944 ltrpathdirs=
8945 names_already_handled=
8946 names_next_round='intl '
8947 while test -n "$names_next_round"; do
8948 names_this_round="$names_next_round"
8949 names_next_round=
8950 for name in $names_this_round; do
8951 already_handled=
8952 for n in $names_already_handled; do
8953 if test "$n" = "$name"; then
8954 already_handled=yes
8955 break
8956 fi
8957 done
8958 if test -z "$already_handled"; then
8959 names_already_handled="$names_already_handled $name"
8960 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8961 eval value=\"\$HAVE_LIB$uppername\"
8962 if test -n "$value"; then
8963 if test "$value" = yes; then
8964 eval value=\"\$LIB$uppername\"
8965 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8966 eval value=\"\$LTLIB$uppername\"
8967 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8968 else
8969 :
8970 fi
8971 else
8972 found_dir=
8973 found_la=
8974 found_so=
8975 found_a=
8976 if test $use_additional = yes; then
8977 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8978 found_dir="$additional_libdir"
8979 found_so="$additional_libdir/lib$name.$shlibext"
8980 if test -f "$additional_libdir/lib$name.la"; then
8981 found_la="$additional_libdir/lib$name.la"
8982 fi
8983 else
8984 if test -f "$additional_libdir/lib$name.$libext"; then
8985 found_dir="$additional_libdir"
8986 found_a="$additional_libdir/lib$name.$libext"
8987 if test -f "$additional_libdir/lib$name.la"; then
8988 found_la="$additional_libdir/lib$name.la"
8989 fi
8990 fi
8991 fi
8992 fi
8993 if test "X$found_dir" = "X"; then
8994 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008995
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008996 acl_save_prefix="$prefix"
8997 prefix="$acl_final_prefix"
8998 acl_save_exec_prefix="$exec_prefix"
8999 exec_prefix="$acl_final_exec_prefix"
9000 eval x=\"$x\"
9001 exec_prefix="$acl_save_exec_prefix"
9002 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009003
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009004 case "$x" in
9005 -L*)
9006 dir=`echo "X$x" | sed -e 's/^X-L//'`
9007 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9008 found_dir="$dir"
9009 found_so="$dir/lib$name.$shlibext"
9010 if test -f "$dir/lib$name.la"; then
9011 found_la="$dir/lib$name.la"
9012 fi
9013 else
9014 if test -f "$dir/lib$name.$libext"; then
9015 found_dir="$dir"
9016 found_a="$dir/lib$name.$libext"
9017 if test -f "$dir/lib$name.la"; then
9018 found_la="$dir/lib$name.la"
9019 fi
9020 fi
9021 fi
9022 ;;
9023 esac
9024 if test "X$found_dir" != "X"; then
9025 break
9026 fi
9027 done
9028 fi
9029 if test "X$found_dir" != "X"; then
9030 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9031 if test "X$found_so" != "X"; then
9032 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9033 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9034 else
9035 haveit=
9036 for x in $ltrpathdirs; do
9037 if test "X$x" = "X$found_dir"; then
9038 haveit=yes
9039 break
9040 fi
9041 done
9042 if test -z "$haveit"; then
9043 ltrpathdirs="$ltrpathdirs $found_dir"
9044 fi
9045 if test "$hardcode_direct" = yes; then
9046 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9047 else
9048 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9049 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9050 haveit=
9051 for x in $rpathdirs; do
9052 if test "X$x" = "X$found_dir"; then
9053 haveit=yes
9054 break
9055 fi
9056 done
9057 if test -z "$haveit"; then
9058 rpathdirs="$rpathdirs $found_dir"
9059 fi
9060 else
9061 haveit=
9062 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009063
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009064 acl_save_prefix="$prefix"
9065 prefix="$acl_final_prefix"
9066 acl_save_exec_prefix="$exec_prefix"
9067 exec_prefix="$acl_final_exec_prefix"
9068 eval x=\"$x\"
9069 exec_prefix="$acl_save_exec_prefix"
9070 prefix="$acl_save_prefix"
9071
9072 if test "X$x" = "X-L$found_dir"; then
9073 haveit=yes
9074 break
9075 fi
9076 done
9077 if test -z "$haveit"; then
9078 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9079 fi
9080 if test "$hardcode_minus_L" != no; then
9081 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9082 else
9083 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9084 fi
9085 fi
9086 fi
9087 fi
9088 else
9089 if test "X$found_a" != "X"; then
9090 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9091 else
9092 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9093 fi
9094 fi
9095 additional_includedir=
9096 case "$found_dir" in
9097 */lib | */lib/)
9098 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9099 additional_includedir="$basedir/include"
9100 ;;
9101 esac
9102 if test "X$additional_includedir" != "X"; then
9103 if test "X$additional_includedir" != "X/usr/include"; then
9104 haveit=
9105 if test "X$additional_includedir" = "X/usr/local/include"; then
9106 if test -n "$GCC"; then
9107 case $host_os in
9108 linux*) haveit=yes;;
9109 esac
9110 fi
9111 fi
9112 if test -z "$haveit"; then
9113 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009114
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009115 acl_save_prefix="$prefix"
9116 prefix="$acl_final_prefix"
9117 acl_save_exec_prefix="$exec_prefix"
9118 exec_prefix="$acl_final_exec_prefix"
9119 eval x=\"$x\"
9120 exec_prefix="$acl_save_exec_prefix"
9121 prefix="$acl_save_prefix"
9122
9123 if test "X$x" = "X-I$additional_includedir"; then
9124 haveit=yes
9125 break
9126 fi
9127 done
9128 if test -z "$haveit"; then
9129 if test -d "$additional_includedir"; then
9130 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9131 fi
9132 fi
9133 fi
9134 fi
9135 fi
9136 if test -n "$found_la"; then
9137 save_libdir="$libdir"
9138 case "$found_la" in
9139 */* | *\\*) . "$found_la" ;;
9140 *) . "./$found_la" ;;
9141 esac
9142 libdir="$save_libdir"
9143 for dep in $dependency_libs; do
9144 case "$dep" in
9145 -L*)
9146 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9147 if test "X$additional_libdir" != "X/usr/lib"; then
9148 haveit=
9149 if test "X$additional_libdir" = "X/usr/local/lib"; then
9150 if test -n "$GCC"; then
9151 case $host_os in
9152 linux*) haveit=yes;;
9153 esac
9154 fi
9155 fi
9156 if test -z "$haveit"; then
9157 haveit=
9158 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009159
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009160 acl_save_prefix="$prefix"
9161 prefix="$acl_final_prefix"
9162 acl_save_exec_prefix="$exec_prefix"
9163 exec_prefix="$acl_final_exec_prefix"
9164 eval x=\"$x\"
9165 exec_prefix="$acl_save_exec_prefix"
9166 prefix="$acl_save_prefix"
9167
9168 if test "X$x" = "X-L$additional_libdir"; then
9169 haveit=yes
9170 break
9171 fi
9172 done
9173 if test -z "$haveit"; then
9174 if test -d "$additional_libdir"; then
9175 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9176 fi
9177 fi
9178 haveit=
9179 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009180
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009181 acl_save_prefix="$prefix"
9182 prefix="$acl_final_prefix"
9183 acl_save_exec_prefix="$exec_prefix"
9184 exec_prefix="$acl_final_exec_prefix"
9185 eval x=\"$x\"
9186 exec_prefix="$acl_save_exec_prefix"
9187 prefix="$acl_save_prefix"
9188
9189 if test "X$x" = "X-L$additional_libdir"; then
9190 haveit=yes
9191 break
9192 fi
9193 done
9194 if test -z "$haveit"; then
9195 if test -d "$additional_libdir"; then
9196 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9197 fi
9198 fi
9199 fi
9200 fi
9201 ;;
9202 -R*)
9203 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9204 if test "$enable_rpath" != no; then
9205 haveit=
9206 for x in $rpathdirs; do
9207 if test "X$x" = "X$dir"; then
9208 haveit=yes
9209 break
9210 fi
9211 done
9212 if test -z "$haveit"; then
9213 rpathdirs="$rpathdirs $dir"
9214 fi
9215 haveit=
9216 for x in $ltrpathdirs; do
9217 if test "X$x" = "X$dir"; then
9218 haveit=yes
9219 break
9220 fi
9221 done
9222 if test -z "$haveit"; then
9223 ltrpathdirs="$ltrpathdirs $dir"
9224 fi
9225 fi
9226 ;;
9227 -l*)
9228 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9229 ;;
9230 *.la)
9231 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9232 ;;
9233 *)
9234 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9235 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9236 ;;
9237 esac
9238 done
9239 fi
9240 else
9241 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9242 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9243 fi
9244 fi
9245 fi
9246 done
9247 done
9248 if test "X$rpathdirs" != "X"; then
9249 if test -n "$hardcode_libdir_separator"; then
9250 alldirs=
9251 for found_dir in $rpathdirs; do
9252 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9253 done
9254 acl_save_libdir="$libdir"
9255 libdir="$alldirs"
9256 eval flag=\"$hardcode_libdir_flag_spec\"
9257 libdir="$acl_save_libdir"
9258 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9259 else
9260 for found_dir in $rpathdirs; do
9261 acl_save_libdir="$libdir"
9262 libdir="$found_dir"
9263 eval flag=\"$hardcode_libdir_flag_spec\"
9264 libdir="$acl_save_libdir"
9265 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9266 done
9267 fi
9268 fi
9269 if test "X$ltrpathdirs" != "X"; then
9270 for found_dir in $ltrpathdirs; do
9271 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9272 done
9273 fi
9274
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009276$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009277if ${gt_cv_func_gnugettext1_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009278 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009279else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009280 gt_save_CPPFLAGS="$CPPFLAGS"
9281 CPPFLAGS="$CPPFLAGS $INCINTL"
9282 gt_save_LIBS="$LIBS"
9283 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009285/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009286#include <libintl.h>
9287extern int _nl_msg_cat_cntr;
9288extern
9289#ifdef __cplusplus
9290"C"
9291#endif
9292const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009293int
9294main ()
9295{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009296bindtextdomain ("", "");
9297return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009298 ;
9299 return 0;
9300}
9301_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009302if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009303 gt_cv_func_gnugettext1_libintl=yes
9304else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009305 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009306fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009307rm -f core conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009309 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9310 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009312/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009313#include <libintl.h>
9314extern int _nl_msg_cat_cntr;
9315extern
9316#ifdef __cplusplus
9317"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009318#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009319const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009320int
9321main ()
9322{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009323bindtextdomain ("", "");
9324return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009325 ;
9326 return 0;
9327}
9328_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009329if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009330 LIBINTL="$LIBINTL $LIBICONV"
9331 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9332 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009333
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009334fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009335rm -f core conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009337 fi
9338 CPPFLAGS="$gt_save_CPPFLAGS"
9339 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009340fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009342$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009343 fi
9344
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009345 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9346 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009347 && test "$PACKAGE" != gettext-runtime \
9348 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009349 gt_use_preinstalled_gnugettext=yes
9350 else
9351 LIBINTL=
9352 LTLIBINTL=
9353 INCINTL=
9354 fi
9355
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009356
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009357 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9358 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009359 fi
9360 fi
9361
9362 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009363 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009364 USE_INCLUDED_LIBINTL=yes
9365 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9366 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9367 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009368 fi
9369
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009370 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9371 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9372 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009373 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009374
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009375
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009376 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9377 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009378
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009379$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009380
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009381 else
9382 USE_NLS=no
9383 fi
9384 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009385
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009387$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009389$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009390 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009392$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009393 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9394 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9395 gt_source="external libintl"
9396 else
9397 gt_source="libc"
9398 fi
9399 else
9400 gt_source="included intl directory"
9401 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009403$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009404 fi
9405
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009406 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009407
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009408 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9409 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009411$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009413$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009414
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009415 for element in $INCINTL; do
9416 haveit=
9417 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009418
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009419 acl_save_prefix="$prefix"
9420 prefix="$acl_final_prefix"
9421 acl_save_exec_prefix="$exec_prefix"
9422 exec_prefix="$acl_final_exec_prefix"
9423 eval x=\"$x\"
9424 exec_prefix="$acl_save_exec_prefix"
9425 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009426
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009427 if test "X$x" = "X$element"; then
9428 haveit=yes
9429 break
9430 fi
9431 done
9432 if test -z "$haveit"; then
9433 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9434 fi
9435 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009436
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009437 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009438
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009439
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009440$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009441
9442
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009443$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009444
9445 fi
9446
9447 POSUB=po
9448 fi
9449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009450
9451 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009452 BUILD_INCLUDED_LIBINTL=yes
9453 fi
9454
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009455
9456
9457
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009458
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009459 nls_cv_header_intl=
9460 nls_cv_header_libgt=
9461
9462 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009463
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009464
9465 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009466
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009467
9468 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009469
9470
9471 if test "$USE_INCLUDED_LIBINTL" = yes; then
9472 INTLOBJS="\$(GETTOBJS)"
9473 fi
9474
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009475
9476 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009477
9478
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009479
9480 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009481
9482
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009483
9484
9485
9486
9487
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009489$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9490set x ${MAKE-make}
9491ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009492if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009493 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009494else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009495 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009496SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009497all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009498 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009499_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009500# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009501case `${MAKE-make} -f conftest.make 2>/dev/null` in
9502 *@@@%%%=?*=@@@%%%*)
9503 eval ac_cv_prog_make_${ac_make}_set=yes;;
9504 *)
9505 eval ac_cv_prog_make_${ac_make}_set=no;;
9506esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009507rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009508fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009509if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009511$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009512 SET_MAKE=
9513else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009515$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009516 SET_MAKE="MAKE=${MAKE-make}"
9517fi
9518
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009520$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009521if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009522 $as_echo_n "(cached) " >&6
9523else
9524 _cv_gnu_make_command='' ;
9525 for a in "$MAKE" make gmake gnumake ; do
9526 if test -z "$a" ; then continue ; fi ;
9527 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9528 _cv_gnu_make_command=$a ;
9529 break;
9530 fi
9531 done ;
9532
9533fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009535$as_echo "$_cv_gnu_make_command" >&6; } ;
9536 if test "x$_cv_gnu_make_command" != "x" ; then
9537 ifGNUmake='' ;
9538 ifNotGNUmake='#' ;
9539 else
9540 ifGNUmake='#' ;
9541 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009543$as_echo "\"Not found\"" >&6; };
9544 fi
9545
9546
9547
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009548# Extract the first word of "ln", so it can be a program name with args.
9549set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009551$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009552if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009553 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009554else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009555 case $LN in
9556 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009557 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9558 ;;
9559 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561for as_dir in $PATH
9562do
9563 IFS=$as_save_IFS
9564 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009565 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009567 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009569 break 2
9570 fi
9571done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009572 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009573IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009574
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009575 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9576 ;;
9577esac
9578fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009579LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009580if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009582$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009583else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009585$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009586fi
9587
Theodore Ts'oe1052142006-10-21 21:46:47 -04009588
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009590$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009591LN_S=$as_ln_s
9592if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009594$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009595else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009597$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009598fi
9599
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009600# Extract the first word of "mv", so it can be a program name with args.
9601set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009603$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009604if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009605 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009606else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009607 case $MV in
9608 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009609 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9610 ;;
9611 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613for as_dir in $PATH
9614do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009617 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009619 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009621 break 2
9622 fi
9623done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009624 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009625IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009626
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009627 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9628 ;;
9629esac
9630fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009631MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009632if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009634$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009635else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009637$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009638fi
9639
Theodore Ts'oe1052142006-10-21 21:46:47 -04009640
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009641# Extract the first word of "cp", so it can be a program name with args.
9642set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009644$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009645if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009646 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009647else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009648 case $CP in
9649 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009650 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9651 ;;
9652 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654for as_dir in $PATH
9655do
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009658 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009660 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009662 break 2
9663 fi
9664done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009665 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009666IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009667
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009668 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9669 ;;
9670esac
9671fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009672CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009673if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009675$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009676else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009678$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009679fi
9680
Theodore Ts'oe1052142006-10-21 21:46:47 -04009681
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009682# Extract the first word of "rm", so it can be a program name with args.
9683set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009685$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009686if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009687 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009688else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009689 case $RM in
9690 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009691 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9692 ;;
9693 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009699 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009701 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009703 break 2
9704 fi
9705done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009706 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009707IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009708
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009709 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9710 ;;
9711esac
9712fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009713RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009714if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009716$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009717else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009719$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009720fi
9721
Theodore Ts'oe1052142006-10-21 21:46:47 -04009722
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009723# Extract the first word of "chmod", so it can be a program name with args.
9724set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009726$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009727if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009728 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009729else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009730 case $CHMOD in
9731 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009732 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9733 ;;
9734 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736for as_dir in $PATH
9737do
9738 IFS=$as_save_IFS
9739 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009740 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009742 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009744 break 2
9745 fi
9746done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009747 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009748IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009749
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009750 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9751 ;;
9752esac
9753fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009754CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009755if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009757$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009758else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009760$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009761fi
9762
Theodore Ts'oe1052142006-10-21 21:46:47 -04009763
Theodore Ts'o32237012005-01-17 19:13:39 -05009764for ac_prog in gawk mawk nawk awk
9765do
9766 # Extract the first word of "$ac_prog", so it can be a program name with args.
9767set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009769$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009770if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009771 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009772else
Theodore Ts'o32237012005-01-17 19:13:39 -05009773 if test -n "$AWK"; then
9774 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9775else
9776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009777for as_dir in $PATH
9778do
9779 IFS=$as_save_IFS
9780 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009781 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -05009783 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009785 break 2
9786 fi
9787done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009788 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009789IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009790
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009791fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009792fi
9793AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009794if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009796$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009797else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009799$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009800fi
9801
Theodore Ts'oe1052142006-10-21 21:46:47 -04009802
Theodore Ts'o32237012005-01-17 19:13:39 -05009803 test -n "$AWK" && break
9804done
9805
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009807$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009808if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009809 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009810else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009811 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9812 then ac_cv_path_EGREP="$GREP -E"
9813 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009814 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009815 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009816 # Loop through the user's path and test for each of PROGNAME-LIST
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009818for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9819do
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009822 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009823 for ac_exec_ext in '' $ac_executable_extensions; do
9824 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009825 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009826# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009827 # Check for GNU $ac_path_EGREP
9828case `"$ac_path_EGREP" --version 2>&1` in
9829*GNU*)
9830 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9831*)
9832 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009833 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009834 while :
9835 do
9836 cat "conftest.in" "conftest.in" >"conftest.tmp"
9837 mv "conftest.tmp" "conftest.in"
9838 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009839 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009840 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009842 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009843 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9844 # Best one so far, save it but keep looking for a better one
9845 ac_cv_path_EGREP="$ac_path_EGREP"
9846 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009847 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009848 # 10*(2^10) chars as input seems more than enough
9849 test $ac_count -gt 10 && break
9850 done
9851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9852esac
9853
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009854 $ac_path_EGREP_found && break 3
9855 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009856 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009857 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009858IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009859 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009860 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 +01009861 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009862else
9863 ac_cv_path_EGREP=$EGREP
9864fi
9865
Theodore Ts'oe1052142006-10-21 21:46:47 -04009866 fi
9867fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009869$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009870 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009871
9872
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009873# Extract the first word of "sed", so it can be a program name with args.
9874set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009876$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009877if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009878 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009879else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009880 case $SED in
9881 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009882 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9883 ;;
9884 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886for as_dir in $PATH
9887do
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009890 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009892 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009894 break 2
9895 fi
9896done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009897 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009898IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009899
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009900 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9901 ;;
9902esac
9903fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009904SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009905if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009907$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009908else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009910$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009911fi
9912
Theodore Ts'oe1052142006-10-21 21:46:47 -04009913
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009914# Extract the first word of "perl", so it can be a program name with args.
9915set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009917$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009918if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009919 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009920else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009921 case $PERL in
9922 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009923 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9924 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009925 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927for as_dir in $PATH
9928do
9929 IFS=$as_save_IFS
9930 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009931 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009933 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009935 break 2
9936 fi
9937done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009938 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009939IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009940
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009941 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9942 ;;
9943esac
9944fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009945PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009946if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009948$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009949else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009951$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009952fi
9953
Theodore Ts'oe1052142006-10-21 21:46:47 -04009954
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009955# Extract the first word of "ldconfig", so it can be a program name with args.
9956set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009958$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009959if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009960 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009961else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009962 case $LDCONFIG in
9963 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009964 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9965 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009966 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968for as_dir in $PATH
9969do
9970 IFS=$as_save_IFS
9971 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009972 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009974 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009976 break 2
9977 fi
9978done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009979 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009980IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009981
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009982 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9983 ;;
9984esac
9985fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009986LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009987if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009989$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009990else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009992$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009993fi
9994
Theodore Ts'oe1052142006-10-21 21:46:47 -04009995
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009996if test -n "$ac_tool_prefix"; then
9997 # 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 +00009998set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010000$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010001if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010002 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010003else
10004 if test -n "$AR"; then
10005 ac_cv_prog_AR="$AR" # Let the user override the test.
10006else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008for as_dir in $PATH
10009do
10010 IFS=$as_save_IFS
10011 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010012 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010014 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010016 break 2
10017 fi
10018done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010019 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010020IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010021
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010022fi
10023fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010024AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010025if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010027$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010028else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010030$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010031fi
10032
Theodore Ts'oe1052142006-10-21 21:46:47 -040010033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010034fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010035if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010036 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010037 # Extract the first word of "ar", so it can be a program name with args.
10038set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010040$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010041if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010042 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010043else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010044 if test -n "$ac_ct_AR"; then
10045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010046else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048for as_dir in $PATH
10049do
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010052 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010054 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010056 break 2
10057 fi
10058done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010059 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010060IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010061
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010062fi
10063fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010064ac_ct_AR=$ac_cv_prog_ac_ct_AR
10065if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010067$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010068else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010070$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010071fi
10072
Theodore Ts'oe1052142006-10-21 21:46:47 -040010073 if test "x$ac_ct_AR" = x; then
10074 AR="ar"
10075 else
10076 case $cross_compiling:$ac_tool_warned in
10077yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010078{ $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 +010010079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010080ac_tool_warned=yes ;;
10081esac
10082 AR=$ac_ct_AR
10083 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010084else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010085 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010086fi
10087
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010088if test -n "$ac_tool_prefix"; then
10089 # 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 +000010090set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010092$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010093if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010094 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010095else
10096 if test -n "$RANLIB"; then
10097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10098else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100for as_dir in $PATH
10101do
10102 IFS=$as_save_IFS
10103 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010104 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010108 break 2
10109 fi
10110done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010111 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010112IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010113
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010114fi
10115fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010116RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010117if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010119$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010120else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010122$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010123fi
10124
Theodore Ts'oe1052142006-10-21 21:46:47 -040010125
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010126fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010127if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010128 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010129 # Extract the first word of "ranlib", so it can be a program name with args.
10130set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010132$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010133if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010134 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010135else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010136 if test -n "$ac_ct_RANLIB"; then
10137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010138else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140for as_dir in $PATH
10141do
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010144 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010146 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010148 break 2
10149 fi
10150done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010151 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010152IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010153
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010154fi
10155fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010156ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10157if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010159$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010160else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010162$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010163fi
10164
Theodore Ts'oe1052142006-10-21 21:46:47 -040010165 if test "x$ac_ct_RANLIB" = x; then
10166 RANLIB=":"
10167 else
10168 case $cross_compiling:$ac_tool_warned in
10169yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010170{ $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 +010010171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010172ac_tool_warned=yes ;;
10173esac
10174 RANLIB=$ac_ct_RANLIB
10175 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010176else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010177 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010178fi
10179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010180if test -n "$ac_tool_prefix"; then
10181 # 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 +000010182set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010184$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010185if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010186 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010187else
10188 if test -n "$STRIP"; then
10189 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10190else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192for as_dir in $PATH
10193do
10194 IFS=$as_save_IFS
10195 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010196 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010198 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010200 break 2
10201 fi
10202done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010203 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010204IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010205
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010206fi
10207fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010208STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010209if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010211$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010212else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010214$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010215fi
10216
Theodore Ts'oe1052142006-10-21 21:46:47 -040010217
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010218fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010219if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010220 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010221 # Extract the first word of "strip", so it can be a program name with args.
10222set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010224$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010225if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010226 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010227else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010228 if test -n "$ac_ct_STRIP"; then
10229 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010230else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232for as_dir in $PATH
10233do
10234 IFS=$as_save_IFS
10235 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010236 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010238 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010240 break 2
10241 fi
10242done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010243 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010244IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010245
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010246fi
10247fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010248ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10249if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010251$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010252else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010254$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010255fi
10256
Theodore Ts'oe1052142006-10-21 21:46:47 -040010257 if test "x$ac_ct_STRIP" = x; then
10258 STRIP=":"
10259 else
10260 case $cross_compiling:$ac_tool_warned in
10261yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010262{ $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 +010010263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010264ac_tool_warned=yes ;;
10265esac
10266 STRIP=$ac_ct_STRIP
10267 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010268else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010269 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010270fi
10271
Manish Katiyar7321d942008-04-14 17:20:03 +053010272# Extract the first word of "makeinfo", so it can be a program name with args.
10273set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010275$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010276if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010277 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010278else
10279 if test -n "$MAKEINFO"; then
10280 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10281else
10282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283for as_dir in $PATH
10284do
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010287 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053010289 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010291 break 2
10292 fi
10293done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010294 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010295IFS=$as_save_IFS
10296
10297fi
10298fi
10299MAKEINFO=$ac_cv_prog_MAKEINFO
10300if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010302$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010303else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010305$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010306fi
10307
10308
10309if test "_$MAKEINFO" = "_"; then
10310 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10311else
10312 case "$MAKEINFO" in
10313 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010315*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010316$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010317*** Makeinfo is missing. Info documentation will not be built." >&2;}
10318 ;;
10319 *)
10320 ;;
10321 esac
10322fi
10323
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010324
Theodore Ts'o6c133521999-07-03 20:37:03 +000010325# See if we need a separate native compiler.
10326if test $cross_compiling = no; then
10327 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010328
Theodore Ts'o6c133521999-07-03 20:37:03 +000010329else
10330 for ac_prog in gcc cc
10331do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010332 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010333set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010335$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010336if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010337 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010338else
10339 if test -n "$BUILD_CC"; then
10340 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10341else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010344do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010345 IFS=$as_save_IFS
10346 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010347 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010349 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010351 break 2
10352 fi
10353done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010354 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010355IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010357fi
10358fi
10359BUILD_CC=$ac_cv_prog_BUILD_CC
10360if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010362$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010363else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010365$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010366fi
10367
Theodore Ts'oe1052142006-10-21 21:46:47 -040010368
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010369 test -n "$BUILD_CC" && break
10370done
10371
10372fi
Kazuya Miofbabd5c2013-12-16 00:48:12 -050010373for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010374do :
10375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10376ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010377if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010378 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010380_ACEOF
10381
10382fi
10383
10384done
10385
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010386for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010387do :
10388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10389ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010390#if HAVE_SYS_QUEUE_H
10391#include <sys/queue.h>
10392#endif
10393
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010394"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010395if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010396 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010397#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010398_ACEOF
10399
10400fi
10401
10402done
10403
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010404for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010405do :
10406 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010407#if HAVE_SYS_TYPES_H
10408#include <sys/types.h>
10409#endif
10410#if HAVE_SYS_SOCKET
10411#include <sys/socket.h>
10412#endif
10413
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010414"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010415if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010416 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010417#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010418_ACEOF
10419
10420fi
10421
10422done
10423
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010424for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010425do :
10426 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010427if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010428 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010429#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010430_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010432ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010433if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010434
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010435$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010436
10437fi
10438
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010439fi
10440done
10441
10442
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010443ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10444"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010445if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010446
10447$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010448
10449fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010450
Theodore Ts'o28739272014-01-03 00:26:43 -050010451ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10452if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10453
10454cat >>confdefs.h <<_ACEOF
10455#define HAVE_STRUCT_STAT_ST_ATIM 1
10456_ACEOF
10457
10458
10459fi
10460
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010461ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10462"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010463if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010464
10465$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010466
Theodore Ts'offf45482003-04-13 00:44:19 -040010467fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010468
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010469ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10470"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010471if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010472
10473$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010474
10475fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010476
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010477ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010478 #define _LARGEFILE64_SOURCE
10479 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010480"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010481if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010482
10483$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010484
10485fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010486
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010487# The cast to long int works around a bug in the HP C Compiler
10488# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10489# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10490# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010492$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010493if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010494 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010495else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010496 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 -050010497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010498else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010499 if test "$ac_cv_type_short" = yes; then
10500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010502as_fn_error 77 "cannot compute sizeof (short)
10503See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010504 else
10505 ac_cv_sizeof_short=0
10506 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010507fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010508
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010509fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010511$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010512
10513
10514
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010515cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010516#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010517_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010518
10519
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010520# The cast to long int works around a bug in the HP C Compiler
10521# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10522# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10523# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010525$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010526if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010527 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010528else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010529 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 -050010530
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010531else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010532 if test "$ac_cv_type_int" = yes; then
10533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010535as_fn_error 77 "cannot compute sizeof (int)
10536See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010537 else
10538 ac_cv_sizeof_int=0
10539 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010540fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010541
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010542fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010544$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010545
10546
10547
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010548cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010549#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010550_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010551
10552
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010553# The cast to long int works around a bug in the HP C Compiler
10554# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10555# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10556# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010558$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010559if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010560 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010561else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010562 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 -050010563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010564else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010565 if test "$ac_cv_type_long" = yes; then
10566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010568as_fn_error 77 "cannot compute sizeof (long)
10569See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010570 else
10571 ac_cv_sizeof_long=0
10572 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010573fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010575fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010577$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010578
10579
10580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010581cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010582#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010583_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010584
10585
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010586# The cast to long int works around a bug in the HP C Compiler
10587# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10588# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10589# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010591$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010592if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010593 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010594else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010595 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 -050010596
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010597else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010598 if test "$ac_cv_type_long_long" = yes; then
10599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010601as_fn_error 77 "cannot compute sizeof (long long)
10602See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010603 else
10604 ac_cv_sizeof_long_long=0
10605 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010606fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010607
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010608fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010610$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010611
10612
10613
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010614cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010615#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010616_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010617
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010618
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010619# The cast to long int works around a bug in the HP C Compiler
10620# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10621# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10622# This bug is HP SR number 8606223364.
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10624$as_echo_n "checking size of off_t... " >&6; }
10625if ${ac_cv_sizeof_off_t+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627else
10628 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10629
10630else
10631 if test "$ac_cv_type_off_t" = yes; then
10632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10634as_fn_error 77 "cannot compute sizeof (off_t)
10635See \`config.log' for more details" "$LINENO" 5; }
10636 else
10637 ac_cv_sizeof_off_t=0
10638 fi
10639fi
10640
10641fi
10642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10643$as_echo "$ac_cv_sizeof_off_t" >&6; }
10644
10645
10646
10647cat >>confdefs.h <<_ACEOF
10648#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10649_ACEOF
10650
10651
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010652SIZEOF_SHORT=$ac_cv_sizeof_short
10653SIZEOF_INT=$ac_cv_sizeof_int
10654SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010655SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040010656SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10657
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010658
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010659
10660
10661
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010663$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010664if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010665 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010666else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010667 ac_cv_c_bigendian=unknown
10668 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010670/* end confdefs.h. */
10671#ifndef __APPLE_CC__
10672 not a universal capable compiler
10673 #endif
10674 typedef int dummy;
10675
10676_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010677if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010678
10679 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010680 # there are at least two -arch flags with different values.
10681 ac_arch=
10682 ac_prev=
10683 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10684 if test -n "$ac_prev"; then
10685 case $ac_word in
10686 i?86 | x86_64 | ppc | ppc64)
10687 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10688 ac_arch=$ac_word
10689 else
10690 ac_cv_c_bigendian=universal
10691 break
10692 fi
10693 ;;
10694 esac
10695 ac_prev=
10696 elif test "x$ac_word" = "x-arch"; then
10697 ac_prev=arch
10698 fi
10699 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010700fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702 if test $ac_cv_c_bigendian = unknown; then
10703 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010705/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010706#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010707 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010709int
10710main ()
10711{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010712#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10713 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10714 && LITTLE_ENDIAN)
10715 bogus endian macros
10716 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010717
10718 ;
10719 return 0;
10720}
10721_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010722if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010723 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010725/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010726#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010727 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010728
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010729int
10730main ()
10731{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010732#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010733 not big endian
10734 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010735
10736 ;
10737 return 0;
10738}
10739_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010740if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010741 ac_cv_c_bigendian=yes
10742else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010743 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010744fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010746fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748 fi
10749 if test $ac_cv_c_bigendian = unknown; then
10750 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010752/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010753#include <limits.h>
10754
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010755int
10756main ()
10757{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010758#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10759 bogus endian macros
10760 #endif
10761
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010762 ;
10763 return 0;
10764}
10765_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010766if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010767 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010769/* end confdefs.h. */
10770#include <limits.h>
10771
10772int
10773main ()
10774{
10775#ifndef _BIG_ENDIAN
10776 not big endian
10777 #endif
10778
10779 ;
10780 return 0;
10781}
10782_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010783if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010784 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010785else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010786 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010787fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010789fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10791 fi
10792 if test $ac_cv_c_bigendian = unknown; then
10793 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010794 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010795 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010797/* end confdefs.h. */
10798short int ascii_mm[] =
10799 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10800 short int ascii_ii[] =
10801 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10802 int use_ascii (int i) {
10803 return ascii_mm[i] + ascii_ii[i];
10804 }
10805 short int ebcdic_ii[] =
10806 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10807 short int ebcdic_mm[] =
10808 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10809 int use_ebcdic (int i) {
10810 return ebcdic_mm[i] + ebcdic_ii[i];
10811 }
10812 extern int foo;
10813
10814int
10815main ()
10816{
10817return use_ascii (foo) == use_ebcdic (foo);
10818 ;
10819 return 0;
10820}
10821_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010822if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010823 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10824 ac_cv_c_bigendian=yes
10825 fi
10826 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10827 if test "$ac_cv_c_bigendian" = unknown; then
10828 ac_cv_c_bigendian=no
10829 else
10830 # finding both strings is unlikely to happen, but who knows?
10831 ac_cv_c_bigendian=unknown
10832 fi
10833 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010834fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010836else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010838/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010839$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010840int
10841main ()
10842{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010843
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010844 /* Are we little or big endian? From Harbison&Steele. */
10845 union
10846 {
10847 long int l;
10848 char c[sizeof (long int)];
10849 } u;
10850 u.l = 1;
10851 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010852
10853 ;
10854 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010855}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010856_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010857if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010858 ac_cv_c_bigendian=no
10859else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010860 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010861fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10863 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010864fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010865
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010866 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010867fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010869$as_echo "$ac_cv_c_bigendian" >&6; }
10870 case $ac_cv_c_bigendian in #(
10871 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010872 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010873;; #(
10874 no)
10875 ;; #(
10876 universal)
10877
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010878$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010879
10880 ;; #(
10881 *)
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010882 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010883 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010884 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010885
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010886BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010887ASM_TYPES_HEADER=./asm_types.h
10888
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010889echo "/* These defines are needed for the public ext2fs.h header file */" \
10890 > public_config.h
10891if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10892 uniq tmp_config.$$ >> public_config.h
10893else
10894 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10895fi
10896if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10897 uniq tmp_config.$$ >> public_config.h
10898else
10899 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10900fi
10901rm -f tmp_config.$$
10902PUBLIC_CONFIG_HEADER=./public_config.h
10903
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010904for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010905do :
10906 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010907if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010908 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010909#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010910_ACEOF
10911
10912fi
10913
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010914done
10915
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010916ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010917if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010918
10919cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010920#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010921_ACEOF
10922
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010923
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010924fi
10925
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010926{ $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 +010010927$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010928if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010929 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010930else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010932/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010933#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010934int
10935main ()
10936{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010937struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010938 ;
10939 return 0;
10940}
10941_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010942if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010943 e2fsprogs_cv_struct_st_flags=yes
10944else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010945 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010946fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948fi
10949
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010951$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010952if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010954$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010955 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010956 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010957else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010959/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010960#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010961int
10962main ()
10963{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010964struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010965 ;
10966 return 0;
10967}
10968_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010969if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010970 e2fsprogs_cv_struct_st_flags_immut=yes
10971else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010972 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010973fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975fi
10976
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010978$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010979 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010980
10981$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010982
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010983 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010984fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010985ac_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 -050010986 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010987"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010988if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010989
10990cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010991#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010992_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010993
10994fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010995
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010996if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010998$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040010999if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011000 $as_echo_n "(cached) " >&6
11001else
11002 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011004/* end confdefs.h. */
11005
11006/* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11009#ifdef __cplusplus
11010extern "C"
11011#endif
11012char blkid_probe_all ();
11013int
11014main ()
11015{
11016return blkid_probe_all ();
11017 ;
11018 return 0;
11019}
11020_ACEOF
11021for ac_lib in '' blkid; do
11022 if test -z "$ac_lib"; then
11023 ac_res="none required"
11024 else
11025 ac_res=-l$ac_lib
11026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11027 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011028 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011029 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011030fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011031rm -f core conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011033 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011034 break
11035fi
11036done
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011037if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011038
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011039else
11040 ac_cv_search_blkid_probe_all=no
11041fi
11042rm conftest.$ac_ext
11043LIBS=$ac_func_search_save_LIBS
11044fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011046$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11047ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011048if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050011049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11050
11051fi
11052
11053fi
Theodore Ts'o28739272014-01-03 00:26:43 -050011054for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011055do :
11056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011058if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011059 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011060#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011061_ACEOF
11062
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011063fi
11064done
11065
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011066SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011068$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011069if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011070 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011071else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011072 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011073LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011075/* end confdefs.h. */
11076
Theodore Ts'oe1052142006-10-21 21:46:47 -040011077/* Override any GCC internal prototype to avoid an error.
11078 Use char because int might match the return type of a GCC
11079 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011080#ifdef __cplusplus
11081extern "C"
11082#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011083char socket ();
11084int
11085main ()
11086{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011087return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011088 ;
11089 return 0;
11090}
11091_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011092if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011093 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011094else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011095 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011096fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011097rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011099LIBS=$ac_check_lib_save_LIBS
11100fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011102$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011103if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011104 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011105fi
11106
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011107
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011109$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011110if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011111 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011112else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011114/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011115#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011116
11117_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011119 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011120 ac_cv_have_optreset=yes
11121else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011122 ac_cv_have_optreset=no
11123fi
11124rm -f conftest*
11125
11126fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011128$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011129if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011130
11131$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011132
11133fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011134
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011135SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011136ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011137if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011138
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011139else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011141$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011142if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011143 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011144else
11145 ac_check_lib_save_LIBS=$LIBS
11146LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011148/* end confdefs.h. */
11149
11150/* Override any GCC internal prototype to avoid an error.
11151 Use char because int might match the return type of a GCC
11152 builtin and then its argument prototype would still apply. */
11153#ifdef __cplusplus
11154extern "C"
11155#endif
11156char sem_init ();
11157int
11158main ()
11159{
11160return sem_init ();
11161 ;
11162 return 0;
11163}
11164_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011165if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011166 ac_cv_lib_pthread_sem_init=yes
11167else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011168 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011169fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011170rm -f core conftest.err conftest.$ac_objext \
11171 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011172LIBS=$ac_check_lib_save_LIBS
11173fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011175$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011176if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011177 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011178
11179 SEM_INIT_LIB=-lpthread
11180else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011182$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011183if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011184 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011185else
11186 ac_check_lib_save_LIBS=$LIBS
11187LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011189/* end confdefs.h. */
11190
11191/* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11194#ifdef __cplusplus
11195extern "C"
11196#endif
11197char sem_init ();
11198int
11199main ()
11200{
11201return sem_init ();
11202 ;
11203 return 0;
11204}
11205_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011206if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011207 ac_cv_lib_rt_sem_init=yes
11208else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011209 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011210fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011211rm -f core conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011213LIBS=$ac_check_lib_save_LIBS
11214fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011216$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011217if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011218 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011219
11220 SEM_INIT_LIB=-lrt
11221else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011223$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011224if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011225 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011226else
11227 ac_check_lib_save_LIBS=$LIBS
11228LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011230/* end confdefs.h. */
11231
11232/* Override any GCC internal prototype to avoid an error.
11233 Use char because int might match the return type of a GCC
11234 builtin and then its argument prototype would still apply. */
11235#ifdef __cplusplus
11236extern "C"
11237#endif
11238char sem_init ();
11239int
11240main ()
11241{
11242return sem_init ();
11243 ;
11244 return 0;
11245}
11246_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011247if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011248 ac_cv_lib_posix4_sem_init=yes
11249else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011250 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011251fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011252rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011254LIBS=$ac_check_lib_save_LIBS
11255fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011257$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011258if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011259 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011260
11261 SEM_INIT_LIB=-lposix4
11262fi
11263
11264fi
11265
11266fi
11267
11268fi
11269
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011271$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011272if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011273 UNI_DIFF_OPTS=-u
11274else
11275 UNI_DIFF_OPTS=-c
11276fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011278$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011279
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011280case "$host_os" in
11281linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011282
11283$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011284
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011285 ;;
11286esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011287LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011288CYGWIN_CMT="#"
11289UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011290case "$host_os" in
11291linux*)
11292 LINUX_CMT=
11293 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011294cygwin)
11295 CYGWIN_CMT=
11296 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011297 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011298esac
11299
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011300
11301
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011302case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011303linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011304 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11305 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011306 { $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 +010011307$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011308 fi
11309 ;;
11310esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011311case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011312linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011313 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011314 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011315 { $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 +010011316$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011317 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011319$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011320 mandir=/usr/share/man
11321 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011322 fi
11323;;
11324esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011325if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011326 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011327 root_prefix="$ac_default_prefix"
11328 else
11329 root_prefix="$prefix"
11330 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011331 root_bindir=$bindir
11332 root_sbindir=$sbindir
11333 root_libdir=$libdir
11334 root_sysconfdir=$sysconfdir
11335else
11336 root_bindir='${root_prefix}/bin'
11337 root_sbindir='${root_prefix}/sbin'
11338 root_libdir='${root_prefix}/lib'
11339 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011340fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011341if test "$bindir" != '${exec_prefix}/bin'; then
11342 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011344$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011345fi
11346if test "$sbindir" != '${exec_prefix}/sbin'; then
11347 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011349$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011350fi
11351if test "$libdir" != '${exec_prefix}/lib'; then
11352 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011354$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011355fi
11356if test "$sysconfdir" != '${prefix}/etc'; then
11357 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011359$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011360fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011361
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011362
11363
11364
11365
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011366
11367# Check whether --with-multiarch was given.
11368if test "${with_multiarch+set}" = set; then :
11369 withval=$with_multiarch; libdir=$libdir/$withval
11370root_libdir=$root_libdir/$withval
11371
11372fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050011373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11374$as_echo_n "checking whether we can link with -static... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011375if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011376 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011377else
11378 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011381#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011382int
11383main ()
11384{
Theodore Ts'oae851481997-04-29 18:13:24 +000011385fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011386 ;
11387 return 0;
11388}
11389_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011390if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011391 ac_cv_e2fsprogs_use_static=yes
11392else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011393 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011394fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011395rm -f core conftest.err conftest.$ac_objext \
11396 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011397LDFLAGS=$SAVE_LDFLAGS
11398fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011399
Theodore Ts'odefde781999-01-04 07:39:19 +000011400case "$host_os" in
11401solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011402 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011403;;
11404esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011406$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011407LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011408if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011409 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011410fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011411
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011412case "$host_os" in
11413darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011415$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011416
11417$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011418
11419 ;;
11420esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011421SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11422ET_DIR=`cd ${srcdir}/lib/et; pwd`
11423
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011424
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011425if test "$cross_compiling" = yes ; then
11426 DO_TEST_SUITE=
11427else
11428 DO_TEST_SUITE=check
11429fi
11430
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011431INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11432if test -n "$CPPFLAGS" ; then
11433 INCLUDES="$INCLUDES $CPPFLAGS"
11434fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011435if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011436 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011437fi
11438
Theodore Ts'odd947da2005-11-09 18:37:07 -040011439if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050011440 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040011441 BUILD_LDFLAGS="$LDFLAGS"
11442else
11443 BUILD_CFLAGS=
11444 BUILD_LDFLAGS=
11445fi
11446
11447
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011448test -d lib || mkdir lib
11449test -d include || mkdir include
11450test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011451test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011452for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040011453 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011454 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11455 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011456 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011457 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011458 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11459 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011460 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011461 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011462 resize/Makefile doc/Makefile intl/Makefile \
11463 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011464 if test -d `dirname ${srcdir}/$i` ; then
11465 outlist="$outlist $i"
11466 fi
11467done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011468ac_config_files="$ac_config_files $outlist"
11469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011470cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011471# This file is a shell script that caches the results of configure
11472# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011473# scripts and configure runs, see configure's option --config-cache.
11474# It is not useful on other systems. If it contains results you don't
11475# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011476#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011477# config.status only pays attention to the cache file if you give it
11478# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011479#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011480# `ac_cv_env_foo' variables (set or unset) will be overridden when
11481# loading this file, other *unset* `ac_cv_foo' will be assigned the
11482# following values.
11483
11484_ACEOF
11485
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011486# The following way of writing the cache mishandles newlines in values,
11487# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011488# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011489# Ultrix sh set writes to stderr and can't be redirected directly,
11490# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011491(
11492 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11493 eval ac_val=\$$ac_var
11494 case $ac_val in #(
11495 *${as_nl}*)
11496 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011497 *_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 +010011498$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011499 esac
11500 case $ac_var in #(
11501 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011503 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011504 esac ;;
11505 esac
11506 done
11507
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011508 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011509 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11510 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011511 # `set' does not quote correctly, so add quotes: double-quote
11512 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011513 sed -n \
11514 "s/'/'\\\\''/g;
11515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011516 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011517 *)
11518 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011520 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011521 esac |
11522 sort
11523) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011524 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011525 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011526 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011527 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011528 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11529 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011530 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11531 :end' >>confcache
11532if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11533 if test -w "$cache_file"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011534 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011535 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011536$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011537 if test ! -f "$cache_file" || test -h "$cache_file"; then
11538 cat confcache >"$cache_file"
11539 else
11540 case $cache_file in #(
11541 */* | ?:*)
11542 mv -f confcache "$cache_file"$$ &&
11543 mv -f "$cache_file"$$ "$cache_file" ;; #(
11544 *)
11545 mv -f confcache "$cache_file" ;;
11546 esac
11547 fi
11548 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011549 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011550 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011551$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011552 fi
11553fi
11554rm -f confcache
11555
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011556test "x$prefix" = xNONE && prefix=$ac_default_prefix
11557# Let make expand exec_prefix.
11558test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11559
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011560DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011561
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011562ac_libobjs=
11563ac_ltlibobjs=
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011564U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011565for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11566 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011567 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011568 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011569 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11570 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011571 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11572 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011573done
11574LIBOBJS=$ac_libobjs
11575
11576LTLIBOBJS=$ac_ltlibobjs
11577
11578
11579
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011580
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011581: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011582ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011583ac_clean_files_save=$ac_clean_files
11584ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011585{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011586$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011587as_write_fail=0
11588cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011589#! $SHELL
11590# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011591# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011592# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011593# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011594
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011595debug=false
11596ac_cs_recheck=false
11597ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011598
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011599SHELL=\${CONFIG_SHELL-$SHELL}
11600export SHELL
11601_ASEOF
11602cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11603## -------------------- ##
11604## M4sh Initialization. ##
11605## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011606
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011607# Be more Bourne compatible
11608DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011609if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011610 emulate sh
11611 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011612 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011613 # is contrary to our usage. Disable this feature.
11614 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011615 setopt NO_GLOB_SUBST
11616else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011617 case `(set -o) 2>/dev/null` in #(
11618 *posix*) :
11619 set -o posix ;; #(
11620 *) :
11621 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011622esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011623fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011624
11625
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011626as_nl='
11627'
11628export as_nl
11629# Printing a long string crashes Solaris 7 /usr/bin/printf.
11630as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11631as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11632as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011633# Prefer a ksh shell builtin over an external printf program on Solaris,
11634# but without wasting forks for bash or zsh.
11635if test -z "$BASH_VERSION$ZSH_VERSION" \
11636 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11637 as_echo='print -r --'
11638 as_echo_n='print -rn --'
11639elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011640 as_echo='printf %s\n'
11641 as_echo_n='printf %s'
11642else
11643 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11644 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11645 as_echo_n='/usr/ucb/echo -n'
11646 else
11647 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11648 as_echo_n_body='eval
11649 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011650 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011651 *"$as_nl"*)
11652 expr "X$arg" : "X\\(.*\\)$as_nl";
11653 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11654 esac;
11655 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11656 '
11657 export as_echo_n_body
11658 as_echo_n='sh -c $as_echo_n_body as_echo'
11659 fi
11660 export as_echo_body
11661 as_echo='sh -c $as_echo_body as_echo'
11662fi
11663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011664# The user is always right.
11665if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011666 PATH_SEPARATOR=:
11667 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11668 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11669 PATH_SEPARATOR=';'
11670 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011671fi
11672
Theodore Ts'oe1052142006-10-21 21:46:47 -040011673
11674# IFS
11675# We need space, tab and new line, in precisely that order. Quoting is
11676# there to prevent editors from complaining about space-tab.
11677# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11678# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011679IFS=" "" $as_nl"
11680
11681# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011682as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011683case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011684 *[\\/]* ) as_myself=$0 ;;
11685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011686for as_dir in $PATH
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11691 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011692IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011693
Theodore Ts'oe1052142006-10-21 21:46:47 -040011694 ;;
11695esac
11696# We did not find ourselves, most probably we were run as `sh COMMAND'
11697# in which case we are not to be found in the path.
11698if test "x$as_myself" = x; then
11699 as_myself=$0
11700fi
11701if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011702 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011703 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011704fi
11705
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011706# Unset variables that we do not need and which cause bugs (e.g. in
11707# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11708# suppresses any "Segmentation fault" message there. '((' could
11709# trigger a bug in pdksh 5.2.14.
11710for as_var in BASH_ENV ENV MAIL MAILPATH
11711do eval test x\${$as_var+set} = xset \
11712 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011713done
11714PS1='$ '
11715PS2='> '
11716PS4='+ '
11717
11718# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011719LC_ALL=C
11720export LC_ALL
11721LANGUAGE=C
11722export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011723
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011724# CDPATH.
11725(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11726
11727
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011728# as_fn_error STATUS ERROR [LINENO LOG_FD]
11729# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011730# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11731# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011732# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011733as_fn_error ()
11734{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011735 as_status=$1; test $as_status -eq 0 && as_status=1
11736 if test "$4"; then
11737 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11738 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011739 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011740 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011741 as_fn_exit $as_status
11742} # as_fn_error
11743
11744
11745# as_fn_set_status STATUS
11746# -----------------------
11747# Set $? to STATUS, without forking.
11748as_fn_set_status ()
11749{
11750 return $1
11751} # as_fn_set_status
11752
11753# as_fn_exit STATUS
11754# -----------------
11755# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11756as_fn_exit ()
11757{
11758 set +e
11759 as_fn_set_status $1
11760 exit $1
11761} # as_fn_exit
11762
11763# as_fn_unset VAR
11764# ---------------
11765# Portably unset VAR.
11766as_fn_unset ()
11767{
11768 { eval $1=; unset $1;}
11769}
11770as_unset=as_fn_unset
11771# as_fn_append VAR VALUE
11772# ----------------------
11773# Append the text in VALUE to the end of the definition contained in VAR. Take
11774# advantage of any shell optimizations that allow amortized linear growth over
11775# repeated appends, instead of the typical quadratic growth present in naive
11776# implementations.
11777if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11778 eval 'as_fn_append ()
11779 {
11780 eval $1+=\$2
11781 }'
11782else
11783 as_fn_append ()
11784 {
11785 eval $1=\$$1\$2
11786 }
11787fi # as_fn_append
11788
11789# as_fn_arith ARG...
11790# ------------------
11791# Perform arithmetic evaluation on the ARGs, and store the result in the
11792# global $as_val. Take advantage of shells that can avoid forks. The arguments
11793# must be portable across $(()) and expr.
11794if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11795 eval 'as_fn_arith ()
11796 {
11797 as_val=$(( $* ))
11798 }'
11799else
11800 as_fn_arith ()
11801 {
11802 as_val=`expr "$@" || test $? -eq 1`
11803 }
11804fi # as_fn_arith
11805
11806
Theodore Ts'oe1052142006-10-21 21:46:47 -040011807if expr a : '\(a\)' >/dev/null 2>&1 &&
11808 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11809 as_expr=expr
11810else
11811 as_expr=false
11812fi
11813
11814if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11815 as_basename=basename
11816else
11817 as_basename=false
11818fi
11819
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011820if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11821 as_dirname=dirname
11822else
11823 as_dirname=false
11824fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011825
Theodore Ts'oe1052142006-10-21 21:46:47 -040011826as_me=`$as_basename -- "$0" ||
11827$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11828 X"$0" : 'X\(//\)$' \| \
11829 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011830$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011831 sed '/^.*\/\([^/][^/]*\)\/*$/{
11832 s//\1/
11833 q
11834 }
11835 /^X\/\(\/\/\)$/{
11836 s//\1/
11837 q
11838 }
11839 /^X\/\(\/\).*/{
11840 s//\1/
11841 q
11842 }
11843 s/.*/./; q'`
11844
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011845# Avoid depending upon Character Ranges.
11846as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11847as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11848as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11849as_cr_digits='0123456789'
11850as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011851
11852ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011853case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011854-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011855 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011856 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011857 xy) ECHO_C='\c';;
11858 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11859 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011860 esac;;
11861*)
11862 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011863esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011864
11865rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011866if test -d conf$$.dir; then
11867 rm -f conf$$.dir/conf$$.file
11868else
11869 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011870 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011871fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011872if (echo >conf$$.file) 2>/dev/null; then
11873 if ln -s conf$$.file conf$$ 2>/dev/null; then
11874 as_ln_s='ln -s'
11875 # ... but there are two gotchas:
11876 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11877 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011878 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011879 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011880 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011881 elif ln conf$$.file conf$$ 2>/dev/null; then
11882 as_ln_s=ln
11883 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011884 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011885 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011886else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011887 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011888fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011889rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11890rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011891
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011892
11893# as_fn_mkdir_p
11894# -------------
11895# Create "$as_dir" as a directory, including parents if necessary.
11896as_fn_mkdir_p ()
11897{
11898
11899 case $as_dir in #(
11900 -*) as_dir=./$as_dir;;
11901 esac
11902 test -d "$as_dir" || eval $as_mkdir_p || {
11903 as_dirs=
11904 while :; do
11905 case $as_dir in #(
11906 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11907 *) as_qdir=$as_dir;;
11908 esac
11909 as_dirs="'$as_qdir' $as_dirs"
11910 as_dir=`$as_dirname -- "$as_dir" ||
11911$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11912 X"$as_dir" : 'X\(//\)[^/]' \| \
11913 X"$as_dir" : 'X\(//\)$' \| \
11914 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11915$as_echo X"$as_dir" |
11916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11917 s//\1/
11918 q
11919 }
11920 /^X\(\/\/\)[^/].*/{
11921 s//\1/
11922 q
11923 }
11924 /^X\(\/\/\)$/{
11925 s//\1/
11926 q
11927 }
11928 /^X\(\/\).*/{
11929 s//\1/
11930 q
11931 }
11932 s/.*/./; q'`
11933 test -d "$as_dir" && break
11934 done
11935 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011936 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011937
11938
11939} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011940if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011941 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011942else
11943 test -d ./-p && rmdir ./-p
11944 as_mkdir_p=false
11945fi
11946
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011947
11948# as_fn_executable_p FILE
11949# -----------------------
11950# Test if FILE is an executable regular file.
11951as_fn_executable_p ()
11952{
11953 test -f "$1" && test -x "$1"
11954} # as_fn_executable_p
11955as_test_x='test -x'
11956as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011957
11958# Sed expression to map a string onto a valid CPP name.
11959as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11960
11961# Sed expression to map a string onto a valid variable name.
11962as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11963
11964
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011965exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011966## ----------------------------------- ##
11967## Main body of $CONFIG_STATUS script. ##
11968## ----------------------------------- ##
11969_ASEOF
11970test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011971
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11973# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011974# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011975# values after options handling.
11976ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011977This file was extended by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011978generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011979
11980 CONFIG_FILES = $CONFIG_FILES
11981 CONFIG_HEADERS = $CONFIG_HEADERS
11982 CONFIG_LINKS = $CONFIG_LINKS
11983 CONFIG_COMMANDS = $CONFIG_COMMANDS
11984 $ $0 $@
11985
Theodore Ts'oe1052142006-10-21 21:46:47 -040011986on `(hostname || uname -n) 2>/dev/null | sed 1q`
11987"
11988
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011989_ACEOF
11990
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011991case $ac_config_files in *"
11992"*) set x $ac_config_files; shift; ac_config_files=$*;;
11993esac
11994
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011995case $ac_config_headers in *"
11996"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11997esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011998
11999
12000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012001# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012002config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012003config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012004config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012005
Theodore Ts'oe1052142006-10-21 21:46:47 -040012006_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012007
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012009ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012010\`$as_me' instantiates files and other configuration actions
12011from templates according to the current configuration. Unless the files
12012and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012013
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012014Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012015
12016 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012017 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012018 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012019 -q, --quiet, --silent
12020 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012021 -d, --debug don't remove temporary files
12022 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012023 --file=FILE[:TEMPLATE]
12024 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012025 --header=FILE[:TEMPLATE]
12026 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012027
12028Configuration files:
12029$config_files
12030
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012031Configuration headers:
12032$config_headers
12033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012034Configuration commands:
12035$config_commands
12036
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012037Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012038
Theodore Ts'oe1052142006-10-21 21:46:47 -040012039_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012041ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042ac_cs_version="\\
12043config.status
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012044configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012045 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012046
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012047Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012048This config.status script is free software; the Free Software Foundation
12049gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040012050
12051ac_pwd='$ac_pwd'
12052srcdir='$srcdir'
12053INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012054AWK='$AWK'
12055test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012056_ACEOF
12057
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12059# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012060ac_need_defaults=:
12061while test $# != 0
12062do
12063 case $1 in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012064 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012065 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12066 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067 ac_shift=:
12068 ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012069 --*=)
12070 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12071 ac_optarg=
12072 ac_shift=:
12073 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012074 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012075 ac_option=$1
12076 ac_optarg=$2
12077 ac_shift=shift
12078 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012079 esac
12080
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012081 case $ac_option in
12082 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12084 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012085 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012086 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012087 --config | --confi | --conf | --con | --co | --c )
12088 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012089 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012090 debug=: ;;
12091 --file | --fil | --fi | --f )
12092 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012093 case $ac_optarg in
12094 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012095 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012096 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012097 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012098 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012099 --header | --heade | --head | --hea )
12100 $ac_shift
12101 case $ac_optarg in
12102 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12103 esac
12104 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12105 ac_need_defaults=false;;
12106 --he | --h)
12107 # Conflict between --help and --header
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012108 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012109Try \`$0 --help' for more information.";;
12110 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012111 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12113 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12114 ac_cs_silent=: ;;
12115
12116 # This is an error.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012117 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012118Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012119
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012120 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012121 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012122
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012123 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012124 shift
12125done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012127ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012128
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012129if $ac_cs_silent; then
12130 exec 6>/dev/null
12131 ac_configure_extra_args="$ac_configure_extra_args --silent"
12132fi
12133
12134_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 -050012136if \$ac_cs_recheck; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012137 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012138 shift
12139 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12140 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012141 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012142 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012143fi
12144
12145_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012147exec 5>>config.log
12148{
12149 echo
12150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12151## Running $as_me. ##
12152_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012153 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012154} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012155
Theodore Ts'oe1052142006-10-21 21:46:47 -040012156_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012158#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012159# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012161# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012162 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012163 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012164 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012165 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12166 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012167
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012168
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012169_ACEOF
12170
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012172
12173# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012174for ac_config_target in $ac_config_targets
12175do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012176 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012177 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012178 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12179 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12180
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012181 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012182 esac
12183done
12184
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012186# If the user did not use the arguments to specify the items to instantiate,
12187# then the envvar interface is used. Set only those that are not.
12188# We use the long form for the default assignment because of an extremely
12189# bizarre bug on SunOS 4.1.3.
12190if $ac_need_defaults; then
12191 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012192 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012193 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12194fi
12195
12196# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012197# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012198# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012199# Hook for its removal unless debugging.
12200# Note that there is a small window in which the directory will not be cleaned:
12201# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012202$debug ||
12203{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012204 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040012205 trap 'exit_status=$?
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012206 : "${ac_tmp:=$tmp}"
12207 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040012208' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012209 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012210}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012211# Create a (secure) tmp directory for tmp files.
12212
12213{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012214 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012215 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012216} ||
12217{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012218 tmp=./conf$$-$RANDOM
12219 (umask 077 && mkdir "$tmp")
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012220} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12221ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012222
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012223# Set up the scripts for CONFIG_FILES section.
12224# No need to generate them if there are no CONFIG_FILES.
12225# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012226if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012227
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012228if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12229 ac_cs_awk_getline=:
12230 ac_cs_awk_pipe_init=
12231 ac_cs_awk_read_file='
12232 while ((getline aline < (F[key])) > 0)
12233 print(aline)
12234 close(F[key])'
12235 ac_cs_awk_pipe_fini=
12236else
12237 ac_cs_awk_getline=false
12238 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12239 ac_cs_awk_read_file='
12240 print "|#_!!_#|"
12241 print "cat " F[key] " &&"
12242 '$ac_cs_awk_pipe_init
12243 # The final `:' finishes the AND list.
12244 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12245fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012246ac_cr=`echo X | tr X '\015'`
12247# On cygwin, bash can eat \r inside `` if the user requested igncr.
12248# But we know of no other shell where ac_cr would be empty at this
12249# point, so we can use a bashism as a fallback.
12250if test "x$ac_cr" = x; then
12251 eval ac_cr=\$\'\\r\'
12252fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012253ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12254if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012255 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012256else
12257 ac_cs_awk_cr=$ac_cr
12258fi
12259
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012260echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012261_ACEOF
12262
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012263# Create commands to substitute file output variables.
12264{
12265 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012266 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012267 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12268 echo "_ACAWK" &&
12269 echo "_ACEOF"
12270} >conf$$files.sh &&
12271. ./conf$$files.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012273rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012274
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012275{
12276 echo "cat >conf$$subs.awk <<_ACEOF" &&
12277 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12278 echo "_ACEOF"
12279} >conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12281ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012282ac_delim='%!_!# '
12283for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012284 . ./conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012286
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012287 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12288 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012289 break
12290 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012292 else
12293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012294 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012295done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012296rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012297
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012299cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012300_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012301sed -n '
12302h
12303s/^/S["/; s/!.*/"]=/
12304p
12305g
12306s/^[^!]*!//
12307:repl
12308t repl
12309s/'"$ac_delim"'$//
12310t delim
12311:nl
12312h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012313s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012314t more1
12315s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12316p
12317n
12318b repl
12319:more1
12320s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12321p
12322g
12323s/.\{148\}//
12324t nl
12325:delim
12326h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012327s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012328t more2
12329s/["\\]/\\&/g; s/^/"/; s/$/"/
12330p
12331b
12332:more2
12333s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12334p
12335g
12336s/.\{148\}//
12337t delim
12338' <conf$$subs.awk | sed '
12339/^[^""]/{
12340 N
12341 s/\n//
12342}
12343' >>$CONFIG_STATUS || ac_write_fail=1
12344rm -f conf$$subs.awk
12345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12346_ACAWK
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012347cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012348 for (key in S) S_is_set[key] = 1
12349 FS = ""
12350 \$ac_cs_awk_pipe_init
12351}
12352{
12353 line = $ 0
12354 nfields = split(line, field, "@")
12355 substed = 0
12356 len = length(field[1])
12357 for (i = 2; i < nfields; i++) {
12358 key = field[i]
12359 keylen = length(key)
12360 if (S_is_set[key]) {
12361 value = S[key]
12362 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12363 len += length(value) + length(field[++i])
12364 substed = 1
12365 } else
12366 len += 1 + keylen
12367 }
12368 if (nfields == 3 && !substed) {
12369 key = field[2]
12370 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12371 \$ac_cs_awk_read_file
12372 next
12373 }
12374 }
12375 print line
12376}
12377\$ac_cs_awk_pipe_fini
12378_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012379_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12381if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12382 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12383else
12384 cat
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012385fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12386 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012387_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012388
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012389# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12390# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040012391# trailing colons and then remove the whole line if VPATH becomes empty
12392# (actually we leave an empty line to preserve line numbers).
12393if test "x$srcdir" = x.; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012394 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12395h
12396s///
12397s/^/:/
12398s/[ ]*$/:/
12399s/:\$(srcdir):/:/g
12400s/:\${srcdir}:/:/g
12401s/:@srcdir@:/:/g
12402s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012403s/:*$//
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012404x
12405s/\(=[ ]*\).*/\1/
12406G
12407s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040012408s/^[^=]*=[ ]*$//
12409}'
12410fi
12411
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012413fi # test -n "$CONFIG_FILES"
12414
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012415# Set up the scripts for CONFIG_HEADERS section.
12416# No need to generate them if there are no CONFIG_HEADERS.
12417# This happens for instance with `./config.status Makefile'.
12418if test -n "$CONFIG_HEADERS"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012419cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012420BEGIN {
12421_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012422
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012423# Transform confdefs.h into an awk script `defines.awk', embedded as
12424# here-document in config.status, that substitutes the proper values into
12425# config.h.in to produce config.h.
12426
12427# Create a delimiter string that does not exist in confdefs.h, to ease
12428# handling of long lines.
12429ac_delim='%!_!# '
12430for ac_last_try in false false :; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012431 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12432 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012433 break
12434 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012435 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012436 else
12437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12438 fi
12439done
12440
12441# For the awk script, D is an array of macro values keyed by name,
12442# likewise P contains macro parameters if any. Preserve backslash
12443# newline sequences.
12444
12445ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12446sed -n '
12447s/.\{148\}/&'"$ac_delim"'/g
12448t rset
12449:rset
12450s/^[ ]*#[ ]*define[ ][ ]*/ /
12451t def
12452d
12453:def
12454s/\\$//
12455t bsnl
12456s/["\\]/\\&/g
12457s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12458D["\1"]=" \3"/p
12459s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12460d
12461:bsnl
12462s/["\\]/\\&/g
12463s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12464D["\1"]=" \3\\\\\\n"\\/p
12465t cont
12466s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12467t cont
12468d
12469:cont
12470n
12471s/.\{148\}/&'"$ac_delim"'/g
12472t clear
12473:clear
12474s/\\$//
12475t bsnlc
12476s/["\\]/\\&/g; s/^/"/; s/$/"/p
12477d
12478:bsnlc
12479s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12480b cont
12481' <confdefs.h | sed '
12482s/'"$ac_delim"'/"\\\
12483"/g' >>$CONFIG_STATUS || ac_write_fail=1
12484
12485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12486 for (key in D) D_is_set[key] = 1
12487 FS = ""
12488}
12489/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12490 line = \$ 0
12491 split(line, arg, " ")
12492 if (arg[1] == "#") {
12493 defundef = arg[2]
12494 mac1 = arg[3]
12495 } else {
12496 defundef = substr(arg[1], 2)
12497 mac1 = arg[2]
12498 }
12499 split(mac1, mac2, "(") #)
12500 macro = mac2[1]
12501 prefix = substr(line, 1, index(line, defundef) - 1)
12502 if (D_is_set[macro]) {
12503 # Preserve the white space surrounding the "#".
12504 print prefix "define", macro P[macro] D[macro]
12505 next
12506 } else {
12507 # Replace #undef with comments. This is necessary, for example,
12508 # in the case of _POSIX_SOURCE, which is predefined and required
12509 # on some systems where configure will not decide to define it.
12510 if (defundef == "undef") {
12511 print "/*", prefix defundef, macro, "*/"
12512 next
12513 }
12514 }
12515}
12516{ print }
12517_ACAWK
12518_ACEOF
12519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012520 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012521fi # test -n "$CONFIG_HEADERS"
12522
12523
12524eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012525shift
12526for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012527do
12528 case $ac_tag in
12529 :[FHLC]) ac_mode=$ac_tag; continue;;
12530 esac
12531 case $ac_mode$ac_tag in
12532 :[FHL]*:*);;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012533 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012534 :[FH]-) ac_tag=-:-;;
12535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12536 esac
12537 ac_save_IFS=$IFS
12538 IFS=:
12539 set x $ac_tag
12540 IFS=$ac_save_IFS
12541 shift
12542 ac_file=$1
12543 shift
12544
12545 case $ac_mode in
12546 :L) ac_source=$1;;
12547 :[FH])
12548 ac_file_inputs=
12549 for ac_f
12550 do
12551 case $ac_f in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012552 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012553 *) # Look for the file first in the build tree, then in the source tree
12554 # (if the path is not absolute). The absolute path cannot be DOS-style,
12555 # because $ac_f cannot contain `:'.
12556 test -f "$ac_f" ||
12557 case $ac_f in
12558 [\\/$]*) false;;
12559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12560 esac ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012561 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012562 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012563 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012564 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012565 done
12566
12567 # Let's still pretend it is `configure' which instantiates (i.e., don't
12568 # use $as_me), people would be surprised to read:
12569 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012570 configure_input='Generated from '`
12571 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12572 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012573 if test x"$ac_file" != x-; then
12574 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012576$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012577 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012578 # Neutralize special characters interpreted by sed in replacement strings.
12579 case $configure_input in #(
12580 *\&* | *\|* | *\\* )
12581 ac_sed_conf_input=`$as_echo "$configure_input" |
12582 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12583 *) ac_sed_conf_input=$configure_input;;
12584 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012585
12586 case $ac_tag in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012587 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012589 esac
12590 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012591 esac
12592
Theodore Ts'oe1052142006-10-21 21:46:47 -040012593 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12595 X"$ac_file" : 'X\(//\)[^/]' \| \
12596 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012598$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12600 s//\1/
12601 q
12602 }
12603 /^X\(\/\/\)[^/].*/{
12604 s//\1/
12605 q
12606 }
12607 /^X\(\/\/\)$/{
12608 s//\1/
12609 q
12610 }
12611 /^X\(\/\).*/{
12612 s//\1/
12613 q
12614 }
12615 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012616 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012617 ac_builddir=.
12618
Theodore Ts'oe1052142006-10-21 21:46:47 -040012619case "$ac_dir" in
12620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12621*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012623 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012625 case $ac_top_builddir_sub in
12626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12628 esac ;;
12629esac
12630ac_abs_top_builddir=$ac_pwd
12631ac_abs_builddir=$ac_pwd$ac_dir_suffix
12632# for backward compatibility:
12633ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012634
12635case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012636 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012637 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012638 ac_top_srcdir=$ac_top_builddir_sub
12639 ac_abs_top_srcdir=$ac_pwd ;;
12640 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012641 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012642 ac_top_srcdir=$srcdir
12643 ac_abs_top_srcdir=$srcdir ;;
12644 *) # Relative name.
12645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12646 ac_top_srcdir=$ac_top_build_prefix$srcdir
12647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012648esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012650
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012651
Theodore Ts'oe1052142006-10-21 21:46:47 -040012652 case $ac_mode in
12653 :F)
12654 #
12655 # CONFIG_FILE
12656 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012657
12658 case $INSTALL in
12659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012660 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012661 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012662_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012663
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012665# If the template does not know about datarootdir, expand it.
12666# FIXME: This hack should be removed a few years after 2.60.
12667ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012668ac_sed_dataroot='
12669/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012670 p
12671 q
12672}
12673/@datadir@/p
12674/@docdir@/p
12675/@infodir@/p
12676/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012677/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012678case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012679*datarootdir*) ac_datarootdir_seen=yes;;
12680*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012681 { $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 +010012682$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012683_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012685 ac_datarootdir_hack='
12686 s&@datadir@&$datadir&g
12687 s&@docdir@&$docdir&g
12688 s&@infodir@&$infodir&g
12689 s&@localedir@&$localedir&g
12690 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012691 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012692esac
12693_ACEOF
12694
12695# Neutralize VPATH when `$srcdir' = `.'.
12696# Shell code in configure.ac might set extrasub.
12697# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12699ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012700$extrasub
12701_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012703:t
12704/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012705s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012706s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012707s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012708s&@srcdir@&$ac_srcdir&;t t
12709s&@abs_srcdir@&$ac_abs_srcdir&;t t
12710s&@top_srcdir@&$ac_top_srcdir&;t t
12711s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12712s&@builddir@&$ac_builddir&;t t
12713s&@abs_builddir@&$ac_abs_builddir&;t t
12714s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12715s&@INSTALL@&$ac_INSTALL&;t t
12716$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012717"
12718eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12719if $ac_cs_awk_getline; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012720 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012721else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012722 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12723fi \
12724 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012725
Theodore Ts'oe1052142006-10-21 21:46:47 -040012726test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012727 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12729 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012731which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012732$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012733which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012734
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012735 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012736 case $ac_file in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012737 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12738 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012739 esac \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012741 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012742 :H)
12743 #
12744 # CONFIG_HEADER
12745 #
12746 if test x"$ac_file" != x-; then
12747 {
12748 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012749 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12750 } >"$ac_tmp/config.h" \
12751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12752 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012753 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12754$as_echo "$as_me: $ac_file is unchanged" >&6;}
12755 else
12756 rm -f "$ac_file"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012757 mv "$ac_tmp/config.h" "$ac_file" \
12758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012759 fi
12760 else
12761 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12763 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012764 fi
12765 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012766
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012767 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012768$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012769 ;;
12770 esac
12771
12772
12773 case $ac_file$ac_mode in
12774 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012775 for ac_file in $CONFIG_FILES; do
12776 # Support "outfile[:infile[:infile...]]"
12777 case "$ac_file" in
12778 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012779 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012780 # PO directories have a Makefile.in generated from Makefile.in.in.
12781 case "$ac_file" in */Makefile.in)
12782 # Adjust a relative srcdir.
12783 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12784 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12785 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12786 # In autoconf-2.13 it is called $ac_given_srcdir.
12787 # In autoconf-2.50 it is called $srcdir.
12788 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12789 case "$ac_given_srcdir" in
12790 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12791 /*) top_srcdir="$ac_given_srcdir" ;;
12792 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12793 esac
12794 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12795 rm -f "$ac_dir/POTFILES"
12796 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12797 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 -050012798 POMAKEFILEDEPS="POTFILES.in"
12799 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012800 # on $ac_dir but don't depend on user-specified configuration
12801 # parameters.
12802 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12803 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012804 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012805 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12806 fi
12807 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12808 # Hide the ALL_LINGUAS assigment from automake.
12809 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012810 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12811 else
12812 # The set of available languages was given in configure.in.
12813 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012814 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012815 # Compute POFILES
12816 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12817 # Compute UPDATEPOFILES
12818 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12819 # Compute DUMMYPOFILES
12820 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12821 # Compute GMOFILES
12822 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012823 case "$ac_given_srcdir" in
12824 .) srcdirpre= ;;
12825 *) srcdirpre='$(srcdir)/' ;;
12826 esac
12827 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012828 UPDATEPOFILES=
12829 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012830 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012831 for lang in $ALL_LINGUAS; do
12832 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012833 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12834 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012835 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012836 done
12837 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12838 # environment variable.
12839 INST_LINGUAS=
12840 if test -n "$ALL_LINGUAS"; then
12841 for presentlang in $ALL_LINGUAS; do
12842 useit=no
12843 if test "%UNSET%" != "$LINGUAS"; then
12844 desiredlanguages="$LINGUAS"
12845 else
12846 desiredlanguages="$ALL_LINGUAS"
12847 fi
12848 for desiredlang in $desiredlanguages; do
12849 # Use the presentlang catalog if desiredlang is
12850 # a. equal to presentlang, or
12851 # b. a variant of presentlang (because in this case,
12852 # presentlang can be used as a fallback for messages
12853 # which are not translated in the desiredlang catalog).
12854 case "$desiredlang" in
12855 "$presentlang"*) useit=yes;;
12856 esac
12857 done
12858 if test $useit = yes; then
12859 INST_LINGUAS="$INST_LINGUAS $presentlang"
12860 fi
12861 done
12862 fi
12863 CATALOGS=
12864 if test -n "$INST_LINGUAS"; then
12865 for lang in $INST_LINGUAS; do
12866 CATALOGS="$CATALOGS $lang.gmo"
12867 done
12868 fi
12869 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012870 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 -040012871 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12872 if test -f "$f"; then
12873 case "$f" in
12874 *.orig | *.bak | *~) ;;
12875 *) cat "$f" >> "$ac_dir/Makefile" ;;
12876 esac
12877 fi
12878 done
12879 fi
12880 ;;
12881 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012882 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012883
Theodore Ts'oe1052142006-10-21 21:46:47 -040012884 esac
12885done # for ac_tag
12886
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012887
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012888as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012889_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012890ac_clean_files=$ac_clean_files_save
12891
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012892test $ac_write_fail = 0 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012893 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012894
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012895
12896# configure is writing to config.log, and then calls config.status.
12897# config.status does its own redirection, appending to config.log.
12898# Unfortunately, on DOS this fails, as config.log is still kept open
12899# by configure, so config.status won't be able to write to it; its
12900# output is simply discarded. So we exec the FD to /dev/null,
12901# effectively closing config.log, so it can be properly (re)opened and
12902# appended to by config.status. When coming back to configure, we
12903# need to make the FD available again.
12904if test "$no_create" != yes; then
12905 ac_cs_success=:
12906 ac_config_status_args=
12907 test "$silent" = yes &&
12908 ac_config_status_args="$ac_config_status_args --quiet"
12909 exec 5>/dev/null
12910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12911 exec 5>>config.log
12912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12913 # would make configure fail if this is the last instruction.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012914 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012915fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012916if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012918$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12919fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012920
Theodore Ts'oee683a12005-02-05 15:53:56 -050012921if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi