blob: c0fb2c93e1853feca47f31217b9ba4fb1059cc85 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018 emulate sh
19 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040023 setopt NO_GLOB_SUBST
24else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040030esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032
33
Scott James Remnant39fd3d42009-05-14 13:03:25 +010034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010048 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050058 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010059 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100090as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050091case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500101
Theodore Ts'oe1052142006-10-21 21:46:47 -0400102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500111 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400112fi
113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500356
357
358} # as_fn_mkdir_p
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500414 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000415 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500416 as_fn_exit $as_status
417} # as_fn_error
418
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437
Theodore Ts'oe1052142006-10-21 21:46:47 -0400438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100442$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463
464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500474 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500482 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500487
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500496 # Exit status is that of the last command.
497 exit
498}
499
Theodore Ts'oe1052142006-10-21 21:46:47 -0400500ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500501case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500503 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400508 esac;;
509*)
510 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500512
513rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100518 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000526 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000528 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000535 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500539
540if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500541 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559
560# Name of the host.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565#
566# Initializations.
567#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000568ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400569ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500570ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400571LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500583PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <sys/types.h>
591#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400592#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593# include <sys/stat.h>
594#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400595#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596# include <stdlib.h>
597# include <stddef.h>
598#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400599# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600# include <stdlib.h>
601# endif
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500605# include <memory.h>
606# endif
607# include <string.h>
608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500610# include <strings.h>
611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400614#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400618#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500619# include <unistd.h>
620#endif"
621
Theodore Ts'o93613952014-07-03 23:44:13 -0400622gt_needs=
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400623ac_header_list=
Theodore Ts'o93613952014-07-03 23:44:13 -0400624gl_use_threads_default=
625ac_func_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100626ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400627LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100628BUILD_LDFLAGS
629BUILD_CFLAGS
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -0400630MKINSTALLDIRS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400631INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100632DO_TEST_SUITE
633ET_DIR
634SS_DIR
635LDFLAG_STATIC
636root_sysconfdir
637root_libdir
638root_sbindir
639root_bindir
640root_prefix
641UNIX_CMT
642CYGWIN_CMT
643LINUX_CMT
644UNI_DIFF_OPTS
645SEM_INIT_LIB
Darrick J. Wongb291c112014-09-13 15:12:46 -0700646MAGIC_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100647SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400648SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100649SIZEOF_LONG_LONG
650SIZEOF_LONG
651SIZEOF_INT
652SIZEOF_SHORT
653BUILD_CC
654MAKEINFO
655STRIP
656AR
657LDCONFIG
658PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100659AWK
660CHMOD
661RM
662CP
663MV
664LN_S
665LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400666ifNotGNUmake
667ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100668BINARY_TYPE
669POSUB
670LTLIBINTL
671LIBINTL
672INTLLIBS
673INTL_LIBTOOL_SUFFIX_PREFIX
674INTLOBJS
675GENCAT
676INSTOBJEXT
677DATADIRNAME
678CATOBJEXT
679USE_INCLUDED_LIBINTL
680BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400681LTLIBC
682WINDRES
683WOE32
684WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100685HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400686HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100687HAVE_SNPRINTF
688HAVE_ASPRINTF
689HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400690INTL_DEFAULT_VERBOSITY
691INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100692GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400693INTLBISON
694LTLIBICONV
695LIBICONV
696LTLIBMULTITHREAD
697LIBMULTITHREAD
698LTLIBTHREAD
699LIBTHREAD
700LIBPTH_PREFIX
701LTLIBPTH
702LIBPTH
703PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100704ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400705HAVE_VISIBILITY
706CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100707RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400708GLIBC2
709XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100710MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400711XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100712XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400713GMSGFMT_015
714MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100715GMSGFMT
716MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400717GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100718USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400719SED
720MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724SET_MAKE
725VERSION
726PACKAGE
727GETTEXT_PACKAGE
728UUIDD_CMT
729E2INITRD_MAN
730E2INITRD_PROG
731FSCK_MAN
732FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500733DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100734RESIZER_CMT
735IMAGER_CMT
736DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700737QUOTA_CMT
738DEPPROFILED_LIBQUOTA
739PROFILED_LIBQUOTA
740DEPSTATIC_LIBQUOTA
741STATIC_LIBQUOTA
742DEPLIBQUOTA
743LIBQUOTA
Eric Sandeenf5589f42013-10-14 08:54:15 -0400744QUOTA_MAN_COMMENT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100745BLKID_CMT
746DEPPROFILED_LIBBLKID
747PROFILED_LIBBLKID
748DEPSTATIC_LIBBLKID
749STATIC_LIBBLKID
750DEPLIBBLKID
751LIBBLKID
752UUID_CMT
753DEPPROFILED_LIBUUID
754PROFILED_LIBUUID
755DEPSTATIC_LIBUUID
756STATIC_LIBUUID
757DEPLIBUUID
758LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400759PKG_CONFIG_LIBDIR
760PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100761PKG_CONFIG
762TEST_IO_CMT
763PRIVATE_LIBS_CMT
764LDFLAG_DYNAMIC
765PROFILED_LIB_EXT
766STATIC_LIB_EXT
767LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100768PROFILE_CMT
769BSDLIB_CMT
770ELF_CMT
771HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400772Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400773ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400774E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400775LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400776SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400777LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100778MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400779EGREP
780GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100781CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400782RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500783DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100784OBJEXT
785EXEEXT
786ac_ct_CC
787CPPFLAGS
788LDFLAGS
789CFLAGS
790CC
791host_os
792host_vendor
793host_cpu
794host
795build_os
796build_vendor
797build_cpu
798build
799E2FSPROGS_PKGVER
800E2FSPROGS_VERSION
801E2FSPROGS_DAY
802E2FSPROGS_MONTH
803E2FSPROGS_YEAR
804target_alias
805host_alias
806build_alias
807LIBS
808ECHO_T
809ECHO_N
810ECHO_C
811DEFS
812mandir
813localedir
814libdir
815psdir
816pdfdir
817dvidir
818htmldir
819infodir
820docdir
821oldincludedir
822includedir
823localstatedir
824sharedstatedir
825sysconfdir
826datadir
827datarootdir
828libexecdir
829sbindir
830bindir
831program_transform_name
832prefix
833exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500834PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100835PACKAGE_BUGREPORT
836PACKAGE_STRING
837PACKAGE_VERSION
838PACKAGE_TARNAME
839PACKAGE_NAME
840PATH_SEPARATOR
841SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400842ac_subst_files='MCONFIG
843MAKEFILE_ELF
844MAKEFILE_BSDLIB
845MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400846MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400847ASM_TYPES_HEADER
848PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100849ac_user_opts='
850enable_option_checking
851with_diet_libc
852with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100853with_ccopts
854with_ldopts
855with_root_prefix
856enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400857enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400858enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400859enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400860enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400861enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100862enable_htree
863enable_elf_shlibs
864enable_bsd_shlibs
865enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500866enable_gcov
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100867enable_jbd_debug
868enable_blkid_debug
869enable_testio_debug
870enable_libuuid
871enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500872enable_quota
Theodore Ts'o3df60142013-06-16 16:14:40 -0400873enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100874enable_debugfs
875enable_imager
876enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500877enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100878enable_fsck
879enable_e2initrd_helper
880enable_tls
881enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000882enable_mmp
Tony Breeds1625bf42012-07-30 14:44:12 -0400883enable_bmap_stats
884enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100885enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400886enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100887with_gnu_ld
888enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400889with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100890with_libiconv_prefix
891with_included_gettext
892with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400893with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100894'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400895 ac_precious_vars='build_alias
896host_alias
897target_alias
898CC
899CFLAGS
900LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400901LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400902CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400903CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400904PKG_CONFIG
905PKG_CONFIG_PATH
906PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400907
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000908
909# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500910ac_init_help=
911ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100912ac_unrecognized_opts=
913ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000914# The variables have the same names as the options, with
915# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500916cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000917exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000918no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000927verbose=
928x_includes=NONE
929x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400936# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000945includedir='${prefix}/include'
946oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400947docdir='${datarootdir}/doc/${PACKAGE}'
948infodir='${datarootdir}/info'
949htmldir='${docdir}'
950dvidir='${docdir}'
951pdfdir='${docdir}'
952psdir='${docdir}'
953libdir='${exec_prefix}/lib'
954localedir='${datarootdir}/locale'
955mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000956
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000957ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400958ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000959for ac_option
960do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400963 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000964 ac_prev=
965 continue
966 fi
967
Theodore Ts'oe1052142006-10-21 21:46:47 -0400968 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000969 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *=) ac_optarg= ;;
971 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400972 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000973
974 # Accept the important Cygnus configure options, so we can diagnose typos.
975
Theodore Ts'oe1052142006-10-21 21:46:47 -0400976 case $ac_dashdash$ac_option in
977 --)
978 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000979
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000980 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 ac_prev=bindir ;;
982 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500983 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000984
985 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500986 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000987 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500988 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000989
990 -cache-file | --cache-file | --cache-fil | --cache-fi \
991 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992 ac_prev=cache_file ;;
993 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500995 cache_file=$ac_optarg ;;
996
997 --config-cache | -C)
998 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000999
Theodore Ts'oe1052142006-10-21 21:46:47 -04001000 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001001 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001002 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001003 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001004
Theodore Ts'oe1052142006-10-21 21:46:47 -04001005 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006 | --dataroo | --dataro | --datar)
1007 ac_prev=datarootdir ;;
1008 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010 datarootdir=$ac_optarg ;;
1011
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001012 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001013 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001014 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001016 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021"enable_$ac_useropt"
1022"*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001027
1028 -docdir | --docdir | --docdi | --doc | --do)
1029 ac_prev=docdir ;;
1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031 docdir=$ac_optarg ;;
1032
1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 ac_prev=dvidir ;;
1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001037
1038 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001040 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001042 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047"enable_$ac_useropt"
1048"*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001053
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001061 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1065 with_gas=yes ;;
1066
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001073
1074 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001075 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001076 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001077 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001078
Theodore Ts'oe1052142006-10-21 21:46:47 -04001079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 ac_prev=htmldir ;;
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 | --ht=*)
1083 htmldir=$ac_optarg ;;
1084
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001090 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001091
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 ac_prev=infodir ;;
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001095 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001096
1097 -libdir | --libdir | --libdi | --libd)
1098 ac_prev=libdir ;;
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001100 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001101
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001107 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001108
Theodore Ts'oe1052142006-10-21 21:46:47 -04001109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1113
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001114 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001115 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001119 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001120
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 ac_prev=mandir ;;
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001124 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001125
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1128 with_fp=no ;;
1129
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001131 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001132 no_create=yes ;;
1133
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136 no_recursion=yes ;;
1137
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001145 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001146
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 ac_prev=prefix ;;
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001150 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001151
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001157 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001158
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001164 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001165
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001181 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001182
Theodore Ts'oe1052142006-10-21 21:46:47 -04001183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 ac_prev=pdfdir ;;
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1187
1188 -psdir | --psdir | --psdi | --psd | --ps)
1189 ac_prev=psdir ;;
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191 psdir=$ac_optarg ;;
1192
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1195 silent=yes ;;
1196
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 ac_prev=sbindir ;;
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001201 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001202
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1206 | --sha | --sh)
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001212 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001213
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001214 -site | --site | --sit)
1215 ac_prev=site ;;
1216 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001217 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001218
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 ac_prev=srcdir ;;
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001222 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001223
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001229 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001230
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001231 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001232 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001234 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001235
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237 verbose=yes ;;
1238
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001241
1242 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001244 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001246 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251"with_$ac_useropt"
1252"*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001257
1258 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001259 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001260 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001262 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267"with_$ac_useropt"
1268"*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001273
1274 --x)
1275 # Obsolete; use --with-x.
1276 with_x=yes ;;
1277
1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279 | --x-incl | --x-inc | --x-in | --x-i)
1280 ac_prev=x_includes ;;
1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001283 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001284
1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287 ac_prev=x_libraries ;;
1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001290 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001291
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001292 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001294 ;;
1295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001296 *=*)
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001299 case $ac_envvar in #(
1300 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001301 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001302 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001303 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001304 export $ac_envvar ;;
1305
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001306 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001307 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001311 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001312 ;;
1313
1314 esac
1315done
1316
1317if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001319 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001320fi
1321
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001322if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1324 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001325 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 esac
1328fi
1329
1330# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001331for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001335do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001336 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001337 # Remove trailing slashes.
1338 case $ac_val in
1339 */ )
1340 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\$ac_val;;
1342 esac
1343 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001344 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001345 [\\/$]* | ?:[\\/]* ) continue;;
1346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001347 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001348 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001349done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001350
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001351# There might be people who depend on the old broken behavior: `$host'
1352# used to hold the argument of --host etc.
1353# FIXME: To remove some day.
1354build=$build_alias
1355host=$host_alias
1356target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001358# FIXME: To remove some day.
1359if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001362 elif test "x$build_alias" != "x$host_alias"; then
1363 cross_compiling=yes
1364 fi
1365fi
1366
1367ac_tool_prefix=
1368test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370test "$silent" = yes && exec 6>/dev/null
1371
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001372
Theodore Ts'oe1052142006-10-21 21:46:47 -04001373ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374ac_ls_di=`ls -di .` &&
1375ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001376 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001377test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001378 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001379
1380
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001381# Find the source files, if location was not specified.
1382if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001384 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001385 ac_confdir=`$as_dirname -- "$as_myself" ||
1386$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)[^/].*/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\).*/{
1404 s//\1/
1405 q
1406 }
1407 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001408 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001409 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001410 srcdir=..
1411 fi
1412else
1413 ac_srcdir_defaulted=no
1414fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001415if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001417 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001418fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001419ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001422 pwd)`
1423# When building in place, set srcdir=.
1424if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 srcdir=.
1426fi
1427# Remove unnecessary trailing slashes from srcdir.
1428# Double slashes in file names in object file debugging info
1429# mess up M-x gdb in Emacs.
1430case $srcdir in
1431*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432esac
1433for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001439
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001440#
1441# Report the --help message.
1442#
1443if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1446 cat <<_ACEOF
1447\`configure' configures this package to adapt to many kinds of systems.
1448
1449Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452VAR=VALUE. See below for descriptions of some of the useful variables.
1453
1454Defaults for the options are specified in brackets.
1455
1456Configuration:
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001461 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001467Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001469 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001471 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001472
1473By default, \`make install' will install all the files in
1474\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476for instance \`--prefix=\$HOME'.
1477
1478For better control, use the options below.
1479
1480Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001500_ACEOF
1501
1502 cat <<\_ACEOF
1503
1504System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507_ACEOF
1508fi
1509
1510if test -n "$ac_init_help"; then
1511
1512 cat <<\_ACEOF
1513
1514Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001515 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001518 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001519 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001520 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001521
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001522 --enable-symlink-build use symlinks while building instead of hard links
1523 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001524 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001525 --enable-elf-shlibs select ELF shared libraries
1526 --enable-bsd-shlibs select BSD shared libraries
1527 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001528 --enable-gcov build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001529 --enable-jbd-debug enable journal debugging
1530 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001531 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001532 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001533 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001534 --enable-quota enable quota support
Theodore Ts'o3df60142013-06-16 16:14:40 -04001535 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001536 --disable-debugfs disable support of debugfs program
1537 --disable-imager disable support of e2image program
1538 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001539 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001540 --enable-fsck build fsck wrapper program
1541 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001542 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001543 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001544 --disable-mmp disable support mmp, Multi Mount Protection
Tony Breeds1625bf42012-07-30 14:44:12 -04001545 --disable-bmap-stats disable collection of bitmap stats.
1546 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001547 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001548 --enable-threads={posix|solaris|pth|windows}
1549 specify multithreading API
1550 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551 --disable-rpath do not hardcode runtime library paths
1552
1553Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001556 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001557 --with-cc no longer supported, use CC= instead
1558 --with-ccopts no longer supported, use CFLAGS= instead
1559 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001560 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001561 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1562 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1563 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001564 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1565 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1566 --with-included-gettext use the GNU gettext library included here
1567 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1568 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001569 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001570
1571Some influential environment variables:
1572 CC C compiler command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1575 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001576 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001577 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001578 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001579 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001580 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001581 PKG_CONFIG_PATH
1582 directories to add to pkg-config's search path
1583 PKG_CONFIG_LIBDIR
1584 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001585
1586Use these variables to override the choices made by `configure' or to help
1587it to find libraries and programs with nonstandard names/locations.
1588
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001589Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001590_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001591ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001592fi
1593
1594if test "$ac_init_help" = "recursive"; then
1595 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001596 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001597 test -d "$ac_dir" ||
1598 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1599 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001600 ac_builddir=.
1601
Theodore Ts'oe1052142006-10-21 21:46:47 -04001602case "$ac_dir" in
1603.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001605 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001606 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001607 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001608 case $ac_top_builddir_sub in
1609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1611 esac ;;
1612esac
1613ac_abs_top_builddir=$ac_pwd
1614ac_abs_builddir=$ac_pwd$ac_dir_suffix
1615# for backward compatibility:
1616ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001617
1618case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001619 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001620 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001621 ac_top_srcdir=$ac_top_builddir_sub
1622 ac_abs_top_srcdir=$ac_pwd ;;
1623 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001624 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001625 ac_top_srcdir=$srcdir
1626 ac_abs_top_srcdir=$srcdir ;;
1627 *) # Relative name.
1628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1629 ac_top_srcdir=$ac_top_build_prefix$srcdir
1630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001631esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001632ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001633
Theodore Ts'oe1052142006-10-21 21:46:47 -04001634 cd "$ac_dir" || { ac_status=$?; continue; }
1635 # Check for guested configure.
1636 if test -f "$ac_srcdir/configure.gnu"; then
1637 echo &&
1638 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1639 elif test -f "$ac_srcdir/configure"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001642 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001643 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001644 fi || ac_status=$?
1645 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001646 done
1647fi
1648
Theodore Ts'oe1052142006-10-21 21:46:47 -04001649test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001650if $ac_init_version; then
1651 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001652configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001653generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001654
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001655Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001656This configure script is free software; the Free Software Foundation
1657gives unlimited permission to copy, distribute and modify it.
1658_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001659 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001660fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001661
1662## ------------------------ ##
1663## Autoconf initialization. ##
1664## ------------------------ ##
1665
1666# ac_fn_c_try_compile LINENO
1667# --------------------------
1668# Try to compile conftest.$ac_ext, and return whether this succeeded.
1669ac_fn_c_try_compile ()
1670{
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 rm -f conftest.$ac_objext
1673 if { { ac_try="$ac_compile"
1674case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_compile") 2>conftest.err
1681 ac_status=$?
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1686 fi
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && {
1689 test -z "$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 } && test -s conftest.$ac_objext; then :
1692 ac_retval=0
1693else
1694 $as_echo "$as_me: failed program was:" >&5
1695sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=1
1698fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001700 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001701
1702} # ac_fn_c_try_compile
1703
1704# ac_fn_c_try_link LINENO
1705# -----------------------
1706# Try to link conftest.$ac_ext, and return whether this succeeded.
1707ac_fn_c_try_link ()
1708{
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 rm -f conftest.$ac_objext conftest$ac_exeext
1711 if { { ac_try="$ac_link"
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_link") 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
1726 test $ac_status = 0; } && {
1727 test -z "$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 } && test -s conftest$ac_exeext && {
1730 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001731 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001732 }; then :
1733 ac_retval=0
1734else
1735 $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=1
1739fi
1740 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742 # interfere with the next link command; also delete a directory that is
1743 # left behind by Apple's compiler. We do this before executing the actions.
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001746 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001747
1748} # ac_fn_c_try_link
1749
1750# ac_fn_c_try_cpp LINENO
1751# ----------------------
1752# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_c_try_cpp ()
1754{
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 if { { ac_try="$ac_cpp conftest.$ac_ext"
1757case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001771 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 }; then :
1775 ac_retval=0
1776else
1777 $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=1
1781fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001783 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001784
1785} # ac_fn_c_try_cpp
1786
1787# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1788# -------------------------------------------------------
1789# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1790# the include files in INCLUDES and setting the cache variable VAR
1791# accordingly.
1792ac_fn_c_check_header_mongrel ()
1793{
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001795 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001798if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001799 $as_echo_n "(cached) " >&6
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804else
1805 # Is the header compilable?
1806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1807$as_echo_n "checking $2 usability... " >&6; }
1808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h. */
1810$4
1811#include <$2>
1812_ACEOF
1813if ac_fn_c_try_compile "$LINENO"; then :
1814 ac_header_compiler=yes
1815else
1816 ac_header_compiler=no
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1820$as_echo "$ac_header_compiler" >&6; }
1821
1822# Is the header present?
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1824$as_echo_n "checking $2 presence... " >&6; }
1825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h. */
1827#include <$2>
1828_ACEOF
1829if ac_fn_c_try_cpp "$LINENO"; then :
1830 ac_header_preproc=yes
1831else
1832 ac_header_preproc=no
1833fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001834rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1836$as_echo "$ac_header_preproc" >&6; }
1837
1838# So? What about this header?
1839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1840 yes:no: )
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1842$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 ;;
1846 no:yes:* )
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1848$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1850$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1852$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1854$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 ;;
1858esac
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001861if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001862 $as_echo_n "(cached) " >&6
1863else
1864 eval "$3=\$ac_header_compiler"
1865fi
1866eval ac_res=\$$3
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868$as_echo "$ac_res" >&6; }
1869fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001871
1872} # ac_fn_c_check_header_mongrel
1873
Theodore Ts'o93613952014-07-03 23:44:13 -04001874# ac_fn_c_try_run LINENO
1875# ----------------------
1876# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1877# that executables *can* be run.
1878ac_fn_c_try_run ()
1879{
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_link"
1882case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>&5
1889 ac_status=$?
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1892 { { case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895esac
1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897$as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_try") 2>&5
1899 ac_status=$?
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; }; }; then :
1902 ac_retval=0
1903else
1904 $as_echo "$as_me: program exited with status $ac_status" >&5
1905 $as_echo "$as_me: failed program was:" >&5
1906sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=$ac_status
1909fi
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1913
1914} # ac_fn_c_try_run
1915
1916# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1917# -------------------------------------------------------
1918# Tests whether HEADER exists and can be compiled using the include files in
1919# INCLUDES, setting the cache variable VAR accordingly.
1920ac_fn_c_check_header_compile ()
1921{
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924$as_echo_n "checking for $2... " >&6; }
1925if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1927else
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929/* end confdefs.h. */
1930$4
1931#include <$2>
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934 eval "$3=yes"
1935else
1936 eval "$3=no"
1937fi
1938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939fi
1940eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942$as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944
1945} # ac_fn_c_check_header_compile
1946
1947# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1948# -------------------------------------------
1949# Tests whether TYPE exists after having included INCLUDES, setting cache
1950# variable VAR accordingly.
1951ac_fn_c_check_type ()
1952{
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955$as_echo_n "checking for $2... " >&6; }
1956if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1958else
1959 eval "$3=no"
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961/* end confdefs.h. */
1962$4
1963int
1964main ()
1965{
1966if (sizeof ($2))
1967 return 0;
1968 ;
1969 return 0;
1970}
1971_ACEOF
1972if ac_fn_c_try_compile "$LINENO"; then :
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h. */
1975$4
1976int
1977main ()
1978{
1979if (sizeof (($2)))
1980 return 0;
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986
1987else
1988 eval "$3=yes"
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991fi
1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993fi
1994eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996$as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999} # ac_fn_c_check_type
2000
2001# ac_fn_c_check_func LINENO FUNC VAR
2002# ----------------------------------
2003# Tests whether FUNC exists, setting the cache variable VAR accordingly
2004ac_fn_c_check_func ()
2005{
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008$as_echo_n "checking for $2... " >&6; }
2009if eval \${$3+:} false; then :
2010 $as_echo_n "(cached) " >&6
2011else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h. */
2014/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2016#define $2 innocuous_$2
2017
2018/* System header to define __stub macros and hopefully few prototypes,
2019 which can conflict with char $2 (); below.
2020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2021 <limits.h> exists even on freestanding compilers. */
2022
2023#ifdef __STDC__
2024# include <limits.h>
2025#else
2026# include <assert.h>
2027#endif
2028
2029#undef $2
2030
2031/* Override any GCC internal prototype to avoid an error.
2032 Use char because int might match the return type of a GCC
2033 builtin and then its argument prototype would still apply. */
2034#ifdef __cplusplus
2035extern "C"
2036#endif
2037char $2 ();
2038/* The GNU C library defines this for functions which it implements
2039 to always fail with ENOSYS. Some functions are actually named
2040 something starting with __ and the normal name is an alias. */
2041#if defined __stub_$2 || defined __stub___$2
2042choke me
2043#endif
2044
2045int
2046main ()
2047{
2048return $2 ();
2049 ;
2050 return 0;
2051}
2052_ACEOF
2053if ac_fn_c_try_link "$LINENO"; then :
2054 eval "$3=yes"
2055else
2056 eval "$3=no"
2057fi
2058rm -f core conftest.err conftest.$ac_objext \
2059 conftest$ac_exeext conftest.$ac_ext
2060fi
2061eval ac_res=\$$3
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063$as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065
2066} # ac_fn_c_check_func
2067
2068# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2069# ---------------------------------------------
2070# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2071# accordingly.
2072ac_fn_c_check_decl ()
2073{
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 as_decl_name=`echo $2|sed 's/ *(.*//'`
2076 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2078$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2079if eval \${$3+:} false; then :
2080 $as_echo_n "(cached) " >&6
2081else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h. */
2084$4
2085int
2086main ()
2087{
2088#ifndef $as_decl_name
2089#ifdef __cplusplus
2090 (void) $as_decl_use;
2091#else
2092 (void) $as_decl_name;
2093#endif
2094#endif
2095
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101 eval "$3=yes"
2102else
2103 eval "$3=no"
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106fi
2107eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109$as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111
2112} # ac_fn_c_check_decl
2113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002114# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2115# --------------------------------------------
2116# Tries to find the compile-time value of EXPR in a program that includes
2117# INCLUDES, setting VAR accordingly. Returns whether the value could be
2118# computed
2119ac_fn_c_compute_int ()
2120{
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 if test "$cross_compiling" = yes; then
2123 # Depending upon the size, compute the lo and hi bounds.
2124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h. */
2126$4
2127int
2128main ()
2129{
2130static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002131test_array [0] = 0;
2132return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002133
2134 ;
2135 return 0;
2136}
2137_ACEOF
2138if ac_fn_c_try_compile "$LINENO"; then :
2139 ac_lo=0 ac_mid=0
2140 while :; do
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h. */
2143$4
2144int
2145main ()
2146{
2147static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002148test_array [0] = 0;
2149return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002150
2151 ;
2152 return 0;
2153}
2154_ACEOF
2155if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_hi=$ac_mid; break
2157else
2158 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2159 if test $ac_lo -le $ac_mid; then
2160 ac_lo= ac_hi=
2161 break
2162 fi
2163 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2164fi
2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 done
2167else
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h. */
2170$4
2171int
2172main ()
2173{
2174static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002175test_array [0] = 0;
2176return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002177
2178 ;
2179 return 0;
2180}
2181_ACEOF
2182if ac_fn_c_try_compile "$LINENO"; then :
2183 ac_hi=-1 ac_mid=-1
2184 while :; do
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186/* end confdefs.h. */
2187$4
2188int
2189main ()
2190{
2191static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002192test_array [0] = 0;
2193return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002194
2195 ;
2196 return 0;
2197}
2198_ACEOF
2199if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_lo=$ac_mid; break
2201else
2202 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2203 if test $ac_mid -le $ac_hi; then
2204 ac_lo= ac_hi=
2205 break
2206 fi
2207 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2208fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 done
2211else
2212 ac_lo= ac_hi=
2213fi
2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215fi
2216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217# Binary search between lo and hi bounds.
2218while test "x$ac_lo" != "x$ac_hi"; do
2219 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221/* end confdefs.h. */
2222$4
2223int
2224main ()
2225{
2226static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002227test_array [0] = 0;
2228return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002229
2230 ;
2231 return 0;
2232}
2233_ACEOF
2234if ac_fn_c_try_compile "$LINENO"; then :
2235 ac_hi=$ac_mid
2236else
2237 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2238fi
2239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240done
2241case $ac_lo in #((
2242?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2243'') ac_retval=1 ;;
2244esac
2245 else
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247/* end confdefs.h. */
2248$4
2249static long int longval () { return $2; }
2250static unsigned long int ulongval () { return $2; }
2251#include <stdio.h>
2252#include <stdlib.h>
2253int
2254main ()
2255{
2256
2257 FILE *f = fopen ("conftest.val", "w");
2258 if (! f)
2259 return 1;
2260 if (($2) < 0)
2261 {
2262 long int i = longval ();
2263 if (i != ($2))
2264 return 1;
2265 fprintf (f, "%ld", i);
2266 }
2267 else
2268 {
2269 unsigned long int i = ulongval ();
2270 if (i != ($2))
2271 return 1;
2272 fprintf (f, "%lu", i);
2273 }
2274 /* Do not output a trailing newline, as this causes \r\n confusion
2275 on some platforms. */
2276 return ferror (f) || fclose (f) != 0;
2277
2278 ;
2279 return 0;
2280}
2281_ACEOF
2282if ac_fn_c_try_run "$LINENO"; then :
2283 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2284else
2285 ac_retval=1
2286fi
2287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2288 conftest.$ac_objext conftest.beam conftest.$ac_ext
2289rm -f conftest.val
2290
2291 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002292 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002293 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002294
2295} # ac_fn_c_compute_int
2296
2297# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2298# ----------------------------------------------------
2299# Tries to find if the field MEMBER exists in type AGGR, after including
2300# INCLUDES, setting cache variable VAR accordingly.
2301ac_fn_c_check_member ()
2302{
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2305$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002306if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002307 $as_echo_n "(cached) " >&6
2308else
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310/* end confdefs.h. */
2311$5
2312int
2313main ()
2314{
2315static $2 ac_aggr;
2316if (ac_aggr.$3)
2317return 0;
2318 ;
2319 return 0;
2320}
2321_ACEOF
2322if ac_fn_c_try_compile "$LINENO"; then :
2323 eval "$4=yes"
2324else
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326/* end confdefs.h. */
2327$5
2328int
2329main ()
2330{
2331static $2 ac_aggr;
2332if (sizeof ac_aggr.$3)
2333return 0;
2334 ;
2335 return 0;
2336}
2337_ACEOF
2338if ac_fn_c_try_compile "$LINENO"; then :
2339 eval "$4=yes"
2340else
2341 eval "$4=no"
2342fi
2343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344fi
2345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346fi
2347eval ac_res=\$$4
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002351
2352} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002353cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002354This file contains any messages produced by compilers while
2355running configure, to aid debugging if configure makes a mistake.
2356
2357It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002358generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002359
2360 $ $0 $@
2361
2362_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002363exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002364{
2365cat <<_ASUNAME
2366## --------- ##
2367## Platform. ##
2368## --------- ##
2369
2370hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2371uname -m = `(uname -m) 2>/dev/null || echo unknown`
2372uname -r = `(uname -r) 2>/dev/null || echo unknown`
2373uname -s = `(uname -s) 2>/dev/null || echo unknown`
2374uname -v = `(uname -v) 2>/dev/null || echo unknown`
2375
2376/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2377/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2378
2379/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2380/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2381/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002382/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002383/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2384/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2385/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2386
2387_ASUNAME
2388
2389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390for as_dir in $PATH
2391do
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002394 $as_echo "PATH: $as_dir"
2395 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002396IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002397
2398} >&5
2399
2400cat >&5 <<_ACEOF
2401
2402
2403## ----------- ##
2404## Core tests. ##
2405## ----------- ##
2406
2407_ACEOF
2408
2409
2410# Keep a trace of the command line.
2411# Strip out --no-create and --no-recursion so they do not pile up.
2412# Strip out --silent because we don't want to record it for future runs.
2413# Also quote any args containing shell meta-characters.
2414# Make two passes to allow for proper duplicate-argument suppression.
2415ac_configure_args=
2416ac_configure_args0=
2417ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002418ac_must_keep_next=false
2419for ac_pass in 1 2
2420do
2421 for ac_arg
2422 do
2423 case $ac_arg in
2424 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2426 | -silent | --silent | --silen | --sile | --sil)
2427 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002428 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002429 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002430 esac
2431 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002432 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002433 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002434 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002435 if test $ac_must_keep_next = true; then
2436 ac_must_keep_next=false # Got value, back to normal.
2437 else
2438 case $ac_arg in
2439 *=* | --config-cache | -C | -disable-* | --disable-* \
2440 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2441 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2442 | -with-* | --with-* | -without-* | --without-* | --x)
2443 case "$ac_configure_args0 " in
2444 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2445 esac
2446 ;;
2447 -* ) ac_must_keep_next=true ;;
2448 esac
2449 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002450 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002451 ;;
2452 esac
2453 done
2454done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002455{ ac_configure_args0=; unset ac_configure_args0;}
2456{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002457
2458# When interrupted or exit'd, cleanup temporary files, and complete
2459# config.log. We remove comments because anyway the quotes in there
2460# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002461# WARNING: Use '\'' to represent an apostrophe within the trap.
2462# 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 -05002463trap 'exit_status=$?
2464 # Save into config.log some information that might help in debugging.
2465 {
2466 echo
2467
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002468 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002469## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002470## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002471 echo
2472 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002473(
2474 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2475 eval ac_val=\$$ac_var
2476 case $ac_val in #(
2477 *${as_nl}*)
2478 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002479 *_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 +01002480$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002481 esac
2482 case $ac_var in #(
2483 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002485 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002486 esac ;;
2487 esac
2488 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002489 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002490 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2491 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002493 "s/'\''/'\''\\\\'\'''\''/g;
2494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2495 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002496 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002498 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002499 esac |
2500 sort
2501)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002502 echo
2503
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002504 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002505## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002506## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002507 echo
2508 for ac_var in $ac_subst_vars
2509 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002510 eval ac_val=\$$ac_var
2511 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002512 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002513 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002514 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002515 done | sort
2516 echo
2517
2518 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002519 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002520## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002521## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002522 echo
2523 for ac_var in $ac_subst_files
2524 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002525 eval ac_val=\$$ac_var
2526 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002527 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002528 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002529 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002530 done | sort
2531 echo
2532 fi
2533
2534 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002535 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002536## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002537## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002538 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002539 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002540 echo
2541 fi
2542 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002543 $as_echo "$as_me: caught signal $ac_signal"
2544 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002545 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002546 rm -f core *.core core.conftest.* &&
2547 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002548 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002549' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002550for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002551 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002552done
2553ac_signal=0
2554
2555# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002556rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002557
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002558$as_echo "/* confdefs.h */" > confdefs.h
2559
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002560# Predefined preprocessor variables.
2561
2562cat >>confdefs.h <<_ACEOF
2563#define PACKAGE_NAME "$PACKAGE_NAME"
2564_ACEOF
2565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002566cat >>confdefs.h <<_ACEOF
2567#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2568_ACEOF
2569
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002570cat >>confdefs.h <<_ACEOF
2571#define PACKAGE_VERSION "$PACKAGE_VERSION"
2572_ACEOF
2573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE_STRING "$PACKAGE_STRING"
2576_ACEOF
2577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2580_ACEOF
2581
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE_URL "$PACKAGE_URL"
2584_ACEOF
2585
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002586
2587# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002588# Prefer an explicitly selected file to automatically selected ones.
2589ac_site_file1=NONE
2590ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002591if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002592 # We do not want a PATH search for config.site.
2593 case $CONFIG_SITE in #((
2594 -*) ac_site_file1=./$CONFIG_SITE;;
2595 */*) ac_site_file1=$CONFIG_SITE;;
2596 *) ac_site_file1=./$CONFIG_SITE;;
2597 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002598elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002599 ac_site_file1=$prefix/share/config.site
2600 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002601else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002602 ac_site_file1=$ac_default_prefix/share/config.site
2603 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002604fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002605for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002606do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002607 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002608 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002610$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002611 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002612 . "$ac_site_file" \
2613 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615as_fn_error $? "failed to load site script $ac_site_file
2616See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002617 fi
2618done
2619
2620if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002621 # Some versions of bash will fail to source /dev/null (special files
2622 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2623 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002624 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002625$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002626 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002627 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2628 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002629 esac
2630 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002631else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002633$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002634 >$cache_file
2635fi
2636
Theodore Ts'o93613952014-07-03 23:44:13 -04002637gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002638as_fn_append ac_header_list " stdlib.h"
2639as_fn_append ac_header_list " unistd.h"
2640as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002641as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002642# Check that the precious variables saved in the cache have kept the same
2643# value.
2644ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002645for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002646 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2647 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002648 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2649 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002650 case $ac_old_set,$ac_new_set in
2651 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002652 { $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 +01002653$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 -05002654 ac_cache_corrupted=: ;;
2655 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002656 { $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 +01002657$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658 ac_cache_corrupted=: ;;
2659 ,);;
2660 *)
2661 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002662 # differences in whitespace do not lead to failure.
2663 ac_old_val_w=`echo x $ac_old_val`
2664 ac_new_val_w=`echo x $ac_new_val`
2665 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002666 { $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 +01002667$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2668 ac_cache_corrupted=:
2669 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002670 { $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 +01002671$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2672 eval $ac_var=\$ac_old_val
2673 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002674 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002675$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002676 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002677$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002678 fi;;
2679 esac
2680 # Pass precious variables to config.status.
2681 if test "$ac_new_set" = set; then
2682 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002683 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002684 *) ac_arg=$ac_var=$ac_new_val ;;
2685 esac
2686 case " $ac_configure_args " in
2687 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002688 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002689 esac
2690 fi
2691done
2692if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002695 { $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 +01002696$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002697 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002698fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002699## -------------------- ##
2700## Main body of script. ##
2701## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002702
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002703ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002704ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002709
2710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002711ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002712for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002713 if test -f "$ac_dir/install-sh"; then
2714 ac_aux_dir=$ac_dir
2715 ac_install_sh="$ac_aux_dir/install-sh -c"
2716 break
2717 elif test -f "$ac_dir/install.sh"; then
2718 ac_aux_dir=$ac_dir
2719 ac_install_sh="$ac_aux_dir/install.sh -c"
2720 break
2721 elif test -f "$ac_dir/shtool"; then
2722 ac_aux_dir=$ac_dir
2723 ac_install_sh="$ac_aux_dir/shtool install -c"
2724 break
2725 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002726done
2727if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002728 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 +00002729fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002730
2731# These three variables are undocumented and unsupported,
2732# and are intended to be withdrawn in a future Autoconf release.
2733# They can cause serious problems if a builder's source tree is in a directory
2734# whose full name contains unusual characters.
2735ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2736ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2737ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2738
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002739
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002740ac_config_headers="$ac_config_headers lib/config.h"
2741
2742
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002743MCONFIG=./MCONFIG
2744
Theodore Ts'o74becf31997-04-26 14:37:06 +00002745BINARY_TYPE=bin
2746E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2747 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2748DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2749 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002750E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002751MONTH=`echo $DATE | awk -F- '{print $2}'`
2752YEAR=`echo $DATE | awk -F- '{print $3}'`
2753
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002754if expr $YEAR ">" 1900 > /dev/null ; then
2755 E2FSPROGS_YEAR=$YEAR
2756elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002757 E2FSPROGS_YEAR=19$YEAR
2758else
2759 E2FSPROGS_YEAR=20$YEAR
2760fi
2761
2762case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002763Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2764Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2765Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2766Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2767May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2768Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2769Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2770Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2771Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2772Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2773Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2774Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002775*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002776$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002777esac
2778
Andreas Dilger927566a2006-11-12 19:41:25 -05002779base_ver=`echo $E2FSPROGS_VERSION | \
2780 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002781
2782date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2783
2784case $E2FSPROGS_VERSION in
2785*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002786 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002787 ;;
2788*)
2789 E2FSPROGS_PKGVER="$base_ver"
2790 ;;
2791esac
2792
2793unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002794{ $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 +01002795$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002797$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002798
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002799
2800
2801
Andreas Dilger927566a2006-11-12 19:41:25 -05002802
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002803WITH_DIET_LIBC=
2804
2805# Check whether --with-diet-libc was given.
2806if test "${with_diet_libc+set}" = set; then :
2807 withval=$with_diet_libc; CC="diet cc -nostdinc"
2808WITH_DIET_LIBC=yes
2809if test -z "$LIBS"
2810then
2811 LIBS="-lcompat"
2812else
2813 LIBS="$LIBS -lcompat"
2814fi
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2816$as_echo "CC=$CC" >&6; }
2817fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002818# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002819$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002820 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002821
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002823$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002824if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002825 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002826else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002827 ac_build_alias=$build_alias
2828test "x$ac_build_alias" = x &&
2829 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2830test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002831 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002832ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002833 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002834
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002835fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002837$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002838case $ac_cv_build in
2839*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002840*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002841esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002842build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002843ac_save_IFS=$IFS; IFS='-'
2844set x $ac_cv_build
2845shift
2846build_cpu=$1
2847build_vendor=$2
2848shift; shift
2849# Remember, the first character of IFS is used to create $*,
2850# except with old shells:
2851build_os=$*
2852IFS=$ac_save_IFS
2853case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002854
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002855
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002857$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002858if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002859 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002860else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002861 if test "x$host_alias" = x; then
2862 ac_cv_host=$ac_cv_build
2863else
2864 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002865 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002866fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002867
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002868fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002870$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002871case $ac_cv_host in
2872*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002873*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002874esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002875host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002876ac_save_IFS=$IFS; IFS='-'
2877set x $ac_cv_host
2878shift
2879host_cpu=$1
2880host_vendor=$2
2881shift; shift
2882# Remember, the first character of IFS is used to create $*,
2883# except with old shells:
2884host_os=$*
2885IFS=$ac_save_IFS
2886case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002887
2888
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002889DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002890ac_ext=c
2891ac_cpp='$CPP $CPPFLAGS'
2892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895if test -n "$ac_tool_prefix"; then
2896 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2897set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002899$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002900if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002901 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002902else
2903 if test -n "$CC"; then
2904 ac_cv_prog_CC="$CC" # Let the user override the test.
2905else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002911 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002913 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002915 break 2
2916 fi
2917done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002918 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002919IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002920
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002921fi
2922fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002923CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002924if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002926$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002927else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002929$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002930fi
2931
Theodore Ts'oe1052142006-10-21 21:46:47 -04002932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933fi
2934if test -z "$ac_cv_prog_CC"; then
2935 ac_ct_CC=$CC
2936 # Extract the first word of "gcc", so it can be a program name with args.
2937set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002939$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002940if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002941 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942else
2943 if test -n "$ac_ct_CC"; then
2944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945else
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002951 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002953 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002955 break 2
2956 fi
2957done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002958 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002959IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002960
2961fi
2962fi
2963ac_ct_CC=$ac_cv_prog_ac_ct_CC
2964if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002966$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002967else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002969$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002970fi
2971
Theodore Ts'oe1052142006-10-21 21:46:47 -04002972 if test "x$ac_ct_CC" = x; then
2973 CC=""
2974 else
2975 case $cross_compiling:$ac_tool_warned in
2976yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002977{ $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 +01002978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002979ac_tool_warned=yes ;;
2980esac
2981 CC=$ac_ct_CC
2982 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002983else
2984 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002985fi
2986
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002987if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002988 if test -n "$ac_tool_prefix"; then
2989 # 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 -05002990set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002992$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002993if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002994 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002995else
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2998else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003004 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003006 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008 break 2
3009 fi
3010done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003011 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003012IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003013
3014fi
3015fi
3016CC=$ac_cv_prog_CC
3017if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003019$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003020else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003022$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003023fi
3024
Theodore Ts'oe1052142006-10-21 21:46:47 -04003025
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003026 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003027fi
3028if test -z "$CC"; then
3029 # Extract the first word of "cc", so it can be a program name with args.
3030set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003032$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003033if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003034 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035else
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3038else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003039 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003045 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003047 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3048 ac_prog_rejected=yes
3049 continue
3050 fi
3051 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003053 break 2
3054 fi
3055done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003056 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003057IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003058
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003059if test $ac_prog_rejected = yes; then
3060 # We found a bogon in the path, so make sure we never use it.
3061 set dummy $ac_cv_prog_CC
3062 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003063 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003064 # We chose a different compiler from the bogus one.
3065 # However, it has the same basename, so the bogon will be chosen
3066 # first if we set CC to just the basename; use the full file name.
3067 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003069 fi
3070fi
3071fi
3072fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003073CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003074if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003076$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003077else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003079$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003080fi
3081
Theodore Ts'oe1052142006-10-21 21:46:47 -04003082
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003083fi
3084if test -z "$CC"; then
3085 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003086 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003087 do
3088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003091$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003092if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003093 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003094else
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003103 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003107 break 2
3108 fi
3109done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003110 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003111IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003112
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003113fi
3114fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003115CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003116if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003118$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003119else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003121$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003122fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003123
Theodore Ts'oe1052142006-10-21 21:46:47 -04003124
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003125 test -n "$CC" && break
3126 done
3127fi
3128if test -z "$CC"; then
3129 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003130 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003131do
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003135$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003136if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003137 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003138else
3139 if test -n "$ac_ct_CC"; then
3140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3141else
3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143for as_dir in $PATH
3144do
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003147 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003149 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003151 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003152 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003153done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003154 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003155IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003156
3157fi
3158fi
3159ac_ct_CC=$ac_cv_prog_ac_ct_CC
3160if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003162$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003163else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003165$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003166fi
3167
Theodore Ts'oe1052142006-10-21 21:46:47 -04003168
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003169 test -n "$ac_ct_CC" && break
3170done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003171
Theodore Ts'oe1052142006-10-21 21:46:47 -04003172 if test "x$ac_ct_CC" = x; then
3173 CC=""
3174 else
3175 case $cross_compiling:$ac_tool_warned in
3176yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003177{ $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 +01003178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003179ac_tool_warned=yes ;;
3180esac
3181 CC=$ac_ct_CC
3182 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003183fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003184
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003185fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003186
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003187
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003188test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003190as_fn_error $? "no acceptable C compiler found in \$PATH
3191See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003192
3193# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003194$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003195set X $ac_compile
3196ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003197for ac_option in --version -v -V -qversion; do
3198 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204$as_echo "$ac_try_echo"; } >&5
3205 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003206 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003207 if test -s conftest.err; then
3208 sed '10a\
3209... rest of stderr output deleted ...
3210 10q' conftest.err >conftest.er1
3211 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003212 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003213 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }
3216done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003217
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003219/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003220
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003221int
3222main ()
3223{
3224
3225 ;
3226 return 0;
3227}
3228_ACEOF
3229ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003230ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003231# Try to create an executable without -o first, disregard a.out.
3232# It will help us diagnose broken compilers, and finding out an intuition
3233# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3235$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003236ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3237
3238# The possible output files:
3239ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3240
Theodore Ts'oe1052142006-10-21 21:46:47 -04003241ac_rmfiles=
3242for ac_file in $ac_files
3243do
3244 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003246 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3247 esac
3248done
3249rm -f $ac_rmfiles
3250
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003251if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003252case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003258 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003259 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003262 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3263# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3264# in a Makefile. We should not override ac_cv_exeext if it was cached,
3265# so that the user can short-circuit this test for compilers unknown to
3266# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003267for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003268do
3269 test -f "$ac_file" || continue
3270 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003272 ;;
3273 [ab].out )
3274 # We found the default executable, but exeext='' is most
3275 # certainly right.
3276 break;;
3277 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003278 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003279 then :; else
3280 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281 fi
3282 # We set ac_cv_exeext here because the later test for it is not
3283 # safe: cross compilers may not add the suffix if given an `-o'
3284 # argument, so we may need to know it at that point already.
3285 # Even if this section looks crufty: it has the advantage of
3286 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003287 break;;
3288 * )
3289 break;;
3290 esac
3291done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003292test "$ac_cv_exeext" = no && ac_cv_exeext=
3293
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003294else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003295 ac_file=''
3296fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003297if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
3300$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003301sed 's/^/| /' conftest.$ac_ext >&5
3302
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003303{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003305as_fn_error 77 "C compiler cannot create executables
3306See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003307else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003310fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3312$as_echo_n "checking for C compiler default output file name... " >&6; }
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3314$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003315ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003316
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003317rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003318ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003320$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003321if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003322case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003328 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003329 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003332 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3333# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3334# work properly (i.e., refer to `conftest.exe'), while it won't with
3335# `rm'.
3336for ac_file in conftest.exe conftest conftest.*; do
3337 test -f "$ac_file" || continue
3338 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003340 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003341 break;;
3342 * ) break;;
3343 esac
3344done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003345else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003348as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3349See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003350fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003351rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003353$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003354
3355rm -f conftest.$ac_ext
3356EXEEXT=$ac_cv_exeext
3357ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359/* end confdefs.h. */
3360#include <stdio.h>
3361int
3362main ()
3363{
3364FILE *f = fopen ("conftest.out", "w");
3365 return ferror (f) || fclose (f) != 0;
3366
3367 ;
3368 return 0;
3369}
3370_ACEOF
3371ac_clean_files="$ac_clean_files conftest.out"
3372# Check that the compiler produces executables we can run. If not, either
3373# the compiler is broken, or we cross compile.
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3375$as_echo_n "checking whether we are cross compiling... " >&6; }
3376if test "$cross_compiling" != yes; then
3377 { { ac_try="$ac_link"
3378case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381esac
3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383$as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_link") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }
3388 if { ac_try='./conftest$ac_cv_exeext'
3389 { { case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_try") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; }; then
3399 cross_compiling=no
3400 else
3401 if test "$cross_compiling" = maybe; then
3402 cross_compiling=yes
3403 else
3404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003406as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003407If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003408See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003409 fi
3410 fi
3411fi
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3413$as_echo "$cross_compiling" >&6; }
3414
3415rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3416ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003418$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003419if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003420 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003421else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003423/* end confdefs.h. */
3424
3425int
3426main ()
3427{
3428
3429 ;
3430 return 0;
3431}
3432_ACEOF
3433rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003434if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003435case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003441 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003442 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003445 for ac_file in conftest.o conftest.obj conftest.*; do
3446 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003447 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003449 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3450 break;;
3451 esac
3452done
3453else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003454 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003455sed 's/^/| /' conftest.$ac_ext >&5
3456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003457{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003459as_fn_error $? "cannot compute suffix of object files: cannot compile
3460See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003461fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003462rm -f conftest.$ac_cv_objext conftest.$ac_ext
3463fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003465$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003466OBJEXT=$ac_cv_objext
3467ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003468{ $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 +01003469$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003470if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003471 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003472else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003474/* end confdefs.h. */
3475
3476int
3477main ()
3478{
3479#ifndef __GNUC__
3480 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003481#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003482
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003483 ;
3484 return 0;
3485}
3486_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003487if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003488 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003489else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003490 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003491fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003493ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003495fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003497$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3498if test $ac_compiler_gnu = yes; then
3499 GCC=yes
3500else
3501 GCC=
3502fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003503ac_test_CFLAGS=${CFLAGS+set}
3504ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003506$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003507if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003508 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003509else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003510 ac_save_c_werror_flag=$ac_c_werror_flag
3511 ac_c_werror_flag=yes
3512 ac_cv_prog_cc_g=no
3513 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003515/* end confdefs.h. */
3516
3517int
3518main ()
3519{
3520
3521 ;
3522 return 0;
3523}
3524_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003525if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003526 ac_cv_prog_cc_g=yes
3527else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003528 CFLAGS=""
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003530/* end confdefs.h. */
3531
3532int
3533main ()
3534{
3535
3536 ;
3537 return 0;
3538}
3539_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003540if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003541
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003542else
3543 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003544 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003546/* end confdefs.h. */
3547
3548int
3549main ()
3550{
3551
3552 ;
3553 return 0;
3554}
3555_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003556if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003557 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003558fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003560fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 ac_c_werror_flag=$ac_save_c_werror_flag
3565fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003567$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003568if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003569 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003570elif test $ac_cv_prog_cc_g = yes; then
3571 if test "$GCC" = yes; then
3572 CFLAGS="-g -O2"
3573 else
3574 CFLAGS="-g"
3575 fi
3576else
3577 if test "$GCC" = yes; then
3578 CFLAGS="-O2"
3579 else
3580 CFLAGS=
3581 fi
3582fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003584$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003585if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003586 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003587else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003588 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003589ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003591/* end confdefs.h. */
3592#include <stdarg.h>
3593#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003594struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003595/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3596struct buf { int x; };
3597FILE * (*rcsopen) (struct buf *, struct stat *, int);
3598static char *e (p, i)
3599 char **p;
3600 int i;
3601{
3602 return p[i];
3603}
3604static char *f (char * (*g) (char **, int), char **p, ...)
3605{
3606 char *s;
3607 va_list v;
3608 va_start (v,p);
3609 s = g (p, va_arg (v,int));
3610 va_end (v);
3611 return s;
3612}
3613
3614/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3615 function prototypes and stuff, but not '\xHH' hex character constants.
3616 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003617 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003618 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3619 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003620 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003621int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3622
Theodore Ts'oe1052142006-10-21 21:46:47 -04003623/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3624 inside strings and character constants. */
3625#define FOO(x) 'x'
3626int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3627
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003628int test (int i, double x);
3629struct s1 {int (*f) (int a);};
3630struct s2 {int (*f) (double a);};
3631int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3632int argc;
3633char **argv;
3634int
3635main ()
3636{
3637return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3638 ;
3639 return 0;
3640}
3641_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003642for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3643 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003644do
3645 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003646 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003647 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003648fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003649rm -f core conftest.err conftest.$ac_objext
3650 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003651done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003652rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003653CC=$ac_save_CC
3654
3655fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003656# AC_CACHE_VAL
3657case "x$ac_cv_prog_cc_c89" in
3658 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003660$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003661 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003663$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003664 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003665 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003667$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003668esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003669if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003670
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003671fi
3672
3673ac_ext=c
3674ac_cpp='$CPP $CPPFLAGS'
3675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678
3679
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3681$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003682if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003683 $as_echo_n "(cached) " >&6
3684else
3685 ac_check_lib_save_LIBS=$LIBS
3686LIBS="-ldl $LIBS"
3687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h. */
3689
3690/* Override any GCC internal prototype to avoid an error.
3691 Use char because int might match the return type of a GCC
3692 builtin and then its argument prototype would still apply. */
3693#ifdef __cplusplus
3694extern "C"
3695#endif
3696char dlopen ();
3697int
3698main ()
3699{
3700return dlopen ();
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705if ac_fn_c_try_link "$LINENO"; then :
3706 ac_cv_lib_dl_dlopen=yes
3707else
3708 ac_cv_lib_dl_dlopen=no
3709fi
3710rm -f core conftest.err conftest.$ac_objext \
3711 conftest$ac_exeext conftest.$ac_ext
3712LIBS=$ac_check_lib_save_LIBS
3713fi
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3715$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003716if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003717 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003718
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003719$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3720
3721fi
3722
3723
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003724
3725# Check whether --with-cc was given.
3726if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003727 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003728fi
3729
3730
3731# Check whether --with-ccopts was given.
3732if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003733 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003734fi
3735
3736
3737# Check whether --with-ldopts was given.
3738if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003739 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003740fi
3741
3742ac_ext=c
3743ac_cpp='$CPP $CPPFLAGS'
3744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747if test -n "$ac_tool_prefix"; then
3748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3749set dummy ${ac_tool_prefix}gcc; ac_word=$2
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003752if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003753 $as_echo_n "(cached) " >&6
3754else
3755 if test -n "$CC"; then
3756 ac_cv_prog_CC="$CC" # Let the user override the test.
3757else
3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759for as_dir in $PATH
3760do
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3768 fi
3769done
3770 done
3771IFS=$as_save_IFS
3772
3773fi
3774fi
3775CC=$ac_cv_prog_CC
3776if test -n "$CC"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3778$as_echo "$CC" >&6; }
3779else
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781$as_echo "no" >&6; }
3782fi
3783
3784
3785fi
3786if test -z "$ac_cv_prog_CC"; then
3787 ac_ct_CC=$CC
3788 # Extract the first word of "gcc", so it can be a program name with args.
3789set dummy gcc; ac_word=$2
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003792if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003793 $as_echo_n "(cached) " >&6
3794else
3795 if test -n "$ac_ct_CC"; then
3796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3797else
3798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799for as_dir in $PATH
3800do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003805 ac_cv_prog_ac_ct_CC="gcc"
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
3815ac_ct_CC=$ac_cv_prog_ac_ct_CC
3816if test -n "$ac_ct_CC"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3818$as_echo "$ac_ct_CC" >&6; }
3819else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821$as_echo "no" >&6; }
3822fi
3823
3824 if test "x$ac_ct_CC" = x; then
3825 CC=""
3826 else
3827 case $cross_compiling:$ac_tool_warned in
3828yes:)
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3831ac_tool_warned=yes ;;
3832esac
3833 CC=$ac_ct_CC
3834 fi
3835else
3836 CC="$ac_cv_prog_CC"
3837fi
3838
3839if test -z "$CC"; then
3840 if test -n "$ac_tool_prefix"; then
3841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3842set dummy ${ac_tool_prefix}cc; ac_word=$2
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003845if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003846 $as_echo_n "(cached) " >&6
3847else
3848 if test -n "$CC"; then
3849 ac_cv_prog_CC="$CC" # Let the user override the test.
3850else
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003858 ac_cv_prog_CC="${ac_tool_prefix}cc"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862done
3863 done
3864IFS=$as_save_IFS
3865
3866fi
3867fi
3868CC=$ac_cv_prog_CC
3869if test -n "$CC"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3871$as_echo "$CC" >&6; }
3872else
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874$as_echo "no" >&6; }
3875fi
3876
3877
3878 fi
3879fi
3880if test -z "$CC"; then
3881 # Extract the first word of "cc", so it can be a program name with args.
3882set dummy cc; ac_word=$2
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003885if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003886 $as_echo_n "(cached) " >&6
3887else
3888 if test -n "$CC"; then
3889 ac_cv_prog_CC="$CC" # Let the user override the test.
3890else
3891 ac_prog_rejected=no
3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3900 ac_prog_rejected=yes
3901 continue
3902 fi
3903 ac_cv_prog_CC="cc"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3906 fi
3907done
3908 done
3909IFS=$as_save_IFS
3910
3911if test $ac_prog_rejected = yes; then
3912 # We found a bogon in the path, so make sure we never use it.
3913 set dummy $ac_cv_prog_CC
3914 shift
3915 if test $# != 0; then
3916 # We chose a different compiler from the bogus one.
3917 # However, it has the same basename, so the bogon will be chosen
3918 # first if we set CC to just the basename; use the full file name.
3919 shift
3920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3921 fi
3922fi
3923fi
3924fi
3925CC=$ac_cv_prog_CC
3926if test -n "$CC"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3928$as_echo "$CC" >&6; }
3929else
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931$as_echo "no" >&6; }
3932fi
3933
3934
3935fi
3936if test -z "$CC"; then
3937 if test -n "$ac_tool_prefix"; then
3938 for ac_prog in cl.exe
3939 do
3940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3943$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003944if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003945 $as_echo_n "(cached) " >&6
3946else
3947 if test -n "$CC"; then
3948 ac_cv_prog_CC="$CC" # Let the user override the test.
3949else
3950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951for as_dir in $PATH
3952do
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 break 2
3960 fi
3961done
3962 done
3963IFS=$as_save_IFS
3964
3965fi
3966fi
3967CC=$ac_cv_prog_CC
3968if test -n "$CC"; then
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3970$as_echo "$CC" >&6; }
3971else
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973$as_echo "no" >&6; }
3974fi
3975
3976
3977 test -n "$CC" && break
3978 done
3979fi
3980if test -z "$CC"; then
3981 ac_ct_CC=$CC
3982 for ac_prog in cl.exe
3983do
3984 # Extract the first word of "$ac_prog", so it can be a program name with args.
3985set dummy $ac_prog; ac_word=$2
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003988if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003989 $as_echo_n "(cached) " >&6
3990else
3991 if test -n "$ac_ct_CC"; then
3992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3993else
3994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995for as_dir in $PATH
3996do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004001 ac_cv_prog_ac_ct_CC="$ac_prog"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4004 fi
4005done
4006 done
4007IFS=$as_save_IFS
4008
4009fi
4010fi
4011ac_ct_CC=$ac_cv_prog_ac_ct_CC
4012if test -n "$ac_ct_CC"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4014$as_echo "$ac_ct_CC" >&6; }
4015else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017$as_echo "no" >&6; }
4018fi
4019
4020
4021 test -n "$ac_ct_CC" && break
4022done
4023
4024 if test "x$ac_ct_CC" = x; then
4025 CC=""
4026 else
4027 case $cross_compiling:$ac_tool_warned in
4028yes:)
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4031ac_tool_warned=yes ;;
4032esac
4033 CC=$ac_ct_CC
4034 fi
4035fi
4036
4037fi
4038
4039
4040test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004042as_fn_error $? "no acceptable C compiler found in \$PATH
4043See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004044
4045# Provide some information about the compiler.
4046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4047set X $ac_compile
4048ac_compiler=$2
4049for ac_option in --version -v -V -qversion; do
4050 { { ac_try="$ac_compiler $ac_option >&5"
4051case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054esac
4055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056$as_echo "$ac_try_echo"; } >&5
4057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4058 ac_status=$?
4059 if test -s conftest.err; then
4060 sed '10a\
4061... rest of stderr output deleted ...
4062 10q' conftest.err >conftest.er1
4063 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004064 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004065 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }
4068done
4069
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4071$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004072if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004073 $as_echo_n "(cached) " >&6
4074else
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h. */
4077
4078int
4079main ()
4080{
4081#ifndef __GNUC__
4082 choke me
4083#endif
4084
4085 ;
4086 return 0;
4087}
4088_ACEOF
4089if ac_fn_c_try_compile "$LINENO"; then :
4090 ac_compiler_gnu=yes
4091else
4092 ac_compiler_gnu=no
4093fi
4094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095ac_cv_c_compiler_gnu=$ac_compiler_gnu
4096
4097fi
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4099$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4100if test $ac_compiler_gnu = yes; then
4101 GCC=yes
4102else
4103 GCC=
4104fi
4105ac_test_CFLAGS=${CFLAGS+set}
4106ac_save_CFLAGS=$CFLAGS
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4108$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004109if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004110 $as_echo_n "(cached) " >&6
4111else
4112 ac_save_c_werror_flag=$ac_c_werror_flag
4113 ac_c_werror_flag=yes
4114 ac_cv_prog_cc_g=no
4115 CFLAGS="-g"
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117/* end confdefs.h. */
4118
4119int
4120main ()
4121{
4122
4123 ;
4124 return 0;
4125}
4126_ACEOF
4127if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_cv_prog_cc_g=yes
4129else
4130 CFLAGS=""
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132/* end confdefs.h. */
4133
4134int
4135main ()
4136{
4137
4138 ;
4139 return 0;
4140}
4141_ACEOF
4142if ac_fn_c_try_compile "$LINENO"; then :
4143
4144else
4145 ac_c_werror_flag=$ac_save_c_werror_flag
4146 CFLAGS="-g"
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h. */
4149
4150int
4151main ()
4152{
4153
4154 ;
4155 return 0;
4156}
4157_ACEOF
4158if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_prog_cc_g=yes
4160fi
4161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162fi
4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164fi
4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 ac_c_werror_flag=$ac_save_c_werror_flag
4167fi
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4169$as_echo "$ac_cv_prog_cc_g" >&6; }
4170if test "$ac_test_CFLAGS" = set; then
4171 CFLAGS=$ac_save_CFLAGS
4172elif test $ac_cv_prog_cc_g = yes; then
4173 if test "$GCC" = yes; then
4174 CFLAGS="-g -O2"
4175 else
4176 CFLAGS="-g"
4177 fi
4178else
4179 if test "$GCC" = yes; then
4180 CFLAGS="-O2"
4181 else
4182 CFLAGS=
4183 fi
4184fi
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4186$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004187if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004188 $as_echo_n "(cached) " >&6
4189else
4190 ac_cv_prog_cc_c89=no
4191ac_save_CC=$CC
4192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193/* end confdefs.h. */
4194#include <stdarg.h>
4195#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004196struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004197/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4198struct buf { int x; };
4199FILE * (*rcsopen) (struct buf *, struct stat *, int);
4200static char *e (p, i)
4201 char **p;
4202 int i;
4203{
4204 return p[i];
4205}
4206static char *f (char * (*g) (char **, int), char **p, ...)
4207{
4208 char *s;
4209 va_list v;
4210 va_start (v,p);
4211 s = g (p, va_arg (v,int));
4212 va_end (v);
4213 return s;
4214}
4215
4216/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4217 function prototypes and stuff, but not '\xHH' hex character constants.
4218 These don't provoke an error unfortunately, instead are silently treated
4219 as 'x'. The following induces an error, until -std is added to get
4220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4221 array size at least. It's necessary to write '\x00'==0 to get something
4222 that's true only with -std. */
4223int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4224
4225/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4226 inside strings and character constants. */
4227#define FOO(x) 'x'
4228int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4229
4230int test (int i, double x);
4231struct s1 {int (*f) (int a);};
4232struct s2 {int (*f) (double a);};
4233int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4234int argc;
4235char **argv;
4236int
4237main ()
4238{
4239return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4240 ;
4241 return 0;
4242}
4243_ACEOF
4244for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4246do
4247 CC="$ac_save_CC $ac_arg"
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_cv_prog_cc_c89=$ac_arg
4250fi
4251rm -f core conftest.err conftest.$ac_objext
4252 test "x$ac_cv_prog_cc_c89" != "xno" && break
4253done
4254rm -f conftest.$ac_ext
4255CC=$ac_save_CC
4256
4257fi
4258# AC_CACHE_VAL
4259case "x$ac_cv_prog_cc_c89" in
4260 x)
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4262$as_echo "none needed" >&6; } ;;
4263 xno)
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4265$as_echo "unsupported" >&6; } ;;
4266 *)
4267 CC="$CC $ac_cv_prog_cc_c89"
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4269$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4270esac
4271if test "x$ac_cv_prog_cc_c89" != xno; then :
4272
4273fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004275ac_ext=c
4276ac_cpp='$CPP $CPPFLAGS'
4277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004281if test "$GCC" = yes; then
4282 RDYNAMIC="-rdynamic"
4283
4284fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004285ac_ext=c
4286ac_cpp='$CPP $CPPFLAGS'
4287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004291$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004292# On Suns, sometimes $CPP names a directory.
4293if test -n "$CPP" && test -d "$CPP"; then
4294 CPP=
4295fi
4296if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004297 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004298 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004299else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004300 # Double quotes because CPP needs to be expanded
4301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4302 do
4303 ac_preproc_ok=false
4304for ac_c_preproc_warn_flag in '' yes
4305do
4306 # Use a header file that comes with gcc, so configuring glibc
4307 # with a fresh cross-compiler works.
4308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4309 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004310 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004311 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004313/* end confdefs.h. */
4314#ifdef __STDC__
4315# include <limits.h>
4316#else
4317# include <assert.h>
4318#endif
4319 Syntax error
4320_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004321if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004322
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004323else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004324 # Broken: fails on valid input.
4325continue
4326fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004327rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004328
Theodore Ts'oe1052142006-10-21 21:46:47 -04004329 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004330 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004332/* end confdefs.h. */
4333#include <ac_nonexistent.h>
4334_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004335if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004336 # Broken: success on invalid input.
4337continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004338else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004339 # Passes both tests.
4340ac_preproc_ok=:
4341break
4342fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004343rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004344
4345done
4346# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004347rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004348if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004349 break
4350fi
4351
4352 done
4353 ac_cv_prog_CPP=$CPP
4354
4355fi
4356 CPP=$ac_cv_prog_CPP
4357else
4358 ac_cv_prog_CPP=$CPP
4359fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004361$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004362ac_preproc_ok=false
4363for ac_c_preproc_warn_flag in '' yes
4364do
4365 # Use a header file that comes with gcc, so configuring glibc
4366 # with a fresh cross-compiler works.
4367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4368 # <limits.h> exists even on freestanding compilers.
4369 # On the NeXT, cc -E runs the code through the compiler's parser,
4370 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004372/* end confdefs.h. */
4373#ifdef __STDC__
4374# include <limits.h>
4375#else
4376# include <assert.h>
4377#endif
4378 Syntax error
4379_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004380if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004381
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004382else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004383 # Broken: fails on valid input.
4384continue
4385fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004386rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004387
Theodore Ts'oe1052142006-10-21 21:46:47 -04004388 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004389 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004391/* end confdefs.h. */
4392#include <ac_nonexistent.h>
4393_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004394if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004395 # Broken: success on invalid input.
4396continue
4397else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004398 # Passes both tests.
4399ac_preproc_ok=:
4400break
4401fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004402rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004403
4404done
4405# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004406rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004407if $ac_preproc_ok; then :
4408
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004409else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004412as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4413See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004414fi
4415
4416ac_ext=c
4417ac_cpp='$CPP $CPPFLAGS'
4418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004423$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004424if test "$GCC" = yes
4425then
4426 case "$host_cpu" in
4427 alpha) addcflags="-mieee" ;;
4428 esac
4429fi
4430if test "x$addcflags" != x
4431then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004433$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004434 CFLAGS="$addcflags $CFLAGS"
4435else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004437$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004438fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004439
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4441$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4442if ${ac_cv_path_GREP+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444else
4445 if test -z "$GREP"; then
4446 ac_path_GREP_found=false
4447 # Loop through the user's path and test for each of PROGNAME-LIST
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_prog in grep ggrep; do
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4456 as_fn_executable_p "$ac_path_GREP" || continue
4457# Check for GNU ac_path_GREP and select it if it is found.
4458 # Check for GNU $ac_path_GREP
4459case `"$ac_path_GREP" --version 2>&1` in
4460*GNU*)
4461 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4462*)
4463 ac_count=0
4464 $as_echo_n 0123456789 >"conftest.in"
4465 while :
4466 do
4467 cat "conftest.in" "conftest.in" >"conftest.tmp"
4468 mv "conftest.tmp" "conftest.in"
4469 cp "conftest.in" "conftest.nl"
4470 $as_echo 'GREP' >> "conftest.nl"
4471 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4473 as_fn_arith $ac_count + 1 && ac_count=$as_val
4474 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4475 # Best one so far, save it but keep looking for a better one
4476 ac_cv_path_GREP="$ac_path_GREP"
4477 ac_path_GREP_max=$ac_count
4478 fi
4479 # 10*(2^10) chars as input seems more than enough
4480 test $ac_count -gt 10 && break
4481 done
4482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483esac
4484
4485 $ac_path_GREP_found && break 3
4486 done
4487 done
4488 done
4489IFS=$as_save_IFS
4490 if test -z "$ac_cv_path_GREP"; then
4491 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4492 fi
4493else
4494 ac_cv_path_GREP=$GREP
4495fi
4496
4497fi
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4499$as_echo "$ac_cv_path_GREP" >&6; }
4500 GREP="$ac_cv_path_GREP"
4501
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4504$as_echo_n "checking for egrep... " >&6; }
4505if ${ac_cv_path_EGREP+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507else
4508 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4509 then ac_cv_path_EGREP="$GREP -E"
4510 else
4511 if test -z "$EGREP"; then
4512 ac_path_EGREP_found=false
4513 # Loop through the user's path and test for each of PROGNAME-LIST
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4516do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_prog in egrep; do
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4522 as_fn_executable_p "$ac_path_EGREP" || continue
4523# Check for GNU ac_path_EGREP and select it if it is found.
4524 # Check for GNU $ac_path_EGREP
4525case `"$ac_path_EGREP" --version 2>&1` in
4526*GNU*)
4527 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4528*)
4529 ac_count=0
4530 $as_echo_n 0123456789 >"conftest.in"
4531 while :
4532 do
4533 cat "conftest.in" "conftest.in" >"conftest.tmp"
4534 mv "conftest.tmp" "conftest.in"
4535 cp "conftest.in" "conftest.nl"
4536 $as_echo 'EGREP' >> "conftest.nl"
4537 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4539 as_fn_arith $ac_count + 1 && ac_count=$as_val
4540 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4541 # Best one so far, save it but keep looking for a better one
4542 ac_cv_path_EGREP="$ac_path_EGREP"
4543 ac_path_EGREP_max=$ac_count
4544 fi
4545 # 10*(2^10) chars as input seems more than enough
4546 test $ac_count -gt 10 && break
4547 done
4548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4549esac
4550
4551 $ac_path_EGREP_found && break 3
4552 done
4553 done
4554 done
4555IFS=$as_save_IFS
4556 if test -z "$ac_cv_path_EGREP"; then
4557 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4558 fi
4559else
4560 ac_cv_path_EGREP=$EGREP
4561fi
4562
4563 fi
4564fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4566$as_echo "$ac_cv_path_EGREP" >&6; }
4567 EGREP="$ac_cv_path_EGREP"
4568
4569
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4571$as_echo_n "checking for ANSI C header files... " >&6; }
4572if ${ac_cv_header_stdc+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574else
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576/* end confdefs.h. */
4577#include <stdlib.h>
4578#include <stdarg.h>
4579#include <string.h>
4580#include <float.h>
4581
4582int
4583main ()
4584{
4585
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590if ac_fn_c_try_compile "$LINENO"; then :
4591 ac_cv_header_stdc=yes
4592else
4593 ac_cv_header_stdc=no
4594fi
4595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596
4597if test $ac_cv_header_stdc = yes; then
4598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600/* end confdefs.h. */
4601#include <string.h>
4602
4603_ACEOF
4604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "memchr" >/dev/null 2>&1; then :
4606
4607else
4608 ac_cv_header_stdc=no
4609fi
4610rm -f conftest*
4611
4612fi
4613
4614if test $ac_cv_header_stdc = yes; then
4615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h. */
4618#include <stdlib.h>
4619
4620_ACEOF
4621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4622 $EGREP "free" >/dev/null 2>&1; then :
4623
4624else
4625 ac_cv_header_stdc=no
4626fi
4627rm -f conftest*
4628
4629fi
4630
4631if test $ac_cv_header_stdc = yes; then
4632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4633 if test "$cross_compiling" = yes; then :
4634 :
4635else
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637/* end confdefs.h. */
4638#include <ctype.h>
4639#include <stdlib.h>
4640#if ((' ' & 0x0FF) == 0x020)
4641# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4642# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4643#else
4644# define ISLOWER(c) \
4645 (('a' <= (c) && (c) <= 'i') \
4646 || ('j' <= (c) && (c) <= 'r') \
4647 || ('s' <= (c) && (c) <= 'z'))
4648# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4649#endif
4650
4651#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4652int
4653main ()
4654{
4655 int i;
4656 for (i = 0; i < 256; i++)
4657 if (XOR (islower (i), ISLOWER (i))
4658 || toupper (i) != TOUPPER (i))
4659 return 2;
4660 return 0;
4661}
4662_ACEOF
4663if ac_fn_c_try_run "$LINENO"; then :
4664
4665else
4666 ac_cv_header_stdc=no
4667fi
4668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4669 conftest.$ac_objext conftest.beam conftest.$ac_ext
4670fi
4671
4672fi
4673fi
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4675$as_echo "$ac_cv_header_stdc" >&6; }
4676if test $ac_cv_header_stdc = yes; then
4677
4678$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4679
4680fi
4681
4682# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4683for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4684 inttypes.h stdint.h unistd.h
4685do :
4686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4687ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4688"
4689if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4690 cat >>confdefs.h <<_ACEOF
4691#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4692_ACEOF
4693
4694fi
4695
4696done
4697
4698
4699
4700 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4701if test "x$ac_cv_header_minix_config_h" = xyes; then :
4702 MINIX=yes
4703else
4704 MINIX=
4705fi
4706
4707
4708 if test "$MINIX" = yes; then
4709
4710$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4711
4712
4713$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4714
4715
4716$as_echo "#define _MINIX 1" >>confdefs.h
4717
4718 fi
4719
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4722$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4723if ${ac_cv_safe_to_define___extensions__+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725else
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h. */
4728
4729# define __EXTENSIONS__ 1
4730 $ac_includes_default
4731int
4732main ()
4733{
4734
4735 ;
4736 return 0;
4737}
4738_ACEOF
4739if ac_fn_c_try_compile "$LINENO"; then :
4740 ac_cv_safe_to_define___extensions__=yes
4741else
4742 ac_cv_safe_to_define___extensions__=no
4743fi
4744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745fi
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4747$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4748 test $ac_cv_safe_to_define___extensions__ = yes &&
4749 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4750
4751 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4752
4753 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4754
4755 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4756
4757 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4758
4759
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004760LIB_EXT=.a
4761STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004762PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004763
Theodore Ts'oe1052142006-10-21 21:46:47 -04004764# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004765if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004766 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004767else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004768 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004769fi
4770# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004771if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004772 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004773then
4774 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004776$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004777else
4778 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004780$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004781fi
4782
4783else
4784 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004786$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004787
Theodore Ts'oe1052142006-10-21 21:46:47 -04004788fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004789
Theodore Ts'oe1052142006-10-21 21:46:47 -04004790
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004791# Check whether --enable-symlink-install was given.
4792if test "${enable_symlink_install+set}" = set; then :
4793 enableval=$enable_symlink_install; if test "$enableval" = "no"
4794then
4795 LINK_INSTALL_FLAGS=-f
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4797$as_echo "Disabling symlinks for install" >&6; }
4798else
4799 LINK_INSTALL_FLAGS=-sf
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4801$as_echo "Enabling symlinks for install" >&6; }
4802fi
4803
4804else
4805 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4807$as_echo "Disabling symlinks for install by default" >&6; }
4808
4809fi
4810
4811
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004812relative_symlink_defined=
4813# Check whether --enable-relative-symlinks was given.
4814if test "${enable_relative_symlinks+set}" = set; then :
4815 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004816then
4817 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004818 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4820$as_echo "Disabling relative symlinks for install" >&6; }
4821else
4822 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004823 relative_symlink_defined=yes
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4825$as_echo "Enabling relative symlinks for install" >&6; }
4826fi
4827fi
4828
4829# Check whether --enable-symlink-relative-symlinks was given.
4830if test "${enable_symlink_relative_symlinks+set}" = set; then :
4831 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4832then
4833 SYMLINK_RELATIVE=yes
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4835$as_echo "Disabling relative symlinks for install" >&6; }
4836else
4837 SYMLINK_RELATIVE=--relative
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4839$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004840fi
4841
4842else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004843 if test -z "$relative_symlink_defined"
4844then
4845 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4847$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004848fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004849
4850fi
4851
4852
4853# Check whether --enable-symlink-build was given.
4854if test "${enable_symlink_build+set}" = set; then :
4855 enableval=$enable_symlink_build; if test "$enableval" = "no"
4856then
4857 LINK_BUILD_FLAGS=
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4859$as_echo "Disabling symlinks for build" >&6; }
4860else
4861 LINK_BUILD_FLAGS=-s
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4863$as_echo "Enabling symlinks for build" >&6; }
4864fi
4865
4866else
4867 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4869$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004870
4871fi
4872
4873
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004874# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004875if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004876 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4877then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004879$as_echo "Disabling verbose make commands" >&6; }
4880 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004881 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004882 Q=@
4883else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004885$as_echo "Enabling verbose make commands" >&6; }
4886 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004887 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004888 Q=
4889fi
4890
4891else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004893$as_echo "Disabling verbose make commands" >&6; }
4894E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004895ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004896Q=@
4897
4898fi
4899
4900
4901
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004902
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004903
Theodore Ts'oe1052142006-10-21 21:46:47 -04004904# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004905if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004906 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004907then
4908 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004910$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004911else
4912 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004913 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004914
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004916$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004917fi
4918
4919else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004920 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004921$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004922
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004924$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004925
Theodore Ts'oe1052142006-10-21 21:46:47 -04004926fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004927
Theodore Ts'oe1052142006-10-21 21:46:47 -04004928
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004929E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004930LDFLAG_DYNAMIC=
4931PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004932# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004933if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004934 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004935then
4936 ELF_CMT=#
4937 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004939$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004940else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004941 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004942 ELF_CMT=
4943 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004944 case "$host_os" in
4945 solaris2.*)
4946 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4947 ;;
4948 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004949 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004950 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004951 PRIVATE_LIBS_CMT=#
4952 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004954$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004955fi
4956
4957else
4958 MAKEFILE_ELF=/dev/null
4959ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004961$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004962
Theodore Ts'oe1052142006-10-21 21:46:47 -04004963fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004964
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004965
Theodore Ts'oe1052142006-10-21 21:46:47 -04004966
4967# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004968if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004969 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004970then
4971 BSDLIB_CMT=#
4972 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004974$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004975else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004976 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004977 BSDLIB_CMT=
4978 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004979 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004980 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004981 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004982 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4983 LIB_EXT=.dylib
4984 ;;
4985 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004987$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004988fi
4989
4990else
4991 MAKEFILE_BSDLIB=/dev/null
4992BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004994$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004995
Theodore Ts'oe1052142006-10-21 21:46:47 -04004996fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004997
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004998
Theodore Ts'oe1052142006-10-21 21:46:47 -04004999
5000# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005001if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005002 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005003then
5004 PROFILE_CMT=#
5005 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005007$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005008else
5009 PROFILE_CMT=
5010 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5011 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005013$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005014fi
5015
5016else
5017 PROFILE_CMT=#
5018MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005020$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005021
Theodore Ts'oe1052142006-10-21 21:46:47 -04005022fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005023
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005024
Theodore Ts'oe1052142006-10-21 21:46:47 -04005025
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005026# Check whether --enable-gcov was given.
5027if test "${enable_gcov+set}" = set; then :
5028 enableval=$enable_gcov; if test "$enableval" = "yes"
5029then
5030 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5031 LDFLAGS="-fprofile-arcs -ftest-coverage"
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5033$as_echo "Enabling gcov support" >&6; }
5034fi
5035
5036fi
5037
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005038
5039
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005040
Theodore Ts'oe1052142006-10-21 21:46:47 -04005041
Theodore Ts'o55da9872008-09-02 23:12:38 -04005042
5043
Theodore Ts'oe1052142006-10-21 21:46:47 -04005044# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005045if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005046 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005047then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005049$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005050else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005051
5052$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005053
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005055$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005056fi
5057
5058else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005060$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005061
Theodore Ts'oe1052142006-10-21 21:46:47 -04005062fi
5063
5064# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005065if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005066 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005067then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005069$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005070else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005071
5072$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005073
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005075$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005076fi
5077
5078else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005080$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005081
Theodore Ts'oe1052142006-10-21 21:46:47 -04005082fi
5083
5084# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005085if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005086 enableval=$enable_testio_debug;
5087if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005088then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005090$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005091 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005092else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005093 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005094 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005095
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005097$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005098fi
5099
5100else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005102$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005103$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005104
5105TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005106
Theodore Ts'oe1052142006-10-21 21:46:47 -04005107fi
5108
Theodore Ts'oaf773652008-09-01 11:27:27 -04005109
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005110
5111
Theodore Ts'o93613952014-07-03 23:44:13 -04005112
5113
5114
5115
5116
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005117if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005118 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005119 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5120set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005122$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005123if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005124 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005125else
5126 case $PKG_CONFIG in
5127 [\\/]* | ?:[\\/]*)
5128 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5129 ;;
5130 *)
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132for as_dir in $PATH
5133do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005136 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005138 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005140 break 2
5141 fi
5142done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005143 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005144IFS=$as_save_IFS
5145
5146 ;;
5147esac
5148fi
5149PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5150if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005152$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005153else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005155$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005156fi
5157
5158
5159fi
5160if test -z "$ac_cv_path_PKG_CONFIG"; then
5161 ac_pt_PKG_CONFIG=$PKG_CONFIG
5162 # Extract the first word of "pkg-config", so it can be a program name with args.
5163set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005165$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005166if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005167 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005168else
5169 case $ac_pt_PKG_CONFIG in
5170 [\\/]* | ?:[\\/]*)
5171 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5172 ;;
5173 *)
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005179 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005181 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005183 break 2
5184 fi
5185done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005186 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005187IFS=$as_save_IFS
5188
5189 ;;
5190esac
5191fi
5192ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5193if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005195$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005196else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005198$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005199fi
5200
5201 if test "x$ac_pt_PKG_CONFIG" = x; then
5202 PKG_CONFIG=""
5203 else
5204 case $cross_compiling:$ac_tool_warned in
5205yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005206{ $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 +01005207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005208ac_tool_warned=yes ;;
5209esac
5210 PKG_CONFIG=$ac_pt_PKG_CONFIG
5211 fi
5212else
5213 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5214fi
5215
5216fi
5217if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005218 _pkg_min_version=0.9.0
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005220$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005221 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005223$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005226$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005227 PKG_CONFIG=""
5228 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005229fi
5230LIBUUID=
5231DEPLIBUUID=
5232STATIC_LIBUUID=
5233DEPSTATIC_LIBUUID=
5234PROFILED_LIBUUID=
5235DEPPROFILED_LIBUUID=
5236UUID_CMT=
5237# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005238if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005239 enableval=$enable_libuuid; if test "$enableval" = "no"
5240then
5241 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005242 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005243 fi
5244
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005246$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005247if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005248 $as_echo_n "(cached) " >&6
5249else
5250 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005251LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005253/* end confdefs.h. */
5254
5255/* Override any GCC internal prototype to avoid an error.
5256 Use char because int might match the return type of a GCC
5257 builtin and then its argument prototype would still apply. */
5258#ifdef __cplusplus
5259extern "C"
5260#endif
5261char uuid_generate ();
5262int
5263main ()
5264{
5265return uuid_generate ();
5266 ;
5267 return 0;
5268}
5269_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005270if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005271 ac_cv_lib_uuid_uuid_generate=yes
5272else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005273 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005274fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005275rm -f core conftest.err conftest.$ac_objext \
5276 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005277LIBS=$ac_check_lib_save_LIBS
5278fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005280$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005281if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005282 LIBUUID=`$PKG_CONFIG --libs uuid`;
5283 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5284else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005285 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005286fi
5287
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005288 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005289 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005291$as_echo "Disabling private uuid library" >&6; }
5292else
5293 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5294 DEPLIBUUID=$LIBUUID
5295 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5296 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5297 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5298 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005300$as_echo "Enabling private uuid library" >&6; }
5301fi
5302
5303else
5304 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5305DEPLIBUUID=$LIBUUID
5306STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5307DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5308PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5309DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005311$as_echo "Enabling private uuid library by default" >&6; }
5312
5313fi
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
Theodore Ts'o93613952014-07-03 23:44:13 -04005324
5325
5326
5327
5328
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005329if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005330 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005331 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5332set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005334$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005335if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005336 $as_echo_n "(cached) " >&6
5337else
5338 case $PKG_CONFIG in
5339 [\\/]* | ?:[\\/]*)
5340 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5341 ;;
5342 *)
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005348 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005350 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005352 break 2
5353 fi
5354done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005355 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005356IFS=$as_save_IFS
5357
5358 ;;
5359esac
5360fi
5361PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5362if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005364$as_echo "$PKG_CONFIG" >&6; }
5365else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005367$as_echo "no" >&6; }
5368fi
5369
5370
5371fi
5372if test -z "$ac_cv_path_PKG_CONFIG"; then
5373 ac_pt_PKG_CONFIG=$PKG_CONFIG
5374 # Extract the first word of "pkg-config", so it can be a program name with args.
5375set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005377$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005378if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005379 $as_echo_n "(cached) " >&6
5380else
5381 case $ac_pt_PKG_CONFIG in
5382 [\\/]* | ?:[\\/]*)
5383 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5384 ;;
5385 *)
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005391 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005393 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005395 break 2
5396 fi
5397done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005398 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005399IFS=$as_save_IFS
5400
5401 ;;
5402esac
5403fi
5404ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5405if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005407$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5408else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005410$as_echo "no" >&6; }
5411fi
5412
5413 if test "x$ac_pt_PKG_CONFIG" = x; then
5414 PKG_CONFIG=""
5415 else
5416 case $cross_compiling:$ac_tool_warned in
5417yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005418{ $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 +01005419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5420ac_tool_warned=yes ;;
5421esac
5422 PKG_CONFIG=$ac_pt_PKG_CONFIG
5423 fi
5424else
5425 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5426fi
5427
5428fi
5429if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005430 _pkg_min_version=0.9.0
5431 { $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 +01005432$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005433 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005435$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005438$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005439 PKG_CONFIG=""
5440 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005441fi
5442LIBBLKID=
5443DEPLIBBLKID=
5444STATIC_LIBBLKID=
5445DEPSTATIC_LIBBLKID=
5446PROFILED_LIBBLKID=
5447DEPPROFILED_LIBBLKID=
5448BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005449
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005450# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005451if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005452 enableval=$enable_libblkid; if test "$enableval" = "no"
5453then
5454 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005455 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005456 fi
5457
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005459$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005460if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005461 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005462else
5463 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005464LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005466/* end confdefs.h. */
5467
5468/* Override any GCC internal prototype to avoid an error.
5469 Use char because int might match the return type of a GCC
5470 builtin and then its argument prototype would still apply. */
5471#ifdef __cplusplus
5472extern "C"
5473#endif
5474char blkid_get_cache ();
5475int
5476main ()
5477{
5478return blkid_get_cache ();
5479 ;
5480 return 0;
5481}
5482_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005483if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005484 ac_cv_lib_blkid_blkid_get_cache=yes
5485else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005486 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005487fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005488rm -f core conftest.err conftest.$ac_objext \
5489 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005490LIBS=$ac_check_lib_save_LIBS
5491fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005493$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005494if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005495 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5496 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5497else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005498 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005499fi
5500
5501 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005502 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005504$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005505else
5506 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5507 DEPLIBBLKID=$LIBBLKID
5508 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5509 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5510 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5511 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005512 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005513
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005515$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005516fi
5517
5518else
5519 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5520DEPLIBBLKID=$LIBBLKID
5521STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5522DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5523PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5524DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005525$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005526
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005528$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005529
5530fi
5531
5532
5533
5534
5535
5536
5537
5538
Eric Sandeenf5589f42013-10-14 08:54:15 -04005539QUOTA_MAN_COMMENT='.\"'
Niu Yawei43075b42013-10-14 09:49:27 -04005540QUOTA_CMT=
Eric Sandeenf5589f42013-10-14 08:54:15 -04005541
Aditya Kalif239fef2011-07-20 11:40:02 -07005542
5543
Theodore Ts'o93613952014-07-03 23:44:13 -04005544
5545
5546
5547
5548
Aditya Kalif239fef2011-07-20 11:40:02 -07005549if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005550 if test -n "$ac_tool_prefix"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005551 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5552set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005555if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005556 $as_echo_n "(cached) " >&6
5557else
5558 case $PKG_CONFIG in
5559 [\\/]* | ?:[\\/]*)
5560 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5561 ;;
5562 *)
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005570 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574done
5575 done
5576IFS=$as_save_IFS
5577
5578 ;;
5579esac
5580fi
5581PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5582if test -n "$PKG_CONFIG"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5584$as_echo "$PKG_CONFIG" >&6; }
5585else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588fi
5589
5590
5591fi
5592if test -z "$ac_cv_path_PKG_CONFIG"; then
5593 ac_pt_PKG_CONFIG=$PKG_CONFIG
5594 # Extract the first word of "pkg-config", so it can be a program name with args.
5595set dummy pkg-config; ac_word=$2
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005598if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005599 $as_echo_n "(cached) " >&6
5600else
5601 case $ac_pt_PKG_CONFIG in
5602 [\\/]* | ?:[\\/]*)
5603 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5604 ;;
5605 *)
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607for as_dir in $PATH
5608do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005613 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5616 fi
5617done
5618 done
5619IFS=$as_save_IFS
5620
5621 ;;
5622esac
5623fi
5624ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5625if test -n "$ac_pt_PKG_CONFIG"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5627$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5628else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630$as_echo "no" >&6; }
5631fi
5632
5633 if test "x$ac_pt_PKG_CONFIG" = x; then
5634 PKG_CONFIG=""
5635 else
5636 case $cross_compiling:$ac_tool_warned in
5637yes:)
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5640ac_tool_warned=yes ;;
5641esac
5642 PKG_CONFIG=$ac_pt_PKG_CONFIG
5643 fi
5644else
5645 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5646fi
5647
5648fi
5649if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005650 _pkg_min_version=0.9.0
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005652$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005653 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005655$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005658$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005659 PKG_CONFIG=""
5660 fi
Aditya Kalif239fef2011-07-20 11:40:02 -07005661fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005662
5663# Check whether --enable-quota was given.
5664if test "${enable_quota+set}" = set; then :
5665 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005666then
Niu Yawei43075b42013-10-14 09:49:27 -04005667 QUOTA_CMT=#
Theodore Ts'o7becb202011-11-14 10:40:43 -05005668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5669$as_echo "Disabling quota support" >&6; }
5670else
Niu Yawei43075b42013-10-14 09:49:27 -04005671 QUOTA_CMT=
Theodore Ts'o7becb202011-11-14 10:40:43 -05005672 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005673
Theodore Ts'o7becb202011-11-14 10:40:43 -05005674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5675$as_echo "Enabling quota support" >&6; }
Eric Sandeenf5589f42013-10-14 08:54:15 -04005676 QUOTA_MAN_COMMENT=""
5677
Aditya Kalif239fef2011-07-20 11:40:02 -07005678fi
5679
5680else
Niu Yawei43075b42013-10-14 09:49:27 -04005681 QUOTA_CMT=#
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
Theodore Ts'o7becb202011-11-14 10:40:43 -05005683$as_echo "Disabling quota support by default" >&6; }
5684
5685fi
5686
5687LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005688DEPLIBQUOTA=$LIBQUOTA
5689STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5690DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5691PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5692DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005693
5694
5695
5696
5697
5698
5699
Theodore Ts'o3df60142013-06-16 16:14:40 -04005700
5701# Check whether --enable-backtrace was given.
5702if test "${enable_backtrace+set}" = set; then :
5703 enableval=$enable_backtrace; if test "$enableval" = "no"
5704then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5706$as_echo "Disabling use of backtrace" >&6; }
5707 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5708
5709else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5711$as_echo "Enabling use of backtrace" >&6; }
5712fi
5713
5714else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5716$as_echo "Enabling use of backtrace by default" >&6; }
5717
5718fi
5719
Theodore Ts'oe1052142006-10-21 21:46:47 -04005720# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005721if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005722 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005723then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005725$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005726 DEBUGFS_CMT="#"
5727else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005728 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005730$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005731fi
5732
5733else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005735$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005736DEBUGFS_CMT=
5737
Theodore Ts'oe1052142006-10-21 21:46:47 -04005738fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005739
Theodore Ts'oe1052142006-10-21 21:46:47 -04005740
5741# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005742if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005743 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005744then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005746$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005747 IMAGER_CMT="#"
5748else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005749 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005751$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005752fi
5753
5754else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005756$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005757IMAGER_CMT=
5758
Theodore Ts'oe1052142006-10-21 21:46:47 -04005759fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005760
Theodore Ts'oe1052142006-10-21 21:46:47 -04005761
5762# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005763if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005764 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005765then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005767$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005768 RESIZER_CMT="#"
5769else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005770 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005772$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005773fi
5774
5775else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005777$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005778RESIZER_CMT=
5779
Theodore Ts'oe1052142006-10-21 21:46:47 -04005780fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005781
Theodore Ts'oe1052142006-10-21 21:46:47 -04005782
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005783# Check whether --enable-defrag was given.
5784if test "${enable_defrag+set}" = set; then :
5785 enableval=$enable_defrag; if test "$enableval" = "no"
5786then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5788$as_echo "Disabling e4defrag support" >&6; }
5789 DEFRAG_CMT="#"
5790else
5791 DEFRAG_CMT=
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5793$as_echo "Enabling e4defrag support" >&6; }
5794fi
5795
5796else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005797 if test -z "$WITH_DIET_LIBC"
5798then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005800$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005801 DEFRAG_CMT=
5802else
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5804$as_echo "Disabling e4defrag support by default" >&6; }
5805 DEFRAG_CMT="#"
5806fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005807
5808fi
5809
5810
Theodore Ts'oe1052142006-10-21 21:46:47 -04005811# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005812if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005813 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005814then
5815 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005817$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005818else
5819 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005821$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005822fi
5823
5824else
5825 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005826 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005827 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005829$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005830 ;;
5831 *)
5832 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005834$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005835esac
5836
Theodore Ts'oe1052142006-10-21 21:46:47 -04005837fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005838
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005839
Theodore Ts'oe1052142006-10-21 21:46:47 -04005840
5841# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005842if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005843 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005844then
5845 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005847$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005848else
5849 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005851$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005852fi
5853
5854else
5855 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005857$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005858
Theodore Ts'oe1052142006-10-21 21:46:47 -04005859fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005860
5861
Theodore Ts'oe1052142006-10-21 21:46:47 -04005862
Theodore Ts'o32493942007-12-31 10:45:01 -05005863# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005864if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005865 enableval=$enable_tls; if test "$enableval" = "no"
5866then
5867 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005869$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005870else
5871 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005873$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005874fi
5875
5876else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005877 if test -n "$WITH_DIET_LIBC"
5878then
5879 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005880 { $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 +01005881$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005882else
5883 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005885$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005886fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005887
5888fi
5889
5890if test "$try_tls" = "yes"
5891then
5892
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005894$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005895 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005896 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005897else
5898
5899 ax_tls_keywords="__thread __declspec(thread) none"
5900 for ax_tls_keyword in $ax_tls_keywords; do
5901 case $ax_tls_keyword in
5902 none) ac_cv_tls=none ; break ;;
5903 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005905/* end confdefs.h. */
5906#include <stdlib.h>
5907 static void
5908 foo(void) {
5909 static $ax_tls_keyword int bar;
5910 exit(1);
5911 }
5912int
5913main ()
5914{
5915
5916 ;
5917 return 0;
5918}
5919_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005920if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005921 ac_cv_tls=$ax_tls_keyword ; break
5922else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005923 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005924
5925fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927 esac
5928 done
5929
5930fi
5931
5932
5933 if test "$ac_cv_tls" != "none"; then
5934
5935cat >>confdefs.h <<_ACEOF
5936#define TLS $ac_cv_tls
5937_ACEOF
5938
5939 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005941$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005942
5943fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005944
Theodore Ts'o5610f992007-12-31 11:16:56 -05005945# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005946if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005947 enableval=$enable_uuidd; if test "$enableval" = "no"
5948then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005950$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005951 UUIDD_CMT="#"
5952else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005953 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005954
5955 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005957$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005958fi
5959
5960else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005961 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005962
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005963if test -z "$UUID_CMT"
5964then
5965 UUIDD_CMT=""
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005967$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005968else
5969 UUIDD_CMT="#"
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5971$as_echo "Disabling uuidd by default" >&6; }
5972fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005973
5974fi
5975
5976
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005977
5978# Check whether --enable-mmp was given.
5979if test "${enable_mmp+set}" = set; then :
5980 enableval=$enable_mmp; if test "$enableval" = "no"
5981then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5983$as_echo "Disabling mmp support" >&6; }
5984else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5986$as_echo "Enabling mmp support" >&6; }
5987 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5988
5989fi
5990
5991else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5993$as_echo "Enabling mmp support by default" >&6; }
5994$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5995
5996
5997fi
5998
Tony Breeds1625bf42012-07-30 14:44:12 -04005999
6000# Check whether --enable-bmap-stats was given.
6001if test "${enable_bmap_stats+set}" = set; then :
6002 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6003then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6005$as_echo "Disabling bitmap statistics support" >&6; }
6006else
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6008$as_echo "Enabling bitmap statistics support" >&6; }
6009 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6010
6011fi
6012
6013else
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6015$as_echo "Enabling bitmap statistics support by default" >&6; }
6016$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6017
6018
6019fi
6020
6021
6022# Check whether --enable-bmap-stats-ops was given.
6023if test "${enable_bmap_stats_ops+set}" = set; then :
6024 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6025then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6027$as_echo "Disabling additional bitmap statistics" >&6; }
6028else
6029 if test "x${enable_bmap_stats}" = "xno"; then :
6030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6032as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6033See \`config.log' for more details" "$LINENO" 5; }
6034fi
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6037$as_echo "Enabling additional bitmap statistics" >&6; }
6038 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6039
6040fi
6041
6042else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6044$as_echo "Disabling additional bitmap statistics by default" >&6; }
6045
6046fi
6047
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006048MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006050GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006051PACKAGE=e2fsprogs
6052VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006053VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006054
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006055cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006056#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006057_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006058
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006059
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006060cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006061#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006062_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006063
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006064
6065
6066
6067
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006069$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6070set x ${MAKE-make}
6071ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006072if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006073 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006074else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006075 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006076SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006077all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006078 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006080# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006081case `${MAKE-make} -f conftest.make 2>/dev/null` in
6082 *@@@%%%=?*=@@@%%%*)
6083 eval ac_cv_prog_make_${ac_make}_set=yes;;
6084 *)
6085 eval ac_cv_prog_make_${ac_make}_set=no;;
6086esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006087rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006088fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006089if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006091$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006092 SET_MAKE=
6093else
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'oa64c9c12000-02-08 20:17:21 +00006096 SET_MAKE="MAKE=${MAKE-make}"
6097fi
6098
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006099# Find a good install program. We prefer a C program (faster),
6100# so one script is as good as another. But avoid the broken or
6101# incompatible versions:
6102# SysV /etc/install, /usr/sbin/install
6103# SunOS /usr/etc/install
6104# IRIX /sbin/install
6105# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006106# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006107# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6108# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6109# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006110# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006111# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006112# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006114$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006115if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006116if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006117 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006118else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006124 # Account for people who put trailing slashes in PATH elements.
6125case $as_dir/ in #((
6126 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006127 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006128 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006129 /usr/ucb/* ) ;;
6130 *)
6131 # OSF1 and SCO ODT 3.0 have their own names for install.
6132 # Don't use installbsd from OSF since it installs stuff as root
6133 # by default.
6134 for ac_prog in ginstall scoinst install; do
6135 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006136 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006137 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006138 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006139 # AIX install. It has an incompatible calling convention.
6140 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006141 elif test $ac_prog = install &&
6142 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6143 # program-specific install script used by HP pwplus--don't use.
6144 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006145 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006146 rm -rf conftest.one conftest.two conftest.dir
6147 echo one > conftest.one
6148 echo two > conftest.two
6149 mkdir conftest.dir
6150 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6151 test -s conftest.one && test -s conftest.two &&
6152 test -s conftest.dir/conftest.one &&
6153 test -s conftest.dir/conftest.two
6154 then
6155 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6156 break 3
6157 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006158 fi
6159 fi
6160 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006161 done
6162 ;;
6163esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006164
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006165 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006166IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006167
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006168rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006169
6170fi
6171 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006172 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006173 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006174 # As a last resort, use the slow shell script. Don't cache a
6175 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006176 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006177 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006178 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006179 fi
6180fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006182$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006183
6184# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6185# It thinks the first close brace ends the variable substitution.
6186test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6187
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006188test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006189
6190test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6191
Theodore Ts'o93613952014-07-03 23:44:13 -04006192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6193$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6194if test -z "$MKDIR_P"; then
6195 if ${ac_cv_path_mkdir+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_prog in mkdir gmkdir; do
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6206 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6207 'mkdir (GNU coreutils) '* | \
6208 'mkdir (coreutils) '* | \
6209 'mkdir (fileutils) '4.1*)
6210 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6211 break 3;;
6212 esac
6213 done
6214 done
6215 done
6216IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006217
Theodore Ts'o93613952014-07-03 23:44:13 -04006218fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006219
Theodore Ts'o93613952014-07-03 23:44:13 -04006220 test -d ./--version && rmdir ./--version
6221 if test "${ac_cv_path_mkdir+set}" = set; then
6222 MKDIR_P="$ac_cv_path_mkdir -p"
6223 else
6224 # As a last resort, use the slow shell script. Don't cache a
6225 # value for MKDIR_P within a source directory, because that will
6226 # break other packages using the cache if that directory is
6227 # removed, or if the value is a relative name.
6228 MKDIR_P="$ac_install_sh -d"
6229 fi
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6232$as_echo "$MKDIR_P" >&6; }
6233
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6235$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6236if ${ac_cv_path_SED+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238else
6239 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6240 for ac_i in 1 2 3 4 5 6 7; do
6241 ac_script="$ac_script$as_nl$ac_script"
6242 done
6243 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6244 { ac_script=; unset ac_script;}
6245 if test -z "$SED"; then
6246 ac_path_SED_found=false
6247 # Loop through the user's path and test for each of PROGNAME-LIST
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249for as_dir in $PATH
6250do
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_prog in sed gsed; do
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6256 as_fn_executable_p "$ac_path_SED" || continue
6257# Check for GNU ac_path_SED and select it if it is found.
6258 # Check for GNU $ac_path_SED
6259case `"$ac_path_SED" --version 2>&1` in
6260*GNU*)
6261 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6262*)
6263 ac_count=0
6264 $as_echo_n 0123456789 >"conftest.in"
6265 while :
6266 do
6267 cat "conftest.in" "conftest.in" >"conftest.tmp"
6268 mv "conftest.tmp" "conftest.in"
6269 cp "conftest.in" "conftest.nl"
6270 $as_echo '' >> "conftest.nl"
6271 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6273 as_fn_arith $ac_count + 1 && ac_count=$as_val
6274 if test $ac_count -gt ${ac_path_SED_max-0}; then
6275 # Best one so far, save it but keep looking for a better one
6276 ac_cv_path_SED="$ac_path_SED"
6277 ac_path_SED_max=$ac_count
6278 fi
6279 # 10*(2^10) chars as input seems more than enough
6280 test $ac_count -gt 10 && break
6281 done
6282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6283esac
6284
6285 $ac_path_SED_found && break 3
6286 done
6287 done
6288 done
6289IFS=$as_save_IFS
6290 if test -z "$ac_cv_path_SED"; then
6291 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6292 fi
6293else
6294 ac_cv_path_SED=$SED
6295fi
6296
6297fi
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6299$as_echo "$ac_cv_path_SED" >&6; }
6300 SED="$ac_cv_path_SED"
6301 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006302
6303
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006305$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006306 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006307if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006308 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006309else
6310 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006311fi
6312
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006314$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006315
6316
6317
6318
Theodore Ts'o93613952014-07-03 23:44:13 -04006319 GETTEXT_MACRO_VERSION=0.18
6320
6321
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006322
6323
6324# Prepare PATH_SEPARATOR.
6325# The user is always right.
6326if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006327 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6328 # contains only /bin. Note that ksh looks also at the FPATH variable,
6329 # so we have to set that as well for the test.
6330 PATH_SEPARATOR=:
6331 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6332 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6333 || PATH_SEPARATOR=';'
6334 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006335fi
6336
6337# Find out how to test for executable files. Don't use a zero-byte file,
6338# as systems may use methods other than mode bits to determine executability.
6339cat >conf$$.file <<_ASEOF
6340#! /bin/sh
6341exit 0
6342_ASEOF
6343chmod +x conf$$.file
6344if test -x conf$$.file >/dev/null 2>&1; then
6345 ac_executable_p="test -x"
6346else
6347 ac_executable_p="test -f"
6348fi
6349rm -f conf$$.file
6350
6351# Extract the first word of "msgfmt", so it can be a program name with args.
6352set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006354$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006355if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006356 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006357else
6358 case "$MSGFMT" in
6359 [\\/]* | ?:[\\/]*)
6360 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6361 ;;
6362 *)
6363 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6364 for ac_dir in $PATH; do
6365 IFS="$ac_save_IFS"
6366 test -z "$ac_dir" && ac_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006369 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6370 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006371 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6372 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6373 break 2
6374 fi
6375 fi
6376 done
6377 done
6378 IFS="$ac_save_IFS"
6379 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6380 ;;
6381esac
6382fi
6383MSGFMT="$ac_cv_path_MSGFMT"
6384if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006386$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006387else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006389$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006390fi
6391
6392 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6393set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006395$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006396if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006397 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006398else
6399 case $GMSGFMT in
6400 [\\/]* | ?:[\\/]*)
6401 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6402 ;;
6403 *)
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
6406do
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006409 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006411 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006413 break 2
6414 fi
6415done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006416 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006417IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006418
6419 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6420 ;;
6421esac
6422fi
6423GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006424if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006426$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006427else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006429$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006430fi
6431
6432
6433
Theodore Ts'o93613952014-07-03 23:44:13 -04006434 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6435 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6436 *) MSGFMT_015=$MSGFMT ;;
6437 esac
6438
6439 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6440 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6441 *) GMSGFMT_015=$GMSGFMT ;;
6442 esac
6443
6444
Theodore Ts'oe1052142006-10-21 21:46:47 -04006445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006446# Prepare PATH_SEPARATOR.
6447# The user is always right.
6448if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006449 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6450 # contains only /bin. Note that ksh looks also at the FPATH variable,
6451 # so we have to set that as well for the test.
6452 PATH_SEPARATOR=:
6453 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6454 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6455 || PATH_SEPARATOR=';'
6456 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006457fi
6458
6459# Find out how to test for executable files. Don't use a zero-byte file,
6460# as systems may use methods other than mode bits to determine executability.
6461cat >conf$$.file <<_ASEOF
6462#! /bin/sh
6463exit 0
6464_ASEOF
6465chmod +x conf$$.file
6466if test -x conf$$.file >/dev/null 2>&1; then
6467 ac_executable_p="test -x"
6468else
6469 ac_executable_p="test -f"
6470fi
6471rm -f conf$$.file
6472
6473# Extract the first word of "xgettext", so it can be a program name with args.
6474set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006476$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006477if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006478 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006479else
6480 case "$XGETTEXT" in
6481 [\\/]* | ?:[\\/]*)
6482 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6483 ;;
6484 *)
6485 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6486 for ac_dir in $PATH; do
6487 IFS="$ac_save_IFS"
6488 test -z "$ac_dir" && ac_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006491 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6492 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006493 (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
6494 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6495 break 2
6496 fi
6497 fi
6498 done
6499 done
6500 IFS="$ac_save_IFS"
6501 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6502 ;;
6503esac
6504fi
6505XGETTEXT="$ac_cv_path_XGETTEXT"
6506if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006508$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006509else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006511$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006512fi
6513
6514 rm -f messages.po
6515
Theodore Ts'o93613952014-07-03 23:44:13 -04006516 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6517 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6518 *) XGETTEXT_015=$XGETTEXT ;;
6519 esac
6520
6521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006522
6523# Prepare PATH_SEPARATOR.
6524# The user is always right.
6525if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006526 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6527 # contains only /bin. Note that ksh looks also at the FPATH variable,
6528 # so we have to set that as well for the test.
6529 PATH_SEPARATOR=:
6530 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6531 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6532 || PATH_SEPARATOR=';'
6533 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006534fi
6535
6536# Find out how to test for executable files. Don't use a zero-byte file,
6537# as systems may use methods other than mode bits to determine executability.
6538cat >conf$$.file <<_ASEOF
6539#! /bin/sh
6540exit 0
6541_ASEOF
6542chmod +x conf$$.file
6543if test -x conf$$.file >/dev/null 2>&1; then
6544 ac_executable_p="test -x"
6545else
6546 ac_executable_p="test -f"
6547fi
6548rm -f conf$$.file
6549
6550# Extract the first word of "msgmerge", so it can be a program name with args.
6551set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006553$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006554if ${ac_cv_path_MSGMERGE+:} 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 case "$MSGMERGE" in
6558 [\\/]* | ?:[\\/]*)
6559 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6560 ;;
6561 *)
6562 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6563 for ac_dir in $PATH; do
6564 IFS="$ac_save_IFS"
6565 test -z "$ac_dir" && ac_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006568 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6569 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006570 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6571 break 2
6572 fi
6573 fi
6574 done
6575 done
6576 IFS="$ac_save_IFS"
6577 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6578 ;;
6579esac
6580fi
6581MSGMERGE="$ac_cv_path_MSGMERGE"
6582if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006584$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006585else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006587$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006588fi
6589
6590
Theodore Ts'o93613952014-07-03 23:44:13 -04006591 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593
Theodore Ts'o93613952014-07-03 23:44:13 -04006594 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6595
6596
6597 ac_config_commands="$ac_config_commands po-directories"
6598
6599
6600
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6602$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6603if ${ac_cv_gnu_library_2+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605else
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607/* end confdefs.h. */
6608
6609#include <features.h>
6610#ifdef __GNU_LIBRARY__
6611 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6612 Lucky GNU user
6613 #endif
6614#endif
6615
6616_ACEOF
6617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6618 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6619 ac_cv_gnu_library_2=yes
6620else
6621 ac_cv_gnu_library_2=no
6622fi
6623rm -f conftest*
6624
6625
6626
6627fi
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6629$as_echo "$ac_cv_gnu_library_2" >&6; }
6630
6631 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006632
6633
6634if test -n "$ac_tool_prefix"; then
6635 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6636set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006638$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006639if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006640 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006641else
6642 if test -n "$RANLIB"; then
6643 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6644else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646for as_dir in $PATH
6647do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006650 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006652 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006654 break 2
6655 fi
6656done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006657 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006658IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006659
6660fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661fi
6662RANLIB=$ac_cv_prog_RANLIB
6663if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006665$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006666else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006668$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006669fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006670
Theodore Ts'oe1052142006-10-21 21:46:47 -04006671
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006672fi
6673if test -z "$ac_cv_prog_RANLIB"; then
6674 ac_ct_RANLIB=$RANLIB
6675 # Extract the first word of "ranlib", so it can be a program name with args.
6676set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006678$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006679if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006680 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006681else
6682 if test -n "$ac_ct_RANLIB"; then
6683 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6684else
6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006690 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006692 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006694 break 2
6695 fi
6696done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006697 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006698IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006699
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006700fi
6701fi
6702ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6703if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006705$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006706else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006708$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006709fi
6710
Theodore Ts'oe1052142006-10-21 21:46:47 -04006711 if test "x$ac_ct_RANLIB" = x; then
6712 RANLIB=":"
6713 else
6714 case $cross_compiling:$ac_tool_warned in
6715yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006716{ $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 +01006717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006718ac_tool_warned=yes ;;
6719esac
6720 RANLIB=$ac_ct_RANLIB
6721 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006722else
6723 RANLIB="$ac_cv_prog_RANLIB"
6724fi
6725
6726
Theodore Ts'o93613952014-07-03 23:44:13 -04006727
6728 CFLAG_VISIBILITY=
6729 HAVE_VISIBILITY=0
6730 if test -n "$GCC"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6732$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6733 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006734 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006735else
Theodore Ts'o93613952014-07-03 23:44:13 -04006736
6737 gl_save_CFLAGS="$CFLAGS"
6738 CFLAGS="$CFLAGS -Werror"
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740/* end confdefs.h. */
6741
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006742int
6743main ()
6744{
Theodore Ts'o93613952014-07-03 23:44:13 -04006745
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006746 ;
6747 return 0;
6748}
6749_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006750if ac_fn_c_try_compile "$LINENO"; then :
6751 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006752else
Theodore Ts'o93613952014-07-03 23:44:13 -04006753 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006757fi
6758
Theodore Ts'o93613952014-07-03 23:44:13 -04006759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6760$as_echo "$gl_cv_cc_vis_werror" >&6; }
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6762$as_echo_n "checking for simple visibility declarations... " >&6; }
6763 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006764 $as_echo_n "(cached) " >&6
6765else
Theodore Ts'o93613952014-07-03 23:44:13 -04006766
6767 gl_save_CFLAGS="$CFLAGS"
6768 CFLAGS="$CFLAGS -fvisibility=hidden"
6769 if test $gl_cv_cc_vis_werror = yes; then
6770 CFLAGS="$CFLAGS -Werror"
6771 fi
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773/* end confdefs.h. */
6774extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6775 extern __attribute__((__visibility__("default"))) int exportedvar;
6776 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6777 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6778 void dummyfunc (void) {}
6779
6780int
6781main ()
6782{
6783
6784 ;
6785 return 0;
6786}
6787_ACEOF
6788if ac_fn_c_try_compile "$LINENO"; then :
6789 gl_cv_cc_visibility=yes
6790else
6791 gl_cv_cc_visibility=no
6792fi
6793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 CFLAGS="$gl_save_CFLAGS"
6795fi
6796
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6798$as_echo "$gl_cv_cc_visibility" >&6; }
6799 if test $gl_cv_cc_visibility = yes; then
6800 CFLAG_VISIBILITY="-fvisibility=hidden"
6801 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006802 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006803 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006804
6805
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006806
Theodore Ts'o93613952014-07-03 23:44:13 -04006807cat >>confdefs.h <<_ACEOF
6808#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006809_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006810
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006811
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006813$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006814if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006815 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816else
6817 ac_cv_c_inline=no
6818for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006820/* end confdefs.h. */
6821#ifndef __cplusplus
6822typedef int foo_t;
6823static $ac_kw foo_t static_foo () {return 0; }
6824$ac_kw foo_t foo () {return 0; }
6825#endif
6826
6827_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006828if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006829 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006833done
6834
6835fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006837$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006838
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006839case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006840 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006841 *)
6842 case $ac_cv_c_inline in
6843 no) ac_val=;;
6844 *) ac_val=$ac_cv_c_inline;;
6845 esac
6846 cat >>confdefs.h <<_ACEOF
6847#ifndef __cplusplus
6848#define inline $ac_val
6849#endif
6850_ACEOF
6851 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006852esac
6853
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006854ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006855if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006856
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006857else
6858
6859cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006860#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006861_ACEOF
6862
6863fi
6864
6865
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006867$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006868if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006869 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006870else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006872/* end confdefs.h. */
6873#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006874 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006875int
6876main ()
6877{
Theodore Ts'o93613952014-07-03 23:44:13 -04006878uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006879 ;
6880 return 0;
6881}
6882_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006883if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006884 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006885else
Theodore Ts'o93613952014-07-03 23:44:13 -04006886 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006887fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006889fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6891$as_echo "$gl_cv_header_stdint_h" >&6; }
6892 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006893
6894cat >>confdefs.h <<_ACEOF
6895#define HAVE_STDINT_H_WITH_UINTMAX 1
6896_ACEOF
6897
6898 fi
6899
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006900# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6901# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006903$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006904if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006905 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006906else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006908/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006909#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006910int
6911main ()
6912{
6913char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006914 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915 ;
6916 return 0;
6917}
6918_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006919if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006920 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006921else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006922 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006923fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006924rm -f core conftest.err conftest.$ac_objext \
6925 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006926fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006928$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006929if test $ac_cv_working_alloca_h = yes; then
6930
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006931$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006932
6933fi
6934
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006936$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006937if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006938 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006939else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006941/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006942#ifdef __GNUC__
6943# define alloca __builtin_alloca
6944#else
6945# ifdef _MSC_VER
6946# include <malloc.h>
6947# define alloca _alloca
6948# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006949# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006950# include <alloca.h>
6951# else
6952# ifdef _AIX
6953 #pragma alloca
6954# else
6955# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006956void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006957# endif
6958# endif
6959# endif
6960# endif
6961#endif
6962
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006963int
6964main ()
6965{
6966char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006967 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006968 ;
6969 return 0;
6970}
6971_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006972if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006973 ac_cv_func_alloca_works=yes
6974else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006975 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006977rm -f core conftest.err conftest.$ac_objext \
6978 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006981$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006982
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006983if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006984
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006985$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006986
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006987else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6989# that cause trouble. Some versions do not even contain alloca or
6990# contain a buggy version. If you still want to use their alloca,
6991# use ar to extract alloca.o from them instead of compiling alloca.c.
6992
Theodore Ts'oe1052142006-10-21 21:46:47 -04006993ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006994
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006995$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006996
6997
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006999$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007000if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007001 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007002else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007004/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007005#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007006webecray
7007#else
7008wenotbecray
7009#endif
7010
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007011_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007013 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007014 ac_cv_os_cray=yes
7015else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007016 ac_cv_os_cray=no
7017fi
7018rm -f conftest*
7019
7020fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007022$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007023if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007026ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007027if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007028
7029cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007030#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007031_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007032
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007033 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007034fi
7035
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007036 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007037fi
7038
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007040$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007041if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007042 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007043else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007044 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007045 ac_cv_c_stack_direction=0
7046else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007048/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007049$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007050int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007051find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007052{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007053 int dir, dummy = 0;
7054 if (! addr)
7055 addr = &dummy;
7056 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7057 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7058 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007059}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007060
7061int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007062main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007063{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007064 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007065}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007066_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007067if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007068 ac_cv_c_stack_direction=1
7069else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007070 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007071fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7073 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007074fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007075
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007076fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007078$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007079cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007080#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007081_ACEOF
7082
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007083
7084fi
7085
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007086
7087
7088
7089 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007090do :
7091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007092ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7093"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007094if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007095 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007096#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007097_ACEOF
7098
7099fi
7100
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007101done
7102
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007103
7104
7105
7106
7107
7108
7109
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007110for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007111do :
7112 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007113if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007114 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007115#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007116_ACEOF
7117
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007118fi
7119done
7120
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007122$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007123if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007124 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007125else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007126 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007127 ac_cv_func_mmap_fixed_mapped=no
7128else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007130/* end confdefs.h. */
7131$ac_includes_default
7132/* malloc might have been renamed as rpl_malloc. */
7133#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007134
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007135/* Thanks to Mike Haertel and Jim Avera for this test.
7136 Here is a matrix of mmap possibilities:
7137 mmap private not fixed
7138 mmap private fixed at somewhere currently unmapped
7139 mmap private fixed at somewhere already mapped
7140 mmap shared not fixed
7141 mmap shared fixed at somewhere currently unmapped
7142 mmap shared fixed at somewhere already mapped
7143 For private mappings, we should verify that changes cannot be read()
7144 back from the file, nor mmap's back from the file at a different
7145 address. (There have been systems where private was not correctly
7146 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007147 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007148 like early versions of FreeBSD and possibly contemporary NetBSD.)
7149 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007150 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007151
7152 Grep wants private fixed already mapped.
7153 The main things grep needs to know about mmap are:
7154 * does it exist and is it safe to write into the mmap'd area
7155 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007156
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007157#include <fcntl.h>
7158#include <sys/mman.h>
7159
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007160#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161char *malloc ();
7162#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007163
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007164/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007165#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007166# ifdef _SC_PAGESIZE
7167# define getpagesize() sysconf(_SC_PAGESIZE)
7168# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007169# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007170# include <sys/param.h>
7171# ifdef EXEC_PAGESIZE
7172# define getpagesize() EXEC_PAGESIZE
7173# else /* no EXEC_PAGESIZE */
7174# ifdef NBPG
7175# define getpagesize() NBPG * CLSIZE
7176# ifndef CLSIZE
7177# define CLSIZE 1
7178# endif /* no CLSIZE */
7179# else /* no NBPG */
7180# ifdef NBPC
7181# define getpagesize() NBPC
7182# else /* no NBPC */
7183# ifdef PAGESIZE
7184# define getpagesize() PAGESIZE
7185# endif /* PAGESIZE */
7186# endif /* no NBPC */
7187# endif /* no NBPG */
7188# endif /* no EXEC_PAGESIZE */
7189# else /* no HAVE_SYS_PARAM_H */
7190# define getpagesize() 8192 /* punt totally */
7191# endif /* no HAVE_SYS_PARAM_H */
7192# endif /* no _SC_PAGESIZE */
7193
7194#endif /* no HAVE_GETPAGESIZE */
7195
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007196int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007197main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007198{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007199 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007200 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007201 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007202 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007203
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007204 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007205
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007206 /* First, make a file with some known garbage in it. */
7207 data = (char *) malloc (pagesize);
7208 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007209 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007210 for (i = 0; i < pagesize; ++i)
7211 *(data + i) = rand ();
7212 umask (0);
7213 fd = creat ("conftest.mmap", 0600);
7214 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007215 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007216 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007217 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007218 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007219
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007220 /* Next, check that the tail of a page is zero-filled. File must have
7221 non-zero length, otherwise we risk SIGBUS for entire page. */
7222 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7223 if (fd2 < 0)
7224 return 4;
7225 cdata2 = "";
7226 if (write (fd2, cdata2, 1) != 1)
7227 return 5;
7228 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7229 if (data2 == MAP_FAILED)
7230 return 6;
7231 for (i = 0; i < pagesize; ++i)
7232 if (*(data2 + i))
7233 return 7;
7234 close (fd2);
7235 if (munmap (data2, pagesize))
7236 return 8;
7237
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007238 /* Next, try to mmap the file at a fixed address which already has
7239 something else allocated at it. If we can, also make sure that
7240 we see the same garbage. */
7241 fd = open ("conftest.mmap", O_RDWR);
7242 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007243 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007244 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7245 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007246 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007247 for (i = 0; i < pagesize; ++i)
7248 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007249 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007250
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007251 /* Finally, make sure that changes to the mapped area do not
7252 percolate back to the file as seen by read(). (This is a bug on
7253 some variants of i386 svr4.0.) */
7254 for (i = 0; i < pagesize; ++i)
7255 *(data2 + i) = *(data2 + i) + 1;
7256 data3 = (char *) malloc (pagesize);
7257 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007258 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007259 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007260 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007261 for (i = 0; i < pagesize; ++i)
7262 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007263 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007264 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007265 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007266}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007267_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007268if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007269 ac_cv_func_mmap_fixed_mapped=yes
7270else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007271 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007272fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7274 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007275fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007277fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007279$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007280if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007281
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007282$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007283
7284fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007285rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007286
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007288
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007290$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007291if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007292 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007293else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007294
Theodore Ts'o93613952014-07-03 23:44:13 -04007295 gt_cv_int_divbyzero_sigfpe=
7296 case "$host_os" in
7297 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7298 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7299 # compiling. If we were to perform the real test, 1 Crash Report
7300 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007301 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007302 i[34567]86 | x86_64)
7303 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007304 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007305 ;;
7306 esac
7307 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7308 if test "$cross_compiling" = yes; then :
7309
7310 # Guess based on the CPU.
7311 case "$host_cpu" in
7312 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7313 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7314 *)
7315 gt_cv_int_divbyzero_sigfpe="guessing no";;
7316 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007317
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007318else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007320/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007321
7322#include <stdlib.h>
7323#include <signal.h>
7324
7325static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007326sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007327{
7328 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7329 exit (sig != SIGFPE);
7330}
7331
7332int x = 1;
7333int y = 0;
7334int z;
7335int nan;
7336
7337int main ()
7338{
7339 signal (SIGFPE, sigfpe_handler);
7340/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7341#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7342 signal (SIGTRAP, sigfpe_handler);
7343#endif
7344/* Linux/SPARC yields signal SIGILL. */
7345#if defined (__sparc__) && defined (__linux__)
7346 signal (SIGILL, sigfpe_handler);
7347#endif
7348
7349 z = x / y;
7350 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007351 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007352}
7353
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007354_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007355if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007356 gt_cv_int_divbyzero_sigfpe=yes
7357else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007358 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007359fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7361 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007362fi
7363
Theodore Ts'o93613952014-07-03 23:44:13 -04007364 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007365
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007366fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007368$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007369 case "$gt_cv_int_divbyzero_sigfpe" in
7370 *yes) value=1;;
7371 *) value=0;;
7372 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007373
7374cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007375#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007376_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007377
7378
7379
Theodore Ts'o93613952014-07-03 23:44:13 -04007380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7381$as_echo_n "checking for inttypes.h... " >&6; }
7382if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007383 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007384else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007386/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007387
7388#include <sys/types.h>
7389#include <inttypes.h>
7390
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007391int
7392main ()
7393{
Theodore Ts'o93613952014-07-03 23:44:13 -04007394uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007395 ;
7396 return 0;
7397}
7398_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007399if ac_fn_c_try_compile "$LINENO"; then :
7400 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007401else
Theodore Ts'o93613952014-07-03 23:44:13 -04007402 gl_cv_header_inttypes_h=no
7403fi
7404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405fi
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7407$as_echo "$gl_cv_header_inttypes_h" >&6; }
7408 if test $gl_cv_header_inttypes_h = yes; then
7409
7410cat >>confdefs.h <<_ACEOF
7411#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7412_ACEOF
7413
7414 fi
7415
7416
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7418$as_echo_n "checking for unsigned long long int... " >&6; }
7419if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421else
7422 ac_cv_type_unsigned_long_long_int=yes
7423 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h. */
7426
7427 /* For now, do not test the preprocessor; as of 2007 there are too many
7428 implementations with broken preprocessors. Perhaps this can
7429 be revisited in 2012. In the meantime, code should not expect
7430 #if to work with literals wider than 32 bits. */
7431 /* Test literals. */
7432 long long int ll = 9223372036854775807ll;
7433 long long int nll = -9223372036854775807LL;
7434 unsigned long long int ull = 18446744073709551615ULL;
7435 /* Test constant expressions. */
7436 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7437 ? 1 : -1)];
7438 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7439 ? 1 : -1)];
7440 int i = 63;
7441int
7442main ()
7443{
7444/* Test availability of runtime routines for shift and division. */
7445 long long int llmax = 9223372036854775807ll;
7446 unsigned long long int ullmax = 18446744073709551615ull;
7447 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7448 | (llmax / ll) | (llmax % ll)
7449 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7450 | (ullmax / ull) | (ullmax % ull));
7451 ;
7452 return 0;
7453}
7454
7455_ACEOF
7456if ac_fn_c_try_link "$LINENO"; then :
7457
7458else
7459 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007460fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007461rm -f core conftest.err conftest.$ac_objext \
7462 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007463 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7466$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7467 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007468
Theodore Ts'o93613952014-07-03 23:44:13 -04007469$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007470
7471 fi
7472
7473
7474
7475
Theodore Ts'o93613952014-07-03 23:44:13 -04007476 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007477
Theodore Ts'o93613952014-07-03 23:44:13 -04007478 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007479 && ac_type='unsigned long long' \
7480 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007481
7482cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007483#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007484_ACEOF
7485
7486 else
7487
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007488$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007489
7490 fi
7491
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007492
Theodore Ts'o93613952014-07-03 23:44:13 -04007493 for ac_header in inttypes.h
7494do :
7495 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7496if test "x$ac_cv_header_inttypes_h" = xyes; then :
7497 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007498#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007499_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007500
Theodore Ts'o93613952014-07-03 23:44:13 -04007501fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007502
Theodore Ts'o93613952014-07-03 23:44:13 -04007503done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007504
Theodore Ts'o93613952014-07-03 23:44:13 -04007505 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007506 { $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 +01007507$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007508if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007509 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007510else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007511
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007513/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007514
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007515#include <inttypes.h>
7516#ifdef PRId32
7517char *p = PRId32;
7518#endif
7519
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007520int
7521main ()
7522{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007524 ;
7525 return 0;
7526}
7527_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007528if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007529 gt_cv_inttypes_pri_broken=no
7530else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007531 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007534
7535fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007537$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007538 fi
7539 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007540
7541cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007542#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007543_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007544
Theodore Ts'o93613952014-07-03 23:44:13 -04007545 PRI_MACROS_BROKEN=1
7546 else
7547 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007548 fi
7549
7550
7551
Theodore Ts'o93613952014-07-03 23:44:13 -04007552
7553
7554
7555
7556 # Check whether --enable-threads was given.
7557if test "${enable_threads+set}" = set; then :
7558 enableval=$enable_threads; gl_use_threads=$enableval
7559else
7560 if test -n "$gl_use_threads_default"; then
7561 gl_use_threads="$gl_use_threads_default"
7562 else
7563 case "$host_os" in
7564 osf*) gl_use_threads=no ;;
7565 cygwin*)
7566 case `uname -r` in
7567 1.[0-5].*) gl_use_threads=no ;;
7568 *) gl_use_threads=yes ;;
7569 esac
7570 ;;
7571 *) gl_use_threads=yes ;;
7572 esac
7573 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007574
7575fi
7576
Theodore Ts'o93613952014-07-03 23:44:13 -04007577 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7578 # For using <pthread.h>:
7579 case "$host_os" in
7580 osf*)
7581 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7582 # groks <pthread.h>. cc also understands the flag -pthread, but
7583 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7584 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7585 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7586 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7587 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7588 ;;
7589 esac
7590 # Some systems optimize for single-threaded programs by default, and
7591 # need special flags to disable these optimizations. For example, the
7592 # definition of 'errno' in <errno.h>.
7593 case "$host_os" in
7594 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7595 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7596 esac
7597 fi
7598
7599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007600
7601
7602
7603 if test "X$prefix" = "XNONE"; then
7604 acl_final_prefix="$ac_default_prefix"
7605 else
7606 acl_final_prefix="$prefix"
7607 fi
7608 if test "X$exec_prefix" = "XNONE"; then
7609 acl_final_exec_prefix='${prefix}'
7610 else
7611 acl_final_exec_prefix="$exec_prefix"
7612 fi
7613 acl_save_prefix="$prefix"
7614 prefix="$acl_final_prefix"
7615 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7616 prefix="$acl_save_prefix"
7617
7618
Theodore Ts'o93613952014-07-03 23:44:13 -04007619
Theodore Ts'oe1052142006-10-21 21:46:47 -04007620# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007621if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007622 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007623else
7624 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007625fi
7626
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007627# Prepare PATH_SEPARATOR.
7628# The user is always right.
7629if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007630 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7631 # contains only /bin. Note that ksh looks also at the FPATH variable,
7632 # so we have to set that as well for the test.
7633 PATH_SEPARATOR=:
7634 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7635 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7636 || PATH_SEPARATOR=';'
7637 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007638fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007639
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007640ac_prog=ld
7641if test "$GCC" = yes; then
7642 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7644$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007645 case $host in
7646 *-*-mingw*)
7647 # gcc leaves a trailing carriage return which upsets mingw
7648 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7649 *)
7650 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7651 esac
7652 case $ac_prog in
7653 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007654 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007655 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007656 # Canonicalize the pathname of ld
7657 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7658 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7659 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007660 done
7661 test -z "$LD" && LD="$ac_prog"
7662 ;;
7663 "")
7664 # If it fails, then pretend we aren't using GCC.
7665 ac_prog=ld
7666 ;;
7667 *)
7668 # If it is relative, then search for the first ld in PATH.
7669 with_gnu_ld=unknown
7670 ;;
7671 esac
7672elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007674$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007675else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007677$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007678fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007679if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007680 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007681else
7682 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007683 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007684 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007685 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007686 test -z "$ac_dir" && ac_dir=.
7687 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7688 acl_cv_path_LD="$ac_dir/$ac_prog"
7689 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007690 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007691 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007692 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007693 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007694 test "$with_gnu_ld" != no && break
7695 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007696 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007697 test "$with_gnu_ld" != yes && break
7698 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007699 esac
7700 fi
7701 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007702 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007703else
7704 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7705fi
7706fi
7707
7708LD="$acl_cv_path_LD"
7709if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007711$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007712else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007714$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007715fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007716test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007718$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007719if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007720 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007721else
Theodore Ts'o93613952014-07-03 23:44:13 -04007722 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007723case `$LD -v 2>&1 </dev/null` in
7724*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007725 acl_cv_prog_gnu_ld=yes
7726 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007727*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007728 acl_cv_prog_gnu_ld=no
7729 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007730esac
7731fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007733$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007734with_gnu_ld=$acl_cv_prog_gnu_ld
7735
7736
7737
Theodore Ts'o93613952014-07-03 23:44:13 -04007738
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007740$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007741if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007742 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007743else
7744
7745 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7746 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7747 . ./conftest.sh
7748 rm -f ./conftest.sh
7749 acl_cv_rpath=done
7750
7751fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007753$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007754 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007755 acl_libext="$acl_cv_libext"
7756 acl_shlibext="$acl_cv_shlibext"
7757 acl_libname_spec="$acl_cv_libname_spec"
7758 acl_library_names_spec="$acl_cv_library_names_spec"
7759 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7760 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7761 acl_hardcode_direct="$acl_cv_hardcode_direct"
7762 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007763 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007764if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007765 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007766else
7767 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007768fi
7769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007770
7771
7772
Theodore Ts'o93613952014-07-03 23:44:13 -04007773 acl_libdirstem=lib
7774 acl_libdirstem2=
7775 case "$host_os" in
7776 solaris*)
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7778$as_echo_n "checking for 64-bit host... " >&6; }
7779if ${gl_cv_solaris_64bit+:} false; then :
7780 $as_echo_n "(cached) " >&6
7781else
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783/* end confdefs.h. */
7784
7785#ifdef _LP64
7786sixtyfour bits
7787#endif
7788
7789_ACEOF
7790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7791 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7792 gl_cv_solaris_64bit=yes
7793else
7794 gl_cv_solaris_64bit=no
7795fi
7796rm -f conftest*
7797
7798
7799fi
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7801$as_echo "$gl_cv_solaris_64bit" >&6; }
7802 if test $gl_cv_solaris_64bit = yes; then
7803 acl_libdirstem=lib/64
7804 case "$host_cpu" in
7805 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7806 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7807 esac
7808 fi
7809 ;;
7810 *)
7811 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7812 if test -n "$searchpath"; then
7813 acl_save_IFS="${IFS= }"; IFS=":"
7814 for searchdir in $searchpath; do
7815 if test -d "$searchdir"; then
7816 case "$searchdir" in
7817 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7818 */../ | */.. )
7819 # Better ignore directories of this form. They are misleading.
7820 ;;
7821 *) searchdir=`cd "$searchdir" && pwd`
7822 case "$searchdir" in
7823 */lib64 ) acl_libdirstem=lib64 ;;
7824 esac ;;
7825 esac
7826 fi
7827 done
7828 IFS="$acl_save_IFS"
7829 fi
7830 ;;
7831 esac
7832 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7833
7834
7835
7836 gl_threads_api=none
7837 LIBTHREAD=
7838 LTLIBTHREAD=
7839 LIBMULTITHREAD=
7840 LTLIBMULTITHREAD=
7841 if test "$gl_use_threads" != no; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7843$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7844if ${gl_cv_have_weak+:} false; then :
7845 $as_echo_n "(cached) " >&6
7846else
7847 gl_cv_have_weak=no
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849/* end confdefs.h. */
7850extern void xyzzy ();
7851#pragma weak xyzzy
7852int
7853main ()
7854{
7855xyzzy();
7856 ;
7857 return 0;
7858}
7859_ACEOF
7860if ac_fn_c_try_link "$LINENO"; then :
7861 gl_cv_have_weak=maybe
7862fi
7863rm -f core conftest.err conftest.$ac_objext \
7864 conftest$ac_exeext conftest.$ac_ext
7865 if test $gl_cv_have_weak = maybe; then
7866 if test "$cross_compiling" = yes; then :
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h. */
7869#ifdef __ELF__
7870 Extensible Linking Format
7871 #endif
7872
7873_ACEOF
7874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7875 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7876 gl_cv_have_weak="guessing yes"
7877else
7878 gl_cv_have_weak="guessing no"
7879fi
7880rm -f conftest*
7881
7882
7883else
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885/* end confdefs.h. */
7886
7887#include <stdio.h>
7888#pragma weak fputs
7889int main ()
7890{
7891 return (fputs == NULL);
7892}
7893_ACEOF
7894if ac_fn_c_try_run "$LINENO"; then :
7895 gl_cv_have_weak=yes
7896else
7897 gl_cv_have_weak=no
7898fi
7899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7900 conftest.$ac_objext conftest.beam conftest.$ac_ext
7901fi
7902
7903 fi
7904
7905fi
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7907$as_echo "$gl_cv_have_weak" >&6; }
7908 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7909 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7910 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7911 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7912if test "x$ac_cv_header_pthread_h" = xyes; then :
7913 gl_have_pthread_h=yes
7914else
7915 gl_have_pthread_h=no
7916fi
7917
7918
7919 if test "$gl_have_pthread_h" = yes; then
7920 # Other possible tests:
7921 # -lpthreads (FSU threads, PCthreads)
7922 # -lgthreads
7923 gl_have_pthread=
7924 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7925 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7926 # the second one only in libpthread, and lock.c needs it.
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928/* end confdefs.h. */
7929#include <pthread.h>
7930int
7931main ()
7932{
7933pthread_mutex_lock((pthread_mutex_t*)0);
7934 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7935 ;
7936 return 0;
7937}
7938_ACEOF
7939if ac_fn_c_try_link "$LINENO"; then :
7940 gl_have_pthread=yes
7941fi
7942rm -f core conftest.err conftest.$ac_objext \
7943 conftest$ac_exeext conftest.$ac_ext
7944 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7945 # since it is defined as a macro on OSF/1.)
7946 if test -n "$gl_have_pthread"; then
7947 # The program links fine without libpthread. But it may actually
7948 # need to link with libpthread in order to create multiple threads.
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7950$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7951if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7952 $as_echo_n "(cached) " >&6
7953else
7954 ac_check_lib_save_LIBS=$LIBS
7955LIBS="-lpthread $LIBS"
7956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957/* end confdefs.h. */
7958
7959/* Override any GCC internal prototype to avoid an error.
7960 Use char because int might match the return type of a GCC
7961 builtin and then its argument prototype would still apply. */
7962#ifdef __cplusplus
7963extern "C"
7964#endif
7965char pthread_kill ();
7966int
7967main ()
7968{
7969return pthread_kill ();
7970 ;
7971 return 0;
7972}
7973_ACEOF
7974if ac_fn_c_try_link "$LINENO"; then :
7975 ac_cv_lib_pthread_pthread_kill=yes
7976else
7977 ac_cv_lib_pthread_pthread_kill=no
7978fi
7979rm -f core conftest.err conftest.$ac_objext \
7980 conftest$ac_exeext conftest.$ac_ext
7981LIBS=$ac_check_lib_save_LIBS
7982fi
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7984$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7985if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7986 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7987 # On Solaris and HP-UX, most pthread functions exist also in libc.
7988 # Therefore pthread_in_use() needs to actually try to create a
7989 # thread: pthread_create from libc will fail, whereas
7990 # pthread_create will actually create a thread.
7991 case "$host_os" in
7992 solaris* | hpux*)
7993
7994$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7995
7996 esac
7997
7998fi
7999
8000 else
8001 # Some library is needed. Try libpthread and libc_r.
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8003$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8004if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8005 $as_echo_n "(cached) " >&6
8006else
8007 ac_check_lib_save_LIBS=$LIBS
8008LIBS="-lpthread $LIBS"
8009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010/* end confdefs.h. */
8011
8012/* Override any GCC internal prototype to avoid an error.
8013 Use char because int might match the return type of a GCC
8014 builtin and then its argument prototype would still apply. */
8015#ifdef __cplusplus
8016extern "C"
8017#endif
8018char pthread_kill ();
8019int
8020main ()
8021{
8022return pthread_kill ();
8023 ;
8024 return 0;
8025}
8026_ACEOF
8027if ac_fn_c_try_link "$LINENO"; then :
8028 ac_cv_lib_pthread_pthread_kill=yes
8029else
8030 ac_cv_lib_pthread_pthread_kill=no
8031fi
8032rm -f core conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8034LIBS=$ac_check_lib_save_LIBS
8035fi
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8037$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8038if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8039 gl_have_pthread=yes
8040 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8041 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8042fi
8043
8044 if test -z "$gl_have_pthread"; then
8045 # For FreeBSD 4.
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8047$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8048if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050else
8051 ac_check_lib_save_LIBS=$LIBS
8052LIBS="-lc_r $LIBS"
8053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h. */
8055
8056/* Override any GCC internal prototype to avoid an error.
8057 Use char because int might match the return type of a GCC
8058 builtin and then its argument prototype would still apply. */
8059#ifdef __cplusplus
8060extern "C"
8061#endif
8062char pthread_kill ();
8063int
8064main ()
8065{
8066return pthread_kill ();
8067 ;
8068 return 0;
8069}
8070_ACEOF
8071if ac_fn_c_try_link "$LINENO"; then :
8072 ac_cv_lib_c_r_pthread_kill=yes
8073else
8074 ac_cv_lib_c_r_pthread_kill=no
8075fi
8076rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
8078LIBS=$ac_check_lib_save_LIBS
8079fi
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8081$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8082if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8083 gl_have_pthread=yes
8084 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8085 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8086fi
8087
8088 fi
8089 fi
8090 if test -n "$gl_have_pthread"; then
8091 gl_threads_api=posix
8092
8093$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8094
8095 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8096 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8097
8098$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8099
8100 LIBTHREAD=
8101 LTLIBTHREAD=
8102 fi
8103 fi
8104 fi
8105 fi
8106 fi
8107 if test -z "$gl_have_pthread"; then
8108 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8109 gl_have_solaristhread=
8110 gl_save_LIBS="$LIBS"
8111 LIBS="$LIBS -lthread"
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113/* end confdefs.h. */
8114
8115#include <thread.h>
8116#include <synch.h>
8117
8118int
8119main ()
8120{
8121thr_self();
8122 ;
8123 return 0;
8124}
8125_ACEOF
8126if ac_fn_c_try_link "$LINENO"; then :
8127 gl_have_solaristhread=yes
8128fi
8129rm -f core conftest.err conftest.$ac_objext \
8130 conftest$ac_exeext conftest.$ac_ext
8131 LIBS="$gl_save_LIBS"
8132 if test -n "$gl_have_solaristhread"; then
8133 gl_threads_api=solaris
8134 LIBTHREAD=-lthread
8135 LTLIBTHREAD=-lthread
8136 LIBMULTITHREAD="$LIBTHREAD"
8137 LTLIBMULTITHREAD="$LTLIBTHREAD"
8138
8139$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8140
8141 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8142
8143$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8144
8145 LIBTHREAD=
8146 LTLIBTHREAD=
8147 fi
8148 fi
8149 fi
8150 fi
8151 if test "$gl_use_threads" = pth; then
8152 gl_save_CPPFLAGS="$CPPFLAGS"
8153
8154
8155
8156
8157
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8159$as_echo_n "checking how to link with libpth... " >&6; }
8160if ${ac_cv_libpth_libs+:} false; then :
8161 $as_echo_n "(cached) " >&6
8162else
8163
8164
8165
8166
8167
8168
8169
8170
8171 use_additional=yes
8172
8173 acl_save_prefix="$prefix"
8174 prefix="$acl_final_prefix"
8175 acl_save_exec_prefix="$exec_prefix"
8176 exec_prefix="$acl_final_exec_prefix"
8177
8178 eval additional_includedir=\"$includedir\"
8179 eval additional_libdir=\"$libdir\"
8180
8181 exec_prefix="$acl_save_exec_prefix"
8182 prefix="$acl_save_prefix"
8183
8184
8185# Check whether --with-libpth-prefix was given.
8186if test "${with_libpth_prefix+set}" = set; then :
8187 withval=$with_libpth_prefix;
8188 if test "X$withval" = "Xno"; then
8189 use_additional=no
8190 else
8191 if test "X$withval" = "X"; then
8192
8193 acl_save_prefix="$prefix"
8194 prefix="$acl_final_prefix"
8195 acl_save_exec_prefix="$exec_prefix"
8196 exec_prefix="$acl_final_exec_prefix"
8197
8198 eval additional_includedir=\"$includedir\"
8199 eval additional_libdir=\"$libdir\"
8200
8201 exec_prefix="$acl_save_exec_prefix"
8202 prefix="$acl_save_prefix"
8203
8204 else
8205 additional_includedir="$withval/include"
8206 additional_libdir="$withval/$acl_libdirstem"
8207 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8208 && ! test -d "$withval/$acl_libdirstem"; then
8209 additional_libdir="$withval/$acl_libdirstem2"
8210 fi
8211 fi
8212 fi
8213
8214fi
8215
8216 LIBPTH=
8217 LTLIBPTH=
8218 INCPTH=
8219 LIBPTH_PREFIX=
8220 HAVE_LIBPTH=
8221 rpathdirs=
8222 ltrpathdirs=
8223 names_already_handled=
8224 names_next_round='pth '
8225 while test -n "$names_next_round"; do
8226 names_this_round="$names_next_round"
8227 names_next_round=
8228 for name in $names_this_round; do
8229 already_handled=
8230 for n in $names_already_handled; do
8231 if test "$n" = "$name"; then
8232 already_handled=yes
8233 break
8234 fi
8235 done
8236 if test -z "$already_handled"; then
8237 names_already_handled="$names_already_handled $name"
8238 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8239 eval value=\"\$HAVE_LIB$uppername\"
8240 if test -n "$value"; then
8241 if test "$value" = yes; then
8242 eval value=\"\$LIB$uppername\"
8243 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8244 eval value=\"\$LTLIB$uppername\"
8245 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8246 else
8247 :
8248 fi
8249 else
8250 found_dir=
8251 found_la=
8252 found_so=
8253 found_a=
8254 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8255 if test -n "$acl_shlibext"; then
8256 shrext=".$acl_shlibext" # typically: shrext=.so
8257 else
8258 shrext=
8259 fi
8260 if test $use_additional = yes; then
8261 dir="$additional_libdir"
8262 if test -n "$acl_shlibext"; then
8263 if test -f "$dir/$libname$shrext"; then
8264 found_dir="$dir"
8265 found_so="$dir/$libname$shrext"
8266 else
8267 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8268 ver=`(cd "$dir" && \
8269 for f in "$libname$shrext".*; do echo "$f"; done \
8270 | sed -e "s,^$libname$shrext\\\\.,," \
8271 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8272 | sed 1q ) 2>/dev/null`
8273 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8274 found_dir="$dir"
8275 found_so="$dir/$libname$shrext.$ver"
8276 fi
8277 else
8278 eval library_names=\"$acl_library_names_spec\"
8279 for f in $library_names; do
8280 if test -f "$dir/$f"; then
8281 found_dir="$dir"
8282 found_so="$dir/$f"
8283 break
8284 fi
8285 done
8286 fi
8287 fi
8288 fi
8289 if test "X$found_dir" = "X"; then
8290 if test -f "$dir/$libname.$acl_libext"; then
8291 found_dir="$dir"
8292 found_a="$dir/$libname.$acl_libext"
8293 fi
8294 fi
8295 if test "X$found_dir" != "X"; then
8296 if test -f "$dir/$libname.la"; then
8297 found_la="$dir/$libname.la"
8298 fi
8299 fi
8300 fi
8301 if test "X$found_dir" = "X"; then
8302 for x in $LDFLAGS $LTLIBPTH; do
8303
8304 acl_save_prefix="$prefix"
8305 prefix="$acl_final_prefix"
8306 acl_save_exec_prefix="$exec_prefix"
8307 exec_prefix="$acl_final_exec_prefix"
8308 eval x=\"$x\"
8309 exec_prefix="$acl_save_exec_prefix"
8310 prefix="$acl_save_prefix"
8311
8312 case "$x" in
8313 -L*)
8314 dir=`echo "X$x" | sed -e 's/^X-L//'`
8315 if test -n "$acl_shlibext"; then
8316 if test -f "$dir/$libname$shrext"; then
8317 found_dir="$dir"
8318 found_so="$dir/$libname$shrext"
8319 else
8320 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8321 ver=`(cd "$dir" && \
8322 for f in "$libname$shrext".*; do echo "$f"; done \
8323 | sed -e "s,^$libname$shrext\\\\.,," \
8324 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8325 | sed 1q ) 2>/dev/null`
8326 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8327 found_dir="$dir"
8328 found_so="$dir/$libname$shrext.$ver"
8329 fi
8330 else
8331 eval library_names=\"$acl_library_names_spec\"
8332 for f in $library_names; do
8333 if test -f "$dir/$f"; then
8334 found_dir="$dir"
8335 found_so="$dir/$f"
8336 break
8337 fi
8338 done
8339 fi
8340 fi
8341 fi
8342 if test "X$found_dir" = "X"; then
8343 if test -f "$dir/$libname.$acl_libext"; then
8344 found_dir="$dir"
8345 found_a="$dir/$libname.$acl_libext"
8346 fi
8347 fi
8348 if test "X$found_dir" != "X"; then
8349 if test -f "$dir/$libname.la"; then
8350 found_la="$dir/$libname.la"
8351 fi
8352 fi
8353 ;;
8354 esac
8355 if test "X$found_dir" != "X"; then
8356 break
8357 fi
8358 done
8359 fi
8360 if test "X$found_dir" != "X"; then
8361 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8362 if test "X$found_so" != "X"; then
8363 if test "$enable_rpath" = no \
8364 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8365 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8366 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8367 else
8368 haveit=
8369 for x in $ltrpathdirs; do
8370 if test "X$x" = "X$found_dir"; then
8371 haveit=yes
8372 break
8373 fi
8374 done
8375 if test -z "$haveit"; then
8376 ltrpathdirs="$ltrpathdirs $found_dir"
8377 fi
8378 if test "$acl_hardcode_direct" = yes; then
8379 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8380 else
8381 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8382 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8383 haveit=
8384 for x in $rpathdirs; do
8385 if test "X$x" = "X$found_dir"; then
8386 haveit=yes
8387 break
8388 fi
8389 done
8390 if test -z "$haveit"; then
8391 rpathdirs="$rpathdirs $found_dir"
8392 fi
8393 else
8394 haveit=
8395 for x in $LDFLAGS $LIBPTH; do
8396
8397 acl_save_prefix="$prefix"
8398 prefix="$acl_final_prefix"
8399 acl_save_exec_prefix="$exec_prefix"
8400 exec_prefix="$acl_final_exec_prefix"
8401 eval x=\"$x\"
8402 exec_prefix="$acl_save_exec_prefix"
8403 prefix="$acl_save_prefix"
8404
8405 if test "X$x" = "X-L$found_dir"; then
8406 haveit=yes
8407 break
8408 fi
8409 done
8410 if test -z "$haveit"; then
8411 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8412 fi
8413 if test "$acl_hardcode_minus_L" != no; then
8414 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8415 else
8416 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8417 fi
8418 fi
8419 fi
8420 fi
8421 else
8422 if test "X$found_a" != "X"; then
8423 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8424 else
8425 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8426 fi
8427 fi
8428 additional_includedir=
8429 case "$found_dir" in
8430 */$acl_libdirstem | */$acl_libdirstem/)
8431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8432 if test "$name" = 'pth'; then
8433 LIBPTH_PREFIX="$basedir"
8434 fi
8435 additional_includedir="$basedir/include"
8436 ;;
8437 */$acl_libdirstem2 | */$acl_libdirstem2/)
8438 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8439 if test "$name" = 'pth'; then
8440 LIBPTH_PREFIX="$basedir"
8441 fi
8442 additional_includedir="$basedir/include"
8443 ;;
8444 esac
8445 if test "X$additional_includedir" != "X"; then
8446 if test "X$additional_includedir" != "X/usr/include"; then
8447 haveit=
8448 if test "X$additional_includedir" = "X/usr/local/include"; then
8449 if test -n "$GCC"; then
8450 case $host_os in
8451 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8452 esac
8453 fi
8454 fi
8455 if test -z "$haveit"; then
8456 for x in $CPPFLAGS $INCPTH; do
8457
8458 acl_save_prefix="$prefix"
8459 prefix="$acl_final_prefix"
8460 acl_save_exec_prefix="$exec_prefix"
8461 exec_prefix="$acl_final_exec_prefix"
8462 eval x=\"$x\"
8463 exec_prefix="$acl_save_exec_prefix"
8464 prefix="$acl_save_prefix"
8465
8466 if test "X$x" = "X-I$additional_includedir"; then
8467 haveit=yes
8468 break
8469 fi
8470 done
8471 if test -z "$haveit"; then
8472 if test -d "$additional_includedir"; then
8473 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8474 fi
8475 fi
8476 fi
8477 fi
8478 fi
8479 if test -n "$found_la"; then
8480 save_libdir="$libdir"
8481 case "$found_la" in
8482 */* | *\\*) . "$found_la" ;;
8483 *) . "./$found_la" ;;
8484 esac
8485 libdir="$save_libdir"
8486 for dep in $dependency_libs; do
8487 case "$dep" in
8488 -L*)
8489 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8490 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8491 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8492 haveit=
8493 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8494 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8495 if test -n "$GCC"; then
8496 case $host_os in
8497 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8498 esac
8499 fi
8500 fi
8501 if test -z "$haveit"; then
8502 haveit=
8503 for x in $LDFLAGS $LIBPTH; do
8504
8505 acl_save_prefix="$prefix"
8506 prefix="$acl_final_prefix"
8507 acl_save_exec_prefix="$exec_prefix"
8508 exec_prefix="$acl_final_exec_prefix"
8509 eval x=\"$x\"
8510 exec_prefix="$acl_save_exec_prefix"
8511 prefix="$acl_save_prefix"
8512
8513 if test "X$x" = "X-L$additional_libdir"; then
8514 haveit=yes
8515 break
8516 fi
8517 done
8518 if test -z "$haveit"; then
8519 if test -d "$additional_libdir"; then
8520 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8521 fi
8522 fi
8523 haveit=
8524 for x in $LDFLAGS $LTLIBPTH; do
8525
8526 acl_save_prefix="$prefix"
8527 prefix="$acl_final_prefix"
8528 acl_save_exec_prefix="$exec_prefix"
8529 exec_prefix="$acl_final_exec_prefix"
8530 eval x=\"$x\"
8531 exec_prefix="$acl_save_exec_prefix"
8532 prefix="$acl_save_prefix"
8533
8534 if test "X$x" = "X-L$additional_libdir"; then
8535 haveit=yes
8536 break
8537 fi
8538 done
8539 if test -z "$haveit"; then
8540 if test -d "$additional_libdir"; then
8541 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8542 fi
8543 fi
8544 fi
8545 fi
8546 ;;
8547 -R*)
8548 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8549 if test "$enable_rpath" != no; then
8550 haveit=
8551 for x in $rpathdirs; do
8552 if test "X$x" = "X$dir"; then
8553 haveit=yes
8554 break
8555 fi
8556 done
8557 if test -z "$haveit"; then
8558 rpathdirs="$rpathdirs $dir"
8559 fi
8560 haveit=
8561 for x in $ltrpathdirs; do
8562 if test "X$x" = "X$dir"; then
8563 haveit=yes
8564 break
8565 fi
8566 done
8567 if test -z "$haveit"; then
8568 ltrpathdirs="$ltrpathdirs $dir"
8569 fi
8570 fi
8571 ;;
8572 -l*)
8573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8574 ;;
8575 *.la)
8576 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8577 ;;
8578 *)
8579 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8580 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8581 ;;
8582 esac
8583 done
8584 fi
8585 else
8586 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8587 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8588 fi
8589 fi
8590 fi
8591 done
8592 done
8593 if test "X$rpathdirs" != "X"; then
8594 if test -n "$acl_hardcode_libdir_separator"; then
8595 alldirs=
8596 for found_dir in $rpathdirs; do
8597 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8598 done
8599 acl_save_libdir="$libdir"
8600 libdir="$alldirs"
8601 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8602 libdir="$acl_save_libdir"
8603 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8604 else
8605 for found_dir in $rpathdirs; do
8606 acl_save_libdir="$libdir"
8607 libdir="$found_dir"
8608 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8609 libdir="$acl_save_libdir"
8610 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8611 done
8612 fi
8613 fi
8614 if test "X$ltrpathdirs" != "X"; then
8615 for found_dir in $ltrpathdirs; do
8616 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8617 done
8618 fi
8619
8620
8621
8622
8623
8624
8625 ac_cv_libpth_libs="$LIBPTH"
8626 ac_cv_libpth_ltlibs="$LTLIBPTH"
8627 ac_cv_libpth_cppflags="$INCPTH"
8628 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8629
8630fi
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8632$as_echo "$ac_cv_libpth_libs" >&6; }
8633 LIBPTH="$ac_cv_libpth_libs"
8634 LTLIBPTH="$ac_cv_libpth_ltlibs"
8635 INCPTH="$ac_cv_libpth_cppflags"
8636 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8637
8638 for element in $INCPTH; do
8639 haveit=
8640 for x in $CPPFLAGS; do
8641
8642 acl_save_prefix="$prefix"
8643 prefix="$acl_final_prefix"
8644 acl_save_exec_prefix="$exec_prefix"
8645 exec_prefix="$acl_final_exec_prefix"
8646 eval x=\"$x\"
8647 exec_prefix="$acl_save_exec_prefix"
8648 prefix="$acl_save_prefix"
8649
8650 if test "X$x" = "X$element"; then
8651 haveit=yes
8652 break
8653 fi
8654 done
8655 if test -z "$haveit"; then
8656 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8657 fi
8658 done
8659
8660
8661
8662
8663 HAVE_LIBPTH=yes
8664
8665
8666
8667 gl_have_pth=
8668 gl_save_LIBS="$LIBS"
8669 LIBS="$LIBS $LIBPTH"
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671/* end confdefs.h. */
8672#include <pth.h>
8673int
8674main ()
8675{
8676pth_self();
8677 ;
8678 return 0;
8679}
8680_ACEOF
8681if ac_fn_c_try_link "$LINENO"; then :
8682 gl_have_pth=yes
8683fi
8684rm -f core conftest.err conftest.$ac_objext \
8685 conftest$ac_exeext conftest.$ac_ext
8686 LIBS="$gl_save_LIBS"
8687 if test -n "$gl_have_pth"; then
8688 gl_threads_api=pth
8689 LIBTHREAD="$LIBPTH"
8690 LTLIBTHREAD="$LTLIBPTH"
8691 LIBMULTITHREAD="$LIBTHREAD"
8692 LTLIBMULTITHREAD="$LTLIBTHREAD"
8693
8694$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8695
8696 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8697 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8698
8699$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8700
8701 LIBTHREAD=
8702 LTLIBTHREAD=
8703 fi
8704 fi
8705 else
8706 CPPFLAGS="$gl_save_CPPFLAGS"
8707 fi
8708 fi
8709 if test -z "$gl_have_pthread"; then
8710 case "$gl_use_threads" in
8711 yes | windows | win32) # The 'win32' is for backward compatibility.
8712 if { case "$host_os" in
8713 mingw*) true;;
8714 *) false;;
8715 esac
8716 }; then
8717 gl_threads_api=windows
8718
8719$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8720
8721 fi
8722 ;;
8723 esac
8724 fi
8725 fi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8727$as_echo_n "checking for multithread API to use... " >&6; }
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8729$as_echo "$gl_threads_api" >&6; }
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741 if test "$gl_threads_api" = posix; then
8742 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8743 # pthread_rwlock_* functions.
8744 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8745"
8746if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8747
8748$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8749
8750fi
8751
8752 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754/* end confdefs.h. */
8755
8756 #include <pthread.h>
8757int
8758main ()
8759{
8760
8761#if __FreeBSD__ == 4
8762error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8763#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8764 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8765error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8766#else
8767int x = (int)PTHREAD_MUTEX_RECURSIVE;
8768return !x;
8769#endif
8770
8771 ;
8772 return 0;
8773}
8774_ACEOF
8775if ac_fn_c_try_compile "$LINENO"; then :
8776
8777$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8778
8779fi
8780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 fi
8782 :
8783
8784
8785
8786
8787
8788
8789
8790
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008791
8792
8793
8794
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008795 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008796
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008797 acl_save_prefix="$prefix"
8798 prefix="$acl_final_prefix"
8799 acl_save_exec_prefix="$exec_prefix"
8800 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008801
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008802 eval additional_includedir=\"$includedir\"
8803 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008804
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008805 exec_prefix="$acl_save_exec_prefix"
8806 prefix="$acl_save_prefix"
8807
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008808
Theodore Ts'oe1052142006-10-21 21:46:47 -04008809# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008810if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008811 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008812 if test "X$withval" = "Xno"; then
8813 use_additional=no
8814 else
8815 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008816
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008817 acl_save_prefix="$prefix"
8818 prefix="$acl_final_prefix"
8819 acl_save_exec_prefix="$exec_prefix"
8820 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008821
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008822 eval additional_includedir=\"$includedir\"
8823 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008824
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008825 exec_prefix="$acl_save_exec_prefix"
8826 prefix="$acl_save_prefix"
8827
8828 else
8829 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008830 additional_libdir="$withval/$acl_libdirstem"
8831 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8832 && ! test -d "$withval/$acl_libdirstem"; then
8833 additional_libdir="$withval/$acl_libdirstem2"
8834 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008835 fi
8836 fi
8837
Theodore Ts'oe1052142006-10-21 21:46:47 -04008838fi
8839
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008840 LIBICONV=
8841 LTLIBICONV=
8842 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008843 LIBICONV_PREFIX=
8844 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008845 rpathdirs=
8846 ltrpathdirs=
8847 names_already_handled=
8848 names_next_round='iconv '
8849 while test -n "$names_next_round"; do
8850 names_this_round="$names_next_round"
8851 names_next_round=
8852 for name in $names_this_round; do
8853 already_handled=
8854 for n in $names_already_handled; do
8855 if test "$n" = "$name"; then
8856 already_handled=yes
8857 break
8858 fi
8859 done
8860 if test -z "$already_handled"; then
8861 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008862 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008863 eval value=\"\$HAVE_LIB$uppername\"
8864 if test -n "$value"; then
8865 if test "$value" = yes; then
8866 eval value=\"\$LIB$uppername\"
8867 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8868 eval value=\"\$LTLIB$uppername\"
8869 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8870 else
8871 :
8872 fi
8873 else
8874 found_dir=
8875 found_la=
8876 found_so=
8877 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008878 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8879 if test -n "$acl_shlibext"; then
8880 shrext=".$acl_shlibext" # typically: shrext=.so
8881 else
8882 shrext=
8883 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008884 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008885 dir="$additional_libdir"
8886 if test -n "$acl_shlibext"; then
8887 if test -f "$dir/$libname$shrext"; then
8888 found_dir="$dir"
8889 found_so="$dir/$libname$shrext"
8890 else
8891 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8892 ver=`(cd "$dir" && \
8893 for f in "$libname$shrext".*; do echo "$f"; done \
8894 | sed -e "s,^$libname$shrext\\\\.,," \
8895 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8896 | sed 1q ) 2>/dev/null`
8897 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8898 found_dir="$dir"
8899 found_so="$dir/$libname$shrext.$ver"
8900 fi
8901 else
8902 eval library_names=\"$acl_library_names_spec\"
8903 for f in $library_names; do
8904 if test -f "$dir/$f"; then
8905 found_dir="$dir"
8906 found_so="$dir/$f"
8907 break
8908 fi
8909 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008910 fi
8911 fi
8912 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008913 if test "X$found_dir" = "X"; then
8914 if test -f "$dir/$libname.$acl_libext"; then
8915 found_dir="$dir"
8916 found_a="$dir/$libname.$acl_libext"
8917 fi
8918 fi
8919 if test "X$found_dir" != "X"; then
8920 if test -f "$dir/$libname.la"; then
8921 found_la="$dir/$libname.la"
8922 fi
8923 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008924 fi
8925 if test "X$found_dir" = "X"; then
8926 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008927
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008928 acl_save_prefix="$prefix"
8929 prefix="$acl_final_prefix"
8930 acl_save_exec_prefix="$exec_prefix"
8931 exec_prefix="$acl_final_exec_prefix"
8932 eval x=\"$x\"
8933 exec_prefix="$acl_save_exec_prefix"
8934 prefix="$acl_save_prefix"
8935
8936 case "$x" in
8937 -L*)
8938 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008939 if test -n "$acl_shlibext"; then
8940 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008941 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008942 found_so="$dir/$libname$shrext"
8943 else
8944 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8945 ver=`(cd "$dir" && \
8946 for f in "$libname$shrext".*; do echo "$f"; done \
8947 | sed -e "s,^$libname$shrext\\\\.,," \
8948 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8949 | sed 1q ) 2>/dev/null`
8950 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8951 found_dir="$dir"
8952 found_so="$dir/$libname$shrext.$ver"
8953 fi
8954 else
8955 eval library_names=\"$acl_library_names_spec\"
8956 for f in $library_names; do
8957 if test -f "$dir/$f"; then
8958 found_dir="$dir"
8959 found_so="$dir/$f"
8960 break
8961 fi
8962 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008963 fi
8964 fi
8965 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008966 if test "X$found_dir" = "X"; then
8967 if test -f "$dir/$libname.$acl_libext"; then
8968 found_dir="$dir"
8969 found_a="$dir/$libname.$acl_libext"
8970 fi
8971 fi
8972 if test "X$found_dir" != "X"; then
8973 if test -f "$dir/$libname.la"; then
8974 found_la="$dir/$libname.la"
8975 fi
8976 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008977 ;;
8978 esac
8979 if test "X$found_dir" != "X"; then
8980 break
8981 fi
8982 done
8983 fi
8984 if test "X$found_dir" != "X"; then
8985 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8986 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008987 if test "$enable_rpath" = no \
8988 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8989 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008990 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8991 else
8992 haveit=
8993 for x in $ltrpathdirs; do
8994 if test "X$x" = "X$found_dir"; then
8995 haveit=yes
8996 break
8997 fi
8998 done
8999 if test -z "$haveit"; then
9000 ltrpathdirs="$ltrpathdirs $found_dir"
9001 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009002 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009003 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9004 else
Theodore Ts'o93613952014-07-03 23:44:13 -04009005 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009006 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9007 haveit=
9008 for x in $rpathdirs; do
9009 if test "X$x" = "X$found_dir"; then
9010 haveit=yes
9011 break
9012 fi
9013 done
9014 if test -z "$haveit"; then
9015 rpathdirs="$rpathdirs $found_dir"
9016 fi
9017 else
9018 haveit=
9019 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009020
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009021 acl_save_prefix="$prefix"
9022 prefix="$acl_final_prefix"
9023 acl_save_exec_prefix="$exec_prefix"
9024 exec_prefix="$acl_final_exec_prefix"
9025 eval x=\"$x\"
9026 exec_prefix="$acl_save_exec_prefix"
9027 prefix="$acl_save_prefix"
9028
9029 if test "X$x" = "X-L$found_dir"; then
9030 haveit=yes
9031 break
9032 fi
9033 done
9034 if test -z "$haveit"; then
9035 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9036 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009037 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009038 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9039 else
9040 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9041 fi
9042 fi
9043 fi
9044 fi
9045 else
9046 if test "X$found_a" != "X"; then
9047 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9048 else
9049 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9050 fi
9051 fi
9052 additional_includedir=
9053 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04009054 */$acl_libdirstem | */$acl_libdirstem/)
9055 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9056 if test "$name" = 'iconv'; then
9057 LIBICONV_PREFIX="$basedir"
9058 fi
9059 additional_includedir="$basedir/include"
9060 ;;
9061 */$acl_libdirstem2 | */$acl_libdirstem2/)
9062 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9063 if test "$name" = 'iconv'; then
9064 LIBICONV_PREFIX="$basedir"
9065 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009066 additional_includedir="$basedir/include"
9067 ;;
9068 esac
9069 if test "X$additional_includedir" != "X"; then
9070 if test "X$additional_includedir" != "X/usr/include"; then
9071 haveit=
9072 if test "X$additional_includedir" = "X/usr/local/include"; then
9073 if test -n "$GCC"; then
9074 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009075 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009076 esac
9077 fi
9078 fi
9079 if test -z "$haveit"; then
9080 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009081
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009082 acl_save_prefix="$prefix"
9083 prefix="$acl_final_prefix"
9084 acl_save_exec_prefix="$exec_prefix"
9085 exec_prefix="$acl_final_exec_prefix"
9086 eval x=\"$x\"
9087 exec_prefix="$acl_save_exec_prefix"
9088 prefix="$acl_save_prefix"
9089
9090 if test "X$x" = "X-I$additional_includedir"; then
9091 haveit=yes
9092 break
9093 fi
9094 done
9095 if test -z "$haveit"; then
9096 if test -d "$additional_includedir"; then
9097 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9098 fi
9099 fi
9100 fi
9101 fi
9102 fi
9103 if test -n "$found_la"; then
9104 save_libdir="$libdir"
9105 case "$found_la" in
9106 */* | *\\*) . "$found_la" ;;
9107 *) . "./$found_la" ;;
9108 esac
9109 libdir="$save_libdir"
9110 for dep in $dependency_libs; do
9111 case "$dep" in
9112 -L*)
9113 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009114 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9115 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009116 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009117 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9118 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009119 if test -n "$GCC"; then
9120 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009121 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009122 esac
9123 fi
9124 fi
9125 if test -z "$haveit"; then
9126 haveit=
9127 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009128
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009129 acl_save_prefix="$prefix"
9130 prefix="$acl_final_prefix"
9131 acl_save_exec_prefix="$exec_prefix"
9132 exec_prefix="$acl_final_exec_prefix"
9133 eval x=\"$x\"
9134 exec_prefix="$acl_save_exec_prefix"
9135 prefix="$acl_save_prefix"
9136
9137 if test "X$x" = "X-L$additional_libdir"; then
9138 haveit=yes
9139 break
9140 fi
9141 done
9142 if test -z "$haveit"; then
9143 if test -d "$additional_libdir"; then
9144 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9145 fi
9146 fi
9147 haveit=
9148 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009149
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009150 acl_save_prefix="$prefix"
9151 prefix="$acl_final_prefix"
9152 acl_save_exec_prefix="$exec_prefix"
9153 exec_prefix="$acl_final_exec_prefix"
9154 eval x=\"$x\"
9155 exec_prefix="$acl_save_exec_prefix"
9156 prefix="$acl_save_prefix"
9157
9158 if test "X$x" = "X-L$additional_libdir"; then
9159 haveit=yes
9160 break
9161 fi
9162 done
9163 if test -z "$haveit"; then
9164 if test -d "$additional_libdir"; then
9165 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9166 fi
9167 fi
9168 fi
9169 fi
9170 ;;
9171 -R*)
9172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9173 if test "$enable_rpath" != no; then
9174 haveit=
9175 for x in $rpathdirs; do
9176 if test "X$x" = "X$dir"; then
9177 haveit=yes
9178 break
9179 fi
9180 done
9181 if test -z "$haveit"; then
9182 rpathdirs="$rpathdirs $dir"
9183 fi
9184 haveit=
9185 for x in $ltrpathdirs; do
9186 if test "X$x" = "X$dir"; then
9187 haveit=yes
9188 break
9189 fi
9190 done
9191 if test -z "$haveit"; then
9192 ltrpathdirs="$ltrpathdirs $dir"
9193 fi
9194 fi
9195 ;;
9196 -l*)
9197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9198 ;;
9199 *.la)
9200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9201 ;;
9202 *)
9203 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9204 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9205 ;;
9206 esac
9207 done
9208 fi
9209 else
9210 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9211 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9212 fi
9213 fi
9214 fi
9215 done
9216 done
9217 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009218 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009219 alldirs=
9220 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009221 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009222 done
9223 acl_save_libdir="$libdir"
9224 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009225 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009226 libdir="$acl_save_libdir"
9227 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9228 else
9229 for found_dir in $rpathdirs; do
9230 acl_save_libdir="$libdir"
9231 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009232 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009233 libdir="$acl_save_libdir"
9234 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9235 done
9236 fi
9237 fi
9238 if test "X$ltrpathdirs" != "X"; then
9239 for found_dir in $ltrpathdirs; do
9240 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9241 done
9242 fi
9243
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009244
9245
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009246
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009247
9248
9249
9250
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009251
9252
9253
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009254
9255 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009256
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009257 for element in $INCICONV; do
9258 haveit=
9259 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009260
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009261 acl_save_prefix="$prefix"
9262 prefix="$acl_final_prefix"
9263 acl_save_exec_prefix="$exec_prefix"
9264 exec_prefix="$acl_final_exec_prefix"
9265 eval x=\"$x\"
9266 exec_prefix="$acl_save_exec_prefix"
9267 prefix="$acl_save_prefix"
9268
9269 if test "X$x" = "X$element"; then
9270 haveit=yes
9271 break
9272 fi
9273 done
9274 if test -z "$haveit"; then
9275 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9276 fi
9277 done
9278
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009279
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009281$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009282if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009283 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009284else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009285
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009286 am_cv_func_iconv="no, consider installing GNU libiconv"
9287 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009289/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009290
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009291#include <stdlib.h>
9292#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009293
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009294int
9295main ()
9296{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009297iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009298 iconv(cd,NULL,NULL,NULL,NULL);
9299 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009300 ;
9301 return 0;
9302}
9303_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009304if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009305 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009306fi
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'oa04eba32003-05-03 16:35:17 -04009309 if test "$am_cv_func_iconv" != yes; then
9310 am_save_LIBS="$LIBS"
9311 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009313/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009314
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009315#include <stdlib.h>
9316#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009317
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009318int
9319main ()
9320{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009321iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009322 iconv(cd,NULL,NULL,NULL,NULL);
9323 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009324 ;
9325 return 0;
9326}
9327_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009328if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009329 am_cv_lib_iconv=yes
9330 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009331fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009332rm -f core conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009334 LIBS="$am_save_LIBS"
9335 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009336
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009337fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009339$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009340 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9342$as_echo_n "checking for working iconv... " >&6; }
9343if ${am_cv_func_iconv_works+:} false; then :
9344 $as_echo_n "(cached) " >&6
9345else
9346
9347 am_save_LIBS="$LIBS"
9348 if test $am_cv_lib_iconv = yes; then
9349 LIBS="$LIBS $LIBICONV"
9350 fi
9351 if test "$cross_compiling" = yes; then :
9352
9353 case "$host_os" in
9354 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9355 *) am_cv_func_iconv_works="guessing yes" ;;
9356 esac
9357
9358else
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360/* end confdefs.h. */
9361
9362#include <iconv.h>
9363#include <string.h>
9364int main ()
9365{
9366 int result = 0;
9367 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9368 returns. */
9369 {
9370 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9371 if (cd_utf8_to_88591 != (iconv_t)(-1))
9372 {
9373 static const char input[] = "\342\202\254"; /* EURO SIGN */
9374 char buf[10];
9375 const char *inptr = input;
9376 size_t inbytesleft = strlen (input);
9377 char *outptr = buf;
9378 size_t outbytesleft = sizeof (buf);
9379 size_t res = iconv (cd_utf8_to_88591,
9380 (char **) &inptr, &inbytesleft,
9381 &outptr, &outbytesleft);
9382 if (res == 0)
9383 result |= 1;
9384 iconv_close (cd_utf8_to_88591);
9385 }
9386 }
9387 /* Test against Solaris 10 bug: Failures are not distinguishable from
9388 successful returns. */
9389 {
9390 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9391 if (cd_ascii_to_88591 != (iconv_t)(-1))
9392 {
9393 static const char input[] = "\263";
9394 char buf[10];
9395 const char *inptr = input;
9396 size_t inbytesleft = strlen (input);
9397 char *outptr = buf;
9398 size_t outbytesleft = sizeof (buf);
9399 size_t res = iconv (cd_ascii_to_88591,
9400 (char **) &inptr, &inbytesleft,
9401 &outptr, &outbytesleft);
9402 if (res == 0)
9403 result |= 2;
9404 iconv_close (cd_ascii_to_88591);
9405 }
9406 }
9407 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9408 {
9409 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9410 if (cd_88591_to_utf8 != (iconv_t)(-1))
9411 {
9412 static const char input[] = "\304";
9413 static char buf[2] = { (char)0xDE, (char)0xAD };
9414 const char *inptr = input;
9415 size_t inbytesleft = 1;
9416 char *outptr = buf;
9417 size_t outbytesleft = 1;
9418 size_t res = iconv (cd_88591_to_utf8,
9419 (char **) &inptr, &inbytesleft,
9420 &outptr, &outbytesleft);
9421 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9422 result |= 4;
9423 iconv_close (cd_88591_to_utf8);
9424 }
9425 }
9426#if 0 /* This bug could be worked around by the caller. */
9427 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9428 {
9429 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9430 if (cd_88591_to_utf8 != (iconv_t)(-1))
9431 {
9432 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9433 char buf[50];
9434 const char *inptr = input;
9435 size_t inbytesleft = strlen (input);
9436 char *outptr = buf;
9437 size_t outbytesleft = sizeof (buf);
9438 size_t res = iconv (cd_88591_to_utf8,
9439 (char **) &inptr, &inbytesleft,
9440 &outptr, &outbytesleft);
9441 if ((int)res > 0)
9442 result |= 8;
9443 iconv_close (cd_88591_to_utf8);
9444 }
9445 }
9446#endif
9447 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9448 provided. */
9449 if (/* Try standardized names. */
9450 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9451 /* Try IRIX, OSF/1 names. */
9452 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9453 /* Try AIX names. */
9454 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9455 /* Try HP-UX names. */
9456 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9457 result |= 16;
9458 return result;
9459}
9460_ACEOF
9461if ac_fn_c_try_run "$LINENO"; then :
9462 am_cv_func_iconv_works=yes
9463else
9464 am_cv_func_iconv_works=no
9465fi
9466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9467 conftest.$ac_objext conftest.beam conftest.$ac_ext
9468fi
9469
9470 LIBS="$am_save_LIBS"
9471
9472fi
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9474$as_echo "$am_cv_func_iconv_works" >&6; }
9475 case "$am_cv_func_iconv_works" in
9476 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9477 *) am_func_iconv=yes ;;
9478 esac
9479 else
9480 am_func_iconv=no am_cv_lib_iconv=no
9481 fi
9482 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009483
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009484$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009485
9486 fi
9487 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009489$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009491$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009492 else
9493 CPPFLAGS="$am_save_CPPFLAGS"
9494 LIBICONV=
9495 LTLIBICONV=
9496 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009497
9498
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009499
9500 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009502$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009503 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009504 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009505else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009506
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009508/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009509
9510#include <stdlib.h>
9511#include <iconv.h>
9512extern
9513#ifdef __cplusplus
9514"C"
9515#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009516#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009517size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9518#else
9519size_t iconv();
9520#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009522int
9523main ()
9524{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009525
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009526 ;
9527 return 0;
9528}
9529_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009530if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009531 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009532else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009533 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009534fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009536 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 +00009537fi
9538
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009539 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009540 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9541 $am_cv_proto_iconv" >&5
9542$as_echo "
9543 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009544
9545cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009546#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009547_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009548
Theodore Ts'o93613952014-07-03 23:44:13 -04009549
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009550 fi
9551
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009552
Theodore Ts'o93613952014-07-03 23:44:13 -04009553
9554
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009556/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009557int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009558int
9559main ()
9560{
Theodore Ts'o93613952014-07-03 23:44:13 -04009561
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009562 ;
9563 return 0;
9564}
9565_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009566if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009567
9568$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9569
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009570fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009571rm -f core conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009573
Theodore Ts'o93613952014-07-03 23:44:13 -04009574 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9575do :
9576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9577ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9578if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9579 cat >>confdefs.h <<_ACEOF
9580#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009581_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009582
9583fi
9584
9585done
9586
9587 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9588 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9589 argz_stringify argz_next __fsetlocking
9590do :
9591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9592ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9593if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9594 cat >>confdefs.h <<_ACEOF
9595#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9596_ACEOF
9597
9598fi
9599done
9600
9601
9602 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9603"
9604if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9605 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009606else
Theodore Ts'o93613952014-07-03 23:44:13 -04009607 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009608fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009609
9610cat >>confdefs.h <<_ACEOF
9611#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9612_ACEOF
9613ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9614"
9615if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9616 ac_have_decl=1
9617else
9618 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009619fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009620
Theodore Ts'o93613952014-07-03 23:44:13 -04009621cat >>confdefs.h <<_ACEOF
9622#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9623_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009624
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009625
Theodore Ts'o93613952014-07-03 23:44:13 -04009626
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009627
9628 for ac_prog in bison
9629do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009630 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009631set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009633$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009634if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009635 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009636else
9637 if test -n "$INTLBISON"; then
9638 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9639else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641for as_dir in $PATH
9642do
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009645 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009647 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009649 break 2
9650 fi
9651done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009652 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009653IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009654
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009655fi
9656fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009657INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009658if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009660$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009661else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009663$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009664fi
9665
Theodore Ts'oe1052142006-10-21 21:46:47 -04009666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009667 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009668done
9669
9670 if test -z "$INTLBISON"; then
9671 ac_verc_fail=yes
9672 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009674$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009675 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9676 case $ac_prog_version in
9677 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9678 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9679 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9680 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9681 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009683$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009684 fi
9685 if test $ac_verc_fail = yes; then
9686 INTLBISON=:
9687 fi
9688
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009689
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009690
Theodore Ts'o93613952014-07-03 23:44:13 -04009691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9692$as_echo_n "checking for long long int... " >&6; }
9693if ${ac_cv_type_long_long_int+:} false; then :
9694 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009695else
Theodore Ts'o93613952014-07-03 23:44:13 -04009696 ac_cv_type_long_long_int=yes
9697 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9698 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9699 if test $ac_cv_type_long_long_int = yes; then
9700 if test "$cross_compiling" = yes; then :
9701 :
9702else
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704/* end confdefs.h. */
9705#include <limits.h>
9706 #ifndef LLONG_MAX
9707 # define HALF \
9708 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9709 # define LLONG_MAX (HALF - 1 + HALF)
9710 #endif
9711int
9712main ()
9713{
9714long long int n = 1;
9715 int i;
9716 for (i = 0; ; i++)
9717 {
9718 long long int m = n << i;
9719 if (m >> i != n)
9720 return 1;
9721 if (LLONG_MAX / 2 < m)
9722 break;
9723 }
9724 return 0;
9725 ;
9726 return 0;
9727}
9728_ACEOF
9729if ac_fn_c_try_run "$LINENO"; then :
9730
9731else
9732 ac_cv_type_long_long_int=no
9733fi
9734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9735 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009736fi
9737
Theodore Ts'o93613952014-07-03 23:44:13 -04009738 fi
9739 fi
9740fi
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9742$as_echo "$ac_cv_type_long_long_int" >&6; }
9743 if test $ac_cv_type_long_long_int = yes; then
9744
9745$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9746
9747 fi
9748
9749
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9751$as_echo_n "checking for wchar_t... " >&6; }
9752if ${gt_cv_c_wchar_t+:} false; then :
9753 $as_echo_n "(cached) " >&6
9754else
9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756/* end confdefs.h. */
9757#include <stddef.h>
9758 wchar_t foo = (wchar_t)'\0';
9759int
9760main ()
9761{
9762
9763 ;
9764 return 0;
9765}
9766_ACEOF
9767if ac_fn_c_try_compile "$LINENO"; then :
9768 gt_cv_c_wchar_t=yes
9769else
9770 gt_cv_c_wchar_t=no
9771fi
9772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773fi
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9775$as_echo "$gt_cv_c_wchar_t" >&6; }
9776 if test $gt_cv_c_wchar_t = yes; then
9777
9778$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9779
9780 fi
9781
9782
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9784$as_echo_n "checking for wint_t... " >&6; }
9785if ${gt_cv_c_wint_t+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787else
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789/* end confdefs.h. */
9790
9791/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9792 <wchar.h>.
9793 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9794 before <wchar.h>. */
9795#include <stddef.h>
9796#include <stdio.h>
9797#include <time.h>
9798#include <wchar.h>
9799 wint_t foo = (wchar_t)'\0';
9800int
9801main ()
9802{
9803
9804 ;
9805 return 0;
9806}
9807_ACEOF
9808if ac_fn_c_try_compile "$LINENO"; then :
9809 gt_cv_c_wint_t=yes
9810else
9811 gt_cv_c_wint_t=no
9812fi
9813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814fi
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9816$as_echo "$gt_cv_c_wint_t" >&6; }
9817 if test $gt_cv_c_wint_t = yes; then
9818
9819$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9820
9821 fi
9822
9823
9824
9825
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9827$as_echo_n "checking for intmax_t... " >&6; }
9828if ${gt_cv_c_intmax_t+:} false; then :
9829 $as_echo_n "(cached) " >&6
9830else
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h. */
9833
9834#include <stddef.h>
9835#include <stdlib.h>
9836#if HAVE_STDINT_H_WITH_UINTMAX
9837#include <stdint.h>
9838#endif
9839#if HAVE_INTTYPES_H_WITH_UINTMAX
9840#include <inttypes.h>
9841#endif
9842
9843int
9844main ()
9845{
9846intmax_t x = -1;
9847 return !x;
9848 ;
9849 return 0;
9850}
9851_ACEOF
9852if ac_fn_c_try_compile "$LINENO"; then :
9853 gt_cv_c_intmax_t=yes
9854else
9855 gt_cv_c_intmax_t=no
9856fi
9857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9858fi
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9860$as_echo "$gt_cv_c_intmax_t" >&6; }
9861 if test $gt_cv_c_intmax_t = yes; then
9862
9863$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9864
9865 fi
9866
9867
9868
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9870$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9871if ${gt_cv_func_printf_posix+:} false; then :
9872 $as_echo_n "(cached) " >&6
9873else
9874
9875 if test "$cross_compiling" = yes; then :
9876
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878/* end confdefs.h. */
9879
9880#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9881 notposix
9882#endif
9883
9884_ACEOF
9885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9886 $EGREP "notposix" >/dev/null 2>&1; then :
9887 gt_cv_func_printf_posix="guessing no"
9888else
9889 gt_cv_func_printf_posix="guessing yes"
9890fi
9891rm -f conftest*
9892
9893
9894else
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896/* end confdefs.h. */
9897
9898#include <stdio.h>
9899#include <string.h>
9900/* The string "%2$d %1$d", with dollar characters protected from the shell's
9901 dollar expansion (possibly an autoconf bug). */
9902static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9903static char buf[100];
9904int main ()
9905{
9906 sprintf (buf, format, 33, 55);
9907 return (strcmp (buf, "55 33") != 0);
9908}
9909_ACEOF
9910if ac_fn_c_try_run "$LINENO"; then :
9911 gt_cv_func_printf_posix=yes
9912else
9913 gt_cv_func_printf_posix=no
9914fi
9915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9916 conftest.$ac_objext conftest.beam conftest.$ac_ext
9917fi
9918
9919
9920fi
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9922$as_echo "$gt_cv_func_printf_posix" >&6; }
9923 case $gt_cv_func_printf_posix in
9924 *yes)
9925
9926$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9927
9928 ;;
9929 esac
9930
9931
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9933$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9934if ${ac_cv_gnu_library_2_1+:} false; then :
9935 $as_echo_n "(cached) " >&6
9936else
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938/* end confdefs.h. */
9939
9940#include <features.h>
9941#ifdef __GNU_LIBRARY__
9942 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9943 Lucky GNU user
9944 #endif
9945#endif
9946#ifdef __UCLIBC__
9947 Lucky user
9948#endif
9949
9950_ACEOF
9951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9952 $EGREP "Lucky" >/dev/null 2>&1; then :
9953 ac_cv_gnu_library_2_1=yes
9954else
9955 ac_cv_gnu_library_2_1=no
9956fi
9957rm -f conftest*
9958
9959
9960
9961fi
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9963$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9964
9965 GLIBC21="$ac_cv_gnu_library_2_1"
9966
9967
9968
9969 for ac_header in stdint.h
9970do :
9971 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9972if test "x$ac_cv_header_stdint_h" = xyes; then :
9973 cat >>confdefs.h <<_ACEOF
9974#define HAVE_STDINT_H 1
9975_ACEOF
9976
9977fi
9978
9979done
9980
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9982$as_echo_n "checking for SIZE_MAX... " >&6; }
9983if ${gl_cv_size_max+:} false; then :
9984 $as_echo_n "(cached) " >&6
9985else
9986
9987 gl_cv_size_max=
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989/* end confdefs.h. */
9990
9991#include <limits.h>
9992#if HAVE_STDINT_H
9993#include <stdint.h>
9994#endif
9995#ifdef SIZE_MAX
9996Found it
9997#endif
9998
9999_ACEOF
10000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10001 $EGREP "Found it" >/dev/null 2>&1; then :
10002 gl_cv_size_max=yes
10003fi
10004rm -f conftest*
10005
10006 if test -z "$gl_cv_size_max"; then
10007 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10008#include <limits.h>"; then :
10009
10010else
10011 size_t_bits_minus_1=
10012fi
10013
10014 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10015
10016else
10017 fits_in_uint=
10018fi
10019
10020 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10021 if test $fits_in_uint = 1; then
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023/* end confdefs.h. */
10024#include <stddef.h>
10025 extern size_t foo;
10026 extern unsigned long foo;
10027
10028int
10029main ()
10030{
10031
10032 ;
10033 return 0;
10034}
10035_ACEOF
10036if ac_fn_c_try_compile "$LINENO"; then :
10037 fits_in_uint=0
10038fi
10039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040 fi
10041 if test $fits_in_uint = 1; then
10042 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10043 else
10044 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10045 fi
10046 else
10047 gl_cv_size_max='((size_t)~(size_t)0)'
10048 fi
10049 fi
10050
10051fi
10052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10053$as_echo "$gl_cv_size_max" >&6; }
10054 if test "$gl_cv_size_max" != yes; then
10055
10056cat >>confdefs.h <<_ACEOF
10057#define SIZE_MAX $gl_cv_size_max
10058_ACEOF
10059
10060 fi
10061
10062
10063
10064
10065 for ac_header in stdint.h
10066do :
10067 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10068if test "x$ac_cv_header_stdint_h" = xyes; then :
10069 cat >>confdefs.h <<_ACEOF
10070#define HAVE_STDINT_H 1
10071_ACEOF
10072
10073fi
10074
10075done
10076
10077
10078
10079
10080
10081 for ac_func in $ac_func_list
10082do :
10083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10084ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10085if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10086 cat >>confdefs.h <<_ACEOF
10087#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10088_ACEOF
10089
10090fi
10091done
10092
10093
10094
10095
10096
10097
10098
10099
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10101$as_echo_n "checking for working fcntl.h... " >&6; }
10102if ${gl_cv_header_working_fcntl_h+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104else
10105 if test "$cross_compiling" = yes; then :
10106 gl_cv_header_working_fcntl_h=cross-compiling
10107else
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h. */
10110#include <sys/types.h>
10111 #include <sys/stat.h>
10112 #if HAVE_UNISTD_H
10113 # include <unistd.h>
10114 #else /* on Windows with MSVC */
10115 # include <io.h>
10116 # include <stdlib.h>
10117 # defined sleep(n) _sleep ((n) * 1000)
10118 #endif
10119 #include <fcntl.h>
10120 #ifndef O_NOATIME
10121 #define O_NOATIME 0
10122 #endif
10123 #ifndef O_NOFOLLOW
10124 #define O_NOFOLLOW 0
10125 #endif
10126 static int const constants[] =
10127 {
10128 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10129 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10130 };
10131
10132int
10133main ()
10134{
10135
10136 int result = !constants;
10137 #if HAVE_SYMLINK
10138 {
10139 static char const sym[] = "conftest.sym";
10140 if (symlink ("/dev/null", sym) != 0)
10141 result |= 2;
10142 else
10143 {
10144 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10145 if (fd >= 0)
10146 {
10147 close (fd);
10148 result |= 4;
10149 }
10150 }
10151 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10152 result |= 2;
10153 else
10154 {
10155 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10156 if (fd >= 0)
10157 {
10158 close (fd);
10159 result |= 4;
10160 }
10161 }
10162 unlink (sym);
10163 }
10164 #endif
10165 {
10166 static char const file[] = "confdefs.h";
10167 int fd = open (file, O_RDONLY | O_NOATIME);
10168 if (fd < 0)
10169 result |= 8;
10170 else
10171 {
10172 struct stat st0;
10173 if (fstat (fd, &st0) != 0)
10174 result |= 16;
10175 else
10176 {
10177 char c;
10178 sleep (1);
10179 if (read (fd, &c, 1) != 1)
10180 result |= 24;
10181 else
10182 {
10183 if (close (fd) != 0)
10184 result |= 32;
10185 else
10186 {
10187 struct stat st1;
10188 if (stat (file, &st1) != 0)
10189 result |= 40;
10190 else
10191 if (st0.st_atime != st1.st_atime)
10192 result |= 64;
10193 }
10194 }
10195 }
10196 }
10197 }
10198 return result;
10199 ;
10200 return 0;
10201}
10202_ACEOF
10203if ac_fn_c_try_run "$LINENO"; then :
10204 gl_cv_header_working_fcntl_h=yes
10205else
10206 case $? in #(
10207 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10208 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10209 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10210 *) gl_cv_header_working_fcntl_h='no';;
10211 esac
10212fi
10213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10214 conftest.$ac_objext conftest.beam conftest.$ac_ext
10215fi
10216
10217fi
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10219$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10220
10221 case $gl_cv_header_working_fcntl_h in #(
10222 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10223 *) ac_val=1;;
10224 esac
10225
10226cat >>confdefs.h <<_ACEOF
10227#define HAVE_WORKING_O_NOATIME $ac_val
10228_ACEOF
10229
10230
10231 case $gl_cv_header_working_fcntl_h in #(
10232 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10233 *) ac_val=1;;
10234 esac
10235
10236cat >>confdefs.h <<_ACEOF
10237#define HAVE_WORKING_O_NOFOLLOW $ac_val
10238_ACEOF
10239
10240
10241
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10243$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10244if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10245 $as_echo_n "(cached) " >&6
10246else
10247 gt_save_LIBS="$LIBS"
10248 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250/* end confdefs.h. */
10251#include <CoreFoundation/CFPreferences.h>
10252int
10253main ()
10254{
10255CFPreferencesCopyAppValue(NULL, NULL)
10256 ;
10257 return 0;
10258}
10259_ACEOF
10260if ac_fn_c_try_link "$LINENO"; then :
10261 gt_cv_func_CFPreferencesCopyAppValue=yes
10262else
10263 gt_cv_func_CFPreferencesCopyAppValue=no
10264fi
10265rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267 LIBS="$gt_save_LIBS"
10268fi
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10270$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10271 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10272
10273$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10274
10275 fi
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10277$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10278if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10279 $as_echo_n "(cached) " >&6
10280else
10281 gt_save_LIBS="$LIBS"
10282 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284/* end confdefs.h. */
10285#include <CoreFoundation/CFLocale.h>
10286int
10287main ()
10288{
10289CFLocaleCopyCurrent();
10290 ;
10291 return 0;
10292}
10293_ACEOF
10294if ac_fn_c_try_link "$LINENO"; then :
10295 gt_cv_func_CFLocaleCopyCurrent=yes
10296else
10297 gt_cv_func_CFLocaleCopyCurrent=no
10298fi
10299rm -f core conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext conftest.$ac_ext
10301 LIBS="$gt_save_LIBS"
10302fi
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10304$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10305 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10306
10307$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10308
10309 fi
10310 INTL_MACOSX_LIBS=
10311 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10312 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10313 fi
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324 case "$enable_silent_rules" in
10325 yes) INTL_DEFAULT_VERBOSITY=0;;
10326 no) INTL_DEFAULT_VERBOSITY=1;;
10327 *) INTL_DEFAULT_VERBOSITY=1;;
10328 esac
10329
10330
10331 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10332if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10333
10334else
10335
10336$as_echo "#define ptrdiff_t long" >>confdefs.h
10337
10338
10339fi
10340
10341 for ac_header in features.h stddef.h stdlib.h string.h
10342do :
10343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10344ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10345if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10346 cat >>confdefs.h <<_ACEOF
10347#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10348_ACEOF
10349
10350fi
10351
10352done
10353
10354 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10355 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10356do :
10357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10358ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10359if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10360 cat >>confdefs.h <<_ACEOF
10361#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10362_ACEOF
10363
10364fi
10365done
10366
10367
10368 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10369"
10370if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10371 ac_have_decl=1
10372else
10373 ac_have_decl=0
10374fi
10375
10376cat >>confdefs.h <<_ACEOF
10377#define HAVE_DECL__SNPRINTF $ac_have_decl
10378_ACEOF
10379ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10380"
10381if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10382 ac_have_decl=1
10383else
10384 ac_have_decl=0
10385fi
10386
10387cat >>confdefs.h <<_ACEOF
10388#define HAVE_DECL__SNWPRINTF $ac_have_decl
10389_ACEOF
10390
10391
10392 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10393"
10394if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10395 ac_have_decl=1
10396else
10397 ac_have_decl=0
10398fi
10399
10400cat >>confdefs.h <<_ACEOF
10401#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10402_ACEOF
10403
10404
10405 case $gt_cv_func_printf_posix in
10406 *yes) HAVE_POSIX_PRINTF=1 ;;
10407 *) HAVE_POSIX_PRINTF=0 ;;
10408 esac
10409
10410 if test "$ac_cv_func_asprintf" = yes; then
10411 HAVE_ASPRINTF=1
10412 else
10413 HAVE_ASPRINTF=0
10414 fi
10415
10416 if test "$ac_cv_func_snprintf" = yes; then
10417 HAVE_SNPRINTF=1
10418 else
10419 HAVE_SNPRINTF=0
10420 fi
10421
10422 if test "$ac_cv_func_newlocale" = yes; then
10423 HAVE_NEWLOCALE=1
10424 else
10425 HAVE_NEWLOCALE=0
10426 fi
10427
10428 if test "$ac_cv_func_wprintf" = yes; then
10429 HAVE_WPRINTF=1
10430 else
10431 HAVE_WPRINTF=0
10432 fi
10433
10434
10435
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10437$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10438if ${am_cv_langinfo_codeset+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440else
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442/* end confdefs.h. */
10443#include <langinfo.h>
10444int
10445main ()
10446{
10447char* cs = nl_langinfo(CODESET); return !cs;
10448 ;
10449 return 0;
10450}
10451_ACEOF
10452if ac_fn_c_try_link "$LINENO"; then :
10453 am_cv_langinfo_codeset=yes
10454else
10455 am_cv_langinfo_codeset=no
10456fi
10457rm -f core conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459
10460fi
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10462$as_echo "$am_cv_langinfo_codeset" >&6; }
10463 if test $am_cv_langinfo_codeset = yes; then
10464
10465$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10466
10467 fi
10468
10469
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10471$as_echo_n "checking for LC_MESSAGES... " >&6; }
10472if ${gt_cv_val_LC_MESSAGES+:} false; then :
10473 $as_echo_n "(cached) " >&6
10474else
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476/* end confdefs.h. */
10477#include <locale.h>
10478int
10479main ()
10480{
10481return LC_MESSAGES
10482 ;
10483 return 0;
10484}
10485_ACEOF
10486if ac_fn_c_try_link "$LINENO"; then :
10487 gt_cv_val_LC_MESSAGES=yes
10488else
10489 gt_cv_val_LC_MESSAGES=no
10490fi
10491rm -f core conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
10493fi
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10495$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10496 if test $gt_cv_val_LC_MESSAGES = yes; then
10497
10498$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10499
10500 fi
10501
10502
10503 if test "$enable_shared" = yes; then
10504 case "$host_os" in
10505 mingw* | cygwin*) is_woe32dll=yes ;;
10506 *) is_woe32dll=no ;;
10507 esac
10508 else
10509 is_woe32dll=no
10510 fi
10511 WOE32DLL=$is_woe32dll
10512
10513
10514 case "$host_os" in
10515 mingw* | cygwin*) is_woe32=yes ;;
10516 *) is_woe32=no ;;
10517 esac
10518 WOE32=$is_woe32
10519
10520 if test $WOE32 = yes; then
10521 if test -n "$ac_tool_prefix"; then
10522 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10523set dummy ${ac_tool_prefix}windres; ac_word=$2
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525$as_echo_n "checking for $ac_word... " >&6; }
10526if ${ac_cv_prog_WINDRES+:} false; then :
10527 $as_echo_n "(cached) " >&6
10528else
10529 if test -n "$WINDRES"; then
10530 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10531else
10532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533for as_dir in $PATH
10534do
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10539 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 break 2
10542 fi
10543done
10544 done
10545IFS=$as_save_IFS
10546
10547fi
10548fi
10549WINDRES=$ac_cv_prog_WINDRES
10550if test -n "$WINDRES"; then
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10552$as_echo "$WINDRES" >&6; }
10553else
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555$as_echo "no" >&6; }
10556fi
10557
10558
10559fi
10560if test -z "$ac_cv_prog_WINDRES"; then
10561 ac_ct_WINDRES=$WINDRES
10562 # Extract the first word of "windres", so it can be a program name with args.
10563set dummy windres; ac_word=$2
10564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10565$as_echo_n "checking for $ac_word... " >&6; }
10566if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10567 $as_echo_n "(cached) " >&6
10568else
10569 if test -n "$ac_ct_WINDRES"; then
10570 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10571else
10572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573for as_dir in $PATH
10574do
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
10578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10579 ac_cv_prog_ac_ct_WINDRES="windres"
10580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10582 fi
10583done
10584 done
10585IFS=$as_save_IFS
10586
10587fi
10588fi
10589ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10590if test -n "$ac_ct_WINDRES"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10592$as_echo "$ac_ct_WINDRES" >&6; }
10593else
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595$as_echo "no" >&6; }
10596fi
10597
10598 if test "x$ac_ct_WINDRES" = x; then
10599 WINDRES=""
10600 else
10601 case $cross_compiling:$ac_tool_warned in
10602yes:)
10603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10605ac_tool_warned=yes ;;
10606esac
10607 WINDRES=$ac_ct_WINDRES
10608 fi
10609else
10610 WINDRES="$ac_cv_prog_WINDRES"
10611fi
10612
10613 fi
10614
10615 case "$host_os" in
10616 hpux*) LTLIBC="" ;;
10617 *) LTLIBC="-lc" ;;
10618 esac
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10647$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10648if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10649 $as_echo_n "(cached) " >&6
10650else
10651 gt_save_LIBS="$LIBS"
10652 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654/* end confdefs.h. */
10655#include <CoreFoundation/CFPreferences.h>
10656int
10657main ()
10658{
10659CFPreferencesCopyAppValue(NULL, NULL)
10660 ;
10661 return 0;
10662}
10663_ACEOF
10664if ac_fn_c_try_link "$LINENO"; then :
10665 gt_cv_func_CFPreferencesCopyAppValue=yes
10666else
10667 gt_cv_func_CFPreferencesCopyAppValue=no
10668fi
10669rm -f core conftest.err conftest.$ac_objext \
10670 conftest$ac_exeext conftest.$ac_ext
10671 LIBS="$gt_save_LIBS"
10672fi
10673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10674$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10675 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10676
10677$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10678
10679 fi
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10681$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10682if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10683 $as_echo_n "(cached) " >&6
10684else
10685 gt_save_LIBS="$LIBS"
10686 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688/* end confdefs.h. */
10689#include <CoreFoundation/CFLocale.h>
10690int
10691main ()
10692{
10693CFLocaleCopyCurrent();
10694 ;
10695 return 0;
10696}
10697_ACEOF
10698if ac_fn_c_try_link "$LINENO"; then :
10699 gt_cv_func_CFLocaleCopyCurrent=yes
10700else
10701 gt_cv_func_CFLocaleCopyCurrent=no
10702fi
10703rm -f core conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
10705 LIBS="$gt_save_LIBS"
10706fi
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10708$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10709 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10710
10711$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10712
10713 fi
10714 INTL_MACOSX_LIBS=
10715 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10716 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10717 fi
10718
10719
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010720
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010721
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010722
10723
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010724 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010725 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010726
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010727 LIBINTL=
10728 LTLIBINTL=
10729 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010730
Theodore Ts'o93613952014-07-03 23:44:13 -040010731 case " $gt_needs " in
10732 *" need-formatstring-macros "*) gt_api_version=3 ;;
10733 *" need-ngettext "*) gt_api_version=2 ;;
10734 *) gt_api_version=1 ;;
10735 esac
10736 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10737 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10738
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010739 if test "$USE_NLS" = "yes"; then
10740 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010741
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010743$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010744
Theodore Ts'oe1052142006-10-21 21:46:47 -040010745# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010746if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010747 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010748else
10749 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010750fi
10751
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010753$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010754
10755 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10756 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010757
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010758
Theodore Ts'o93613952014-07-03 23:44:13 -040010759 if test $gt_api_version -ge 3; then
10760 gt_revision_test_code='
10761#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10762#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10763#endif
10764typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10765'
10766 else
10767 gt_revision_test_code=
10768 fi
10769 if test $gt_api_version -ge 2; then
10770 gt_expression_test_code=' + * ngettext ("", "", 0)'
10771 else
10772 gt_expression_test_code=
10773 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010774
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010776$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010777if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010778 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010779else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010781/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010782
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010783#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010784$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010785extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010786extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010787
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010788int
10789main ()
10790{
Theodore Ts'o93613952014-07-03 23:44:13 -040010791
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010792bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010793return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10794
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010795 ;
10796 return 0;
10797}
10798_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010799if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010800 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010801else
Theodore Ts'o93613952014-07-03 23:44:13 -040010802 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010803fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010804rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010806fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010807eval ac_res=\$$gt_func_gnugettext_libc
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10809$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010810
Theodore Ts'o93613952014-07-03 23:44:13 -040010811 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10812
10813
10814
10815
10816
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010817
10818
10819
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010820 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010821
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010822 acl_save_prefix="$prefix"
10823 prefix="$acl_final_prefix"
10824 acl_save_exec_prefix="$exec_prefix"
10825 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010826
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010827 eval additional_includedir=\"$includedir\"
10828 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010829
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010830 exec_prefix="$acl_save_exec_prefix"
10831 prefix="$acl_save_prefix"
10832
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010833
Theodore Ts'oe1052142006-10-21 21:46:47 -040010834# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010835if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010836 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010837 if test "X$withval" = "Xno"; then
10838 use_additional=no
10839 else
10840 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010841
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010842 acl_save_prefix="$prefix"
10843 prefix="$acl_final_prefix"
10844 acl_save_exec_prefix="$exec_prefix"
10845 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010846
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010847 eval additional_includedir=\"$includedir\"
10848 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010849
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010850 exec_prefix="$acl_save_exec_prefix"
10851 prefix="$acl_save_prefix"
10852
10853 else
10854 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010855 additional_libdir="$withval/$acl_libdirstem"
10856 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10857 && ! test -d "$withval/$acl_libdirstem"; then
10858 additional_libdir="$withval/$acl_libdirstem2"
10859 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010860 fi
10861 fi
10862
Theodore Ts'oe1052142006-10-21 21:46:47 -040010863fi
10864
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010865 LIBINTL=
10866 LTLIBINTL=
10867 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010868 LIBINTL_PREFIX=
10869 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010870 rpathdirs=
10871 ltrpathdirs=
10872 names_already_handled=
10873 names_next_round='intl '
10874 while test -n "$names_next_round"; do
10875 names_this_round="$names_next_round"
10876 names_next_round=
10877 for name in $names_this_round; do
10878 already_handled=
10879 for n in $names_already_handled; do
10880 if test "$n" = "$name"; then
10881 already_handled=yes
10882 break
10883 fi
10884 done
10885 if test -z "$already_handled"; then
10886 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010887 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010888 eval value=\"\$HAVE_LIB$uppername\"
10889 if test -n "$value"; then
10890 if test "$value" = yes; then
10891 eval value=\"\$LIB$uppername\"
10892 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10893 eval value=\"\$LTLIB$uppername\"
10894 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10895 else
10896 :
10897 fi
10898 else
10899 found_dir=
10900 found_la=
10901 found_so=
10902 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010903 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10904 if test -n "$acl_shlibext"; then
10905 shrext=".$acl_shlibext" # typically: shrext=.so
10906 else
10907 shrext=
10908 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010909 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010910 dir="$additional_libdir"
10911 if test -n "$acl_shlibext"; then
10912 if test -f "$dir/$libname$shrext"; then
10913 found_dir="$dir"
10914 found_so="$dir/$libname$shrext"
10915 else
10916 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10917 ver=`(cd "$dir" && \
10918 for f in "$libname$shrext".*; do echo "$f"; done \
10919 | sed -e "s,^$libname$shrext\\\\.,," \
10920 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10921 | sed 1q ) 2>/dev/null`
10922 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10923 found_dir="$dir"
10924 found_so="$dir/$libname$shrext.$ver"
10925 fi
10926 else
10927 eval library_names=\"$acl_library_names_spec\"
10928 for f in $library_names; do
10929 if test -f "$dir/$f"; then
10930 found_dir="$dir"
10931 found_so="$dir/$f"
10932 break
10933 fi
10934 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010935 fi
10936 fi
10937 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010938 if test "X$found_dir" = "X"; then
10939 if test -f "$dir/$libname.$acl_libext"; then
10940 found_dir="$dir"
10941 found_a="$dir/$libname.$acl_libext"
10942 fi
10943 fi
10944 if test "X$found_dir" != "X"; then
10945 if test -f "$dir/$libname.la"; then
10946 found_la="$dir/$libname.la"
10947 fi
10948 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010949 fi
10950 if test "X$found_dir" = "X"; then
10951 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010952
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010953 acl_save_prefix="$prefix"
10954 prefix="$acl_final_prefix"
10955 acl_save_exec_prefix="$exec_prefix"
10956 exec_prefix="$acl_final_exec_prefix"
10957 eval x=\"$x\"
10958 exec_prefix="$acl_save_exec_prefix"
10959 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010960
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010961 case "$x" in
10962 -L*)
10963 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010964 if test -n "$acl_shlibext"; then
10965 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010966 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010967 found_so="$dir/$libname$shrext"
10968 else
10969 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10970 ver=`(cd "$dir" && \
10971 for f in "$libname$shrext".*; do echo "$f"; done \
10972 | sed -e "s,^$libname$shrext\\\\.,," \
10973 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10974 | sed 1q ) 2>/dev/null`
10975 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10976 found_dir="$dir"
10977 found_so="$dir/$libname$shrext.$ver"
10978 fi
10979 else
10980 eval library_names=\"$acl_library_names_spec\"
10981 for f in $library_names; do
10982 if test -f "$dir/$f"; then
10983 found_dir="$dir"
10984 found_so="$dir/$f"
10985 break
10986 fi
10987 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010988 fi
10989 fi
10990 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010991 if test "X$found_dir" = "X"; then
10992 if test -f "$dir/$libname.$acl_libext"; then
10993 found_dir="$dir"
10994 found_a="$dir/$libname.$acl_libext"
10995 fi
10996 fi
10997 if test "X$found_dir" != "X"; then
10998 if test -f "$dir/$libname.la"; then
10999 found_la="$dir/$libname.la"
11000 fi
11001 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011002 ;;
11003 esac
11004 if test "X$found_dir" != "X"; then
11005 break
11006 fi
11007 done
11008 fi
11009 if test "X$found_dir" != "X"; then
11010 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11011 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011012 if test "$enable_rpath" = no \
11013 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11014 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011015 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11016 else
11017 haveit=
11018 for x in $ltrpathdirs; do
11019 if test "X$x" = "X$found_dir"; then
11020 haveit=yes
11021 break
11022 fi
11023 done
11024 if test -z "$haveit"; then
11025 ltrpathdirs="$ltrpathdirs $found_dir"
11026 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011027 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011028 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11029 else
Theodore Ts'o93613952014-07-03 23:44:13 -040011030 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011031 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11032 haveit=
11033 for x in $rpathdirs; do
11034 if test "X$x" = "X$found_dir"; then
11035 haveit=yes
11036 break
11037 fi
11038 done
11039 if test -z "$haveit"; then
11040 rpathdirs="$rpathdirs $found_dir"
11041 fi
11042 else
11043 haveit=
11044 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011045
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011046 acl_save_prefix="$prefix"
11047 prefix="$acl_final_prefix"
11048 acl_save_exec_prefix="$exec_prefix"
11049 exec_prefix="$acl_final_exec_prefix"
11050 eval x=\"$x\"
11051 exec_prefix="$acl_save_exec_prefix"
11052 prefix="$acl_save_prefix"
11053
11054 if test "X$x" = "X-L$found_dir"; then
11055 haveit=yes
11056 break
11057 fi
11058 done
11059 if test -z "$haveit"; then
11060 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11061 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011062 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011063 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11064 else
11065 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11066 fi
11067 fi
11068 fi
11069 fi
11070 else
11071 if test "X$found_a" != "X"; then
11072 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11073 else
11074 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11075 fi
11076 fi
11077 additional_includedir=
11078 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011079 */$acl_libdirstem | */$acl_libdirstem/)
11080 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11081 if test "$name" = 'intl'; then
11082 LIBINTL_PREFIX="$basedir"
11083 fi
11084 additional_includedir="$basedir/include"
11085 ;;
11086 */$acl_libdirstem2 | */$acl_libdirstem2/)
11087 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11088 if test "$name" = 'intl'; then
11089 LIBINTL_PREFIX="$basedir"
11090 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011091 additional_includedir="$basedir/include"
11092 ;;
11093 esac
11094 if test "X$additional_includedir" != "X"; then
11095 if test "X$additional_includedir" != "X/usr/include"; then
11096 haveit=
11097 if test "X$additional_includedir" = "X/usr/local/include"; then
11098 if test -n "$GCC"; then
11099 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011100 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011101 esac
11102 fi
11103 fi
11104 if test -z "$haveit"; then
11105 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011106
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011107 acl_save_prefix="$prefix"
11108 prefix="$acl_final_prefix"
11109 acl_save_exec_prefix="$exec_prefix"
11110 exec_prefix="$acl_final_exec_prefix"
11111 eval x=\"$x\"
11112 exec_prefix="$acl_save_exec_prefix"
11113 prefix="$acl_save_prefix"
11114
11115 if test "X$x" = "X-I$additional_includedir"; then
11116 haveit=yes
11117 break
11118 fi
11119 done
11120 if test -z "$haveit"; then
11121 if test -d "$additional_includedir"; then
11122 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11123 fi
11124 fi
11125 fi
11126 fi
11127 fi
11128 if test -n "$found_la"; then
11129 save_libdir="$libdir"
11130 case "$found_la" in
11131 */* | *\\*) . "$found_la" ;;
11132 *) . "./$found_la" ;;
11133 esac
11134 libdir="$save_libdir"
11135 for dep in $dependency_libs; do
11136 case "$dep" in
11137 -L*)
11138 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011139 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11140 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011141 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011142 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11143 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011144 if test -n "$GCC"; then
11145 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011146 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011147 esac
11148 fi
11149 fi
11150 if test -z "$haveit"; then
11151 haveit=
11152 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011153
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011154 acl_save_prefix="$prefix"
11155 prefix="$acl_final_prefix"
11156 acl_save_exec_prefix="$exec_prefix"
11157 exec_prefix="$acl_final_exec_prefix"
11158 eval x=\"$x\"
11159 exec_prefix="$acl_save_exec_prefix"
11160 prefix="$acl_save_prefix"
11161
11162 if test "X$x" = "X-L$additional_libdir"; then
11163 haveit=yes
11164 break
11165 fi
11166 done
11167 if test -z "$haveit"; then
11168 if test -d "$additional_libdir"; then
11169 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11170 fi
11171 fi
11172 haveit=
11173 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011174
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011175 acl_save_prefix="$prefix"
11176 prefix="$acl_final_prefix"
11177 acl_save_exec_prefix="$exec_prefix"
11178 exec_prefix="$acl_final_exec_prefix"
11179 eval x=\"$x\"
11180 exec_prefix="$acl_save_exec_prefix"
11181 prefix="$acl_save_prefix"
11182
11183 if test "X$x" = "X-L$additional_libdir"; then
11184 haveit=yes
11185 break
11186 fi
11187 done
11188 if test -z "$haveit"; then
11189 if test -d "$additional_libdir"; then
11190 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11191 fi
11192 fi
11193 fi
11194 fi
11195 ;;
11196 -R*)
11197 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11198 if test "$enable_rpath" != no; then
11199 haveit=
11200 for x in $rpathdirs; do
11201 if test "X$x" = "X$dir"; then
11202 haveit=yes
11203 break
11204 fi
11205 done
11206 if test -z "$haveit"; then
11207 rpathdirs="$rpathdirs $dir"
11208 fi
11209 haveit=
11210 for x in $ltrpathdirs; do
11211 if test "X$x" = "X$dir"; then
11212 haveit=yes
11213 break
11214 fi
11215 done
11216 if test -z "$haveit"; then
11217 ltrpathdirs="$ltrpathdirs $dir"
11218 fi
11219 fi
11220 ;;
11221 -l*)
11222 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11223 ;;
11224 *.la)
11225 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11226 ;;
11227 *)
11228 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11229 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11230 ;;
11231 esac
11232 done
11233 fi
11234 else
11235 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11236 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11237 fi
11238 fi
11239 fi
11240 done
11241 done
11242 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011243 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011244 alldirs=
11245 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011246 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011247 done
11248 acl_save_libdir="$libdir"
11249 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011250 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011251 libdir="$acl_save_libdir"
11252 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11253 else
11254 for found_dir in $rpathdirs; do
11255 acl_save_libdir="$libdir"
11256 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011257 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011258 libdir="$acl_save_libdir"
11259 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11260 done
11261 fi
11262 fi
11263 if test "X$ltrpathdirs" != "X"; then
11264 for found_dir in $ltrpathdirs; do
11265 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11266 done
11267 fi
11268
Theodore Ts'o93613952014-07-03 23:44:13 -040011269
11270
11271
11272
11273
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011275$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011276if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011277 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011278else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011279 gt_save_CPPFLAGS="$CPPFLAGS"
11280 CPPFLAGS="$CPPFLAGS $INCINTL"
11281 gt_save_LIBS="$LIBS"
11282 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011284/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011285
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011286#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011287$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011288extern int _nl_msg_cat_cntr;
11289extern
11290#ifdef __cplusplus
11291"C"
11292#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011293const char *_nl_expand_alias (const char *);
11294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011295int
11296main ()
11297{
Theodore Ts'o93613952014-07-03 23:44:13 -040011298
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011299bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011300return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11301
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011302 ;
11303 return 0;
11304}
11305_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011306if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011307 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011308else
Theodore Ts'o93613952014-07-03 23:44:13 -040011309 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011310fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011311rm -f core conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011313 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011314 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011316/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011317
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011318#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011319$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011320extern int _nl_msg_cat_cntr;
11321extern
11322#ifdef __cplusplus
11323"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011324#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011325const char *_nl_expand_alias (const char *);
11326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011327int
11328main ()
11329{
Theodore Ts'o93613952014-07-03 23:44:13 -040011330
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011331bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011332return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11333
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011334 ;
11335 return 0;
11336}
11337_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011338if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011339 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011340 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11341 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011342
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011343fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011344rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011346 fi
11347 CPPFLAGS="$gt_save_CPPFLAGS"
11348 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011349fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011350eval ac_res=\$$gt_func_gnugettext_libintl
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11352$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011353 fi
11354
Theodore Ts'o93613952014-07-03 23:44:13 -040011355 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11356 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011357 && test "$PACKAGE" != gettext-runtime \
11358 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011359 gt_use_preinstalled_gnugettext=yes
11360 else
11361 LIBINTL=
11362 LTLIBINTL=
11363 INCINTL=
11364 fi
11365
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011366
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011367 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11368 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011369 fi
11370 fi
11371
11372 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011373 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011374 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011375 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11376 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011377 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011378 fi
11379
Theodore Ts'o93613952014-07-03 23:44:13 -040011380 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011381 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11382 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11383 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011384 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011385
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011386
Theodore Ts'o93613952014-07-03 23:44:13 -040011387 if test -n "$INTL_MACOSX_LIBS"; then
11388 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11389 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11390 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11391 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11392 fi
11393 fi
11394
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011395 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11396 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011397
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011398$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011399
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011400 else
11401 USE_NLS=no
11402 fi
11403 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011404
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011406$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011408$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011409 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011411$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011412 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011413 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011414 gt_source="external libintl"
11415 else
11416 gt_source="libc"
11417 fi
11418 else
11419 gt_source="included intl directory"
11420 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011422$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011423 fi
11424
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011425 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011426
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011427 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011428 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011430$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011432$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011433
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011434 for element in $INCINTL; do
11435 haveit=
11436 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011437
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011438 acl_save_prefix="$prefix"
11439 prefix="$acl_final_prefix"
11440 acl_save_exec_prefix="$exec_prefix"
11441 exec_prefix="$acl_final_exec_prefix"
11442 eval x=\"$x\"
11443 exec_prefix="$acl_save_exec_prefix"
11444 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011445
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011446 if test "X$x" = "X$element"; then
11447 haveit=yes
11448 break
11449 fi
11450 done
11451 if test -z "$haveit"; then
11452 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11453 fi
11454 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011455
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011456 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011457
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011458
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011459$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011460
11461
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011462$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011463
11464 fi
11465
11466 POSUB=po
11467 fi
11468
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011469
11470 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011471 BUILD_INCLUDED_LIBINTL=yes
11472 fi
11473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011474
11475
11476
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011477
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011478 nls_cv_header_intl=
11479 nls_cv_header_libgt=
11480
11481 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011482
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011483
11484 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011485
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011486
11487 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011488
11489
Theodore Ts'o93613952014-07-03 23:44:13 -040011490 INTLOBJS=
11491 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011492 INTLOBJS="\$(GETTOBJS)"
11493 fi
11494
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011495
11496 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011497
11498
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011499
11500 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011501
11502
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011503
11504
11505
11506
11507
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011509$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11510set x ${MAKE-make}
11511ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011512if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011513 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011514else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011515 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011516SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011517all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011518 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011519_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011520# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011521case `${MAKE-make} -f conftest.make 2>/dev/null` in
11522 *@@@%%%=?*=@@@%%%*)
11523 eval ac_cv_prog_make_${ac_make}_set=yes;;
11524 *)
11525 eval ac_cv_prog_make_${ac_make}_set=no;;
11526esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011527rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011528fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011529if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011531$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011532 SET_MAKE=
11533else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011535$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011536 SET_MAKE="MAKE=${MAKE-make}"
11537fi
11538
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011540$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011541if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011542 $as_echo_n "(cached) " >&6
11543else
11544 _cv_gnu_make_command='' ;
11545 for a in "$MAKE" make gmake gnumake ; do
11546 if test -z "$a" ; then continue ; fi ;
11547 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11548 _cv_gnu_make_command=$a ;
11549 break;
11550 fi
11551 done ;
11552
11553fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011555$as_echo "$_cv_gnu_make_command" >&6; } ;
11556 if test "x$_cv_gnu_make_command" != "x" ; then
11557 ifGNUmake='' ;
11558 ifNotGNUmake='#' ;
11559 else
11560 ifGNUmake='#' ;
11561 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011563$as_echo "\"Not found\"" >&6; };
11564 fi
11565
11566
11567
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011568# Extract the first word of "ln", so it can be a program name with args.
11569set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011571$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011572if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011573 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011574else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011575 case $LN in
11576 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011577 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11578 ;;
11579 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11581for as_dir in $PATH
11582do
11583 IFS=$as_save_IFS
11584 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011585 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011587 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011589 break 2
11590 fi
11591done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011592 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011593IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011594
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011595 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11596 ;;
11597esac
11598fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011599LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011600if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011602$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011603else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011605$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011606fi
11607
Theodore Ts'oe1052142006-10-21 21:46:47 -040011608
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011610$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011611LN_S=$as_ln_s
11612if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011614$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011615else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011617$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011618fi
11619
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011620# Extract the first word of "mv", so it can be a program name with args.
11621set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011623$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011624if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011625 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011626else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011627 case $MV in
11628 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011629 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11630 ;;
11631 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633for as_dir in $PATH
11634do
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011637 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011639 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011641 break 2
11642 fi
11643done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011644 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011645IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011646
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011647 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11648 ;;
11649esac
11650fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011651MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011652if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011654$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011655else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011657$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011658fi
11659
Theodore Ts'oe1052142006-10-21 21:46:47 -040011660
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011661# Extract the first word of "cp", so it can be a program name with args.
11662set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011664$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011665if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011666 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011667else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011668 case $CP in
11669 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011670 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11671 ;;
11672 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674for as_dir in $PATH
11675do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011678 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011680 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011682 break 2
11683 fi
11684done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011685 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011686IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011687
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011688 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11689 ;;
11690esac
11691fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011692CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011693if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011695$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011696else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011698$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011699fi
11700
Theodore Ts'oe1052142006-10-21 21:46:47 -040011701
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011702# Extract the first word of "rm", so it can be a program name with args.
11703set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011705$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011706if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011707 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011708else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011709 case $RM in
11710 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011711 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11712 ;;
11713 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715for as_dir in $PATH
11716do
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011719 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011721 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011723 break 2
11724 fi
11725done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011726 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011727IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011728
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011729 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11730 ;;
11731esac
11732fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011733RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011734if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011736$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011737else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011739$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011740fi
11741
Theodore Ts'oe1052142006-10-21 21:46:47 -040011742
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011743# Extract the first word of "chmod", so it can be a program name with args.
11744set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011746$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011747if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011748 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011749else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011750 case $CHMOD in
11751 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011752 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11753 ;;
11754 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756for as_dir in $PATH
11757do
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011760 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011762 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011764 break 2
11765 fi
11766done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011767 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011768IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011769
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011770 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11771 ;;
11772esac
11773fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011774CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011775if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011777$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011778else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011780$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011781fi
11782
Theodore Ts'oe1052142006-10-21 21:46:47 -040011783
Theodore Ts'o32237012005-01-17 19:13:39 -050011784for ac_prog in gawk mawk nawk awk
11785do
11786 # Extract the first word of "$ac_prog", so it can be a program name with args.
11787set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011789$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011790if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011791 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011792else
Theodore Ts'o32237012005-01-17 19:13:39 -050011793 if test -n "$AWK"; then
11794 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011801 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011803 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011805 break 2
11806 fi
11807done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011808 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011809IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011810
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011811fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011812fi
11813AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011814if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011816$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011817else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011819$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011820fi
11821
Theodore Ts'oe1052142006-10-21 21:46:47 -040011822
Theodore Ts'o32237012005-01-17 19:13:39 -050011823 test -n "$AWK" && break
11824done
11825
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011827$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011828if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011829 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011830else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011831 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11832 then ac_cv_path_EGREP="$GREP -E"
11833 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011834 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011835 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011836 # Loop through the user's path and test for each of PROGNAME-LIST
11837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011838for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11839do
11840 IFS=$as_save_IFS
11841 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011842 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011845 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011846# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011847 # Check for GNU $ac_path_EGREP
11848case `"$ac_path_EGREP" --version 2>&1` in
11849*GNU*)
11850 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11851*)
11852 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011853 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011854 while :
11855 do
11856 cat "conftest.in" "conftest.in" >"conftest.tmp"
11857 mv "conftest.tmp" "conftest.in"
11858 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011859 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011862 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11864 # Best one so far, save it but keep looking for a better one
11865 ac_cv_path_EGREP="$ac_path_EGREP"
11866 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011867 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011868 # 10*(2^10) chars as input seems more than enough
11869 test $ac_count -gt 10 && break
11870 done
11871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11872esac
11873
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011874 $ac_path_EGREP_found && break 3
11875 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011876 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011877 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011878IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011879 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011880 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 +010011881 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011882else
11883 ac_cv_path_EGREP=$EGREP
11884fi
11885
Theodore Ts'oe1052142006-10-21 21:46:47 -040011886 fi
11887fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011889$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011890 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011891
11892
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011893# Extract the first word of "sed", so it can be a program name with args.
11894set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011896$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011897if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011898 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011899else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011900 case $SED in
11901 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011902 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11903 ;;
11904 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906for as_dir in $PATH
11907do
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011910 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011912 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011914 break 2
11915 fi
11916done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011917 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011918IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011919
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011920 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11921 ;;
11922esac
11923fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011925if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011927$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011928else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011930$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011931fi
11932
Theodore Ts'oe1052142006-10-21 21:46:47 -040011933
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011934# Extract the first word of "perl", so it can be a program name with args.
11935set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011937$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011938if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011939 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011940else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011941 case $PERL in
11942 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011943 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11944 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011945 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947for as_dir in $PATH
11948do
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011951 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011953 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011955 break 2
11956 fi
11957done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011958 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011959IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011960
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011961 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11962 ;;
11963esac
11964fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011965PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011966if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011968$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011969else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011971$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011972fi
11973
Theodore Ts'oe1052142006-10-21 21:46:47 -040011974
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011975# Extract the first word of "ldconfig", so it can be a program name with args.
11976set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011978$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011979if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011980 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011981else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011982 case $LDCONFIG in
11983 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011984 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11985 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011986 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988for as_dir in $PATH
11989do
11990 IFS=$as_save_IFS
11991 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011992 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011994 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011996 break 2
11997 fi
11998done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011999 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012000IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012001
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012002 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12003 ;;
12004esac
12005fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012006LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012007if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012009$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012010else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012012$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012013fi
12014
Theodore Ts'oe1052142006-10-21 21:46:47 -040012015
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012016if test -n "$ac_tool_prefix"; then
12017 # 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 +000012018set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012020$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012021if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012022 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012023else
12024 if test -n "$AR"; then
12025 ac_cv_prog_AR="$AR" # Let the user override the test.
12026else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028for as_dir in $PATH
12029do
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012032 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012034 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012036 break 2
12037 fi
12038done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012039 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012040IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012041
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012042fi
12043fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012044AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012045if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012047$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012048else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012050$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012051fi
12052
Theodore Ts'oe1052142006-10-21 21:46:47 -040012053
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012054fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012055if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012056 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012057 # Extract the first word of "ar", so it can be a program name with args.
12058set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012060$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012061if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012062 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012063else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064 if test -n "$ac_ct_AR"; then
12065 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012066else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068for as_dir in $PATH
12069do
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012072 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012074 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012076 break 2
12077 fi
12078done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012079 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012080IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012081
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012082fi
12083fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012084ac_ct_AR=$ac_cv_prog_ac_ct_AR
12085if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012087$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012088else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012090$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012091fi
12092
Theodore Ts'oe1052142006-10-21 21:46:47 -040012093 if test "x$ac_ct_AR" = x; then
12094 AR="ar"
12095 else
12096 case $cross_compiling:$ac_tool_warned in
12097yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012098{ $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 +010012099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012100ac_tool_warned=yes ;;
12101esac
12102 AR=$ac_ct_AR
12103 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012104else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012106fi
12107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012108if test -n "$ac_tool_prefix"; then
12109 # 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 +000012110set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012112$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012113if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012114 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012115else
12116 if test -n "$RANLIB"; then
12117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12118else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120for as_dir in $PATH
12121do
12122 IFS=$as_save_IFS
12123 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012124 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012128 break 2
12129 fi
12130done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012131 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012132IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012133
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012134fi
12135fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012136RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012137if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012139$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012140else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012142$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012143fi
12144
Theodore Ts'oe1052142006-10-21 21:46:47 -040012145
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012146fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012147if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012148 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012149 # Extract the first word of "ranlib", so it can be a program name with args.
12150set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012152$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012153if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012154 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012155else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012156 if test -n "$ac_ct_RANLIB"; then
12157 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012158else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160for as_dir in $PATH
12161do
12162 IFS=$as_save_IFS
12163 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012164 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012166 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012168 break 2
12169 fi
12170done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012171 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012172IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012173
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012174fi
12175fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012176ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12177if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012179$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012180else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012182$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012183fi
12184
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185 if test "x$ac_ct_RANLIB" = x; then
12186 RANLIB=":"
12187 else
12188 case $cross_compiling:$ac_tool_warned in
12189yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012190{ $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 +010012191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012192ac_tool_warned=yes ;;
12193esac
12194 RANLIB=$ac_ct_RANLIB
12195 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012196else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012198fi
12199
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012200if test -n "$ac_tool_prefix"; then
12201 # 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 +000012202set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012204$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012205if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012206 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012207else
12208 if test -n "$STRIP"; then
12209 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12210else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212for as_dir in $PATH
12213do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012216 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012218 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012220 break 2
12221 fi
12222done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012223 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012224IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012225
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012226fi
12227fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012228STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012229if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012231$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012232else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012234$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012235fi
12236
Theodore Ts'oe1052142006-10-21 21:46:47 -040012237
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012238fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012239if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012240 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012241 # Extract the first word of "strip", so it can be a program name with args.
12242set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012244$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012245if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012246 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012247else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012248 if test -n "$ac_ct_STRIP"; then
12249 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012250else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252for as_dir in $PATH
12253do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012256 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012258 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012260 break 2
12261 fi
12262done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012263 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012264IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012265
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012266fi
12267fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012268ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12269if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012271$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012272else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012274$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012275fi
12276
Theodore Ts'oe1052142006-10-21 21:46:47 -040012277 if test "x$ac_ct_STRIP" = x; then
12278 STRIP=":"
12279 else
12280 case $cross_compiling:$ac_tool_warned in
12281yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012282{ $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 +010012283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012284ac_tool_warned=yes ;;
12285esac
12286 STRIP=$ac_ct_STRIP
12287 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012288else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012289 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012290fi
12291
Manish Katiyar7321d942008-04-14 17:20:03 +053012292# Extract the first word of "makeinfo", so it can be a program name with args.
12293set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012295$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012296if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012297 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012298else
12299 if test -n "$MAKEINFO"; then
12300 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12301else
12302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303for as_dir in $PATH
12304do
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012307 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012309 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012311 break 2
12312 fi
12313done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012314 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012315IFS=$as_save_IFS
12316
12317fi
12318fi
12319MAKEINFO=$ac_cv_prog_MAKEINFO
12320if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012322$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012323else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012325$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012326fi
12327
12328
12329if test "_$MAKEINFO" = "_"; then
12330 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12331else
12332 case "$MAKEINFO" in
12333 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012335*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012336$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012337*** Makeinfo is missing. Info documentation will not be built." >&2;}
12338 ;;
12339 *)
12340 ;;
12341 esac
12342fi
12343
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012344
Theodore Ts'o6c133521999-07-03 20:37:03 +000012345# See if we need a separate native compiler.
12346if test $cross_compiling = no; then
12347 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012348
Theodore Ts'o6c133521999-07-03 20:37:03 +000012349else
12350 for ac_prog in gcc cc
12351do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012352 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012353set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012355$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012356if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012357 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012358else
12359 if test -n "$BUILD_CC"; then
12360 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12361else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012364do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012367 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012369 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012371 break 2
12372 fi
12373done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012374 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012375IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012376
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012377fi
12378fi
12379BUILD_CC=$ac_cv_prog_BUILD_CC
12380if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012382$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012383else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012385$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012386fi
12387
Theodore Ts'oe1052142006-10-21 21:46:47 -040012388
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012389 test -n "$BUILD_CC" && break
12390done
12391
12392fi
Darrick J. Wong79614b22015-04-20 22:27:19 -040012393for 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 attr/xattr.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012394do :
12395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12396ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012397if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012398 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012399#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012400_ACEOF
12401
12402fi
12403
12404done
12405
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012406for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012407do :
12408 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012409#if HAVE_SYS_TYPES_H
12410#include <sys/types.h>
12411#endif
12412#if HAVE_SYS_SOCKET
12413#include <sys/socket.h>
12414#endif
12415
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012416"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012417if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012418 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012419#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012420_ACEOF
12421
12422fi
12423
12424done
12425
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012426for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012427do :
12428 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012429if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012430 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012431#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012432_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012433
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012434ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012435if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012436
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012437$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012438
12439fi
12440
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012441fi
12442done
12443
12444
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012445ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12446"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012447if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012448
12449$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012450
12451fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012452
Theodore Ts'o28739272014-01-03 00:26:43 -050012453ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12454if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12455
12456cat >>confdefs.h <<_ACEOF
12457#define HAVE_STRUCT_STAT_ST_ATIM 1
12458_ACEOF
12459
12460
12461fi
12462
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012463ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12464"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012465if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012466
12467$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012468
Theodore Ts'offf45482003-04-13 00:44:19 -040012469fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012470
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012471ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12472"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012473if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012474
12475$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012476
12477fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012478
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012479ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012480 #define _LARGEFILE64_SOURCE
12481 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012482"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012483if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012484
12485$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012486
12487fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012488
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012489# The cast to long int works around a bug in the HP C Compiler
12490# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12491# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12492# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012494$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012495if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012496 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012497else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012498 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 -050012499
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012500else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012501 if test "$ac_cv_type_short" = yes; then
12502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012504as_fn_error 77 "cannot compute sizeof (short)
12505See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012506 else
12507 ac_cv_sizeof_short=0
12508 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012509fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012511fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012513$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012514
12515
12516
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012517cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012518#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012519_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012520
12521
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012522# The cast to long int works around a bug in the HP C Compiler
12523# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12524# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12525# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012527$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012528if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012529 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012530else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012531 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 -050012532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012533else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012534 if test "$ac_cv_type_int" = yes; then
12535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012537as_fn_error 77 "cannot compute sizeof (int)
12538See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012539 else
12540 ac_cv_sizeof_int=0
12541 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012542fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012544fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012546$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012547
12548
12549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012550cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012551#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012552_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012553
12554
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012555# The cast to long int works around a bug in the HP C Compiler
12556# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12557# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12558# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012560$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012561if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012562 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012563else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012564 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 -050012565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012566else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012567 if test "$ac_cv_type_long" = yes; then
12568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012570as_fn_error 77 "cannot compute sizeof (long)
12571See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012572 else
12573 ac_cv_sizeof_long=0
12574 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012575fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012577fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012579$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012580
12581
12582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012583cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012584#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012585_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012586
12587
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012588# The cast to long int works around a bug in the HP C Compiler
12589# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12590# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12591# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012593$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012594if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012595 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012596else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012597 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 -050012598
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012599else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012600 if test "$ac_cv_type_long_long" = yes; then
12601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012603as_fn_error 77 "cannot compute sizeof (long long)
12604See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012605 else
12606 ac_cv_sizeof_long_long=0
12607 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012608fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012609
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012610fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012612$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012613
12614
12615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012616cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012617#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012618_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012619
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012620
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012621# The cast to long int works around a bug in the HP C Compiler
12622# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12623# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12624# This bug is HP SR number 8606223364.
12625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12626$as_echo_n "checking size of off_t... " >&6; }
12627if ${ac_cv_sizeof_off_t+:} false; then :
12628 $as_echo_n "(cached) " >&6
12629else
12630 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12631
12632else
12633 if test "$ac_cv_type_off_t" = yes; then
12634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12636as_fn_error 77 "cannot compute sizeof (off_t)
12637See \`config.log' for more details" "$LINENO" 5; }
12638 else
12639 ac_cv_sizeof_off_t=0
12640 fi
12641fi
12642
12643fi
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12645$as_echo "$ac_cv_sizeof_off_t" >&6; }
12646
12647
12648
12649cat >>confdefs.h <<_ACEOF
12650#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12651_ACEOF
12652
12653
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012654SIZEOF_SHORT=$ac_cv_sizeof_short
12655SIZEOF_INT=$ac_cv_sizeof_int
12656SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012657SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012658SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12659
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012660
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012661
12662
12663
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012665$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012666if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012667 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012668else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012669 ac_cv_c_bigendian=unknown
12670 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012672/* end confdefs.h. */
12673#ifndef __APPLE_CC__
12674 not a universal capable compiler
12675 #endif
12676 typedef int dummy;
12677
12678_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012679if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012680
12681 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012682 # there are at least two -arch flags with different values.
12683 ac_arch=
12684 ac_prev=
12685 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12686 if test -n "$ac_prev"; then
12687 case $ac_word in
12688 i?86 | x86_64 | ppc | ppc64)
12689 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12690 ac_arch=$ac_word
12691 else
12692 ac_cv_c_bigendian=universal
12693 break
12694 fi
12695 ;;
12696 esac
12697 ac_prev=
12698 elif test "x$ac_word" = "x-arch"; then
12699 ac_prev=arch
12700 fi
12701 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012702fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704 if test $ac_cv_c_bigendian = unknown; then
12705 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012707/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012708#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012709 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012711int
12712main ()
12713{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012714#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12715 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12716 && LITTLE_ENDIAN)
12717 bogus endian macros
12718 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012719
12720 ;
12721 return 0;
12722}
12723_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012724if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012725 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012727/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012728#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012729 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012730
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012731int
12732main ()
12733{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012734#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012735 not big endian
12736 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012737
12738 ;
12739 return 0;
12740}
12741_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012742if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012743 ac_cv_c_bigendian=yes
12744else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012745 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012746fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012748fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 fi
12751 if test $ac_cv_c_bigendian = unknown; then
12752 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012754/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012755#include <limits.h>
12756
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012757int
12758main ()
12759{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012760#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12761 bogus endian macros
12762 #endif
12763
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012764 ;
12765 return 0;
12766}
12767_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012768if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012769 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012771/* end confdefs.h. */
12772#include <limits.h>
12773
12774int
12775main ()
12776{
12777#ifndef _BIG_ENDIAN
12778 not big endian
12779 #endif
12780
12781 ;
12782 return 0;
12783}
12784_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012785if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012786 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012787else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012788 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012789fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012791fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793 fi
12794 if test $ac_cv_c_bigendian = unknown; then
12795 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012796 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012797 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012799/* end confdefs.h. */
12800short int ascii_mm[] =
12801 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12802 short int ascii_ii[] =
12803 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12804 int use_ascii (int i) {
12805 return ascii_mm[i] + ascii_ii[i];
12806 }
12807 short int ebcdic_ii[] =
12808 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12809 short int ebcdic_mm[] =
12810 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12811 int use_ebcdic (int i) {
12812 return ebcdic_mm[i] + ebcdic_ii[i];
12813 }
12814 extern int foo;
12815
12816int
12817main ()
12818{
12819return use_ascii (foo) == use_ebcdic (foo);
12820 ;
12821 return 0;
12822}
12823_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012824if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012825 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12826 ac_cv_c_bigendian=yes
12827 fi
12828 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12829 if test "$ac_cv_c_bigendian" = unknown; then
12830 ac_cv_c_bigendian=no
12831 else
12832 # finding both strings is unlikely to happen, but who knows?
12833 ac_cv_c_bigendian=unknown
12834 fi
12835 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012836fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012838else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012840/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012841$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012842int
12843main ()
12844{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012845
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012846 /* Are we little or big endian? From Harbison&Steele. */
12847 union
12848 {
12849 long int l;
12850 char c[sizeof (long int)];
12851 } u;
12852 u.l = 1;
12853 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012854
12855 ;
12856 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012857}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012858_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012859if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012860 ac_cv_c_bigendian=no
12861else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012862 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012863fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12865 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012866fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012867
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012868 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012869fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012871$as_echo "$ac_cv_c_bigendian" >&6; }
12872 case $ac_cv_c_bigendian in #(
12873 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012874 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012875;; #(
12876 no)
12877 ;; #(
12878 universal)
12879
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012880$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012881
12882 ;; #(
12883 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012884 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012885 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012886 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012887
Chen Qi91f04682014-05-05 21:08:42 -040012888if test $cross_compiling = no; then
12889 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12890else
12891 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12892fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012893ASM_TYPES_HEADER=./asm_types.h
12894
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012895echo "/* These defines are needed for the public ext2fs.h header file */" \
12896 > public_config.h
12897if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12898 uniq tmp_config.$$ >> public_config.h
12899else
12900 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12901fi
12902if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12903 uniq tmp_config.$$ >> public_config.h
12904else
12905 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12906fi
12907rm -f tmp_config.$$
12908PUBLIC_CONFIG_HEADER=./public_config.h
12909
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012910for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012911do :
12912 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012913if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012914 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012915#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012916_ACEOF
12917
12918fi
12919
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012920done
12921
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012922ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012923if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012924
12925cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012926#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012927_ACEOF
12928
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012929
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012930fi
12931
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012932{ $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 +010012933$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012934if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012935 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012936else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012938/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012939#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012940int
12941main ()
12942{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012943struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012944 ;
12945 return 0;
12946}
12947_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012948if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012949 e2fsprogs_cv_struct_st_flags=yes
12950else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012951 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012952fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12954fi
12955
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012957$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012958if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012960$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012961 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012962 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012963else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012965/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012966#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012967int
12968main ()
12969{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012970struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012971 ;
12972 return 0;
12973}
12974_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012975if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012976 e2fsprogs_cv_struct_st_flags_immut=yes
12977else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012978 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012979fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981fi
12982
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012984$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012985 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012986
12987$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012988
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012989 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012990fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012991ac_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 -050012992 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012993"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012994if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012995
12996cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012997#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012998_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012999
13000fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013001
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013002if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013004$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013005if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013006 $as_echo_n "(cached) " >&6
13007else
13008 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013010/* end confdefs.h. */
13011
13012/* Override any GCC internal prototype to avoid an error.
13013 Use char because int might match the return type of a GCC
13014 builtin and then its argument prototype would still apply. */
13015#ifdef __cplusplus
13016extern "C"
13017#endif
13018char blkid_probe_all ();
13019int
13020main ()
13021{
13022return blkid_probe_all ();
13023 ;
13024 return 0;
13025}
13026_ACEOF
13027for ac_lib in '' blkid; do
13028 if test -z "$ac_lib"; then
13029 ac_res="none required"
13030 else
13031 ac_res=-l$ac_lib
13032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13033 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013034 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013035 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013036fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013037rm -f core conftest.err conftest.$ac_objext \
13038 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013039 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013040 break
13041fi
13042done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013043if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013044
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013045else
13046 ac_cv_search_blkid_probe_all=no
13047fi
13048rm conftest.$ac_ext
13049LIBS=$ac_func_search_save_LIBS
13050fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013052$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13053ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013054if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13056
13057fi
13058
13059fi
Theodore Ts'o8b779482014-11-04 11:20:09 -050013060for ac_func in __secure_getenv backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013061do :
13062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13063ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013064if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013065 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013066#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013067_ACEOF
13068
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013069fi
13070done
13071
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013072SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013074$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013075if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013076 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013077else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013078 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013079LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013081/* end confdefs.h. */
13082
Theodore Ts'oe1052142006-10-21 21:46:47 -040013083/* Override any GCC internal prototype to avoid an error.
13084 Use char because int might match the return type of a GCC
13085 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013086#ifdef __cplusplus
13087extern "C"
13088#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013089char socket ();
13090int
13091main ()
13092{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013093return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013094 ;
13095 return 0;
13096}
13097_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013098if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013099 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013100else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013101 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013102fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013103rm -f core conftest.err conftest.$ac_objext \
13104 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013105LIBS=$ac_check_lib_save_LIBS
13106fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013108$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013109if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013110 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013111fi
13112
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013113
Darrick J. Wongb291c112014-09-13 15:12:46 -070013114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13115$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13116if ${ac_cv_lib_magic_magic_file+:} false; then :
13117 $as_echo_n "(cached) " >&6
13118else
13119 ac_check_lib_save_LIBS=$LIBS
13120LIBS="-lmagic $LIBS"
13121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122/* end confdefs.h. */
13123
13124/* Override any GCC internal prototype to avoid an error.
13125 Use char because int might match the return type of a GCC
13126 builtin and then its argument prototype would still apply. */
13127#ifdef __cplusplus
13128extern "C"
13129#endif
13130char magic_file ();
13131int
13132main ()
13133{
13134return magic_file ();
13135 ;
13136 return 0;
13137}
13138_ACEOF
13139if ac_fn_c_try_link "$LINENO"; then :
13140 ac_cv_lib_magic_magic_file=yes
13141else
13142 ac_cv_lib_magic_magic_file=no
13143fi
13144rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13146LIBS=$ac_check_lib_save_LIBS
13147fi
13148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13149$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13150if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13151 MAGIC_LIB=-lmagic
13152for ac_header in magic.h
13153do :
13154 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13155if test "x$ac_cv_header_magic_h" = xyes; then :
13156 cat >>confdefs.h <<_ACEOF
13157#define HAVE_MAGIC_H 1
13158_ACEOF
13159
13160fi
13161
13162done
13163
13164fi
13165
Theodore Ts'od2e3c0d2014-09-21 01:25:58 -040013166if test "$ac_cv_lib_dl_dlopen" = yes ; then
13167 MAGIC_LIB=$DLOPEN_LIB
13168fi
Darrick J. Wongb291c112014-09-13 15:12:46 -070013169
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013171$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013172if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013173 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013174else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013176/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013177#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013178
13179_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013181 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013182 ac_cv_have_optreset=yes
13183else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013184 ac_cv_have_optreset=no
13185fi
13186rm -f conftest*
13187
13188fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013190$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013191if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013192
13193$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013194
13195fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013196
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013197SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013198ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013199if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013200
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013201else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013203$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013204if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013205 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013206else
13207 ac_check_lib_save_LIBS=$LIBS
13208LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013210/* end confdefs.h. */
13211
13212/* Override any GCC internal prototype to avoid an error.
13213 Use char because int might match the return type of a GCC
13214 builtin and then its argument prototype would still apply. */
13215#ifdef __cplusplus
13216extern "C"
13217#endif
13218char sem_init ();
13219int
13220main ()
13221{
13222return sem_init ();
13223 ;
13224 return 0;
13225}
13226_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013227if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013228 ac_cv_lib_pthread_sem_init=yes
13229else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013230 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013231fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013232rm -f core conftest.err conftest.$ac_objext \
13233 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013234LIBS=$ac_check_lib_save_LIBS
13235fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013237$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013238if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013239 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013240
13241 SEM_INIT_LIB=-lpthread
13242else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013244$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013245if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013246 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013247else
13248 ac_check_lib_save_LIBS=$LIBS
13249LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013251/* end confdefs.h. */
13252
13253/* Override any GCC internal prototype to avoid an error.
13254 Use char because int might match the return type of a GCC
13255 builtin and then its argument prototype would still apply. */
13256#ifdef __cplusplus
13257extern "C"
13258#endif
13259char sem_init ();
13260int
13261main ()
13262{
13263return sem_init ();
13264 ;
13265 return 0;
13266}
13267_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013268if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013269 ac_cv_lib_rt_sem_init=yes
13270else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013271 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013272fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013273rm -f core conftest.err conftest.$ac_objext \
13274 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013275LIBS=$ac_check_lib_save_LIBS
13276fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013278$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013279if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013280 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013281
13282 SEM_INIT_LIB=-lrt
13283else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013285$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013286if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013287 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013288else
13289 ac_check_lib_save_LIBS=$LIBS
13290LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013292/* end confdefs.h. */
13293
13294/* Override any GCC internal prototype to avoid an error.
13295 Use char because int might match the return type of a GCC
13296 builtin and then its argument prototype would still apply. */
13297#ifdef __cplusplus
13298extern "C"
13299#endif
13300char sem_init ();
13301int
13302main ()
13303{
13304return sem_init ();
13305 ;
13306 return 0;
13307}
13308_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013309if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013310 ac_cv_lib_posix4_sem_init=yes
13311else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013312 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013313fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013314rm -f core conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013316LIBS=$ac_check_lib_save_LIBS
13317fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013319$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013320if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013321 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013322
13323 SEM_INIT_LIB=-lposix4
13324fi
13325
13326fi
13327
13328fi
13329
13330fi
13331
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013333$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013334if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013335 UNI_DIFF_OPTS=-u
13336else
13337 UNI_DIFF_OPTS=-c
13338fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013340$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013341
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013342case "$host_os" in
13343linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013344
13345$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013346
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013347 ;;
13348esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013349LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013350CYGWIN_CMT="#"
13351UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013352case "$host_os" in
13353linux*)
13354 LINUX_CMT=
13355 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013356cygwin)
13357 CYGWIN_CMT=
13358 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013359 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013360esac
13361
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013362
13363
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013364case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013365linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013366 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13367 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013368 { $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 +010013369$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013370 fi
13371 ;;
13372esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013373case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013374linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013375 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013376 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013377 { $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 +010013378$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013379 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013381$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013382 mandir=/usr/share/man
13383 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013384 fi
13385;;
13386esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013387if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013388 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013389 root_prefix="$ac_default_prefix"
13390 else
13391 root_prefix="$prefix"
13392 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013393 root_bindir=$bindir
13394 root_sbindir=$sbindir
13395 root_libdir=$libdir
13396 root_sysconfdir=$sysconfdir
13397else
13398 root_bindir='${root_prefix}/bin'
13399 root_sbindir='${root_prefix}/sbin'
13400 root_libdir='${root_prefix}/lib'
13401 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013402fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013403if test "$bindir" != '${exec_prefix}/bin'; then
13404 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013406$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013407fi
13408if test "$sbindir" != '${exec_prefix}/sbin'; then
13409 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013411$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013412fi
13413if test "$libdir" != '${exec_prefix}/lib'; then
13414 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013416$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013417fi
13418if test "$sysconfdir" != '${prefix}/etc'; then
13419 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013421$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013422fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013423
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013424
13425
13426
13427
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013428
13429# Check whether --with-multiarch was given.
13430if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013431 withval=$with_multiarch; if test "$withval" = "lib64"; then
13432 libdir=/usr/lib64
13433 root_libdir=/lib64
13434else
13435 libdir=$libdir/$withval
13436 root_libdir=$root_libdir/$withval
13437fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013438
13439fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13441$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013442if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013443 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013444else
13445 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013447/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013448#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013449int
13450main ()
13451{
Theodore Ts'oae851481997-04-29 18:13:24 +000013452fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013453 ;
13454 return 0;
13455}
13456_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013457if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013458 ac_cv_e2fsprogs_use_static=yes
13459else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013460 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013461fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013462rm -f core conftest.err conftest.$ac_objext \
13463 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013464LDFLAGS=$SAVE_LDFLAGS
13465fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013466
Theodore Ts'odefde781999-01-04 07:39:19 +000013467case "$host_os" in
13468solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013469 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013470;;
13471esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013473$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000013474LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000013475if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013476 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000013477fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013478
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013479case "$host_os" in
13480darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013482$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013483
13484$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013485
13486 ;;
13487esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013488SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13489ET_DIR=`cd ${srcdir}/lib/et; pwd`
13490
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013491
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013492if test "$cross_compiling" = yes ; then
13493 DO_TEST_SUITE=
13494else
13495 DO_TEST_SUITE=check
13496fi
13497
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013498INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13499if test -n "$CPPFLAGS" ; then
13500 INCLUDES="$INCLUDES $CPPFLAGS"
13501fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013502if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013503 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013504fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013505if test -n "$WITH_DIET_LIBC" ; then
13506 INCLUDES="$INCLUDES -D_REENTRANT"
13507fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013508
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013509
13510 MKINSTALLDIRS=
13511 if test -n "$ac_aux_dir"; then
13512 case "$ac_aux_dir" in
13513 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13514 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13515 esac
13516 fi
13517 if test -z "$MKINSTALLDIRS"; then
13518 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13519 fi
13520
13521
Theodore Ts'odd947da2005-11-09 18:37:07 -040013522if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013523 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013524 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013525fi
13526
13527
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013528test -d lib || mkdir lib
13529test -d include || mkdir include
13530test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013531test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013532for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013533 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013534 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13535 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013536 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070013537 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050013538 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13539 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050013540 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013541 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013542 resize/Makefile doc/Makefile intl/Makefile \
13543 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013544 if test -d `dirname ${srcdir}/$i` ; then
13545 outlist="$outlist $i"
13546 fi
13547done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013548ac_config_files="$ac_config_files $outlist"
13549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013550cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013551# This file is a shell script that caches the results of configure
13552# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013553# scripts and configure runs, see configure's option --config-cache.
13554# It is not useful on other systems. If it contains results you don't
13555# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013556#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013557# config.status only pays attention to the cache file if you give it
13558# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013559#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013560# `ac_cv_env_foo' variables (set or unset) will be overridden when
13561# loading this file, other *unset* `ac_cv_foo' will be assigned the
13562# following values.
13563
13564_ACEOF
13565
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013566# The following way of writing the cache mishandles newlines in values,
13567# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013568# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013569# Ultrix sh set writes to stderr and can't be redirected directly,
13570# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013571(
13572 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13573 eval ac_val=\$$ac_var
13574 case $ac_val in #(
13575 *${as_nl}*)
13576 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013577 *_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 +010013578$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013579 esac
13580 case $ac_var in #(
13581 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013583 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013584 esac ;;
13585 esac
13586 done
13587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013588 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013589 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13590 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013591 # `set' does not quote correctly, so add quotes: double-quote
13592 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013593 sed -n \
13594 "s/'/'\\\\''/g;
13595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013596 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013597 *)
13598 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013600 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013601 esac |
13602 sort
13603) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013604 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013605 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013606 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013607 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13609 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013610 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13611 :end' >>confcache
13612if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13613 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013614 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013615 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013616$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013617 if test ! -f "$cache_file" || test -h "$cache_file"; then
13618 cat confcache >"$cache_file"
13619 else
13620 case $cache_file in #(
13621 */* | ?:*)
13622 mv -f confcache "$cache_file"$$ &&
13623 mv -f "$cache_file"$$ "$cache_file" ;; #(
13624 *)
13625 mv -f confcache "$cache_file" ;;
13626 esac
13627 fi
13628 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013629 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013630 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013631$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013632 fi
13633fi
13634rm -f confcache
13635
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013636test "x$prefix" = xNONE && prefix=$ac_default_prefix
13637# Let make expand exec_prefix.
13638test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13639
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013640DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013641
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013642ac_libobjs=
13643ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013644U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013645for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13646 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013647 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013648 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013649 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13650 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013651 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13652 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013653done
13654LIBOBJS=$ac_libobjs
13655
13656LTLIBOBJS=$ac_ltlibobjs
13657
13658
13659
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013660
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013661: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013662ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013663ac_clean_files_save=$ac_clean_files
13664ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013665{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013666$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013667as_write_fail=0
13668cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013669#! $SHELL
13670# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013671# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013672# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013673# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013674
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013675debug=false
13676ac_cs_recheck=false
13677ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013678
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013679SHELL=\${CONFIG_SHELL-$SHELL}
13680export SHELL
13681_ASEOF
13682cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13683## -------------------- ##
13684## M4sh Initialization. ##
13685## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013686
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013687# Be more Bourne compatible
13688DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013689if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013690 emulate sh
13691 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013692 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013693 # is contrary to our usage. Disable this feature.
13694 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013695 setopt NO_GLOB_SUBST
13696else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013697 case `(set -o) 2>/dev/null` in #(
13698 *posix*) :
13699 set -o posix ;; #(
13700 *) :
13701 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013702esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013703fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013704
13705
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013706as_nl='
13707'
13708export as_nl
13709# Printing a long string crashes Solaris 7 /usr/bin/printf.
13710as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13711as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13712as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013713# Prefer a ksh shell builtin over an external printf program on Solaris,
13714# but without wasting forks for bash or zsh.
13715if test -z "$BASH_VERSION$ZSH_VERSION" \
13716 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13717 as_echo='print -r --'
13718 as_echo_n='print -rn --'
13719elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013720 as_echo='printf %s\n'
13721 as_echo_n='printf %s'
13722else
13723 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13724 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13725 as_echo_n='/usr/ucb/echo -n'
13726 else
13727 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13728 as_echo_n_body='eval
13729 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013730 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013731 *"$as_nl"*)
13732 expr "X$arg" : "X\\(.*\\)$as_nl";
13733 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13734 esac;
13735 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13736 '
13737 export as_echo_n_body
13738 as_echo_n='sh -c $as_echo_n_body as_echo'
13739 fi
13740 export as_echo_body
13741 as_echo='sh -c $as_echo_body as_echo'
13742fi
13743
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013744# The user is always right.
13745if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013746 PATH_SEPARATOR=:
13747 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13748 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13749 PATH_SEPARATOR=';'
13750 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013751fi
13752
Theodore Ts'oe1052142006-10-21 21:46:47 -040013753
13754# IFS
13755# We need space, tab and new line, in precisely that order. Quoting is
13756# there to prevent editors from complaining about space-tab.
13757# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13758# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013759IFS=" "" $as_nl"
13760
13761# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013762as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013763case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013764 *[\\/]* ) as_myself=$0 ;;
13765 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013766for as_dir in $PATH
13767do
13768 IFS=$as_save_IFS
13769 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013770 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13771 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013772IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013773
Theodore Ts'oe1052142006-10-21 21:46:47 -040013774 ;;
13775esac
13776# We did not find ourselves, most probably we were run as `sh COMMAND'
13777# in which case we are not to be found in the path.
13778if test "x$as_myself" = x; then
13779 as_myself=$0
13780fi
13781if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013782 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013783 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040013784fi
13785
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013786# Unset variables that we do not need and which cause bugs (e.g. in
13787# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13788# suppresses any "Segmentation fault" message there. '((' could
13789# trigger a bug in pdksh 5.2.14.
13790for as_var in BASH_ENV ENV MAIL MAILPATH
13791do eval test x\${$as_var+set} = xset \
13792 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040013793done
13794PS1='$ '
13795PS2='> '
13796PS4='+ '
13797
13798# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013799LC_ALL=C
13800export LC_ALL
13801LANGUAGE=C
13802export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040013803
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013804# CDPATH.
13805(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13806
13807
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013808# as_fn_error STATUS ERROR [LINENO LOG_FD]
13809# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013810# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13811# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013812# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013813as_fn_error ()
13814{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013815 as_status=$1; test $as_status -eq 0 && as_status=1
13816 if test "$4"; then
13817 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13818 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013819 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013820 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013821 as_fn_exit $as_status
13822} # as_fn_error
13823
13824
13825# as_fn_set_status STATUS
13826# -----------------------
13827# Set $? to STATUS, without forking.
13828as_fn_set_status ()
13829{
13830 return $1
13831} # as_fn_set_status
13832
13833# as_fn_exit STATUS
13834# -----------------
13835# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13836as_fn_exit ()
13837{
13838 set +e
13839 as_fn_set_status $1
13840 exit $1
13841} # as_fn_exit
13842
13843# as_fn_unset VAR
13844# ---------------
13845# Portably unset VAR.
13846as_fn_unset ()
13847{
13848 { eval $1=; unset $1;}
13849}
13850as_unset=as_fn_unset
13851# as_fn_append VAR VALUE
13852# ----------------------
13853# Append the text in VALUE to the end of the definition contained in VAR. Take
13854# advantage of any shell optimizations that allow amortized linear growth over
13855# repeated appends, instead of the typical quadratic growth present in naive
13856# implementations.
13857if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13858 eval 'as_fn_append ()
13859 {
13860 eval $1+=\$2
13861 }'
13862else
13863 as_fn_append ()
13864 {
13865 eval $1=\$$1\$2
13866 }
13867fi # as_fn_append
13868
13869# as_fn_arith ARG...
13870# ------------------
13871# Perform arithmetic evaluation on the ARGs, and store the result in the
13872# global $as_val. Take advantage of shells that can avoid forks. The arguments
13873# must be portable across $(()) and expr.
13874if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13875 eval 'as_fn_arith ()
13876 {
13877 as_val=$(( $* ))
13878 }'
13879else
13880 as_fn_arith ()
13881 {
13882 as_val=`expr "$@" || test $? -eq 1`
13883 }
13884fi # as_fn_arith
13885
13886
Theodore Ts'oe1052142006-10-21 21:46:47 -040013887if expr a : '\(a\)' >/dev/null 2>&1 &&
13888 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13889 as_expr=expr
13890else
13891 as_expr=false
13892fi
13893
13894if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13895 as_basename=basename
13896else
13897 as_basename=false
13898fi
13899
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013900if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13901 as_dirname=dirname
13902else
13903 as_dirname=false
13904fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013905
Theodore Ts'oe1052142006-10-21 21:46:47 -040013906as_me=`$as_basename -- "$0" ||
13907$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13908 X"$0" : 'X\(//\)$' \| \
13909 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013910$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013911 sed '/^.*\/\([^/][^/]*\)\/*$/{
13912 s//\1/
13913 q
13914 }
13915 /^X\/\(\/\/\)$/{
13916 s//\1/
13917 q
13918 }
13919 /^X\/\(\/\).*/{
13920 s//\1/
13921 q
13922 }
13923 s/.*/./; q'`
13924
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013925# Avoid depending upon Character Ranges.
13926as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13927as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13928as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13929as_cr_digits='0123456789'
13930as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040013931
13932ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013933case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013934-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013935 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040013936 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013937 xy) ECHO_C='\c';;
13938 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13939 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013940 esac;;
13941*)
13942 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013943esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013944
13945rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040013946if test -d conf$$.dir; then
13947 rm -f conf$$.dir/conf$$.file
13948else
13949 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013950 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040013951fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013952if (echo >conf$$.file) 2>/dev/null; then
13953 if ln -s conf$$.file conf$$ 2>/dev/null; then
13954 as_ln_s='ln -s'
13955 # ... but there are two gotchas:
13956 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13957 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013958 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013959 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013960 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013961 elif ln conf$$.file conf$$ 2>/dev/null; then
13962 as_ln_s=ln
13963 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013964 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013965 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013966else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013967 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013968fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013969rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13970rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013971
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013972
13973# as_fn_mkdir_p
13974# -------------
13975# Create "$as_dir" as a directory, including parents if necessary.
13976as_fn_mkdir_p ()
13977{
13978
13979 case $as_dir in #(
13980 -*) as_dir=./$as_dir;;
13981 esac
13982 test -d "$as_dir" || eval $as_mkdir_p || {
13983 as_dirs=
13984 while :; do
13985 case $as_dir in #(
13986 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13987 *) as_qdir=$as_dir;;
13988 esac
13989 as_dirs="'$as_qdir' $as_dirs"
13990 as_dir=`$as_dirname -- "$as_dir" ||
13991$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13992 X"$as_dir" : 'X\(//\)[^/]' \| \
13993 X"$as_dir" : 'X\(//\)$' \| \
13994 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13995$as_echo X"$as_dir" |
13996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13997 s//\1/
13998 q
13999 }
14000 /^X\(\/\/\)[^/].*/{
14001 s//\1/
14002 q
14003 }
14004 /^X\(\/\/\)$/{
14005 s//\1/
14006 q
14007 }
14008 /^X\(\/\).*/{
14009 s//\1/
14010 q
14011 }
14012 s/.*/./; q'`
14013 test -d "$as_dir" && break
14014 done
14015 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014016 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014017
14018
14019} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014020if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014021 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014022else
14023 test -d ./-p && rmdir ./-p
14024 as_mkdir_p=false
14025fi
14026
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014027
14028# as_fn_executable_p FILE
14029# -----------------------
14030# Test if FILE is an executable regular file.
14031as_fn_executable_p ()
14032{
14033 test -f "$1" && test -x "$1"
14034} # as_fn_executable_p
14035as_test_x='test -x'
14036as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014037
14038# Sed expression to map a string onto a valid CPP name.
14039as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14040
14041# Sed expression to map a string onto a valid variable name.
14042as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14043
14044
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014045exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014046## ----------------------------------- ##
14047## Main body of $CONFIG_STATUS script. ##
14048## ----------------------------------- ##
14049_ASEOF
14050test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014051
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14053# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014054# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014055# values after options handling.
14056ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014057This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014058generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014059
14060 CONFIG_FILES = $CONFIG_FILES
14061 CONFIG_HEADERS = $CONFIG_HEADERS
14062 CONFIG_LINKS = $CONFIG_LINKS
14063 CONFIG_COMMANDS = $CONFIG_COMMANDS
14064 $ $0 $@
14065
Theodore Ts'oe1052142006-10-21 21:46:47 -040014066on `(hostname || uname -n) 2>/dev/null | sed 1q`
14067"
14068
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014069_ACEOF
14070
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014071case $ac_config_files in *"
14072"*) set x $ac_config_files; shift; ac_config_files=$*;;
14073esac
14074
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014075case $ac_config_headers in *"
14076"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14077esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014078
14079
14080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014081# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014082config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014083config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014084config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014085
Theodore Ts'oe1052142006-10-21 21:46:47 -040014086_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014087
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014089ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014090\`$as_me' instantiates files and other configuration actions
14091from templates according to the current configuration. Unless the files
14092and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014093
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014094Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014095
14096 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014097 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014098 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014099 -q, --quiet, --silent
14100 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014101 -d, --debug don't remove temporary files
14102 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014103 --file=FILE[:TEMPLATE]
14104 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014105 --header=FILE[:TEMPLATE]
14106 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014107
14108Configuration files:
14109$config_files
14110
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014111Configuration headers:
14112$config_headers
14113
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014114Configuration commands:
14115$config_commands
14116
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014117Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014118
Theodore Ts'oe1052142006-10-21 21:46:47 -040014119_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014121ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014122ac_cs_version="\\
14123config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014124configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014125 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014126
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014127Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014128This config.status script is free software; the Free Software Foundation
14129gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014130
14131ac_pwd='$ac_pwd'
14132srcdir='$srcdir'
14133INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014134MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014135AWK='$AWK'
14136test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014137_ACEOF
14138
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14140# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014141ac_need_defaults=:
14142while test $# != 0
14143do
14144 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014145 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014146 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14147 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014148 ac_shift=:
14149 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014150 --*=)
14151 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14152 ac_optarg=
14153 ac_shift=:
14154 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014155 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014156 ac_option=$1
14157 ac_optarg=$2
14158 ac_shift=shift
14159 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014160 esac
14161
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014162 case $ac_option in
14163 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014164 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14165 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014166 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014167 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014168 --config | --confi | --conf | --con | --co | --c )
14169 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014170 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014171 debug=: ;;
14172 --file | --fil | --fi | --f )
14173 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014174 case $ac_optarg in
14175 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014176 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014177 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014178 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014179 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014180 --header | --heade | --head | --hea )
14181 $ac_shift
14182 case $ac_optarg in
14183 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14184 esac
14185 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14186 ac_need_defaults=false;;
14187 --he | --h)
14188 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014189 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014190Try \`$0 --help' for more information.";;
14191 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014192 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14194 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14195 ac_cs_silent=: ;;
14196
14197 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014198 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014199Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014200
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014201 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014202 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014203
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014204 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014205 shift
14206done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014207
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014208ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014209
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014210if $ac_cs_silent; then
14211 exec 6>/dev/null
14212 ac_configure_extra_args="$ac_configure_extra_args --silent"
14213fi
14214
14215_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014217if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014218 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014219 shift
14220 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14221 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014222 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014223 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014224fi
14225
14226_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014228exec 5>>config.log
14229{
14230 echo
14231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14232## Running $as_me. ##
14233_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014234 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014235} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014236
Theodore Ts'oe1052142006-10-21 21:46:47 -040014237_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014239#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014240# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014241#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014242# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014243 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014244 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014245 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014246 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14247 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014248
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014249
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014250_ACEOF
14251
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014253
14254# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014255for ac_config_target in $ac_config_targets
14256do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014257 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014258 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014259 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014260 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14261
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014262 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014263 esac
14264done
14265
Theodore Ts'oe1052142006-10-21 21:46:47 -040014266
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014267# If the user did not use the arguments to specify the items to instantiate,
14268# then the envvar interface is used. Set only those that are not.
14269# We use the long form for the default assignment because of an extremely
14270# bizarre bug on SunOS 4.1.3.
14271if $ac_need_defaults; then
14272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014274 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14275fi
14276
14277# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014278# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014279# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014280# Hook for its removal unless debugging.
14281# Note that there is a small window in which the directory will not be cleaned:
14282# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014283$debug ||
14284{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014285 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014286 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014287 : "${ac_tmp:=$tmp}"
14288 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014289' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014290 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014291}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014292# Create a (secure) tmp directory for tmp files.
14293
14294{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014295 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014296 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014297} ||
14298{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014299 tmp=./conf$$-$RANDOM
14300 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014301} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14302ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014303
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014304# Set up the scripts for CONFIG_FILES section.
14305# No need to generate them if there are no CONFIG_FILES.
14306# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014307if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014308
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014309if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14310 ac_cs_awk_getline=:
14311 ac_cs_awk_pipe_init=
14312 ac_cs_awk_read_file='
14313 while ((getline aline < (F[key])) > 0)
14314 print(aline)
14315 close(F[key])'
14316 ac_cs_awk_pipe_fini=
14317else
14318 ac_cs_awk_getline=false
14319 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14320 ac_cs_awk_read_file='
14321 print "|#_!!_#|"
14322 print "cat " F[key] " &&"
14323 '$ac_cs_awk_pipe_init
14324 # The final `:' finishes the AND list.
14325 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14326fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014327ac_cr=`echo X | tr X '\015'`
14328# On cygwin, bash can eat \r inside `` if the user requested igncr.
14329# But we know of no other shell where ac_cr would be empty at this
14330# point, so we can use a bashism as a fallback.
14331if test "x$ac_cr" = x; then
14332 eval ac_cr=\$\'\\r\'
14333fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014334ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14335if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014336 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014337else
14338 ac_cs_awk_cr=$ac_cr
14339fi
14340
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014341echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014342_ACEOF
14343
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014344# Create commands to substitute file output variables.
14345{
14346 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014347 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014348 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14349 echo "_ACAWK" &&
14350 echo "_ACEOF"
14351} >conf$$files.sh &&
14352. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014353 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014354rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014355
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014356{
14357 echo "cat >conf$$subs.awk <<_ACEOF" &&
14358 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14359 echo "_ACEOF"
14360} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014361 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14362ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014363ac_delim='%!_!# '
14364for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014365 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014366 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014367
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014368 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14369 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014370 break
14371 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014373 else
14374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014375 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014376done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014377rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014378
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014380cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014381_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014382sed -n '
14383h
14384s/^/S["/; s/!.*/"]=/
14385p
14386g
14387s/^[^!]*!//
14388:repl
14389t repl
14390s/'"$ac_delim"'$//
14391t delim
14392:nl
14393h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014394s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014395t more1
14396s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14397p
14398n
14399b repl
14400:more1
14401s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14402p
14403g
14404s/.\{148\}//
14405t nl
14406:delim
14407h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014408s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014409t more2
14410s/["\\]/\\&/g; s/^/"/; s/$/"/
14411p
14412b
14413:more2
14414s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14415p
14416g
14417s/.\{148\}//
14418t delim
14419' <conf$$subs.awk | sed '
14420/^[^""]/{
14421 N
14422 s/\n//
14423}
14424' >>$CONFIG_STATUS || ac_write_fail=1
14425rm -f conf$$subs.awk
14426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14427_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014428cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014429 for (key in S) S_is_set[key] = 1
14430 FS = ""
14431 \$ac_cs_awk_pipe_init
14432}
14433{
14434 line = $ 0
14435 nfields = split(line, field, "@")
14436 substed = 0
14437 len = length(field[1])
14438 for (i = 2; i < nfields; i++) {
14439 key = field[i]
14440 keylen = length(key)
14441 if (S_is_set[key]) {
14442 value = S[key]
14443 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14444 len += length(value) + length(field[++i])
14445 substed = 1
14446 } else
14447 len += 1 + keylen
14448 }
14449 if (nfields == 3 && !substed) {
14450 key = field[2]
14451 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14452 \$ac_cs_awk_read_file
14453 next
14454 }
14455 }
14456 print line
14457}
14458\$ac_cs_awk_pipe_fini
14459_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014460_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14462if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14463 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14464else
14465 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014466fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14467 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014468_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014469
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014470# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14471# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014472# trailing colons and then remove the whole line if VPATH becomes empty
14473# (actually we leave an empty line to preserve line numbers).
14474if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014475 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14476h
14477s///
14478s/^/:/
14479s/[ ]*$/:/
14480s/:\$(srcdir):/:/g
14481s/:\${srcdir}:/:/g
14482s/:@srcdir@:/:/g
14483s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014484s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014485x
14486s/\(=[ ]*\).*/\1/
14487G
14488s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014489s/^[^=]*=[ ]*$//
14490}'
14491fi
14492
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014494fi # test -n "$CONFIG_FILES"
14495
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014496# Set up the scripts for CONFIG_HEADERS section.
14497# No need to generate them if there are no CONFIG_HEADERS.
14498# This happens for instance with `./config.status Makefile'.
14499if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014500cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014501BEGIN {
14502_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014503
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014504# Transform confdefs.h into an awk script `defines.awk', embedded as
14505# here-document in config.status, that substitutes the proper values into
14506# config.h.in to produce config.h.
14507
14508# Create a delimiter string that does not exist in confdefs.h, to ease
14509# handling of long lines.
14510ac_delim='%!_!# '
14511for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014512 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14513 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014514 break
14515 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014516 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014517 else
14518 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14519 fi
14520done
14521
14522# For the awk script, D is an array of macro values keyed by name,
14523# likewise P contains macro parameters if any. Preserve backslash
14524# newline sequences.
14525
14526ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14527sed -n '
14528s/.\{148\}/&'"$ac_delim"'/g
14529t rset
14530:rset
14531s/^[ ]*#[ ]*define[ ][ ]*/ /
14532t def
14533d
14534:def
14535s/\\$//
14536t bsnl
14537s/["\\]/\\&/g
14538s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14539D["\1"]=" \3"/p
14540s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14541d
14542:bsnl
14543s/["\\]/\\&/g
14544s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14545D["\1"]=" \3\\\\\\n"\\/p
14546t cont
14547s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14548t cont
14549d
14550:cont
14551n
14552s/.\{148\}/&'"$ac_delim"'/g
14553t clear
14554:clear
14555s/\\$//
14556t bsnlc
14557s/["\\]/\\&/g; s/^/"/; s/$/"/p
14558d
14559:bsnlc
14560s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14561b cont
14562' <confdefs.h | sed '
14563s/'"$ac_delim"'/"\\\
14564"/g' >>$CONFIG_STATUS || ac_write_fail=1
14565
14566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14567 for (key in D) D_is_set[key] = 1
14568 FS = ""
14569}
14570/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14571 line = \$ 0
14572 split(line, arg, " ")
14573 if (arg[1] == "#") {
14574 defundef = arg[2]
14575 mac1 = arg[3]
14576 } else {
14577 defundef = substr(arg[1], 2)
14578 mac1 = arg[2]
14579 }
14580 split(mac1, mac2, "(") #)
14581 macro = mac2[1]
14582 prefix = substr(line, 1, index(line, defundef) - 1)
14583 if (D_is_set[macro]) {
14584 # Preserve the white space surrounding the "#".
14585 print prefix "define", macro P[macro] D[macro]
14586 next
14587 } else {
14588 # Replace #undef with comments. This is necessary, for example,
14589 # in the case of _POSIX_SOURCE, which is predefined and required
14590 # on some systems where configure will not decide to define it.
14591 if (defundef == "undef") {
14592 print "/*", prefix defundef, macro, "*/"
14593 next
14594 }
14595 }
14596}
14597{ print }
14598_ACAWK
14599_ACEOF
14600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014601 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014602fi # test -n "$CONFIG_HEADERS"
14603
14604
14605eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014606shift
14607for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014608do
14609 case $ac_tag in
14610 :[FHLC]) ac_mode=$ac_tag; continue;;
14611 esac
14612 case $ac_mode$ac_tag in
14613 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014614 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014615 :[FH]-) ac_tag=-:-;;
14616 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14617 esac
14618 ac_save_IFS=$IFS
14619 IFS=:
14620 set x $ac_tag
14621 IFS=$ac_save_IFS
14622 shift
14623 ac_file=$1
14624 shift
14625
14626 case $ac_mode in
14627 :L) ac_source=$1;;
14628 :[FH])
14629 ac_file_inputs=
14630 for ac_f
14631 do
14632 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014633 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014634 *) # Look for the file first in the build tree, then in the source tree
14635 # (if the path is not absolute). The absolute path cannot be DOS-style,
14636 # because $ac_f cannot contain `:'.
14637 test -f "$ac_f" ||
14638 case $ac_f in
14639 [\\/$]*) false;;
14640 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14641 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014642 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014643 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014644 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014645 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014646 done
14647
14648 # Let's still pretend it is `configure' which instantiates (i.e., don't
14649 # use $as_me), people would be surprised to read:
14650 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014651 configure_input='Generated from '`
14652 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14653 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014654 if test x"$ac_file" != x-; then
14655 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014656 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014657$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014658 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014659 # Neutralize special characters interpreted by sed in replacement strings.
14660 case $configure_input in #(
14661 *\&* | *\|* | *\\* )
14662 ac_sed_conf_input=`$as_echo "$configure_input" |
14663 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14664 *) ac_sed_conf_input=$configure_input;;
14665 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014666
14667 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014668 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014670 esac
14671 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014672 esac
14673
Theodore Ts'oe1052142006-10-21 21:46:47 -040014674 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014675$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14676 X"$ac_file" : 'X\(//\)[^/]' \| \
14677 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040014678 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014679$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14681 s//\1/
14682 q
14683 }
14684 /^X\(\/\/\)[^/].*/{
14685 s//\1/
14686 q
14687 }
14688 /^X\(\/\/\)$/{
14689 s//\1/
14690 q
14691 }
14692 /^X\(\/\).*/{
14693 s//\1/
14694 q
14695 }
14696 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014697 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014698 ac_builddir=.
14699
Theodore Ts'oe1052142006-10-21 21:46:47 -040014700case "$ac_dir" in
14701.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14702*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014703 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014704 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014705 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014706 case $ac_top_builddir_sub in
14707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14709 esac ;;
14710esac
14711ac_abs_top_builddir=$ac_pwd
14712ac_abs_builddir=$ac_pwd$ac_dir_suffix
14713# for backward compatibility:
14714ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014715
14716case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014717 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014718 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014719 ac_top_srcdir=$ac_top_builddir_sub
14720 ac_abs_top_srcdir=$ac_pwd ;;
14721 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014722 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014723 ac_top_srcdir=$srcdir
14724 ac_abs_top_srcdir=$srcdir ;;
14725 *) # Relative name.
14726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14727 ac_top_srcdir=$ac_top_build_prefix$srcdir
14728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014729esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014730ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014731
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014732
Theodore Ts'oe1052142006-10-21 21:46:47 -040014733 case $ac_mode in
14734 :F)
14735 #
14736 # CONFIG_FILE
14737 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014738
14739 case $INSTALL in
14740 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014741 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014742 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014743 ac_MKDIR_P=$MKDIR_P
14744 case $MKDIR_P in
14745 [\\/$]* | ?:[\\/]* ) ;;
14746 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14747 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014748_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014749
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014751# If the template does not know about datarootdir, expand it.
14752# FIXME: This hack should be removed a few years after 2.60.
14753ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014754ac_sed_dataroot='
14755/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014756 p
14757 q
14758}
14759/@datadir@/p
14760/@docdir@/p
14761/@infodir@/p
14762/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014763/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014764case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014765*datarootdir*) ac_datarootdir_seen=yes;;
14766*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014767 { $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 +010014768$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014769_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014771 ac_datarootdir_hack='
14772 s&@datadir@&$datadir&g
14773 s&@docdir@&$docdir&g
14774 s&@infodir@&$infodir&g
14775 s&@localedir@&$localedir&g
14776 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014777 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014778esac
14779_ACEOF
14780
14781# Neutralize VPATH when `$srcdir' = `.'.
14782# Shell code in configure.ac might set extrasub.
14783# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14785ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014786$extrasub
14787_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014789:t
14790/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014791s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014792s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014793s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014794s&@srcdir@&$ac_srcdir&;t t
14795s&@abs_srcdir@&$ac_abs_srcdir&;t t
14796s&@top_srcdir@&$ac_top_srcdir&;t t
14797s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14798s&@builddir@&$ac_builddir&;t t
14799s&@abs_builddir@&$ac_abs_builddir&;t t
14800s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14801s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040014802s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014803$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014804"
14805eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14806if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014807 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014808else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014809 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14810fi \
14811 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014812
Theodore Ts'oe1052142006-10-21 21:46:47 -040014813test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014814 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14815 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14816 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014818which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014819$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014820which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014821
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014822 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014823 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014824 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14825 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014826 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014828 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014829 :H)
14830 #
14831 # CONFIG_HEADER
14832 #
14833 if test x"$ac_file" != x-; then
14834 {
14835 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014836 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14837 } >"$ac_tmp/config.h" \
14838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14839 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014840 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14841$as_echo "$as_me: $ac_file is unchanged" >&6;}
14842 else
14843 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014844 mv "$ac_tmp/config.h" "$ac_file" \
14845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014846 fi
14847 else
14848 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014849 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14850 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014851 fi
14852 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014853
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014854 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014855$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014856 ;;
14857 esac
14858
14859
14860 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040014861 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014862 for ac_file in $CONFIG_FILES; do
14863 # Support "outfile[:infile[:infile...]]"
14864 case "$ac_file" in
14865 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000014866 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014867 # PO directories have a Makefile.in generated from Makefile.in.in.
14868 case "$ac_file" in */Makefile.in)
14869 # Adjust a relative srcdir.
14870 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040014871 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014872 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14873 # In autoconf-2.13 it is called $ac_given_srcdir.
14874 # In autoconf-2.50 it is called $srcdir.
14875 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14876 case "$ac_given_srcdir" in
14877 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14878 /*) top_srcdir="$ac_given_srcdir" ;;
14879 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14880 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014881 # Treat a directory as a PO directory if and only if it has a
14882 # POTFILES.in file. This allows packages to have multiple PO
14883 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014884 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14885 rm -f "$ac_dir/POTFILES"
14886 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040014887 gt_tab=`printf '\t'`
14888 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014889 POMAKEFILEDEPS="POTFILES.in"
14890 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014891 # on $ac_dir but don't depend on user-specified configuration
14892 # parameters.
14893 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14894 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014895 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014896 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14897 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040014898 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14899 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014900 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014901 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14902 else
14903 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040014904 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014905 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014906 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014907 # Compute POFILES
14908 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14909 # Compute UPDATEPOFILES
14910 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14911 # Compute DUMMYPOFILES
14912 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14913 # Compute GMOFILES
14914 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014915 case "$ac_given_srcdir" in
14916 .) srcdirpre= ;;
14917 *) srcdirpre='$(srcdir)/' ;;
14918 esac
14919 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014920 UPDATEPOFILES=
14921 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014922 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014923 for lang in $ALL_LINGUAS; do
14924 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014925 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14926 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014927 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014928 done
14929 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14930 # environment variable.
14931 INST_LINGUAS=
14932 if test -n "$ALL_LINGUAS"; then
14933 for presentlang in $ALL_LINGUAS; do
14934 useit=no
14935 if test "%UNSET%" != "$LINGUAS"; then
14936 desiredlanguages="$LINGUAS"
14937 else
14938 desiredlanguages="$ALL_LINGUAS"
14939 fi
14940 for desiredlang in $desiredlanguages; do
14941 # Use the presentlang catalog if desiredlang is
14942 # a. equal to presentlang, or
14943 # b. a variant of presentlang (because in this case,
14944 # presentlang can be used as a fallback for messages
14945 # which are not translated in the desiredlang catalog).
14946 case "$desiredlang" in
14947 "$presentlang"*) useit=yes;;
14948 esac
14949 done
14950 if test $useit = yes; then
14951 INST_LINGUAS="$INST_LINGUAS $presentlang"
14952 fi
14953 done
14954 fi
14955 CATALOGS=
14956 if test -n "$INST_LINGUAS"; then
14957 for lang in $INST_LINGUAS; do
14958 CATALOGS="$CATALOGS $lang.gmo"
14959 done
14960 fi
14961 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014962 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 -040014963 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14964 if test -f "$f"; then
14965 case "$f" in
14966 *.orig | *.bak | *~) ;;
14967 *) cat "$f" >> "$ac_dir/Makefile" ;;
14968 esac
14969 fi
14970 done
14971 fi
14972 ;;
14973 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014974 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014975
Theodore Ts'oe1052142006-10-21 21:46:47 -040014976 esac
14977done # for ac_tag
14978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014979
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014980as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014981_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014982ac_clean_files=$ac_clean_files_save
14983
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014984test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014985 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014986
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014987
14988# configure is writing to config.log, and then calls config.status.
14989# config.status does its own redirection, appending to config.log.
14990# Unfortunately, on DOS this fails, as config.log is still kept open
14991# by configure, so config.status won't be able to write to it; its
14992# output is simply discarded. So we exec the FD to /dev/null,
14993# effectively closing config.log, so it can be properly (re)opened and
14994# appended to by config.status. When coming back to configure, we
14995# need to make the FD available again.
14996if test "$no_create" != yes; then
14997 ac_cs_success=:
14998 ac_config_status_args=
14999 test "$silent" = yes &&
15000 ac_config_status_args="$ac_config_status_args --quiet"
15001 exec 5>/dev/null
15002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15003 exec 5>>config.log
15004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15005 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015006 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015007fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015008if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015010$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15011fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015012
Theodore Ts'oee683a12005-02-05 15:53:56 -050015013if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi