blob: 5a0839292d8567f303e7e8794bfb372f1259d694 [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. Wong81cbf1e2015-05-13 17:22:40 -0700646FUSE_CMT
647FUSE_LIB
Darrick J. Wongb291c112014-09-13 15:12:46 -0700648MAGIC_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100649SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400650SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100651SIZEOF_LONG_LONG
652SIZEOF_LONG
653SIZEOF_INT
654SIZEOF_SHORT
655BUILD_CC
656MAKEINFO
657STRIP
658AR
659LDCONFIG
660PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100661AWK
662CHMOD
663RM
664CP
665MV
666LN_S
667LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400668ifNotGNUmake
669ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100670BINARY_TYPE
671POSUB
672LTLIBINTL
673LIBINTL
674INTLLIBS
675INTL_LIBTOOL_SUFFIX_PREFIX
676INTLOBJS
677GENCAT
678INSTOBJEXT
679DATADIRNAME
680CATOBJEXT
681USE_INCLUDED_LIBINTL
682BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400683LTLIBC
684WINDRES
685WOE32
686WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100687HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400688HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100689HAVE_SNPRINTF
690HAVE_ASPRINTF
691HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400692INTL_DEFAULT_VERBOSITY
693INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100694GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400695INTLBISON
696LTLIBICONV
697LIBICONV
698LTLIBMULTITHREAD
699LIBMULTITHREAD
700LTLIBTHREAD
701LIBTHREAD
702LIBPTH_PREFIX
703LTLIBPTH
704LIBPTH
705PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100706ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400707HAVE_VISIBILITY
708CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100709RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400710GLIBC2
711XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100712MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400713XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100714XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400715GMSGFMT_015
716MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100717GMSGFMT
718MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400719GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100720USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400721SED
722MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100723INSTALL_DATA
724INSTALL_SCRIPT
725INSTALL_PROGRAM
726SET_MAKE
727VERSION
728PACKAGE
729GETTEXT_PACKAGE
730UUIDD_CMT
731E2INITRD_MAN
732E2INITRD_PROG
733FSCK_MAN
734FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500735DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100736RESIZER_CMT
737IMAGER_CMT
738DEBUGFS_CMT
739BLKID_CMT
740DEPPROFILED_LIBBLKID
741PROFILED_LIBBLKID
742DEPSTATIC_LIBBLKID
743STATIC_LIBBLKID
744DEPLIBBLKID
745LIBBLKID
746UUID_CMT
747DEPPROFILED_LIBUUID
748PROFILED_LIBUUID
749DEPSTATIC_LIBUUID
750STATIC_LIBUUID
751DEPLIBUUID
752LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400753PKG_CONFIG_LIBDIR
754PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100755PKG_CONFIG
756TEST_IO_CMT
757PRIVATE_LIBS_CMT
758LDFLAG_DYNAMIC
759PROFILED_LIB_EXT
760STATIC_LIB_EXT
761LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100762PROFILE_CMT
763BSDLIB_CMT
764ELF_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400765Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400766ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400767E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400768LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400769SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400770LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100771MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400772EGREP
773GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100774CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400775RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500776DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100777OBJEXT
778EXEEXT
779ac_ct_CC
780CPPFLAGS
781LDFLAGS
782CFLAGS
783CC
784host_os
785host_vendor
786host_cpu
787host
788build_os
789build_vendor
790build_cpu
791build
792E2FSPROGS_PKGVER
793E2FSPROGS_VERSION
794E2FSPROGS_DAY
795E2FSPROGS_MONTH
796E2FSPROGS_YEAR
797target_alias
798host_alias
799build_alias
800LIBS
801ECHO_T
802ECHO_N
803ECHO_C
804DEFS
805mandir
806localedir
807libdir
808psdir
809pdfdir
810dvidir
811htmldir
812infodir
813docdir
814oldincludedir
815includedir
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400816runstatedir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100817localstatedir
818sharedstatedir
819sysconfdir
820datadir
821datarootdir
822libexecdir
823sbindir
824bindir
825program_transform_name
826prefix
827exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500828PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100829PACKAGE_BUGREPORT
830PACKAGE_STRING
831PACKAGE_VERSION
832PACKAGE_TARNAME
833PACKAGE_NAME
834PATH_SEPARATOR
835SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400836ac_subst_files='MCONFIG
837MAKEFILE_ELF
838MAKEFILE_BSDLIB
839MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400840MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400841ASM_TYPES_HEADER
842PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100843ac_user_opts='
844enable_option_checking
845with_diet_libc
846with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100847with_ccopts
848with_ldopts
849with_root_prefix
850enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400851enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400852enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400853enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400854enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400855enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100856enable_elf_shlibs
857enable_bsd_shlibs
858enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500859enable_gcov
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100860enable_jbd_debug
861enable_blkid_debug
862enable_testio_debug
863enable_libuuid
864enable_libblkid
Theodore Ts'o3df60142013-06-16 16:14:40 -0400865enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100866enable_debugfs
867enable_imager
868enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500869enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100870enable_fsck
871enable_e2initrd_helper
872enable_tls
873enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000874enable_mmp
Tony Breeds1625bf42012-07-30 14:44:12 -0400875enable_bmap_stats
876enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100877enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400878enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100879with_gnu_ld
880enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400881with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100882with_libiconv_prefix
883with_included_gettext
884with_libintl_prefix
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700885enable_fuse2fs
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400886with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100887'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400888 ac_precious_vars='build_alias
889host_alias
890target_alias
891CC
892CFLAGS
893LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400894LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400895CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400896CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400897PKG_CONFIG
898PKG_CONFIG_PATH
899PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400900
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000901
902# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500903ac_init_help=
904ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100905ac_unrecognized_opts=
906ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000907# The variables have the same names as the options, with
908# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500909cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000910exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000911no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000912no_recursion=
913prefix=NONE
914program_prefix=NONE
915program_suffix=NONE
916program_transform_name=s,x,x,
917silent=
918site=
919srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000920verbose=
921x_includes=NONE
922x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500923
924# Installation directory options.
925# These are left unexpanded so users can "make install exec_prefix=/foo"
926# and all the variables that are supposed to be based on exec_prefix
927# by default will actually change.
928# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400929# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000930bindir='${exec_prefix}/bin'
931sbindir='${exec_prefix}/sbin'
932libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400933datarootdir='${prefix}/share'
934datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000935sysconfdir='${prefix}/etc'
936sharedstatedir='${prefix}/com'
937localstatedir='${prefix}/var'
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400938runstatedir='${localstatedir}/run'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000939includedir='${prefix}/include'
940oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400941docdir='${datarootdir}/doc/${PACKAGE}'
942infodir='${datarootdir}/info'
943htmldir='${docdir}'
944dvidir='${docdir}'
945pdfdir='${docdir}'
946psdir='${docdir}'
947libdir='${exec_prefix}/lib'
948localedir='${datarootdir}/locale'
949mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000950
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000951ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400952ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000953for ac_option
954do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400957 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000958 ac_prev=
959 continue
960 fi
961
Theodore Ts'oe1052142006-10-21 21:46:47 -0400962 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *=) ac_optarg= ;;
965 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400966 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
Theodore Ts'oe1052142006-10-21 21:46:47 -0400970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000973
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500977 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000978
979 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500980 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500982 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000993
Theodore Ts'oe1052142006-10-21 21:46:47 -0400994 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000995 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500997 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000998
Theodore Ts'oe1052142006-10-21 21:46:47 -0400999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001006 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001008 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001010 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015"enable_$ac_useropt"
1016"*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001021
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1026
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001031
1032 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001034 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001036 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1040 *"
1041"enable_$ac_useropt"
1042"*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001047
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001055 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001056
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1060
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001067
1068 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001069 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001070 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001071 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001072
Theodore Ts'oe1052142006-10-21 21:46:47 -04001073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1078
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001084 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001085
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001089 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001090
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001094 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001095
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001101 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001102
Theodore Ts'oe1052142006-10-21 21:46:47 -04001103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1107
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001108 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001109 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001113 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001114
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001118 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001119
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1123
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001125 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001126 no_create=yes ;;
1127
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1131
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001139 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001140
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001144 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001145
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001151 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001152
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001158 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001159
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001175 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001176
Theodore Ts'oe1052142006-10-21 21:46:47 -04001177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1181
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1186
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1190
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001191 -runstatedir | --runstatedir | --runstatedi | --runstated \
1192 | --runstate | --runstat | --runsta | --runst | --runs \
1193 | --run | --ru | --r)
1194 ac_prev=runstatedir ;;
1195 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1196 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1197 | --run=* | --ru=* | --r=*)
1198 runstatedir=$ac_optarg ;;
1199
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 ac_prev=sbindir ;;
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001204 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001205
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1209 | --sha | --sh)
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001215 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001216
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001217 -site | --site | --sit)
1218 ac_prev=site ;;
1219 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001220 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001221
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 ac_prev=srcdir ;;
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001225 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001226
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001232 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001233
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001234 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001235 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001237 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001238
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 verbose=yes ;;
1241
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001244
1245 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001247 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001249 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1253 *"
1254"with_$ac_useropt"
1255"*) ;;
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1258 esac
1259 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001260
1261 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001262 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001263 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001265 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270"with_$ac_useropt"
1271"*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001276
1277 --x)
1278 # Obsolete; use --with-x.
1279 with_x=yes ;;
1280
1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282 | --x-incl | --x-inc | --x-in | --x-i)
1283 ac_prev=x_includes ;;
1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001286 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001287
1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290 ac_prev=x_libraries ;;
1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001293 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001294
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001295 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1296Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001297 ;;
1298
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001299 *=*)
1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001302 case $ac_envvar in #(
1303 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001304 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001305 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001306 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001307 export $ac_envvar ;;
1308
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001309 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001310 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001315 ;;
1316
1317 esac
1318done
1319
1320if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001321 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001322 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001323fi
1324
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001325if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1327 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001328 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330 esac
1331fi
1332
1333# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001334for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001337 libdir localedir mandir runstatedir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001338do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001339 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001340 # Remove trailing slashes.
1341 case $ac_val in
1342 */ )
1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\$ac_val;;
1345 esac
1346 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001347 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001348 [\\/$]* | ?:[\\/]* ) continue;;
1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001350 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001351 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001352done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001353
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001354# There might be people who depend on the old broken behavior: `$host'
1355# used to hold the argument of --host etc.
1356# FIXME: To remove some day.
1357build=$build_alias
1358host=$host_alias
1359target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001360
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001361# FIXME: To remove some day.
1362if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001365 elif test "x$build_alias" != "x$host_alias"; then
1366 cross_compiling=yes
1367 fi
1368fi
1369
1370ac_tool_prefix=
1371test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372
1373test "$silent" = yes && exec 6>/dev/null
1374
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001375
Theodore Ts'oe1052142006-10-21 21:46:47 -04001376ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377ac_ls_di=`ls -di .` &&
1378ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001379 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001380test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001381 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001382
1383
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001384# Find the source files, if location was not specified.
1385if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001387 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001388 ac_confdir=`$as_dirname -- "$as_myself" ||
1389$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$as_myself" : 'X\(//\)[^/]' \| \
1391 X"$as_myself" : 'X\(//\)$' \| \
1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)[^/].*/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\).*/{
1407 s//\1/
1408 q
1409 }
1410 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001411 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001412 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001413 srcdir=..
1414 fi
1415else
1416 ac_srcdir_defaulted=no
1417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001418if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001420 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001421fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001425 pwd)`
1426# When building in place, set srcdir=.
1427if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 srcdir=.
1429fi
1430# Remove unnecessary trailing slashes from srcdir.
1431# Double slashes in file names in object file debugging info
1432# mess up M-x gdb in Emacs.
1433case $srcdir in
1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435esac
1436for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001442
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001443#
1444# Report the --help message.
1445#
1446if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1449 cat <<_ACEOF
1450\`configure' configures this package to adapt to many kinds of systems.
1451
1452Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455VAR=VALUE. See below for descriptions of some of the useful variables.
1456
1457Defaults for the options are specified in brackets.
1458
1459Configuration:
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001464 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001472 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001474 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001475
1476By default, \`make install' will install all the files in
1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479for instance \`--prefix=\$HOME'.
1480
1481For better control, use the options below.
1482
1483Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001490 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001504_ACEOF
1505
1506 cat <<\_ACEOF
1507
1508System types:
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511_ACEOF
1512fi
1513
1514if test -n "$ac_init_help"; then
1515
1516 cat <<\_ACEOF
1517
1518Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001519 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001522 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001523 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001524 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001525
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001526 --enable-symlink-build use symlinks while building instead of hard links
1527 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001528 --enable-elf-shlibs select ELF shared libraries
1529 --enable-bsd-shlibs select BSD shared libraries
1530 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001531 --enable-gcov build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001532 --enable-jbd-debug enable journal debugging
1533 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001534 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001535 --enable-libuuid build and use private uuid library
1536 --enable-libblkid build and use private blkid library
Theodore Ts'o3df60142013-06-16 16:14:40 -04001537 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001538 --disable-debugfs disable support of debugfs program
1539 --disable-imager disable support of e2image program
1540 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001541 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001542 --enable-fsck build fsck wrapper program
1543 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001544 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001545 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001546 --disable-mmp disable support mmp, Multi Mount Protection
Tony Breeds1625bf42012-07-30 14:44:12 -04001547 --disable-bmap-stats disable collection of bitmap stats.
1548 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001549 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001550 --enable-threads={posix|solaris|pth|windows}
1551 specify multithreading API
1552 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001553 --disable-rpath do not hardcode runtime library paths
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001554 --disable-fuse2fs do not build fuse2fs
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001555
1556Optional Packages:
1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001559 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001560 --with-cc no longer supported, use CC= instead
1561 --with-ccopts no longer supported, use CFLAGS= instead
1562 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001563 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1565 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1566 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001567 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1568 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1569 --with-included-gettext use the GNU gettext library included here
1570 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1571 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001572 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001573
1574Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001579 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001580 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001581 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001582 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001583 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001584 PKG_CONFIG_PATH
1585 directories to add to pkg-config's search path
1586 PKG_CONFIG_LIBDIR
1587 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001588
1589Use these variables to override the choices made by `configure' or to help
1590it to find libraries and programs with nonstandard names/locations.
1591
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001592Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001593_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001594ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001595fi
1596
1597if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001603 ac_builddir=.
1604
Theodore Ts'oe1052142006-10-21 21:46:47 -04001605case "$ac_dir" in
1606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001609 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615esac
1616ac_abs_top_builddir=$ac_pwd
1617ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618# for backward compatibility:
1619ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001620
1621case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001622 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001623 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001627 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001634esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001636
Theodore Ts'oe1052142006-10-21 21:46:47 -04001637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001645 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001649 done
1650fi
1651
Theodore Ts'oe1052142006-10-21 21:46:47 -04001652test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001653if $ac_init_version; then
1654 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001655configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001656generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001657
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001658Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001659This configure script is free software; the Free Software Foundation
1660gives unlimited permission to copy, distribute and modify it.
1661_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001662 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001663fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001664
1665## ------------------------ ##
1666## Autoconf initialization. ##
1667## ------------------------ ##
1668
1669# ac_fn_c_try_compile LINENO
1670# --------------------------
1671# Try to compile conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_compile ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext
1676 if { { ac_try="$ac_compile"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1695 ac_retval=0
1696else
1697 $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001703 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001704
1705} # ac_fn_c_try_compile
1706
1707# ac_fn_c_try_link LINENO
1708# -----------------------
1709# Try to link conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_link ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext conftest$ac_exeext
1714 if { { ac_try="$ac_link"
1715case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest$ac_exeext && {
1733 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001734 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001735 }; then :
1736 ac_retval=0
1737else
1738 $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742fi
1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745 # interfere with the next link command; also delete a directory that is
1746 # left behind by Apple's compiler. We do this before executing the actions.
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001749 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001750
1751} # ac_fn_c_try_link
1752
1753# ac_fn_c_try_cpp LINENO
1754# ----------------------
1755# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756ac_fn_c_try_cpp ()
1757{
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_cpp conftest.$ac_ext"
1760case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1772 fi
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001774 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1777 }; then :
1778 ac_retval=0
1779else
1780 $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001786 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001787
1788} # ac_fn_c_try_cpp
1789
1790# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1791# -------------------------------------------------------
1792# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1793# the include files in INCLUDES and setting the cache variable VAR
1794# accordingly.
1795ac_fn_c_check_header_mongrel ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001798 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001801if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001802 $as_echo_n "(cached) " >&6
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807else
1808 # Is the header compilable?
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1810$as_echo_n "checking $2 usability... " >&6; }
1811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h. */
1813$4
1814#include <$2>
1815_ACEOF
1816if ac_fn_c_try_compile "$LINENO"; then :
1817 ac_header_compiler=yes
1818else
1819 ac_header_compiler=no
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1823$as_echo "$ac_header_compiler" >&6; }
1824
1825# Is the header present?
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1827$as_echo_n "checking $2 presence... " >&6; }
1828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830#include <$2>
1831_ACEOF
1832if ac_fn_c_try_cpp "$LINENO"; then :
1833 ac_header_preproc=yes
1834else
1835 ac_header_preproc=no
1836fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001837rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1839$as_echo "$ac_header_preproc" >&6; }
1840
1841# So? What about this header?
1842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1843 yes:no: )
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1845$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 ;;
1849 no:yes:* )
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1851$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1853$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1855$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1857$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 ;;
1861esac
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001864if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001865 $as_echo_n "(cached) " >&6
1866else
1867 eval "$3=\$ac_header_compiler"
1868fi
1869eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001874
1875} # ac_fn_c_check_header_mongrel
1876
Theodore Ts'o93613952014-07-03 23:44:13 -04001877# ac_fn_c_try_run LINENO
1878# ----------------------
1879# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1880# that executables *can* be run.
1881ac_fn_c_try_run ()
1882{
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_link"
1885case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890$as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>&5
1892 ac_status=$?
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1895 { { case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_try") 2>&5
1902 ac_status=$?
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; }; }; then :
1905 ac_retval=0
1906else
1907 $as_echo "$as_me: program exited with status $ac_status" >&5
1908 $as_echo "$as_me: failed program was:" >&5
1909sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=$ac_status
1912fi
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1916
1917} # ac_fn_c_try_run
1918
1919# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1920# -------------------------------------------------------
1921# Tests whether HEADER exists and can be compiled using the include files in
1922# INCLUDES, setting the cache variable VAR accordingly.
1923ac_fn_c_check_header_compile ()
1924{
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; }
1928if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1930else
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932/* end confdefs.h. */
1933$4
1934#include <$2>
1935_ACEOF
1936if ac_fn_c_try_compile "$LINENO"; then :
1937 eval "$3=yes"
1938else
1939 eval "$3=no"
1940fi
1941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942fi
1943eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945$as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948} # ac_fn_c_check_header_compile
1949
1950# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1951# -------------------------------------------
1952# Tests whether TYPE exists after having included INCLUDES, setting cache
1953# variable VAR accordingly.
1954ac_fn_c_check_type ()
1955{
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
1959if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961else
1962 eval "$3=no"
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965$4
1966int
1967main ()
1968{
1969if (sizeof ($2))
1970 return 0;
1971 ;
1972 return 0;
1973}
1974_ACEOF
1975if ac_fn_c_try_compile "$LINENO"; then :
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h. */
1978$4
1979int
1980main ()
1981{
1982if (sizeof (($2)))
1983 return 0;
1984 ;
1985 return 0;
1986}
1987_ACEOF
1988if ac_fn_c_try_compile "$LINENO"; then :
1989
1990else
1991 eval "$3=yes"
1992fi
1993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994fi
1995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996fi
1997eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002} # ac_fn_c_check_type
2003
2004# ac_fn_c_check_func LINENO FUNC VAR
2005# ----------------------------------
2006# Tests whether FUNC exists, setting the cache variable VAR accordingly
2007ac_fn_c_check_func ()
2008{
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011$as_echo_n "checking for $2... " >&6; }
2012if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2014else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2019#define $2 innocuous_$2
2020
2021/* System header to define __stub macros and hopefully few prototypes,
2022 which can conflict with char $2 (); below.
2023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2024 <limits.h> exists even on freestanding compilers. */
2025
2026#ifdef __STDC__
2027# include <limits.h>
2028#else
2029# include <assert.h>
2030#endif
2031
2032#undef $2
2033
2034/* Override any GCC internal prototype to avoid an error.
2035 Use char because int might match the return type of a GCC
2036 builtin and then its argument prototype would still apply. */
2037#ifdef __cplusplus
2038extern "C"
2039#endif
2040char $2 ();
2041/* The GNU C library defines this for functions which it implements
2042 to always fail with ENOSYS. Some functions are actually named
2043 something starting with __ and the normal name is an alias. */
2044#if defined __stub_$2 || defined __stub___$2
2045choke me
2046#endif
2047
2048int
2049main ()
2050{
2051return $2 ();
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056if ac_fn_c_try_link "$LINENO"; then :
2057 eval "$3=yes"
2058else
2059 eval "$3=no"
2060fi
2061rm -f core conftest.err conftest.$ac_objext \
2062 conftest$ac_exeext conftest.$ac_ext
2063fi
2064eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066$as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068
2069} # ac_fn_c_check_func
2070
2071# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2072# ---------------------------------------------
2073# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2074# accordingly.
2075ac_fn_c_check_decl ()
2076{
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 as_decl_name=`echo $2|sed 's/ *(.*//'`
2079 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2081$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2082if eval \${$3+:} false; then :
2083 $as_echo_n "(cached) " >&6
2084else
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h. */
2087$4
2088int
2089main ()
2090{
2091#ifndef $as_decl_name
2092#ifdef __cplusplus
2093 (void) $as_decl_use;
2094#else
2095 (void) $as_decl_name;
2096#endif
2097#endif
2098
2099 ;
2100 return 0;
2101}
2102_ACEOF
2103if ac_fn_c_try_compile "$LINENO"; then :
2104 eval "$3=yes"
2105else
2106 eval "$3=no"
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112$as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114
2115} # ac_fn_c_check_decl
2116
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002117# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2118# --------------------------------------------
2119# Tries to find the compile-time value of EXPR in a program that includes
2120# INCLUDES, setting VAR accordingly. Returns whether the value could be
2121# computed
2122ac_fn_c_compute_int ()
2123{
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 if test "$cross_compiling" = yes; then
2126 # Depending upon the size, compute the lo and hi bounds.
2127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h. */
2129$4
2130int
2131main ()
2132{
2133static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002134test_array [0] = 0;
2135return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002136
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142 ac_lo=0 ac_mid=0
2143 while :; do
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145/* end confdefs.h. */
2146$4
2147int
2148main ()
2149{
2150static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002151test_array [0] = 0;
2152return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002153
2154 ;
2155 return 0;
2156}
2157_ACEOF
2158if ac_fn_c_try_compile "$LINENO"; then :
2159 ac_hi=$ac_mid; break
2160else
2161 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2162 if test $ac_lo -le $ac_mid; then
2163 ac_lo= ac_hi=
2164 break
2165 fi
2166 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170else
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h. */
2173$4
2174int
2175main ()
2176{
2177static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002178test_array [0] = 0;
2179return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002180
2181 ;
2182 return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_hi=-1 ac_mid=-1
2187 while :; do
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189/* end confdefs.h. */
2190$4
2191int
2192main ()
2193{
2194static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002195test_array [0] = 0;
2196return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002197
2198 ;
2199 return 0;
2200}
2201_ACEOF
2202if ac_fn_c_try_compile "$LINENO"; then :
2203 ac_lo=$ac_mid; break
2204else
2205 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2206 if test $ac_mid -le $ac_hi; then
2207 ac_lo= ac_hi=
2208 break
2209 fi
2210 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2211fi
2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 done
2214else
2215 ac_lo= ac_hi=
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220# Binary search between lo and hi bounds.
2221while test "x$ac_lo" != "x$ac_hi"; do
2222 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h. */
2225$4
2226int
2227main ()
2228{
2229static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002230test_array [0] = 0;
2231return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002232
2233 ;
2234 return 0;
2235}
2236_ACEOF
2237if ac_fn_c_try_compile "$LINENO"; then :
2238 ac_hi=$ac_mid
2239else
2240 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2241fi
2242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243done
2244case $ac_lo in #((
2245?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2246'') ac_retval=1 ;;
2247esac
2248 else
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h. */
2251$4
2252static long int longval () { return $2; }
2253static unsigned long int ulongval () { return $2; }
2254#include <stdio.h>
2255#include <stdlib.h>
2256int
2257main ()
2258{
2259
2260 FILE *f = fopen ("conftest.val", "w");
2261 if (! f)
2262 return 1;
2263 if (($2) < 0)
2264 {
2265 long int i = longval ();
2266 if (i != ($2))
2267 return 1;
2268 fprintf (f, "%ld", i);
2269 }
2270 else
2271 {
2272 unsigned long int i = ulongval ();
2273 if (i != ($2))
2274 return 1;
2275 fprintf (f, "%lu", i);
2276 }
2277 /* Do not output a trailing newline, as this causes \r\n confusion
2278 on some platforms. */
2279 return ferror (f) || fclose (f) != 0;
2280
2281 ;
2282 return 0;
2283}
2284_ACEOF
2285if ac_fn_c_try_run "$LINENO"; then :
2286 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2287else
2288 ac_retval=1
2289fi
2290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2291 conftest.$ac_objext conftest.beam conftest.$ac_ext
2292rm -f conftest.val
2293
2294 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002296 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002297
2298} # ac_fn_c_compute_int
2299
2300# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2301# ----------------------------------------------------
2302# Tries to find if the field MEMBER exists in type AGGR, after including
2303# INCLUDES, setting cache variable VAR accordingly.
2304ac_fn_c_check_member ()
2305{
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2308$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002309if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002310 $as_echo_n "(cached) " >&6
2311else
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313/* end confdefs.h. */
2314$5
2315int
2316main ()
2317{
2318static $2 ac_aggr;
2319if (ac_aggr.$3)
2320return 0;
2321 ;
2322 return 0;
2323}
2324_ACEOF
2325if ac_fn_c_try_compile "$LINENO"; then :
2326 eval "$4=yes"
2327else
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h. */
2330$5
2331int
2332main ()
2333{
2334static $2 ac_aggr;
2335if (sizeof ac_aggr.$3)
2336return 0;
2337 ;
2338 return 0;
2339}
2340_ACEOF
2341if ac_fn_c_try_compile "$LINENO"; then :
2342 eval "$4=yes"
2343else
2344 eval "$4=no"
2345fi
2346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347fi
2348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349fi
2350eval ac_res=\$$4
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002354
2355} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002356cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002357This file contains any messages produced by compilers while
2358running configure, to aid debugging if configure makes a mistake.
2359
2360It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002361generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002362
2363 $ $0 $@
2364
2365_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002366exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002367{
2368cat <<_ASUNAME
2369## --------- ##
2370## Platform. ##
2371## --------- ##
2372
2373hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2374uname -m = `(uname -m) 2>/dev/null || echo unknown`
2375uname -r = `(uname -r) 2>/dev/null || echo unknown`
2376uname -s = `(uname -s) 2>/dev/null || echo unknown`
2377uname -v = `(uname -v) 2>/dev/null || echo unknown`
2378
2379/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2380/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2381
2382/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2383/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2384/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002385/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002386/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2387/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2388/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2389
2390_ASUNAME
2391
2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393for as_dir in $PATH
2394do
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002397 $as_echo "PATH: $as_dir"
2398 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002399IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002400
2401} >&5
2402
2403cat >&5 <<_ACEOF
2404
2405
2406## ----------- ##
2407## Core tests. ##
2408## ----------- ##
2409
2410_ACEOF
2411
2412
2413# Keep a trace of the command line.
2414# Strip out --no-create and --no-recursion so they do not pile up.
2415# Strip out --silent because we don't want to record it for future runs.
2416# Also quote any args containing shell meta-characters.
2417# Make two passes to allow for proper duplicate-argument suppression.
2418ac_configure_args=
2419ac_configure_args0=
2420ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002421ac_must_keep_next=false
2422for ac_pass in 1 2
2423do
2424 for ac_arg
2425 do
2426 case $ac_arg in
2427 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2429 | -silent | --silent | --silen | --sile | --sil)
2430 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002431 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002432 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002433 esac
2434 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002435 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002436 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002437 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002438 if test $ac_must_keep_next = true; then
2439 ac_must_keep_next=false # Got value, back to normal.
2440 else
2441 case $ac_arg in
2442 *=* | --config-cache | -C | -disable-* | --disable-* \
2443 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2444 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2445 | -with-* | --with-* | -without-* | --without-* | --x)
2446 case "$ac_configure_args0 " in
2447 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2448 esac
2449 ;;
2450 -* ) ac_must_keep_next=true ;;
2451 esac
2452 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002453 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002454 ;;
2455 esac
2456 done
2457done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002458{ ac_configure_args0=; unset ac_configure_args0;}
2459{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460
2461# When interrupted or exit'd, cleanup temporary files, and complete
2462# config.log. We remove comments because anyway the quotes in there
2463# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002464# WARNING: Use '\'' to represent an apostrophe within the trap.
2465# 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 -05002466trap 'exit_status=$?
2467 # Save into config.log some information that might help in debugging.
2468 {
2469 echo
2470
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002471 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002472## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002473## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002474 echo
2475 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002476(
2477 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2478 eval ac_val=\$$ac_var
2479 case $ac_val in #(
2480 *${as_nl}*)
2481 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002482 *_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 +01002483$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002484 esac
2485 case $ac_var in #(
2486 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002487 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002488 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002489 esac ;;
2490 esac
2491 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002493 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2494 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002495 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002496 "s/'\''/'\''\\\\'\'''\''/g;
2497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2498 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002499 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002500 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002501 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002502 esac |
2503 sort
2504)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002505 echo
2506
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002507 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002508## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002509## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510 echo
2511 for ac_var in $ac_subst_vars
2512 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002513 eval ac_val=\$$ac_var
2514 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002515 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002516 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002517 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002518 done | sort
2519 echo
2520
2521 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002522 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002523## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002524## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002525 echo
2526 for ac_var in $ac_subst_files
2527 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002528 eval ac_val=\$$ac_var
2529 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002530 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002531 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002532 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002533 done | sort
2534 echo
2535 fi
2536
2537 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002538 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002539## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002540## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002541 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002542 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 echo
2544 fi
2545 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002546 $as_echo "$as_me: caught signal $ac_signal"
2547 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002548 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002549 rm -f core *.core core.conftest.* &&
2550 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002551 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002552' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002553for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002554 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002555done
2556ac_signal=0
2557
2558# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002559rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002560
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002561$as_echo "/* confdefs.h */" > confdefs.h
2562
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002563# Predefined preprocessor variables.
2564
2565cat >>confdefs.h <<_ACEOF
2566#define PACKAGE_NAME "$PACKAGE_NAME"
2567_ACEOF
2568
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002569cat >>confdefs.h <<_ACEOF
2570#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2571_ACEOF
2572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002573cat >>confdefs.h <<_ACEOF
2574#define PACKAGE_VERSION "$PACKAGE_VERSION"
2575_ACEOF
2576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002577cat >>confdefs.h <<_ACEOF
2578#define PACKAGE_STRING "$PACKAGE_STRING"
2579_ACEOF
2580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002581cat >>confdefs.h <<_ACEOF
2582#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2583_ACEOF
2584
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002585cat >>confdefs.h <<_ACEOF
2586#define PACKAGE_URL "$PACKAGE_URL"
2587_ACEOF
2588
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002589
2590# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002591# Prefer an explicitly selected file to automatically selected ones.
2592ac_site_file1=NONE
2593ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002594if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002595 # We do not want a PATH search for config.site.
2596 case $CONFIG_SITE in #((
2597 -*) ac_site_file1=./$CONFIG_SITE;;
2598 */*) ac_site_file1=$CONFIG_SITE;;
2599 *) ac_site_file1=./$CONFIG_SITE;;
2600 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002601elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002602 ac_site_file1=$prefix/share/config.site
2603 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002604else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002605 ac_site_file1=$ac_default_prefix/share/config.site
2606 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002607fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002608for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002609do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002610 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002611 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002612 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002613$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002614 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002615 . "$ac_site_file" \
2616 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2618as_fn_error $? "failed to load site script $ac_site_file
2619See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002620 fi
2621done
2622
2623if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002624 # Some versions of bash will fail to source /dev/null (special files
2625 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2626 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002627 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002628$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002629 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002630 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2631 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002632 esac
2633 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002634else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002636$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002637 >$cache_file
2638fi
2639
Theodore Ts'o93613952014-07-03 23:44:13 -04002640gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002641as_fn_append ac_header_list " stdlib.h"
2642as_fn_append ac_header_list " unistd.h"
2643as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002644as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002645# Check that the precious variables saved in the cache have kept the same
2646# value.
2647ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002648for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002649 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2650 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002651 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2652 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002653 case $ac_old_set,$ac_new_set in
2654 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002655 { $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 +01002656$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 -05002657 ac_cache_corrupted=: ;;
2658 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002659 { $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 +01002660$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002661 ac_cache_corrupted=: ;;
2662 ,);;
2663 *)
2664 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002665 # differences in whitespace do not lead to failure.
2666 ac_old_val_w=`echo x $ac_old_val`
2667 ac_new_val_w=`echo x $ac_new_val`
2668 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002669 { $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 +01002670$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2671 ac_cache_corrupted=:
2672 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002673 { $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 +01002674$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2675 eval $ac_var=\$ac_old_val
2676 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002677 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002678$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002679 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002680$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002681 fi;;
2682 esac
2683 # Pass precious variables to config.status.
2684 if test "$ac_new_set" = set; then
2685 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002686 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002687 *) ac_arg=$ac_var=$ac_new_val ;;
2688 esac
2689 case " $ac_configure_args " in
2690 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002691 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002692 esac
2693 fi
2694done
2695if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002698 { $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 +01002699$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002700 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002701fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002702## -------------------- ##
2703## Main body of script. ##
2704## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002705
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002706ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002707ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2710ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002711
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002712
2713
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002714ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002715for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002716 if test -f "$ac_dir/install-sh"; then
2717 ac_aux_dir=$ac_dir
2718 ac_install_sh="$ac_aux_dir/install-sh -c"
2719 break
2720 elif test -f "$ac_dir/install.sh"; then
2721 ac_aux_dir=$ac_dir
2722 ac_install_sh="$ac_aux_dir/install.sh -c"
2723 break
2724 elif test -f "$ac_dir/shtool"; then
2725 ac_aux_dir=$ac_dir
2726 ac_install_sh="$ac_aux_dir/shtool install -c"
2727 break
2728 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002729done
2730if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002731 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 +00002732fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002733
2734# These three variables are undocumented and unsupported,
2735# and are intended to be withdrawn in a future Autoconf release.
2736# They can cause serious problems if a builder's source tree is in a directory
2737# whose full name contains unusual characters.
2738ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2739ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2740ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2741
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002742
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002743ac_config_headers="$ac_config_headers lib/config.h"
2744
2745
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002746MCONFIG=./MCONFIG
2747
Theodore Ts'o74becf31997-04-26 14:37:06 +00002748BINARY_TYPE=bin
2749E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2750 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2751DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2752 | tr \" " "`
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002753E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
Theodore Ts'o74becf31997-04-26 14:37:06 +00002754MONTH=`echo $DATE | awk -F- '{print $2}'`
2755YEAR=`echo $DATE | awk -F- '{print $3}'`
2756
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002757if expr $YEAR ">" 1900 > /dev/null ; then
2758 E2FSPROGS_YEAR=$YEAR
2759elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002760 E2FSPROGS_YEAR=19$YEAR
2761else
2762 E2FSPROGS_YEAR=20$YEAR
2763fi
2764
2765case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002766Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2767Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2768Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2769Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2770May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2771Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2772Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2773Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2774Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2775Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2776Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2777Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002778*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002779$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002780esac
2781
Andreas Dilger927566a2006-11-12 19:41:25 -05002782base_ver=`echo $E2FSPROGS_VERSION | \
2783 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002784
2785date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2786
2787case $E2FSPROGS_VERSION in
2788*-WIP|pre-*)
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002789 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
Andreas Dilger927566a2006-11-12 19:41:25 -05002790 ;;
2791*)
2792 E2FSPROGS_PKGVER="$base_ver"
2793 ;;
2794esac
2795
2796unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002797{ $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 +01002798$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002800$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002801
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002802
2803
2804
Andreas Dilger927566a2006-11-12 19:41:25 -05002805
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002806WITH_DIET_LIBC=
2807
2808# Check whether --with-diet-libc was given.
2809if test "${with_diet_libc+set}" = set; then :
2810 withval=$with_diet_libc; CC="diet cc -nostdinc"
2811WITH_DIET_LIBC=yes
2812if test -z "$LIBS"
2813then
2814 LIBS="-lcompat"
2815else
2816 LIBS="$LIBS -lcompat"
2817fi
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2819$as_echo "CC=$CC" >&6; }
2820fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002821# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002822$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002823 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002824
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002826$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002827if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002828 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002829else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002830 ac_build_alias=$build_alias
2831test "x$ac_build_alias" = x &&
2832 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2833test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002834 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002835ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002836 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002837
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002838fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002840$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002841case $ac_cv_build in
2842*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002843*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002844esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002845build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002846ac_save_IFS=$IFS; IFS='-'
2847set x $ac_cv_build
2848shift
2849build_cpu=$1
2850build_vendor=$2
2851shift; shift
2852# Remember, the first character of IFS is used to create $*,
2853# except with old shells:
2854build_os=$*
2855IFS=$ac_save_IFS
2856case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002857
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002858
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002860$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002861if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002862 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002863else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002864 if test "x$host_alias" = x; then
2865 ac_cv_host=$ac_cv_build
2866else
2867 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002868 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002869fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002870
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002871fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002873$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002874case $ac_cv_host in
2875*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002876*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002877esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002878host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002879ac_save_IFS=$IFS; IFS='-'
2880set x $ac_cv_host
2881shift
2882host_cpu=$1
2883host_vendor=$2
2884shift; shift
2885# Remember, the first character of IFS is used to create $*,
2886# except with old shells:
2887host_os=$*
2888IFS=$ac_save_IFS
2889case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002890
2891
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002892DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002893ac_ext=c
2894ac_cpp='$CPP $CPPFLAGS'
2895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2897ac_compiler_gnu=$ac_cv_c_compiler_gnu
2898if test -n "$ac_tool_prefix"; then
2899 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2900set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002902$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002903if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002904 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002905else
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2908else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002914 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002916 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002918 break 2
2919 fi
2920done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002921 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002922IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002923
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002924fi
2925fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002926CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002927if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002929$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002930else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002932$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933fi
2934
Theodore Ts'oe1052142006-10-21 21:46:47 -04002935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936fi
2937if test -z "$ac_cv_prog_CC"; then
2938 ac_ct_CC=$CC
2939 # Extract the first word of "gcc", so it can be a program name with args.
2940set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002942$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002943if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002944 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002945else
2946 if test -n "$ac_ct_CC"; then
2947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2948else
2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002954 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002956 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002958 break 2
2959 fi
2960done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002961 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002962IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002963
2964fi
2965fi
2966ac_ct_CC=$ac_cv_prog_ac_ct_CC
2967if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002969$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002970else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002972$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002973fi
2974
Theodore Ts'oe1052142006-10-21 21:46:47 -04002975 if test "x$ac_ct_CC" = x; then
2976 CC=""
2977 else
2978 case $cross_compiling:$ac_tool_warned in
2979yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002980{ $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 +01002981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002982ac_tool_warned=yes ;;
2983esac
2984 CC=$ac_ct_CC
2985 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002986else
2987 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002988fi
2989
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002990if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002991 if test -n "$ac_tool_prefix"; then
2992 # 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 -05002993set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002995$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002996if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002997 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002998else
2999 if test -n "$CC"; then
3000 ac_cv_prog_CC="$CC" # Let the user override the test.
3001else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003for as_dir in $PATH
3004do
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003007 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003009 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011 break 2
3012 fi
3013done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003014 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003015IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003016
3017fi
3018fi
3019CC=$ac_cv_prog_CC
3020if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003022$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003023else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003025$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003026fi
3027
Theodore Ts'oe1052142006-10-21 21:46:47 -04003028
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003029 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003030fi
3031if test -z "$CC"; then
3032 # Extract the first word of "cc", so it can be a program name with args.
3033set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003035$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003036if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003037 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038else
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3041else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003042 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003048 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003050 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3051 ac_prog_rejected=yes
3052 continue
3053 fi
3054 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003056 break 2
3057 fi
3058done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003059 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003060IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003061
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003062if test $ac_prog_rejected = yes; then
3063 # We found a bogon in the path, so make sure we never use it.
3064 set dummy $ac_cv_prog_CC
3065 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003066 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003067 # We chose a different compiler from the bogus one.
3068 # However, it has the same basename, so the bogon will be chosen
3069 # first if we set CC to just the basename; use the full file name.
3070 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003072 fi
3073fi
3074fi
3075fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003076CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003077if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003079$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003080else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003082$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003083fi
3084
Theodore Ts'oe1052142006-10-21 21:46:47 -04003085
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003086fi
3087if test -z "$CC"; then
3088 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003089 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003090 do
3091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3092set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003094$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003095if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003096 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003097else
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3100else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003106 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003108 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003110 break 2
3111 fi
3112done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003113 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003114IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003115
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003116fi
3117fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003119if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003121$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003122else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003124$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003125fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003126
Theodore Ts'oe1052142006-10-21 21:46:47 -04003127
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003128 test -n "$CC" && break
3129 done
3130fi
3131if test -z "$CC"; then
3132 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003133 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003134do
3135 # Extract the first word of "$ac_prog", so it can be a program name with args.
3136set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003138$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003139if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003140 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003141else
3142 if test -n "$ac_ct_CC"; then
3143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3144else
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003150 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003152 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003154 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003155 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003156done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003157 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003158IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003159
3160fi
3161fi
3162ac_ct_CC=$ac_cv_prog_ac_ct_CC
3163if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003165$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003166else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003168$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003169fi
3170
Theodore Ts'oe1052142006-10-21 21:46:47 -04003171
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003172 test -n "$ac_ct_CC" && break
3173done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003174
Theodore Ts'oe1052142006-10-21 21:46:47 -04003175 if test "x$ac_ct_CC" = x; then
3176 CC=""
3177 else
3178 case $cross_compiling:$ac_tool_warned in
3179yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003180{ $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 +01003181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003182ac_tool_warned=yes ;;
3183esac
3184 CC=$ac_ct_CC
3185 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003186fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003187
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003188fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003189
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003190
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003191test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003193as_fn_error $? "no acceptable C compiler found in \$PATH
3194See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003195
3196# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003197$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003198set X $ac_compile
3199ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003200for ac_option in --version -v -V -qversion; do
3201 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003202case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207$as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003209 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003210 if test -s conftest.err; then
3211 sed '10a\
3212... rest of stderr output deleted ...
3213 10q' conftest.err >conftest.er1
3214 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003215 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003216 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }
3219done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003220
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003222/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003224int
3225main ()
3226{
3227
3228 ;
3229 return 0;
3230}
3231_ACEOF
3232ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003233ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003234# Try to create an executable without -o first, disregard a.out.
3235# It will help us diagnose broken compilers, and finding out an intuition
3236# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3238$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003239ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3240
3241# The possible output files:
3242ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3243
Theodore Ts'oe1052142006-10-21 21:46:47 -04003244ac_rmfiles=
3245for ac_file in $ac_files
3246do
3247 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003249 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3250 esac
3251done
3252rm -f $ac_rmfiles
3253
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003254if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003255case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003261 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003262 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003265 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3266# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3267# in a Makefile. We should not override ac_cv_exeext if it was cached,
3268# so that the user can short-circuit this test for compilers unknown to
3269# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003270for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003271do
3272 test -f "$ac_file" || continue
3273 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003275 ;;
3276 [ab].out )
3277 # We found the default executable, but exeext='' is most
3278 # certainly right.
3279 break;;
3280 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003281 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003282 then :; else
3283 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284 fi
3285 # We set ac_cv_exeext here because the later test for it is not
3286 # safe: cross compilers may not add the suffix if given an `-o'
3287 # argument, so we may need to know it at that point already.
3288 # Even if this section looks crufty: it has the advantage of
3289 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003290 break;;
3291 * )
3292 break;;
3293 esac
3294done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003295test "$ac_cv_exeext" = no && ac_cv_exeext=
3296
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003297else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003298 ac_file=''
3299fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003300if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003304sed 's/^/| /' conftest.$ac_ext >&5
3305
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003306{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003308as_fn_error 77 "C compiler cannot create executables
3309See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003310else
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3312$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003313fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3315$as_echo_n "checking for C compiler default output file name... " >&6; }
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3317$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003318ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003319
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003320rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003321ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003323$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003324if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003325case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003331 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003332 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003335 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3336# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3337# work properly (i.e., refer to `conftest.exe'), while it won't with
3338# `rm'.
3339for ac_file in conftest.exe conftest conftest.*; do
3340 test -f "$ac_file" || continue
3341 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003343 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003344 break;;
3345 * ) break;;
3346 esac
3347done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003348else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003351as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3352See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003353fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003354rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003356$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003357
3358rm -f conftest.$ac_ext
3359EXEEXT=$ac_cv_exeext
3360ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362/* end confdefs.h. */
3363#include <stdio.h>
3364int
3365main ()
3366{
3367FILE *f = fopen ("conftest.out", "w");
3368 return ferror (f) || fclose (f) != 0;
3369
3370 ;
3371 return 0;
3372}
3373_ACEOF
3374ac_clean_files="$ac_clean_files conftest.out"
3375# Check that the compiler produces executables we can run. If not, either
3376# the compiler is broken, or we cross compile.
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3378$as_echo_n "checking whether we are cross compiling... " >&6; }
3379if test "$cross_compiling" != yes; then
3380 { { ac_try="$ac_link"
3381case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384esac
3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386$as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_link") 2>&5
3388 ac_status=$?
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3391 if { ac_try='./conftest$ac_cv_exeext'
3392 { { case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395esac
3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397$as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_try") 2>&5
3399 ac_status=$?
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }; }; then
3402 cross_compiling=no
3403 else
3404 if test "$cross_compiling" = maybe; then
3405 cross_compiling=yes
3406 else
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003409as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003410If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003411See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003412 fi
3413 fi
3414fi
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3416$as_echo "$cross_compiling" >&6; }
3417
3418rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3419ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003421$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003422if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003423 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003424else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003426/* end confdefs.h. */
3427
3428int
3429main ()
3430{
3431
3432 ;
3433 return 0;
3434}
3435_ACEOF
3436rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003437if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003438case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003444 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003445 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003448 for ac_file in conftest.o conftest.obj conftest.*; do
3449 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003450 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003452 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3453 break;;
3454 esac
3455done
3456else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003457 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003458sed 's/^/| /' conftest.$ac_ext >&5
3459
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003460{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003462as_fn_error $? "cannot compute suffix of object files: cannot compile
3463See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003464fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003465rm -f conftest.$ac_cv_objext conftest.$ac_ext
3466fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003468$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003469OBJEXT=$ac_cv_objext
3470ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003471{ $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 +01003472$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003473if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003474 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003475else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003477/* end confdefs.h. */
3478
3479int
3480main ()
3481{
3482#ifndef __GNUC__
3483 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003484#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003486 ;
3487 return 0;
3488}
3489_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003490if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003491 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003492else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003493 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003494fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003496ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003498fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003500$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3501if test $ac_compiler_gnu = yes; then
3502 GCC=yes
3503else
3504 GCC=
3505fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003506ac_test_CFLAGS=${CFLAGS+set}
3507ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003509$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003510if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003511 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003512else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003513 ac_save_c_werror_flag=$ac_c_werror_flag
3514 ac_c_werror_flag=yes
3515 ac_cv_prog_cc_g=no
3516 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003518/* end confdefs.h. */
3519
3520int
3521main ()
3522{
3523
3524 ;
3525 return 0;
3526}
3527_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003528if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003529 ac_cv_prog_cc_g=yes
3530else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003531 CFLAGS=""
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003533/* end confdefs.h. */
3534
3535int
3536main ()
3537{
3538
3539 ;
3540 return 0;
3541}
3542_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003543if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003544
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003545else
3546 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003547 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003549/* end confdefs.h. */
3550
3551int
3552main ()
3553{
3554
3555 ;
3556 return 0;
3557}
3558_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003559if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003560 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003563fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 ac_c_werror_flag=$ac_save_c_werror_flag
3568fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003570$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003571if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003572 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003573elif test $ac_cv_prog_cc_g = yes; then
3574 if test "$GCC" = yes; then
3575 CFLAGS="-g -O2"
3576 else
3577 CFLAGS="-g"
3578 fi
3579else
3580 if test "$GCC" = yes; then
3581 CFLAGS="-O2"
3582 else
3583 CFLAGS=
3584 fi
3585fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003587$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003588if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003589 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003590else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003591 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003592ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003594/* end confdefs.h. */
3595#include <stdarg.h>
3596#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003597struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003598/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3599struct buf { int x; };
3600FILE * (*rcsopen) (struct buf *, struct stat *, int);
3601static char *e (p, i)
3602 char **p;
3603 int i;
3604{
3605 return p[i];
3606}
3607static char *f (char * (*g) (char **, int), char **p, ...)
3608{
3609 char *s;
3610 va_list v;
3611 va_start (v,p);
3612 s = g (p, va_arg (v,int));
3613 va_end (v);
3614 return s;
3615}
3616
3617/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3618 function prototypes and stuff, but not '\xHH' hex character constants.
3619 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003620 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3622 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003623 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003624int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3625
Theodore Ts'oe1052142006-10-21 21:46:47 -04003626/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3627 inside strings and character constants. */
3628#define FOO(x) 'x'
3629int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3630
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003631int test (int i, double x);
3632struct s1 {int (*f) (int a);};
3633struct s2 {int (*f) (double a);};
3634int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3635int argc;
3636char **argv;
3637int
3638main ()
3639{
3640return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3641 ;
3642 return 0;
3643}
3644_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003645for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003647do
3648 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003649 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003650 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003651fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003652rm -f core conftest.err conftest.$ac_objext
3653 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003654done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003655rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003656CC=$ac_save_CC
3657
3658fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003659# AC_CACHE_VAL
3660case "x$ac_cv_prog_cc_c89" in
3661 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003663$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003664 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003666$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003667 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003668 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003670$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003671esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003672if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003673
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003674fi
3675
3676ac_ext=c
3677ac_cpp='$CPP $CPPFLAGS'
3678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681
3682
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3684$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003685if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003686 $as_echo_n "(cached) " >&6
3687else
3688 ac_check_lib_save_LIBS=$LIBS
3689LIBS="-ldl $LIBS"
3690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691/* end confdefs.h. */
3692
3693/* Override any GCC internal prototype to avoid an error.
3694 Use char because int might match the return type of a GCC
3695 builtin and then its argument prototype would still apply. */
3696#ifdef __cplusplus
3697extern "C"
3698#endif
3699char dlopen ();
3700int
3701main ()
3702{
3703return dlopen ();
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708if ac_fn_c_try_link "$LINENO"; then :
3709 ac_cv_lib_dl_dlopen=yes
3710else
3711 ac_cv_lib_dl_dlopen=no
3712fi
3713rm -f core conftest.err conftest.$ac_objext \
3714 conftest$ac_exeext conftest.$ac_ext
3715LIBS=$ac_check_lib_save_LIBS
3716fi
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3718$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003719if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003720 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003721
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003722$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3723
3724fi
3725
3726
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003727
3728# Check whether --with-cc was given.
3729if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003730 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003731fi
3732
3733
3734# Check whether --with-ccopts was given.
3735if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003736 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003737fi
3738
3739
3740# Check whether --with-ldopts was given.
3741if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003742 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003743fi
3744
3745ac_ext=c
3746ac_cpp='$CPP $CPPFLAGS'
3747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750if test -n "$ac_tool_prefix"; then
3751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3752set dummy ${ac_tool_prefix}gcc; ac_word=$2
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003755if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003756 $as_echo_n "(cached) " >&6
3757else
3758 if test -n "$CC"; then
3759 ac_cv_prog_CC="$CC" # Let the user override the test.
3760else
3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH
3763do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003768 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3771 fi
3772done
3773 done
3774IFS=$as_save_IFS
3775
3776fi
3777fi
3778CC=$ac_cv_prog_CC
3779if test -n "$CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3781$as_echo "$CC" >&6; }
3782else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784$as_echo "no" >&6; }
3785fi
3786
3787
3788fi
3789if test -z "$ac_cv_prog_CC"; then
3790 ac_ct_CC=$CC
3791 # Extract the first word of "gcc", so it can be a program name with args.
3792set dummy gcc; ac_word=$2
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003795if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003796 $as_echo_n "(cached) " >&6
3797else
3798 if test -n "$ac_ct_CC"; then
3799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003808 ac_cv_prog_ac_ct_CC="gcc"
3809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 break 2
3811 fi
3812done
3813 done
3814IFS=$as_save_IFS
3815
3816fi
3817fi
3818ac_ct_CC=$ac_cv_prog_ac_ct_CC
3819if test -n "$ac_ct_CC"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3821$as_echo "$ac_ct_CC" >&6; }
3822else
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824$as_echo "no" >&6; }
3825fi
3826
3827 if test "x$ac_ct_CC" = x; then
3828 CC=""
3829 else
3830 case $cross_compiling:$ac_tool_warned in
3831yes:)
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834ac_tool_warned=yes ;;
3835esac
3836 CC=$ac_ct_CC
3837 fi
3838else
3839 CC="$ac_cv_prog_CC"
3840fi
3841
3842if test -z "$CC"; then
3843 if test -n "$ac_tool_prefix"; then
3844 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3845set dummy ${ac_tool_prefix}cc; ac_word=$2
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003848if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003849 $as_echo_n "(cached) " >&6
3850else
3851 if test -n "$CC"; then
3852 ac_cv_prog_CC="$CC" # Let the user override the test.
3853else
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003861 ac_cv_prog_CC="${ac_tool_prefix}cc"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3864 fi
3865done
3866 done
3867IFS=$as_save_IFS
3868
3869fi
3870fi
3871CC=$ac_cv_prog_CC
3872if test -n "$CC"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3874$as_echo "$CC" >&6; }
3875else
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877$as_echo "no" >&6; }
3878fi
3879
3880
3881 fi
3882fi
3883if test -z "$CC"; then
3884 # Extract the first word of "cc", so it can be a program name with args.
3885set dummy cc; ac_word=$2
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003888if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003889 $as_echo_n "(cached) " >&6
3890else
3891 if test -n "$CC"; then
3892 ac_cv_prog_CC="$CC" # Let the user override the test.
3893else
3894 ac_prog_rejected=no
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3903 ac_prog_rejected=yes
3904 continue
3905 fi
3906 ac_cv_prog_CC="cc"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3909 fi
3910done
3911 done
3912IFS=$as_save_IFS
3913
3914if test $ac_prog_rejected = yes; then
3915 # We found a bogon in the path, so make sure we never use it.
3916 set dummy $ac_cv_prog_CC
3917 shift
3918 if test $# != 0; then
3919 # We chose a different compiler from the bogus one.
3920 # However, it has the same basename, so the bogon will be chosen
3921 # first if we set CC to just the basename; use the full file name.
3922 shift
3923 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3924 fi
3925fi
3926fi
3927fi
3928CC=$ac_cv_prog_CC
3929if test -n "$CC"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3931$as_echo "$CC" >&6; }
3932else
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
3935fi
3936
3937
3938fi
3939if test -z "$CC"; then
3940 if test -n "$ac_tool_prefix"; then
3941 for ac_prog in cl.exe
3942 do
3943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3944set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003947if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003948 $as_echo_n "(cached) " >&6
3949else
3950 if test -n "$CC"; then
3951 ac_cv_prog_CC="$CC" # Let the user override the test.
3952else
3953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954for as_dir in $PATH
3955do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003960 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 break 2
3963 fi
3964done
3965 done
3966IFS=$as_save_IFS
3967
3968fi
3969fi
3970CC=$ac_cv_prog_CC
3971if test -n "$CC"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3973$as_echo "$CC" >&6; }
3974else
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976$as_echo "no" >&6; }
3977fi
3978
3979
3980 test -n "$CC" && break
3981 done
3982fi
3983if test -z "$CC"; then
3984 ac_ct_CC=$CC
3985 for ac_prog in cl.exe
3986do
3987 # Extract the first word of "$ac_prog", so it can be a program name with args.
3988set dummy $ac_prog; ac_word=$2
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003991if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003992 $as_echo_n "(cached) " >&6
3993else
3994 if test -n "$ac_ct_CC"; then
3995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3996else
3997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004004 ac_cv_prog_ac_ct_CC="$ac_prog"
4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008done
4009 done
4010IFS=$as_save_IFS
4011
4012fi
4013fi
4014ac_ct_CC=$ac_cv_prog_ac_ct_CC
4015if test -n "$ac_ct_CC"; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4017$as_echo "$ac_ct_CC" >&6; }
4018else
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020$as_echo "no" >&6; }
4021fi
4022
4023
4024 test -n "$ac_ct_CC" && break
4025done
4026
4027 if test "x$ac_ct_CC" = x; then
4028 CC=""
4029 else
4030 case $cross_compiling:$ac_tool_warned in
4031yes:)
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4034ac_tool_warned=yes ;;
4035esac
4036 CC=$ac_ct_CC
4037 fi
4038fi
4039
4040fi
4041
4042
4043test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004045as_fn_error $? "no acceptable C compiler found in \$PATH
4046See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004047
4048# Provide some information about the compiler.
4049$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4050set X $ac_compile
4051ac_compiler=$2
4052for ac_option in --version -v -V -qversion; do
4053 { { ac_try="$ac_compiler $ac_option >&5"
4054case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057esac
4058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059$as_echo "$ac_try_echo"; } >&5
4060 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4061 ac_status=$?
4062 if test -s conftest.err; then
4063 sed '10a\
4064... rest of stderr output deleted ...
4065 10q' conftest.err >conftest.er1
4066 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004067 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004068 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070 test $ac_status = 0; }
4071done
4072
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4074$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004075if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004076 $as_echo_n "(cached) " >&6
4077else
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h. */
4080
4081int
4082main ()
4083{
4084#ifndef __GNUC__
4085 choke me
4086#endif
4087
4088 ;
4089 return 0;
4090}
4091_ACEOF
4092if ac_fn_c_try_compile "$LINENO"; then :
4093 ac_compiler_gnu=yes
4094else
4095 ac_compiler_gnu=no
4096fi
4097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098ac_cv_c_compiler_gnu=$ac_compiler_gnu
4099
4100fi
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4102$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4103if test $ac_compiler_gnu = yes; then
4104 GCC=yes
4105else
4106 GCC=
4107fi
4108ac_test_CFLAGS=${CFLAGS+set}
4109ac_save_CFLAGS=$CFLAGS
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4111$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004112if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004113 $as_echo_n "(cached) " >&6
4114else
4115 ac_save_c_werror_flag=$ac_c_werror_flag
4116 ac_c_werror_flag=yes
4117 ac_cv_prog_cc_g=no
4118 CFLAGS="-g"
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120/* end confdefs.h. */
4121
4122int
4123main ()
4124{
4125
4126 ;
4127 return 0;
4128}
4129_ACEOF
4130if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_cv_prog_cc_g=yes
4132else
4133 CFLAGS=""
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135/* end confdefs.h. */
4136
4137int
4138main ()
4139{
4140
4141 ;
4142 return 0;
4143}
4144_ACEOF
4145if ac_fn_c_try_compile "$LINENO"; then :
4146
4147else
4148 ac_c_werror_flag=$ac_save_c_werror_flag
4149 CFLAGS="-g"
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151/* end confdefs.h. */
4152
4153int
4154main ()
4155{
4156
4157 ;
4158 return 0;
4159}
4160_ACEOF
4161if ac_fn_c_try_compile "$LINENO"; then :
4162 ac_cv_prog_cc_g=yes
4163fi
4164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165fi
4166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167fi
4168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 ac_c_werror_flag=$ac_save_c_werror_flag
4170fi
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4172$as_echo "$ac_cv_prog_cc_g" >&6; }
4173if test "$ac_test_CFLAGS" = set; then
4174 CFLAGS=$ac_save_CFLAGS
4175elif test $ac_cv_prog_cc_g = yes; then
4176 if test "$GCC" = yes; then
4177 CFLAGS="-g -O2"
4178 else
4179 CFLAGS="-g"
4180 fi
4181else
4182 if test "$GCC" = yes; then
4183 CFLAGS="-O2"
4184 else
4185 CFLAGS=
4186 fi
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4189$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004190if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004191 $as_echo_n "(cached) " >&6
4192else
4193 ac_cv_prog_cc_c89=no
4194ac_save_CC=$CC
4195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h. */
4197#include <stdarg.h>
4198#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004199struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004200/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4201struct buf { int x; };
4202FILE * (*rcsopen) (struct buf *, struct stat *, int);
4203static char *e (p, i)
4204 char **p;
4205 int i;
4206{
4207 return p[i];
4208}
4209static char *f (char * (*g) (char **, int), char **p, ...)
4210{
4211 char *s;
4212 va_list v;
4213 va_start (v,p);
4214 s = g (p, va_arg (v,int));
4215 va_end (v);
4216 return s;
4217}
4218
4219/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4220 function prototypes and stuff, but not '\xHH' hex character constants.
4221 These don't provoke an error unfortunately, instead are silently treated
4222 as 'x'. The following induces an error, until -std is added to get
4223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4224 array size at least. It's necessary to write '\x00'==0 to get something
4225 that's true only with -std. */
4226int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4227
4228/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4229 inside strings and character constants. */
4230#define FOO(x) 'x'
4231int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4232
4233int test (int i, double x);
4234struct s1 {int (*f) (int a);};
4235struct s2 {int (*f) (double a);};
4236int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4237int argc;
4238char **argv;
4239int
4240main ()
4241{
4242return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4243 ;
4244 return 0;
4245}
4246_ACEOF
4247for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4248 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4249do
4250 CC="$ac_save_CC $ac_arg"
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_prog_cc_c89=$ac_arg
4253fi
4254rm -f core conftest.err conftest.$ac_objext
4255 test "x$ac_cv_prog_cc_c89" != "xno" && break
4256done
4257rm -f conftest.$ac_ext
4258CC=$ac_save_CC
4259
4260fi
4261# AC_CACHE_VAL
4262case "x$ac_cv_prog_cc_c89" in
4263 x)
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4265$as_echo "none needed" >&6; } ;;
4266 xno)
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4268$as_echo "unsupported" >&6; } ;;
4269 *)
4270 CC="$CC $ac_cv_prog_cc_c89"
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4272$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4273esac
4274if test "x$ac_cv_prog_cc_c89" != xno; then :
4275
4276fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004278ac_ext=c
4279ac_cpp='$CPP $CPPFLAGS'
4280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004284if test "$GCC" = yes; then
4285 RDYNAMIC="-rdynamic"
4286
4287fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004288ac_ext=c
4289ac_cpp='$CPP $CPPFLAGS'
4290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004294$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004295# On Suns, sometimes $CPP names a directory.
4296if test -n "$CPP" && test -d "$CPP"; then
4297 CPP=
4298fi
4299if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004300 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004301 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004302else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004303 # Double quotes because CPP needs to be expanded
4304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4305 do
4306 ac_preproc_ok=false
4307for ac_c_preproc_warn_flag in '' yes
4308do
4309 # Use a header file that comes with gcc, so configuring glibc
4310 # with a fresh cross-compiler works.
4311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4312 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004313 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004314 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004316/* end confdefs.h. */
4317#ifdef __STDC__
4318# include <limits.h>
4319#else
4320# include <assert.h>
4321#endif
4322 Syntax error
4323_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004324if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004325
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004326else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004327 # Broken: fails on valid input.
4328continue
4329fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004330rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004331
Theodore Ts'oe1052142006-10-21 21:46:47 -04004332 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004333 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004335/* end confdefs.h. */
4336#include <ac_nonexistent.h>
4337_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004338if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004339 # Broken: success on invalid input.
4340continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004341else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004342 # Passes both tests.
4343ac_preproc_ok=:
4344break
4345fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004346rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004347
4348done
4349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004350rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004351if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004352 break
4353fi
4354
4355 done
4356 ac_cv_prog_CPP=$CPP
4357
4358fi
4359 CPP=$ac_cv_prog_CPP
4360else
4361 ac_cv_prog_CPP=$CPP
4362fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004364$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004365ac_preproc_ok=false
4366for ac_c_preproc_warn_flag in '' yes
4367do
4368 # Use a header file that comes with gcc, so configuring glibc
4369 # with a fresh cross-compiler works.
4370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4371 # <limits.h> exists even on freestanding compilers.
4372 # On the NeXT, cc -E runs the code through the compiler's parser,
4373 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004375/* end confdefs.h. */
4376#ifdef __STDC__
4377# include <limits.h>
4378#else
4379# include <assert.h>
4380#endif
4381 Syntax error
4382_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004383if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004384
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004385else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004386 # Broken: fails on valid input.
4387continue
4388fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004389rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004390
Theodore Ts'oe1052142006-10-21 21:46:47 -04004391 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004392 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004394/* end confdefs.h. */
4395#include <ac_nonexistent.h>
4396_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004397if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004398 # Broken: success on invalid input.
4399continue
4400else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004401 # Passes both tests.
4402ac_preproc_ok=:
4403break
4404fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004405rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004406
4407done
4408# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004409rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004410if $ac_preproc_ok; then :
4411
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004412else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004415as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4416See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004417fi
4418
4419ac_ext=c
4420ac_cpp='$CPP $CPPFLAGS'
4421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004426$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004427if test "$GCC" = yes
4428then
4429 case "$host_cpu" in
4430 alpha) addcflags="-mieee" ;;
4431 esac
4432fi
4433if test "x$addcflags" != x
4434then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004436$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004437 CFLAGS="$addcflags $CFLAGS"
4438else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004440$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004441fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004442
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4444$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4445if ${ac_cv_path_GREP+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447else
4448 if test -z "$GREP"; then
4449 ac_path_GREP_found=false
4450 # Loop through the user's path and test for each of PROGNAME-LIST
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_prog in grep ggrep; do
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4459 as_fn_executable_p "$ac_path_GREP" || continue
4460# Check for GNU ac_path_GREP and select it if it is found.
4461 # Check for GNU $ac_path_GREP
4462case `"$ac_path_GREP" --version 2>&1` in
4463*GNU*)
4464 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4465*)
4466 ac_count=0
4467 $as_echo_n 0123456789 >"conftest.in"
4468 while :
4469 do
4470 cat "conftest.in" "conftest.in" >"conftest.tmp"
4471 mv "conftest.tmp" "conftest.in"
4472 cp "conftest.in" "conftest.nl"
4473 $as_echo 'GREP' >> "conftest.nl"
4474 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4475 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4476 as_fn_arith $ac_count + 1 && ac_count=$as_val
4477 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4478 # Best one so far, save it but keep looking for a better one
4479 ac_cv_path_GREP="$ac_path_GREP"
4480 ac_path_GREP_max=$ac_count
4481 fi
4482 # 10*(2^10) chars as input seems more than enough
4483 test $ac_count -gt 10 && break
4484 done
4485 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4486esac
4487
4488 $ac_path_GREP_found && break 3
4489 done
4490 done
4491 done
4492IFS=$as_save_IFS
4493 if test -z "$ac_cv_path_GREP"; then
4494 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4495 fi
4496else
4497 ac_cv_path_GREP=$GREP
4498fi
4499
4500fi
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4502$as_echo "$ac_cv_path_GREP" >&6; }
4503 GREP="$ac_cv_path_GREP"
4504
4505
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4507$as_echo_n "checking for egrep... " >&6; }
4508if ${ac_cv_path_EGREP+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510else
4511 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4512 then ac_cv_path_EGREP="$GREP -E"
4513 else
4514 if test -z "$EGREP"; then
4515 ac_path_EGREP_found=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_prog in egrep; do
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4525 as_fn_executable_p "$ac_path_EGREP" || continue
4526# Check for GNU ac_path_EGREP and select it if it is found.
4527 # Check for GNU $ac_path_EGREP
4528case `"$ac_path_EGREP" --version 2>&1` in
4529*GNU*)
4530 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4531*)
4532 ac_count=0
4533 $as_echo_n 0123456789 >"conftest.in"
4534 while :
4535 do
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 $as_echo 'EGREP' >> "conftest.nl"
4540 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542 as_fn_arith $ac_count + 1 && ac_count=$as_val
4543 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_EGREP="$ac_path_EGREP"
4546 ac_path_EGREP_max=$ac_count
4547 fi
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4550 done
4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552esac
4553
4554 $ac_path_EGREP_found && break 3
4555 done
4556 done
4557 done
4558IFS=$as_save_IFS
4559 if test -z "$ac_cv_path_EGREP"; then
4560 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4561 fi
4562else
4563 ac_cv_path_EGREP=$EGREP
4564fi
4565
4566 fi
4567fi
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4569$as_echo "$ac_cv_path_EGREP" >&6; }
4570 EGREP="$ac_cv_path_EGREP"
4571
4572
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4574$as_echo_n "checking for ANSI C header files... " >&6; }
4575if ${ac_cv_header_stdc+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577else
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h. */
4580#include <stdlib.h>
4581#include <stdarg.h>
4582#include <string.h>
4583#include <float.h>
4584
4585int
4586main ()
4587{
4588
4589 ;
4590 return 0;
4591}
4592_ACEOF
4593if ac_fn_c_try_compile "$LINENO"; then :
4594 ac_cv_header_stdc=yes
4595else
4596 ac_cv_header_stdc=no
4597fi
4598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599
4600if test $ac_cv_header_stdc = yes; then
4601 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603/* end confdefs.h. */
4604#include <string.h>
4605
4606_ACEOF
4607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608 $EGREP "memchr" >/dev/null 2>&1; then :
4609
4610else
4611 ac_cv_header_stdc=no
4612fi
4613rm -f conftest*
4614
4615fi
4616
4617if test $ac_cv_header_stdc = yes; then
4618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h. */
4621#include <stdlib.h>
4622
4623_ACEOF
4624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4625 $EGREP "free" >/dev/null 2>&1; then :
4626
4627else
4628 ac_cv_header_stdc=no
4629fi
4630rm -f conftest*
4631
4632fi
4633
4634if test $ac_cv_header_stdc = yes; then
4635 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4636 if test "$cross_compiling" = yes; then :
4637 :
4638else
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h. */
4641#include <ctype.h>
4642#include <stdlib.h>
4643#if ((' ' & 0x0FF) == 0x020)
4644# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4645# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4646#else
4647# define ISLOWER(c) \
4648 (('a' <= (c) && (c) <= 'i') \
4649 || ('j' <= (c) && (c) <= 'r') \
4650 || ('s' <= (c) && (c) <= 'z'))
4651# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4652#endif
4653
4654#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4655int
4656main ()
4657{
4658 int i;
4659 for (i = 0; i < 256; i++)
4660 if (XOR (islower (i), ISLOWER (i))
4661 || toupper (i) != TOUPPER (i))
4662 return 2;
4663 return 0;
4664}
4665_ACEOF
4666if ac_fn_c_try_run "$LINENO"; then :
4667
4668else
4669 ac_cv_header_stdc=no
4670fi
4671rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4672 conftest.$ac_objext conftest.beam conftest.$ac_ext
4673fi
4674
4675fi
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4678$as_echo "$ac_cv_header_stdc" >&6; }
4679if test $ac_cv_header_stdc = yes; then
4680
4681$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4682
4683fi
4684
4685# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4686for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4687 inttypes.h stdint.h unistd.h
4688do :
4689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4690ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4691"
4692if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4693 cat >>confdefs.h <<_ACEOF
4694#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4695_ACEOF
4696
4697fi
4698
4699done
4700
4701
4702
4703 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4704if test "x$ac_cv_header_minix_config_h" = xyes; then :
4705 MINIX=yes
4706else
4707 MINIX=
4708fi
4709
4710
4711 if test "$MINIX" = yes; then
4712
4713$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4714
4715
4716$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4717
4718
4719$as_echo "#define _MINIX 1" >>confdefs.h
4720
4721 fi
4722
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4725$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4726if ${ac_cv_safe_to_define___extensions__+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728else
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730/* end confdefs.h. */
4731
4732# define __EXTENSIONS__ 1
4733 $ac_includes_default
4734int
4735main ()
4736{
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
4742if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_cv_safe_to_define___extensions__=yes
4744else
4745 ac_cv_safe_to_define___extensions__=no
4746fi
4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748fi
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4750$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4751 test $ac_cv_safe_to_define___extensions__ = yes &&
4752 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4753
4754 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4755
4756 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4757
4758 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4759
4760 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4761
4762
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004763LIB_EXT=.a
4764STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004765PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004766
Theodore Ts'oe1052142006-10-21 21:46:47 -04004767# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004768if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004769 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004770else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004771 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004772fi
4773# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004774if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004775 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004776then
4777 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004779$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004780else
4781 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004783$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004784fi
4785
4786else
4787 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004789$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004790
Theodore Ts'oe1052142006-10-21 21:46:47 -04004791fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004792
Theodore Ts'oe1052142006-10-21 21:46:47 -04004793
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004794# Check whether --enable-symlink-install was given.
4795if test "${enable_symlink_install+set}" = set; then :
4796 enableval=$enable_symlink_install; if test "$enableval" = "no"
4797then
4798 LINK_INSTALL_FLAGS=-f
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4800$as_echo "Disabling symlinks for install" >&6; }
4801else
4802 LINK_INSTALL_FLAGS=-sf
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4804$as_echo "Enabling symlinks for install" >&6; }
4805fi
4806
4807else
4808 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4810$as_echo "Disabling symlinks for install by default" >&6; }
4811
4812fi
4813
4814
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004815relative_symlink_defined=
4816# Check whether --enable-relative-symlinks was given.
4817if test "${enable_relative_symlinks+set}" = set; then :
4818 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004819then
4820 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004821 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4823$as_echo "Disabling relative symlinks for install" >&6; }
4824else
4825 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004826 relative_symlink_defined=yes
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4828$as_echo "Enabling relative symlinks for install" >&6; }
4829fi
4830fi
4831
4832# Check whether --enable-symlink-relative-symlinks was given.
4833if test "${enable_symlink_relative_symlinks+set}" = set; then :
4834 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4835then
4836 SYMLINK_RELATIVE=yes
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4838$as_echo "Disabling relative symlinks for install" >&6; }
4839else
4840 SYMLINK_RELATIVE=--relative
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4842$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004843fi
4844
4845else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004846 if test -z "$relative_symlink_defined"
4847then
4848 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4850$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004851fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004852
4853fi
4854
4855
4856# Check whether --enable-symlink-build was given.
4857if test "${enable_symlink_build+set}" = set; then :
4858 enableval=$enable_symlink_build; if test "$enableval" = "no"
4859then
4860 LINK_BUILD_FLAGS=
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4862$as_echo "Disabling symlinks for build" >&6; }
4863else
4864 LINK_BUILD_FLAGS=-s
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4866$as_echo "Enabling symlinks for build" >&6; }
4867fi
4868
4869else
4870 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4872$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004873
4874fi
4875
4876
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004877# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004878if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004879 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4880then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004882$as_echo "Disabling verbose make commands" >&6; }
4883 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004884 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004885 Q=@
4886else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004888$as_echo "Enabling verbose make commands" >&6; }
4889 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004890 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004891 Q=
4892fi
4893
4894else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004896$as_echo "Disabling verbose make commands" >&6; }
4897E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004898ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004899Q=@
4900
4901fi
4902
4903
4904
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004905
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004906E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004907LDFLAG_DYNAMIC=
4908PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004909# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004910if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004911 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004912then
4913 ELF_CMT=#
4914 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004916$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004917else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004918 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004919 ELF_CMT=
4920 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004921 case "$host_os" in
4922 solaris2.*)
4923 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4924 ;;
4925 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004926 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004927 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004928 PRIVATE_LIBS_CMT=#
4929 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004931$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004932fi
4933
4934else
4935 MAKEFILE_ELF=/dev/null
4936ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004938$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004939
Theodore Ts'oe1052142006-10-21 21:46:47 -04004940fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004941
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004942
Theodore Ts'oe1052142006-10-21 21:46:47 -04004943
4944# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004945if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004946 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004947then
4948 BSDLIB_CMT=#
4949 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004951$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004952else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004953 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004954 BSDLIB_CMT=
4955 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004956 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004957 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004958 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004959 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4960 LIB_EXT=.dylib
4961 ;;
4962 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004964$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004965fi
4966
4967else
4968 MAKEFILE_BSDLIB=/dev/null
4969BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004971$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004972
Theodore Ts'oe1052142006-10-21 21:46:47 -04004973fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004974
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004975
Theodore Ts'oe1052142006-10-21 21:46:47 -04004976
4977# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004978if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004979 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004980then
4981 PROFILE_CMT=#
4982 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004984$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004985else
4986 PROFILE_CMT=
4987 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4988 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004990$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004991fi
4992
4993else
4994 PROFILE_CMT=#
4995MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004997$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004998
Theodore Ts'oe1052142006-10-21 21:46:47 -04004999fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005000
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005001
Theodore Ts'oe1052142006-10-21 21:46:47 -04005002
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005003# Check whether --enable-gcov was given.
5004if test "${enable_gcov+set}" = set; then :
5005 enableval=$enable_gcov; if test "$enableval" = "yes"
5006then
5007 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5008 LDFLAGS="-fprofile-arcs -ftest-coverage"
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5010$as_echo "Enabling gcov support" >&6; }
5011fi
5012
5013fi
5014
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005015
5016
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005017
Theodore Ts'oe1052142006-10-21 21:46:47 -04005018
Theodore Ts'o55da9872008-09-02 23:12:38 -04005019
5020
Theodore Ts'oe1052142006-10-21 21:46:47 -04005021# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005022if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005023 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005024then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005026$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005027else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005028
5029$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005030
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005032$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005033fi
5034
5035else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005037$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005038
Theodore Ts'oe1052142006-10-21 21:46:47 -04005039fi
5040
5041# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005042if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005043 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005044then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005046$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005047else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005048
5049$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005050
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005052$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005053fi
5054
5055else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005057$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005058
Theodore Ts'oe1052142006-10-21 21:46:47 -04005059fi
5060
5061# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005062if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005063 enableval=$enable_testio_debug;
5064if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005065then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005067$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005068 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005069else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005070 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005071 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005072
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005074$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005075fi
5076
5077else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005079$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005080$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005081
5082TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005083
Theodore Ts'oe1052142006-10-21 21:46:47 -04005084fi
5085
Theodore Ts'oaf773652008-09-01 11:27:27 -04005086
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005087
5088
Theodore Ts'o93613952014-07-03 23:44:13 -04005089
5090
5091
5092
5093
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005094if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005095 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005096 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5097set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005099$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005100if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005101 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005102else
5103 case $PKG_CONFIG in
5104 [\\/]* | ?:[\\/]*)
5105 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5106 ;;
5107 *)
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005113 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005115 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005117 break 2
5118 fi
5119done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005120 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005121IFS=$as_save_IFS
5122
5123 ;;
5124esac
5125fi
5126PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5127if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005129$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005130else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005132$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005133fi
5134
5135
5136fi
5137if test -z "$ac_cv_path_PKG_CONFIG"; then
5138 ac_pt_PKG_CONFIG=$PKG_CONFIG
5139 # Extract the first word of "pkg-config", so it can be a program name with args.
5140set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005142$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005143if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005144 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005145else
5146 case $ac_pt_PKG_CONFIG in
5147 [\\/]* | ?:[\\/]*)
5148 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5149 ;;
5150 *)
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005156 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005158 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005160 break 2
5161 fi
5162done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005163 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005164IFS=$as_save_IFS
5165
5166 ;;
5167esac
5168fi
5169ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5170if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005172$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005173else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005175$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005176fi
5177
5178 if test "x$ac_pt_PKG_CONFIG" = x; then
5179 PKG_CONFIG=""
5180 else
5181 case $cross_compiling:$ac_tool_warned in
5182yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005183{ $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 +01005184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005185ac_tool_warned=yes ;;
5186esac
5187 PKG_CONFIG=$ac_pt_PKG_CONFIG
5188 fi
5189else
5190 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5191fi
5192
5193fi
5194if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005195 _pkg_min_version=0.9.0
5196 { $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 +01005197$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005198 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005200$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005203$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005204 PKG_CONFIG=""
5205 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005206fi
5207LIBUUID=
5208DEPLIBUUID=
5209STATIC_LIBUUID=
5210DEPSTATIC_LIBUUID=
5211PROFILED_LIBUUID=
5212DEPPROFILED_LIBUUID=
5213UUID_CMT=
5214# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005215if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005216 enableval=$enable_libuuid; if test "$enableval" = "no"
5217then
5218 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005219 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005220 fi
5221
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005223$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005224if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005225 $as_echo_n "(cached) " >&6
5226else
5227 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005228LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005230/* end confdefs.h. */
5231
5232/* Override any GCC internal prototype to avoid an error.
5233 Use char because int might match the return type of a GCC
5234 builtin and then its argument prototype would still apply. */
5235#ifdef __cplusplus
5236extern "C"
5237#endif
5238char uuid_generate ();
5239int
5240main ()
5241{
5242return uuid_generate ();
5243 ;
5244 return 0;
5245}
5246_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005247if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005248 ac_cv_lib_uuid_uuid_generate=yes
5249else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005250 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005251fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005252rm -f core conftest.err conftest.$ac_objext \
5253 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005254LIBS=$ac_check_lib_save_LIBS
5255fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005257$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005258if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005259 LIBUUID=`$PKG_CONFIG --libs uuid`;
5260 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5261else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005262 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005263fi
5264
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005265 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005266 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005268$as_echo "Disabling private uuid library" >&6; }
5269else
5270 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5271 DEPLIBUUID=$LIBUUID
5272 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5273 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5274 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5275 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005277$as_echo "Enabling private uuid library" >&6; }
5278fi
5279
5280else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005281 if test -n "$PKG_CONFIG"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5283$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5284if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5285 $as_echo_n "(cached) " >&6
5286else
5287 ac_check_lib_save_LIBS=$LIBS
5288LIBS="-luuid $LIBS"
5289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290/* end confdefs.h. */
5291
5292/* Override any GCC internal prototype to avoid an error.
5293 Use char because int might match the return type of a GCC
5294 builtin and then its argument prototype would still apply. */
5295#ifdef __cplusplus
5296extern "C"
5297#endif
5298char uuid_generate ();
5299int
5300main ()
5301{
5302return uuid_generate ();
5303 ;
5304 return 0;
5305}
5306_ACEOF
5307if ac_fn_c_try_link "$LINENO"; then :
5308 ac_cv_lib_uuid_uuid_generate=yes
5309else
5310 ac_cv_lib_uuid_uuid_generate=no
5311fi
5312rm -f core conftest.err conftest.$ac_objext \
5313 conftest$ac_exeext conftest.$ac_ext
5314LIBS=$ac_check_lib_save_LIBS
5315fi
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5317$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5318if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5319 LIBUUID=`$PKG_CONFIG --libs uuid`;
5320 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5321fi
5322
5323fi
5324if test -n "$LIBUUID"; then
5325 PROFILED_LIBUUID=$LIBUUID
5326 UUID_CMT=#
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5328$as_echo "Using system uuid by default" >&6; }
5329else
5330 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5331 DEPLIBUUID=$LIBUUID
5332 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5333 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5334 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5335 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005337$as_echo "Enabling private uuid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005338fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005339
5340fi
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
Theodore Ts'o93613952014-07-03 23:44:13 -04005351
5352
5353
5354
5355
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005356if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005357 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005358 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5359set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005361$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005362if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005363 $as_echo_n "(cached) " >&6
5364else
5365 case $PKG_CONFIG in
5366 [\\/]* | ?:[\\/]*)
5367 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5368 ;;
5369 *)
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371for as_dir in $PATH
5372do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005375 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005377 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005379 break 2
5380 fi
5381done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005382 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005383IFS=$as_save_IFS
5384
5385 ;;
5386esac
5387fi
5388PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5389if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005391$as_echo "$PKG_CONFIG" >&6; }
5392else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005394$as_echo "no" >&6; }
5395fi
5396
5397
5398fi
5399if test -z "$ac_cv_path_PKG_CONFIG"; then
5400 ac_pt_PKG_CONFIG=$PKG_CONFIG
5401 # Extract the first word of "pkg-config", so it can be a program name with args.
5402set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005404$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005405if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005406 $as_echo_n "(cached) " >&6
5407else
5408 case $ac_pt_PKG_CONFIG in
5409 [\\/]* | ?:[\\/]*)
5410 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5411 ;;
5412 *)
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414for as_dir in $PATH
5415do
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005418 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005420 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005422 break 2
5423 fi
5424done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005425 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005426IFS=$as_save_IFS
5427
5428 ;;
5429esac
5430fi
5431ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5432if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005434$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5435else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005437$as_echo "no" >&6; }
5438fi
5439
5440 if test "x$ac_pt_PKG_CONFIG" = x; then
5441 PKG_CONFIG=""
5442 else
5443 case $cross_compiling:$ac_tool_warned in
5444yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005445{ $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 +01005446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5447ac_tool_warned=yes ;;
5448esac
5449 PKG_CONFIG=$ac_pt_PKG_CONFIG
5450 fi
5451else
5452 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5453fi
5454
5455fi
5456if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005457 _pkg_min_version=0.9.0
5458 { $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 +01005459$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005460 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005462$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005463 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005465$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005466 PKG_CONFIG=""
5467 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005468fi
5469LIBBLKID=
5470DEPLIBBLKID=
5471STATIC_LIBBLKID=
5472DEPSTATIC_LIBBLKID=
5473PROFILED_LIBBLKID=
5474DEPPROFILED_LIBBLKID=
5475BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005476
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005477# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005478if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005479 enableval=$enable_libblkid; if test "$enableval" = "no"
5480then
5481 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005482 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005483 fi
5484
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005486$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005487if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005488 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005489else
5490 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005491LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005493/* end confdefs.h. */
5494
5495/* Override any GCC internal prototype to avoid an error.
5496 Use char because int might match the return type of a GCC
5497 builtin and then its argument prototype would still apply. */
5498#ifdef __cplusplus
5499extern "C"
5500#endif
5501char blkid_get_cache ();
5502int
5503main ()
5504{
5505return blkid_get_cache ();
5506 ;
5507 return 0;
5508}
5509_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005510if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005511 ac_cv_lib_blkid_blkid_get_cache=yes
5512else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005513 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005514fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005515rm -f core conftest.err conftest.$ac_objext \
5516 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005517LIBS=$ac_check_lib_save_LIBS
5518fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005520$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005521if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005522 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5523 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5524else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005525 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005526fi
5527
5528 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005529 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005531$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005532else
5533 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5534 DEPLIBBLKID=$LIBBLKID
5535 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5536 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5537 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5538 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005539 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005540
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005542$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005543fi
5544
5545else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005546 if test -n "$PKG_CONFIG"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5548$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5549if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551else
5552 ac_check_lib_save_LIBS=$LIBS
5553LIBS="-lblkid $LIBS"
5554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555/* end confdefs.h. */
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005556
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005557/* Override any GCC internal prototype to avoid an error.
5558 Use char because int might match the return type of a GCC
5559 builtin and then its argument prototype would still apply. */
5560#ifdef __cplusplus
5561extern "C"
5562#endif
5563char blkid_get_cache ();
5564int
5565main ()
5566{
5567return blkid_get_cache ();
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572if ac_fn_c_try_link "$LINENO"; then :
5573 ac_cv_lib_blkid_blkid_get_cache=yes
5574else
5575 ac_cv_lib_blkid_blkid_get_cache=no
5576fi
5577rm -f core conftest.err conftest.$ac_objext \
5578 conftest$ac_exeext conftest.$ac_ext
5579LIBS=$ac_check_lib_save_LIBS
5580fi
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5582$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5583if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5584 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5585 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5586fi
5587
5588fi
5589if test -n "$LIBBLKID"; then
5590 BLKID_CMT=#
5591 PROFILED_LIBBLKID=$LIBBLKID
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5593$as_echo "Using system blkid library by default" >&6; }
5594else
5595 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5596 DEPLIBBLKID=$LIBBLKID
5597 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5598 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5599 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5600 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5601 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005604$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005605fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005606
5607fi
5608
5609
5610
5611
5612
5613
5614
5615
Theodore Ts'o3df60142013-06-16 16:14:40 -04005616
5617# Check whether --enable-backtrace was given.
5618if test "${enable_backtrace+set}" = set; then :
5619 enableval=$enable_backtrace; if test "$enableval" = "no"
5620then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5622$as_echo "Disabling use of backtrace" >&6; }
5623 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5624
5625else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5627$as_echo "Enabling use of backtrace" >&6; }
5628fi
5629
5630else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5632$as_echo "Enabling use of backtrace by default" >&6; }
5633
5634fi
5635
Theodore Ts'oe1052142006-10-21 21:46:47 -04005636# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005637if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005638 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005639then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005641$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005642 DEBUGFS_CMT="#"
5643else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005644 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005646$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005647fi
5648
5649else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005651$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005652DEBUGFS_CMT=
5653
Theodore Ts'oe1052142006-10-21 21:46:47 -04005654fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005655
Theodore Ts'oe1052142006-10-21 21:46:47 -04005656
5657# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005658if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005659 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005660then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005662$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005663 IMAGER_CMT="#"
5664else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005665 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005667$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005668fi
5669
5670else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005672$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005673IMAGER_CMT=
5674
Theodore Ts'oe1052142006-10-21 21:46:47 -04005675fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005676
Theodore Ts'oe1052142006-10-21 21:46:47 -04005677
5678# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005679if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005680 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005681then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005683$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005684 RESIZER_CMT="#"
5685else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005686 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005688$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005689fi
5690
5691else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005693$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005694RESIZER_CMT=
5695
Theodore Ts'oe1052142006-10-21 21:46:47 -04005696fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005697
Theodore Ts'oe1052142006-10-21 21:46:47 -04005698
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005699# Check whether --enable-defrag was given.
5700if test "${enable_defrag+set}" = set; then :
5701 enableval=$enable_defrag; if test "$enableval" = "no"
5702then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5704$as_echo "Disabling e4defrag support" >&6; }
5705 DEFRAG_CMT="#"
5706else
5707 DEFRAG_CMT=
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5709$as_echo "Enabling e4defrag support" >&6; }
5710fi
5711
5712else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005713 if test -z "$WITH_DIET_LIBC"
5714then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005716$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005717 DEFRAG_CMT=
5718else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5720$as_echo "Disabling e4defrag support by default" >&6; }
5721 DEFRAG_CMT="#"
5722fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005723
5724fi
5725
5726
Theodore Ts'oe1052142006-10-21 21:46:47 -04005727# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005728if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005729 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005730then
5731 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005733$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005734else
5735 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005737$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005738fi
5739
5740else
5741 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005742 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005743 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005745$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005746 ;;
5747 *)
5748 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005750$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005751esac
5752
Theodore Ts'oe1052142006-10-21 21:46:47 -04005753fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005754
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005755
Theodore Ts'oe1052142006-10-21 21:46:47 -04005756
5757# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005758if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005759 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005760then
5761 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005763$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005764else
5765 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005767$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005768fi
5769
5770else
5771 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005773$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005774
Theodore Ts'oe1052142006-10-21 21:46:47 -04005775fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005776
5777
Theodore Ts'oe1052142006-10-21 21:46:47 -04005778
Theodore Ts'o32493942007-12-31 10:45:01 -05005779# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005780if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005781 enableval=$enable_tls; if test "$enableval" = "no"
5782then
5783 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005785$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005786else
5787 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005789$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005790fi
5791
5792else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005793 if test -n "$WITH_DIET_LIBC"
5794then
5795 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005796 { $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 +01005797$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005798else
5799 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005801$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005802fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005803
5804fi
5805
5806if test "$try_tls" = "yes"
5807then
5808
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005810$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005811 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005812 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005813else
5814
5815 ax_tls_keywords="__thread __declspec(thread) none"
5816 for ax_tls_keyword in $ax_tls_keywords; do
5817 case $ax_tls_keyword in
5818 none) ac_cv_tls=none ; break ;;
5819 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005821/* end confdefs.h. */
5822#include <stdlib.h>
5823 static void
5824 foo(void) {
5825 static $ax_tls_keyword int bar;
5826 exit(1);
5827 }
5828int
5829main ()
5830{
5831
5832 ;
5833 return 0;
5834}
5835_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005836if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005837 ac_cv_tls=$ax_tls_keyword ; break
5838else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005839 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005840
5841fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 esac
5844 done
5845
5846fi
5847
5848
5849 if test "$ac_cv_tls" != "none"; then
5850
5851cat >>confdefs.h <<_ACEOF
5852#define TLS $ac_cv_tls
5853_ACEOF
5854
5855 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005857$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005858
5859fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005860
Theodore Ts'o5610f992007-12-31 11:16:56 -05005861# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005862if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005863 enableval=$enable_uuidd; if test "$enableval" = "no"
5864then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005866$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005867 UUIDD_CMT="#"
5868else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005869 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005870
5871 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005873$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005874fi
5875
5876else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005877 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005878
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005879if test -z "$UUID_CMT"
5880then
5881 UUIDD_CMT=""
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005883$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005884else
5885 UUIDD_CMT="#"
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5887$as_echo "Disabling uuidd by default" >&6; }
5888fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005889
5890fi
5891
5892
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005893
5894# Check whether --enable-mmp was given.
5895if test "${enable_mmp+set}" = set; then :
5896 enableval=$enable_mmp; if test "$enableval" = "no"
5897then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5899$as_echo "Disabling mmp support" >&6; }
5900else
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5902$as_echo "Enabling mmp support" >&6; }
5903 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5904
5905fi
5906
5907else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5909$as_echo "Enabling mmp support by default" >&6; }
5910$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5911
5912
5913fi
5914
Tony Breeds1625bf42012-07-30 14:44:12 -04005915
5916# Check whether --enable-bmap-stats was given.
5917if test "${enable_bmap_stats+set}" = set; then :
5918 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5919then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5921$as_echo "Disabling bitmap statistics support" >&6; }
5922else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5924$as_echo "Enabling bitmap statistics support" >&6; }
5925 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5926
5927fi
5928
5929else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5931$as_echo "Enabling bitmap statistics support by default" >&6; }
5932$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5933
5934
5935fi
5936
5937
5938# Check whether --enable-bmap-stats-ops was given.
5939if test "${enable_bmap_stats_ops+set}" = set; then :
5940 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5941then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5943$as_echo "Disabling additional bitmap statistics" >&6; }
5944else
5945 if test "x${enable_bmap_stats}" = "xno"; then :
5946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5948as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5949See \`config.log' for more details" "$LINENO" 5; }
5950fi
5951
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5953$as_echo "Enabling additional bitmap statistics" >&6; }
5954 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5955
5956fi
5957
5958else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5960$as_echo "Disabling additional bitmap statistics by default" >&6; }
5961
5962fi
5963
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005964MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5965
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005966GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005967PACKAGE=e2fsprogs
5968VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005969VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005970
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005971cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005972#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005973_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005974
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005975
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005976cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005977#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005978_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005979
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005980
5981
5982
5983
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005985$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5986set x ${MAKE-make}
5987ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005988if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005989 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005990else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005991 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005992SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005993all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005994 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005995_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005996# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005997case `${MAKE-make} -f conftest.make 2>/dev/null` in
5998 *@@@%%%=?*=@@@%%%*)
5999 eval ac_cv_prog_make_${ac_make}_set=yes;;
6000 *)
6001 eval ac_cv_prog_make_${ac_make}_set=no;;
6002esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006003rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006004fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006005if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006007$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006008 SET_MAKE=
6009else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006011$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006012 SET_MAKE="MAKE=${MAKE-make}"
6013fi
6014
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006015# Find a good install program. We prefer a C program (faster),
6016# so one script is as good as another. But avoid the broken or
6017# incompatible versions:
6018# SysV /etc/install, /usr/sbin/install
6019# SunOS /usr/etc/install
6020# IRIX /sbin/install
6021# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006022# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006023# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6024# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6025# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006026# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006027# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006028# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006030$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006031if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006032if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006033 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006034else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006040 # Account for people who put trailing slashes in PATH elements.
6041case $as_dir/ in #((
6042 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006044 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006045 /usr/ucb/* ) ;;
6046 *)
6047 # OSF1 and SCO ODT 3.0 have their own names for install.
6048 # Don't use installbsd from OSF since it installs stuff as root
6049 # by default.
6050 for ac_prog in ginstall scoinst install; do
6051 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006052 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006053 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006055 # AIX install. It has an incompatible calling convention.
6056 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006057 elif test $ac_prog = install &&
6058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6059 # program-specific install script used by HP pwplus--don't use.
6060 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006061 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006062 rm -rf conftest.one conftest.two conftest.dir
6063 echo one > conftest.one
6064 echo two > conftest.two
6065 mkdir conftest.dir
6066 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6067 test -s conftest.one && test -s conftest.two &&
6068 test -s conftest.dir/conftest.one &&
6069 test -s conftest.dir/conftest.two
6070 then
6071 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6072 break 3
6073 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006074 fi
6075 fi
6076 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006077 done
6078 ;;
6079esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006080
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006081 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006082IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006083
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006084rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006085
6086fi
6087 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006088 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006089 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006090 # As a last resort, use the slow shell script. Don't cache a
6091 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006092 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006093 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006094 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006095 fi
6096fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006098$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006099
6100# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6101# It thinks the first close brace ends the variable substitution.
6102test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6103
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006104test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006105
6106test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6107
Theodore Ts'o93613952014-07-03 23:44:13 -04006108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6109$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6110if test -z "$MKDIR_P"; then
6111 if ${ac_cv_path_mkdir+:} false; then :
6112 $as_echo_n "(cached) " >&6
6113else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_prog in mkdir gmkdir; do
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6122 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6123 'mkdir (GNU coreutils) '* | \
6124 'mkdir (coreutils) '* | \
6125 'mkdir (fileutils) '4.1*)
6126 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6127 break 3;;
6128 esac
6129 done
6130 done
6131 done
6132IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006133
Theodore Ts'o93613952014-07-03 23:44:13 -04006134fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006135
Theodore Ts'o93613952014-07-03 23:44:13 -04006136 test -d ./--version && rmdir ./--version
6137 if test "${ac_cv_path_mkdir+set}" = set; then
6138 MKDIR_P="$ac_cv_path_mkdir -p"
6139 else
6140 # As a last resort, use the slow shell script. Don't cache a
6141 # value for MKDIR_P within a source directory, because that will
6142 # break other packages using the cache if that directory is
6143 # removed, or if the value is a relative name.
6144 MKDIR_P="$ac_install_sh -d"
6145 fi
6146fi
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6148$as_echo "$MKDIR_P" >&6; }
6149
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6151$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6152if ${ac_cv_path_SED+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154else
6155 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6156 for ac_i in 1 2 3 4 5 6 7; do
6157 ac_script="$ac_script$as_nl$ac_script"
6158 done
6159 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6160 { ac_script=; unset ac_script;}
6161 if test -z "$SED"; then
6162 ac_path_SED_found=false
6163 # Loop through the user's path and test for each of PROGNAME-LIST
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165for as_dir in $PATH
6166do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_prog in sed gsed; do
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6172 as_fn_executable_p "$ac_path_SED" || continue
6173# Check for GNU ac_path_SED and select it if it is found.
6174 # Check for GNU $ac_path_SED
6175case `"$ac_path_SED" --version 2>&1` in
6176*GNU*)
6177 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6178*)
6179 ac_count=0
6180 $as_echo_n 0123456789 >"conftest.in"
6181 while :
6182 do
6183 cat "conftest.in" "conftest.in" >"conftest.tmp"
6184 mv "conftest.tmp" "conftest.in"
6185 cp "conftest.in" "conftest.nl"
6186 $as_echo '' >> "conftest.nl"
6187 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6189 as_fn_arith $ac_count + 1 && ac_count=$as_val
6190 if test $ac_count -gt ${ac_path_SED_max-0}; then
6191 # Best one so far, save it but keep looking for a better one
6192 ac_cv_path_SED="$ac_path_SED"
6193 ac_path_SED_max=$ac_count
6194 fi
6195 # 10*(2^10) chars as input seems more than enough
6196 test $ac_count -gt 10 && break
6197 done
6198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6199esac
6200
6201 $ac_path_SED_found && break 3
6202 done
6203 done
6204 done
6205IFS=$as_save_IFS
6206 if test -z "$ac_cv_path_SED"; then
6207 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6208 fi
6209else
6210 ac_cv_path_SED=$SED
6211fi
6212
6213fi
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6215$as_echo "$ac_cv_path_SED" >&6; }
6216 SED="$ac_cv_path_SED"
6217 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006218
6219
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006221$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006222 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006223if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006224 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006225else
6226 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006227fi
6228
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006230$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006231
6232
6233
6234
Theodore Ts'o93613952014-07-03 23:44:13 -04006235 GETTEXT_MACRO_VERSION=0.18
6236
6237
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006238
6239
6240# Prepare PATH_SEPARATOR.
6241# The user is always right.
6242if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006243 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6244 # contains only /bin. Note that ksh looks also at the FPATH variable,
6245 # so we have to set that as well for the test.
6246 PATH_SEPARATOR=:
6247 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6248 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6249 || PATH_SEPARATOR=';'
6250 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006251fi
6252
6253# Find out how to test for executable files. Don't use a zero-byte file,
6254# as systems may use methods other than mode bits to determine executability.
6255cat >conf$$.file <<_ASEOF
6256#! /bin/sh
6257exit 0
6258_ASEOF
6259chmod +x conf$$.file
6260if test -x conf$$.file >/dev/null 2>&1; then
6261 ac_executable_p="test -x"
6262else
6263 ac_executable_p="test -f"
6264fi
6265rm -f conf$$.file
6266
6267# Extract the first word of "msgfmt", so it can be a program name with args.
6268set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006270$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006271if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006272 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006273else
6274 case "$MSGFMT" in
6275 [\\/]* | ?:[\\/]*)
6276 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6277 ;;
6278 *)
6279 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6280 for ac_dir in $PATH; do
6281 IFS="$ac_save_IFS"
6282 test -z "$ac_dir" && ac_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006285 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6286 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006287 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6288 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6289 break 2
6290 fi
6291 fi
6292 done
6293 done
6294 IFS="$ac_save_IFS"
6295 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6296 ;;
6297esac
6298fi
6299MSGFMT="$ac_cv_path_MSGFMT"
6300if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006302$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006303else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006305$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006306fi
6307
6308 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6309set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006311$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006312if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006313 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006314else
6315 case $GMSGFMT in
6316 [\\/]* | ?:[\\/]*)
6317 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6318 ;;
6319 *)
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006325 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006327 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006329 break 2
6330 fi
6331done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006332 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006333IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006334
6335 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6336 ;;
6337esac
6338fi
6339GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006340if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006342$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006343else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006345$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006346fi
6347
6348
6349
Theodore Ts'o93613952014-07-03 23:44:13 -04006350 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6351 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6352 *) MSGFMT_015=$MSGFMT ;;
6353 esac
6354
6355 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6356 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6357 *) GMSGFMT_015=$GMSGFMT ;;
6358 esac
6359
6360
Theodore Ts'oe1052142006-10-21 21:46:47 -04006361
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006362# Prepare PATH_SEPARATOR.
6363# The user is always right.
6364if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006365 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6366 # contains only /bin. Note that ksh looks also at the FPATH variable,
6367 # so we have to set that as well for the test.
6368 PATH_SEPARATOR=:
6369 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6370 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6371 || PATH_SEPARATOR=';'
6372 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006373fi
6374
6375# Find out how to test for executable files. Don't use a zero-byte file,
6376# as systems may use methods other than mode bits to determine executability.
6377cat >conf$$.file <<_ASEOF
6378#! /bin/sh
6379exit 0
6380_ASEOF
6381chmod +x conf$$.file
6382if test -x conf$$.file >/dev/null 2>&1; then
6383 ac_executable_p="test -x"
6384else
6385 ac_executable_p="test -f"
6386fi
6387rm -f conf$$.file
6388
6389# Extract the first word of "xgettext", so it can be a program name with args.
6390set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006392$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006393if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006394 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006395else
6396 case "$XGETTEXT" in
6397 [\\/]* | ?:[\\/]*)
6398 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6399 ;;
6400 *)
6401 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6402 for ac_dir in $PATH; do
6403 IFS="$ac_save_IFS"
6404 test -z "$ac_dir" && ac_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006407 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6408 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 -05006409 (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
6410 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6411 break 2
6412 fi
6413 fi
6414 done
6415 done
6416 IFS="$ac_save_IFS"
6417 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6418 ;;
6419esac
6420fi
6421XGETTEXT="$ac_cv_path_XGETTEXT"
6422if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006424$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006425else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006427$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006428fi
6429
6430 rm -f messages.po
6431
Theodore Ts'o93613952014-07-03 23:44:13 -04006432 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6433 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6434 *) XGETTEXT_015=$XGETTEXT ;;
6435 esac
6436
6437
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006438
6439# Prepare PATH_SEPARATOR.
6440# The user is always right.
6441if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006442 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6443 # contains only /bin. Note that ksh looks also at the FPATH variable,
6444 # so we have to set that as well for the test.
6445 PATH_SEPARATOR=:
6446 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6447 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6448 || PATH_SEPARATOR=';'
6449 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006450fi
6451
6452# Find out how to test for executable files. Don't use a zero-byte file,
6453# as systems may use methods other than mode bits to determine executability.
6454cat >conf$$.file <<_ASEOF
6455#! /bin/sh
6456exit 0
6457_ASEOF
6458chmod +x conf$$.file
6459if test -x conf$$.file >/dev/null 2>&1; then
6460 ac_executable_p="test -x"
6461else
6462 ac_executable_p="test -f"
6463fi
6464rm -f conf$$.file
6465
6466# Extract the first word of "msgmerge", so it can be a program name with args.
6467set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006469$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006470if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006471 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006472else
6473 case "$MSGMERGE" in
6474 [\\/]* | ?:[\\/]*)
6475 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6476 ;;
6477 *)
6478 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6479 for ac_dir in $PATH; do
6480 IFS="$ac_save_IFS"
6481 test -z "$ac_dir" && ac_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006484 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6485 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6487 break 2
6488 fi
6489 fi
6490 done
6491 done
6492 IFS="$ac_save_IFS"
6493 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6494 ;;
6495esac
6496fi
6497MSGMERGE="$ac_cv_path_MSGMERGE"
6498if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006500$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006501else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006503$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006504fi
6505
6506
Theodore Ts'o93613952014-07-03 23:44:13 -04006507 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006508
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006509
Theodore Ts'o93613952014-07-03 23:44:13 -04006510 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6511
6512
6513 ac_config_commands="$ac_config_commands po-directories"
6514
6515
6516
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6518$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6519if ${ac_cv_gnu_library_2+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521else
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523/* end confdefs.h. */
6524
6525#include <features.h>
6526#ifdef __GNU_LIBRARY__
6527 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6528 Lucky GNU user
6529 #endif
6530#endif
6531
6532_ACEOF
6533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6534 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6535 ac_cv_gnu_library_2=yes
6536else
6537 ac_cv_gnu_library_2=no
6538fi
6539rm -f conftest*
6540
6541
6542
6543fi
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6545$as_echo "$ac_cv_gnu_library_2" >&6; }
6546
6547 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006548
6549
6550if test -n "$ac_tool_prefix"; then
6551 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6552set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006554$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006555if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006556 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006557else
6558 if test -n "$RANLIB"; then
6559 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6560else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006566 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006568 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006570 break 2
6571 fi
6572done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006573 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006574IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006575
6576fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006577fi
6578RANLIB=$ac_cv_prog_RANLIB
6579if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006581$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006582else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006584$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006585fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006586
Theodore Ts'oe1052142006-10-21 21:46:47 -04006587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006588fi
6589if test -z "$ac_cv_prog_RANLIB"; then
6590 ac_ct_RANLIB=$RANLIB
6591 # Extract the first word of "ranlib", so it can be a program name with args.
6592set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006594$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006595if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006596 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006597else
6598 if test -n "$ac_ct_RANLIB"; then
6599 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6600else
6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006606 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006608 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006610 break 2
6611 fi
6612done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006613 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006614IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006616fi
6617fi
6618ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6619if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006621$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006622else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006624$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006625fi
6626
Theodore Ts'oe1052142006-10-21 21:46:47 -04006627 if test "x$ac_ct_RANLIB" = x; then
6628 RANLIB=":"
6629 else
6630 case $cross_compiling:$ac_tool_warned in
6631yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006632{ $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 +01006633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006634ac_tool_warned=yes ;;
6635esac
6636 RANLIB=$ac_ct_RANLIB
6637 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006638else
6639 RANLIB="$ac_cv_prog_RANLIB"
6640fi
6641
6642
Theodore Ts'o93613952014-07-03 23:44:13 -04006643
6644 CFLAG_VISIBILITY=
6645 HAVE_VISIBILITY=0
6646 if test -n "$GCC"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6648$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6649 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006650 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006651else
Theodore Ts'o93613952014-07-03 23:44:13 -04006652
6653 gl_save_CFLAGS="$CFLAGS"
6654 CFLAGS="$CFLAGS -Werror"
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006656/* end confdefs.h. */
6657
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658int
6659main ()
6660{
Theodore Ts'o93613952014-07-03 23:44:13 -04006661
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006662 ;
6663 return 0;
6664}
6665_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006666if ac_fn_c_try_compile "$LINENO"; then :
6667 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668else
Theodore Ts'o93613952014-07-03 23:44:13 -04006669 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006670fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673fi
6674
Theodore Ts'o93613952014-07-03 23:44:13 -04006675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6676$as_echo "$gl_cv_cc_vis_werror" >&6; }
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6678$as_echo_n "checking for simple visibility declarations... " >&6; }
6679 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006680 $as_echo_n "(cached) " >&6
6681else
Theodore Ts'o93613952014-07-03 23:44:13 -04006682
6683 gl_save_CFLAGS="$CFLAGS"
6684 CFLAGS="$CFLAGS -fvisibility=hidden"
6685 if test $gl_cv_cc_vis_werror = yes; then
6686 CFLAGS="$CFLAGS -Werror"
6687 fi
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689/* end confdefs.h. */
6690extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6691 extern __attribute__((__visibility__("default"))) int exportedvar;
6692 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6693 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6694 void dummyfunc (void) {}
6695
6696int
6697main ()
6698{
6699
6700 ;
6701 return 0;
6702}
6703_ACEOF
6704if ac_fn_c_try_compile "$LINENO"; then :
6705 gl_cv_cc_visibility=yes
6706else
6707 gl_cv_cc_visibility=no
6708fi
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 CFLAGS="$gl_save_CFLAGS"
6711fi
6712
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6714$as_echo "$gl_cv_cc_visibility" >&6; }
6715 if test $gl_cv_cc_visibility = yes; then
6716 CFLAG_VISIBILITY="-fvisibility=hidden"
6717 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006718 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006719 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006720
6721
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006722
Theodore Ts'o93613952014-07-03 23:44:13 -04006723cat >>confdefs.h <<_ACEOF
6724#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006725_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006726
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006727
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006729$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006730if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006731 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732else
6733 ac_cv_c_inline=no
6734for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006736/* end confdefs.h. */
6737#ifndef __cplusplus
6738typedef int foo_t;
6739static $ac_kw foo_t static_foo () {return 0; }
6740$ac_kw foo_t foo () {return 0; }
6741#endif
6742
6743_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006744if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006745 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006746fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006749done
6750
6751fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006753$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006755case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006756 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006757 *)
6758 case $ac_cv_c_inline in
6759 no) ac_val=;;
6760 *) ac_val=$ac_cv_c_inline;;
6761 esac
6762 cat >>confdefs.h <<_ACEOF
6763#ifndef __cplusplus
6764#define inline $ac_val
6765#endif
6766_ACEOF
6767 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006768esac
6769
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006770ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006771if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006772
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006773else
6774
6775cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006776#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006777_ACEOF
6778
6779fi
6780
6781
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006783$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006784if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006785 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006786else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006788/* end confdefs.h. */
6789#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006790 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006791int
6792main ()
6793{
Theodore Ts'o93613952014-07-03 23:44:13 -04006794uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006795 ;
6796 return 0;
6797}
6798_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006799if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006800 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006801else
Theodore Ts'o93613952014-07-03 23:44:13 -04006802 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006803fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006805fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6807$as_echo "$gl_cv_header_stdint_h" >&6; }
6808 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006809
6810cat >>confdefs.h <<_ACEOF
6811#define HAVE_STDINT_H_WITH_UINTMAX 1
6812_ACEOF
6813
6814 fi
6815
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006816# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6817# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006819$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006820if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006821 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006822else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006824/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006825#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006826int
6827main ()
6828{
6829char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006830 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006831 ;
6832 return 0;
6833}
6834_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006835if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006836 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006837else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006838 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006839fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006840rm -f core conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006842fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006844$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006845if test $ac_cv_working_alloca_h = yes; then
6846
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006847$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006848
6849fi
6850
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006852$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006853if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006854 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006855else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006857/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006858#ifdef __GNUC__
6859# define alloca __builtin_alloca
6860#else
6861# ifdef _MSC_VER
6862# include <malloc.h>
6863# define alloca _alloca
6864# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006865# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006866# include <alloca.h>
6867# else
6868# ifdef _AIX
6869 #pragma alloca
6870# else
6871# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006872void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006873# endif
6874# endif
6875# endif
6876# endif
6877#endif
6878
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006879int
6880main ()
6881{
6882char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006883 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884 ;
6885 return 0;
6886}
6887_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006888if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006889 ac_cv_func_alloca_works=yes
6890else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006891 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006892fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006893rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006895fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006897$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006898
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006899if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006901$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006902
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006903else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006904 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6905# that cause trouble. Some versions do not even contain alloca or
6906# contain a buggy version. If you still want to use their alloca,
6907# use ar to extract alloca.o from them instead of compiling alloca.c.
6908
Theodore Ts'oe1052142006-10-21 21:46:47 -04006909ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006910
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006911$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006912
6913
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006915$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006916if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006917 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006920/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006921#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006922webecray
6923#else
6924wenotbecray
6925#endif
6926
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006927_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006929 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006930 ac_cv_os_cray=yes
6931else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006932 ac_cv_os_cray=no
6933fi
6934rm -f conftest*
6935
6936fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006938$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006939if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006940 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006942ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006943if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006944
6945cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006946#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006947_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006948
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006949 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006950fi
6951
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006952 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006953fi
6954
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006956$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006957if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006958 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006959else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006960 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006961 ac_cv_c_stack_direction=0
6962else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006964/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006965$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006966int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006967find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006968{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006969 int dir, dummy = 0;
6970 if (! addr)
6971 addr = &dummy;
6972 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6973 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6974 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006975}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976
6977int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006978main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006979{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006980 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006981}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006982_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006983if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006984 ac_cv_c_stack_direction=1
6985else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006986 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006987fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6989 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006990fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006991
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006994$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006995cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006996#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006997_ACEOF
6998
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006999
7000fi
7001
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007002
7003
7004
7005 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007006do :
7007 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007008ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7009"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007010if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007011 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007012#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007013_ACEOF
7014
7015fi
7016
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007017done
7018
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007019
7020
7021
7022
7023
7024
7025
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007026for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007027do :
7028 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007029if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007030 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007031#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007032_ACEOF
7033
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007034fi
7035done
7036
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007038$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007039if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007040 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007041else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007042 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007043 ac_cv_func_mmap_fixed_mapped=no
7044else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007046/* end confdefs.h. */
7047$ac_includes_default
7048/* malloc might have been renamed as rpl_malloc. */
7049#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007050
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007051/* Thanks to Mike Haertel and Jim Avera for this test.
7052 Here is a matrix of mmap possibilities:
7053 mmap private not fixed
7054 mmap private fixed at somewhere currently unmapped
7055 mmap private fixed at somewhere already mapped
7056 mmap shared not fixed
7057 mmap shared fixed at somewhere currently unmapped
7058 mmap shared fixed at somewhere already mapped
7059 For private mappings, we should verify that changes cannot be read()
7060 back from the file, nor mmap's back from the file at a different
7061 address. (There have been systems where private was not correctly
7062 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007063 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007064 like early versions of FreeBSD and possibly contemporary NetBSD.)
7065 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007066 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007067
7068 Grep wants private fixed already mapped.
7069 The main things grep needs to know about mmap are:
7070 * does it exist and is it safe to write into the mmap'd area
7071 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007072
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007073#include <fcntl.h>
7074#include <sys/mman.h>
7075
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007076#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007077char *malloc ();
7078#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007079
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007080/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007081#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007082# ifdef _SC_PAGESIZE
7083# define getpagesize() sysconf(_SC_PAGESIZE)
7084# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007085# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007086# include <sys/param.h>
7087# ifdef EXEC_PAGESIZE
7088# define getpagesize() EXEC_PAGESIZE
7089# else /* no EXEC_PAGESIZE */
7090# ifdef NBPG
7091# define getpagesize() NBPG * CLSIZE
7092# ifndef CLSIZE
7093# define CLSIZE 1
7094# endif /* no CLSIZE */
7095# else /* no NBPG */
7096# ifdef NBPC
7097# define getpagesize() NBPC
7098# else /* no NBPC */
7099# ifdef PAGESIZE
7100# define getpagesize() PAGESIZE
7101# endif /* PAGESIZE */
7102# endif /* no NBPC */
7103# endif /* no NBPG */
7104# endif /* no EXEC_PAGESIZE */
7105# else /* no HAVE_SYS_PARAM_H */
7106# define getpagesize() 8192 /* punt totally */
7107# endif /* no HAVE_SYS_PARAM_H */
7108# endif /* no _SC_PAGESIZE */
7109
7110#endif /* no HAVE_GETPAGESIZE */
7111
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007112int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007113main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007114{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007115 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007116 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007117 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007118 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007121
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007122 /* First, make a file with some known garbage in it. */
7123 data = (char *) malloc (pagesize);
7124 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007125 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007126 for (i = 0; i < pagesize; ++i)
7127 *(data + i) = rand ();
7128 umask (0);
7129 fd = creat ("conftest.mmap", 0600);
7130 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007131 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007132 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007133 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007134 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007135
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007136 /* Next, check that the tail of a page is zero-filled. File must have
7137 non-zero length, otherwise we risk SIGBUS for entire page. */
7138 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7139 if (fd2 < 0)
7140 return 4;
7141 cdata2 = "";
7142 if (write (fd2, cdata2, 1) != 1)
7143 return 5;
7144 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7145 if (data2 == MAP_FAILED)
7146 return 6;
7147 for (i = 0; i < pagesize; ++i)
7148 if (*(data2 + i))
7149 return 7;
7150 close (fd2);
7151 if (munmap (data2, pagesize))
7152 return 8;
7153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007154 /* Next, try to mmap the file at a fixed address which already has
7155 something else allocated at it. If we can, also make sure that
7156 we see the same garbage. */
7157 fd = open ("conftest.mmap", O_RDWR);
7158 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007159 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007160 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7161 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007162 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007163 for (i = 0; i < pagesize; ++i)
7164 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007165 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007166
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007167 /* Finally, make sure that changes to the mapped area do not
7168 percolate back to the file as seen by read(). (This is a bug on
7169 some variants of i386 svr4.0.) */
7170 for (i = 0; i < pagesize; ++i)
7171 *(data2 + i) = *(data2 + i) + 1;
7172 data3 = (char *) malloc (pagesize);
7173 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007174 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007175 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007176 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007177 for (i = 0; i < pagesize; ++i)
7178 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007179 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007181 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007182}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007183_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007184if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007185 ac_cv_func_mmap_fixed_mapped=yes
7186else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007187 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007188fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7190 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007191fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007193fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007195$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007196if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007197
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007198$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007199
7200fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007201rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007202
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007203
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007204
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007206$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007207if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007208 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007209else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007210
Theodore Ts'o93613952014-07-03 23:44:13 -04007211 gt_cv_int_divbyzero_sigfpe=
7212 case "$host_os" in
7213 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7214 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7215 # compiling. If we were to perform the real test, 1 Crash Report
7216 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007217 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007218 i[34567]86 | x86_64)
7219 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007220 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007221 ;;
7222 esac
7223 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7224 if test "$cross_compiling" = yes; then :
7225
7226 # Guess based on the CPU.
7227 case "$host_cpu" in
7228 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7229 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7230 *)
7231 gt_cv_int_divbyzero_sigfpe="guessing no";;
7232 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007233
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007234else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007236/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007237
7238#include <stdlib.h>
7239#include <signal.h>
7240
7241static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007242sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007243{
7244 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7245 exit (sig != SIGFPE);
7246}
7247
7248int x = 1;
7249int y = 0;
7250int z;
7251int nan;
7252
7253int main ()
7254{
7255 signal (SIGFPE, sigfpe_handler);
7256/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7257#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7258 signal (SIGTRAP, sigfpe_handler);
7259#endif
7260/* Linux/SPARC yields signal SIGILL. */
7261#if defined (__sparc__) && defined (__linux__)
7262 signal (SIGILL, sigfpe_handler);
7263#endif
7264
7265 z = x / y;
7266 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007267 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007268}
7269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007270_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007271if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007272 gt_cv_int_divbyzero_sigfpe=yes
7273else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007274 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007275fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7277 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007278fi
7279
Theodore Ts'o93613952014-07-03 23:44:13 -04007280 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007281
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007282fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007284$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007285 case "$gt_cv_int_divbyzero_sigfpe" in
7286 *yes) value=1;;
7287 *) value=0;;
7288 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007289
7290cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007291#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007292_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007293
7294
7295
Theodore Ts'o93613952014-07-03 23:44:13 -04007296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7297$as_echo_n "checking for inttypes.h... " >&6; }
7298if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007299 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007300else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007302/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007303
7304#include <sys/types.h>
7305#include <inttypes.h>
7306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007307int
7308main ()
7309{
Theodore Ts'o93613952014-07-03 23:44:13 -04007310uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007311 ;
7312 return 0;
7313}
7314_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007315if ac_fn_c_try_compile "$LINENO"; then :
7316 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007317else
Theodore Ts'o93613952014-07-03 23:44:13 -04007318 gl_cv_header_inttypes_h=no
7319fi
7320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321fi
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7323$as_echo "$gl_cv_header_inttypes_h" >&6; }
7324 if test $gl_cv_header_inttypes_h = yes; then
7325
7326cat >>confdefs.h <<_ACEOF
7327#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7328_ACEOF
7329
7330 fi
7331
7332
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7334$as_echo_n "checking for unsigned long long int... " >&6; }
7335if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337else
7338 ac_cv_type_unsigned_long_long_int=yes
7339 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341/* end confdefs.h. */
7342
7343 /* For now, do not test the preprocessor; as of 2007 there are too many
7344 implementations with broken preprocessors. Perhaps this can
7345 be revisited in 2012. In the meantime, code should not expect
7346 #if to work with literals wider than 32 bits. */
7347 /* Test literals. */
7348 long long int ll = 9223372036854775807ll;
7349 long long int nll = -9223372036854775807LL;
7350 unsigned long long int ull = 18446744073709551615ULL;
7351 /* Test constant expressions. */
7352 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7353 ? 1 : -1)];
7354 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7355 ? 1 : -1)];
7356 int i = 63;
7357int
7358main ()
7359{
7360/* Test availability of runtime routines for shift and division. */
7361 long long int llmax = 9223372036854775807ll;
7362 unsigned long long int ullmax = 18446744073709551615ull;
7363 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7364 | (llmax / ll) | (llmax % ll)
7365 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7366 | (ullmax / ull) | (ullmax % ull));
7367 ;
7368 return 0;
7369}
7370
7371_ACEOF
7372if ac_fn_c_try_link "$LINENO"; then :
7373
7374else
7375 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007376fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007377rm -f core conftest.err conftest.$ac_objext \
7378 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007379 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007380fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7382$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7383 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007384
Theodore Ts'o93613952014-07-03 23:44:13 -04007385$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007386
7387 fi
7388
7389
7390
7391
Theodore Ts'o93613952014-07-03 23:44:13 -04007392 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007393
Theodore Ts'o93613952014-07-03 23:44:13 -04007394 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007395 && ac_type='unsigned long long' \
7396 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007397
7398cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007399#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007400_ACEOF
7401
7402 else
7403
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007404$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007405
7406 fi
7407
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007408
Theodore Ts'o93613952014-07-03 23:44:13 -04007409 for ac_header in inttypes.h
7410do :
7411 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7412if test "x$ac_cv_header_inttypes_h" = xyes; then :
7413 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007414#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007415_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007416
Theodore Ts'o93613952014-07-03 23:44:13 -04007417fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007418
Theodore Ts'o93613952014-07-03 23:44:13 -04007419done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007420
Theodore Ts'o93613952014-07-03 23:44:13 -04007421 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007422 { $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 +01007423$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007424if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007425 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007426else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007427
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007429/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007430
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007431#include <inttypes.h>
7432#ifdef PRId32
7433char *p = PRId32;
7434#endif
7435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007436int
7437main ()
7438{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007439
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007440 ;
7441 return 0;
7442}
7443_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007444if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007445 gt_cv_inttypes_pri_broken=no
7446else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007447 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007448fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007450
7451fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007453$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007454 fi
7455 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007456
7457cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007458#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007459_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007460
Theodore Ts'o93613952014-07-03 23:44:13 -04007461 PRI_MACROS_BROKEN=1
7462 else
7463 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464 fi
7465
7466
7467
Theodore Ts'o93613952014-07-03 23:44:13 -04007468
7469
7470
7471
7472 # Check whether --enable-threads was given.
7473if test "${enable_threads+set}" = set; then :
7474 enableval=$enable_threads; gl_use_threads=$enableval
7475else
7476 if test -n "$gl_use_threads_default"; then
7477 gl_use_threads="$gl_use_threads_default"
7478 else
7479 case "$host_os" in
7480 osf*) gl_use_threads=no ;;
7481 cygwin*)
7482 case `uname -r` in
7483 1.[0-5].*) gl_use_threads=no ;;
7484 *) gl_use_threads=yes ;;
7485 esac
7486 ;;
7487 *) gl_use_threads=yes ;;
7488 esac
7489 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007490
7491fi
7492
Theodore Ts'o93613952014-07-03 23:44:13 -04007493 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7494 # For using <pthread.h>:
7495 case "$host_os" in
7496 osf*)
7497 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7498 # groks <pthread.h>. cc also understands the flag -pthread, but
7499 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7500 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7501 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7502 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7503 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7504 ;;
7505 esac
7506 # Some systems optimize for single-threaded programs by default, and
7507 # need special flags to disable these optimizations. For example, the
7508 # definition of 'errno' in <errno.h>.
7509 case "$host_os" in
7510 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7511 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7512 esac
7513 fi
7514
7515
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007516
7517
7518
7519 if test "X$prefix" = "XNONE"; then
7520 acl_final_prefix="$ac_default_prefix"
7521 else
7522 acl_final_prefix="$prefix"
7523 fi
7524 if test "X$exec_prefix" = "XNONE"; then
7525 acl_final_exec_prefix='${prefix}'
7526 else
7527 acl_final_exec_prefix="$exec_prefix"
7528 fi
7529 acl_save_prefix="$prefix"
7530 prefix="$acl_final_prefix"
7531 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7532 prefix="$acl_save_prefix"
7533
7534
Theodore Ts'o93613952014-07-03 23:44:13 -04007535
Theodore Ts'oe1052142006-10-21 21:46:47 -04007536# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007537if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007538 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007539else
7540 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007541fi
7542
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007543# Prepare PATH_SEPARATOR.
7544# The user is always right.
7545if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007546 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7547 # contains only /bin. Note that ksh looks also at the FPATH variable,
7548 # so we have to set that as well for the test.
7549 PATH_SEPARATOR=:
7550 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7551 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7552 || PATH_SEPARATOR=';'
7553 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007554fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007556ac_prog=ld
7557if test "$GCC" = yes; then
7558 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7560$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007561 case $host in
7562 *-*-mingw*)
7563 # gcc leaves a trailing carriage return which upsets mingw
7564 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7565 *)
7566 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7567 esac
7568 case $ac_prog in
7569 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007570 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007571 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007572 # Canonicalize the pathname of ld
7573 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7574 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7575 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007576 done
7577 test -z "$LD" && LD="$ac_prog"
7578 ;;
7579 "")
7580 # If it fails, then pretend we aren't using GCC.
7581 ac_prog=ld
7582 ;;
7583 *)
7584 # If it is relative, then search for the first ld in PATH.
7585 with_gnu_ld=unknown
7586 ;;
7587 esac
7588elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007590$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007591else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007593$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007594fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007595if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007596 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007597else
7598 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007599 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007600 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007601 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007602 test -z "$ac_dir" && ac_dir=.
7603 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7604 acl_cv_path_LD="$ac_dir/$ac_prog"
7605 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007606 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007607 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007608 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007609 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007610 test "$with_gnu_ld" != no && break
7611 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007612 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007613 test "$with_gnu_ld" != yes && break
7614 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007615 esac
7616 fi
7617 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007618 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007619else
7620 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7621fi
7622fi
7623
7624LD="$acl_cv_path_LD"
7625if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007627$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007628else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007630$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007632test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007634$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007635if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007636 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007637else
Theodore Ts'o93613952014-07-03 23:44:13 -04007638 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007639case `$LD -v 2>&1 </dev/null` in
7640*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007641 acl_cv_prog_gnu_ld=yes
7642 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007643*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007644 acl_cv_prog_gnu_ld=no
7645 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007646esac
7647fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007649$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007650with_gnu_ld=$acl_cv_prog_gnu_ld
7651
7652
7653
Theodore Ts'o93613952014-07-03 23:44:13 -04007654
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007656$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007657if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007658 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007659else
7660
7661 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7662 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7663 . ./conftest.sh
7664 rm -f ./conftest.sh
7665 acl_cv_rpath=done
7666
7667fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007669$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007670 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007671 acl_libext="$acl_cv_libext"
7672 acl_shlibext="$acl_cv_shlibext"
7673 acl_libname_spec="$acl_cv_libname_spec"
7674 acl_library_names_spec="$acl_cv_library_names_spec"
7675 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7676 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7677 acl_hardcode_direct="$acl_cv_hardcode_direct"
7678 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007679 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007680if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007681 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007682else
7683 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007684fi
7685
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007686
7687
7688
Theodore Ts'o93613952014-07-03 23:44:13 -04007689 acl_libdirstem=lib
7690 acl_libdirstem2=
7691 case "$host_os" in
7692 solaris*)
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7694$as_echo_n "checking for 64-bit host... " >&6; }
7695if ${gl_cv_solaris_64bit+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697else
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699/* end confdefs.h. */
7700
7701#ifdef _LP64
7702sixtyfour bits
7703#endif
7704
7705_ACEOF
7706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7707 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7708 gl_cv_solaris_64bit=yes
7709else
7710 gl_cv_solaris_64bit=no
7711fi
7712rm -f conftest*
7713
7714
7715fi
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7717$as_echo "$gl_cv_solaris_64bit" >&6; }
7718 if test $gl_cv_solaris_64bit = yes; then
7719 acl_libdirstem=lib/64
7720 case "$host_cpu" in
7721 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7722 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7723 esac
7724 fi
7725 ;;
7726 *)
7727 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7728 if test -n "$searchpath"; then
7729 acl_save_IFS="${IFS= }"; IFS=":"
7730 for searchdir in $searchpath; do
7731 if test -d "$searchdir"; then
7732 case "$searchdir" in
7733 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7734 */../ | */.. )
7735 # Better ignore directories of this form. They are misleading.
7736 ;;
7737 *) searchdir=`cd "$searchdir" && pwd`
7738 case "$searchdir" in
7739 */lib64 ) acl_libdirstem=lib64 ;;
7740 esac ;;
7741 esac
7742 fi
7743 done
7744 IFS="$acl_save_IFS"
7745 fi
7746 ;;
7747 esac
7748 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7749
7750
7751
7752 gl_threads_api=none
7753 LIBTHREAD=
7754 LTLIBTHREAD=
7755 LIBMULTITHREAD=
7756 LTLIBMULTITHREAD=
7757 if test "$gl_use_threads" != no; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7759$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7760if ${gl_cv_have_weak+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762else
7763 gl_cv_have_weak=no
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765/* end confdefs.h. */
7766extern void xyzzy ();
7767#pragma weak xyzzy
7768int
7769main ()
7770{
7771xyzzy();
7772 ;
7773 return 0;
7774}
7775_ACEOF
7776if ac_fn_c_try_link "$LINENO"; then :
7777 gl_cv_have_weak=maybe
7778fi
7779rm -f core conftest.err conftest.$ac_objext \
7780 conftest$ac_exeext conftest.$ac_ext
7781 if test $gl_cv_have_weak = maybe; then
7782 if test "$cross_compiling" = yes; then :
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784/* end confdefs.h. */
7785#ifdef __ELF__
7786 Extensible Linking Format
7787 #endif
7788
7789_ACEOF
7790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7791 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7792 gl_cv_have_weak="guessing yes"
7793else
7794 gl_cv_have_weak="guessing no"
7795fi
7796rm -f conftest*
7797
7798
7799else
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801/* end confdefs.h. */
7802
7803#include <stdio.h>
7804#pragma weak fputs
7805int main ()
7806{
7807 return (fputs == NULL);
7808}
7809_ACEOF
7810if ac_fn_c_try_run "$LINENO"; then :
7811 gl_cv_have_weak=yes
7812else
7813 gl_cv_have_weak=no
7814fi
7815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7816 conftest.$ac_objext conftest.beam conftest.$ac_ext
7817fi
7818
7819 fi
7820
7821fi
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7823$as_echo "$gl_cv_have_weak" >&6; }
7824 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7825 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7826 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7827 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7828if test "x$ac_cv_header_pthread_h" = xyes; then :
7829 gl_have_pthread_h=yes
7830else
7831 gl_have_pthread_h=no
7832fi
7833
7834
7835 if test "$gl_have_pthread_h" = yes; then
7836 # Other possible tests:
7837 # -lpthreads (FSU threads, PCthreads)
7838 # -lgthreads
7839 gl_have_pthread=
7840 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7841 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7842 # the second one only in libpthread, and lock.c needs it.
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h. */
7845#include <pthread.h>
7846int
7847main ()
7848{
7849pthread_mutex_lock((pthread_mutex_t*)0);
7850 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7851 ;
7852 return 0;
7853}
7854_ACEOF
7855if ac_fn_c_try_link "$LINENO"; then :
7856 gl_have_pthread=yes
7857fi
7858rm -f core conftest.err conftest.$ac_objext \
7859 conftest$ac_exeext conftest.$ac_ext
7860 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7861 # since it is defined as a macro on OSF/1.)
7862 if test -n "$gl_have_pthread"; then
7863 # The program links fine without libpthread. But it may actually
7864 # need to link with libpthread in order to create multiple threads.
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7866$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7867if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869else
7870 ac_check_lib_save_LIBS=$LIBS
7871LIBS="-lpthread $LIBS"
7872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h. */
7874
7875/* Override any GCC internal prototype to avoid an error.
7876 Use char because int might match the return type of a GCC
7877 builtin and then its argument prototype would still apply. */
7878#ifdef __cplusplus
7879extern "C"
7880#endif
7881char pthread_kill ();
7882int
7883main ()
7884{
7885return pthread_kill ();
7886 ;
7887 return 0;
7888}
7889_ACEOF
7890if ac_fn_c_try_link "$LINENO"; then :
7891 ac_cv_lib_pthread_pthread_kill=yes
7892else
7893 ac_cv_lib_pthread_pthread_kill=no
7894fi
7895rm -f core conftest.err conftest.$ac_objext \
7896 conftest$ac_exeext conftest.$ac_ext
7897LIBS=$ac_check_lib_save_LIBS
7898fi
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7900$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7901if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7902 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7903 # On Solaris and HP-UX, most pthread functions exist also in libc.
7904 # Therefore pthread_in_use() needs to actually try to create a
7905 # thread: pthread_create from libc will fail, whereas
7906 # pthread_create will actually create a thread.
7907 case "$host_os" in
7908 solaris* | hpux*)
7909
7910$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7911
7912 esac
7913
7914fi
7915
7916 else
7917 # Some library is needed. Try libpthread and libc_r.
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7919$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7920if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7921 $as_echo_n "(cached) " >&6
7922else
7923 ac_check_lib_save_LIBS=$LIBS
7924LIBS="-lpthread $LIBS"
7925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926/* end confdefs.h. */
7927
7928/* Override any GCC internal prototype to avoid an error.
7929 Use char because int might match the return type of a GCC
7930 builtin and then its argument prototype would still apply. */
7931#ifdef __cplusplus
7932extern "C"
7933#endif
7934char pthread_kill ();
7935int
7936main ()
7937{
7938return pthread_kill ();
7939 ;
7940 return 0;
7941}
7942_ACEOF
7943if ac_fn_c_try_link "$LINENO"; then :
7944 ac_cv_lib_pthread_pthread_kill=yes
7945else
7946 ac_cv_lib_pthread_pthread_kill=no
7947fi
7948rm -f core conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
7950LIBS=$ac_check_lib_save_LIBS
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7953$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7954if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7955 gl_have_pthread=yes
7956 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7957 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7958fi
7959
7960 if test -z "$gl_have_pthread"; then
7961 # For FreeBSD 4.
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7963$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7964if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966else
7967 ac_check_lib_save_LIBS=$LIBS
7968LIBS="-lc_r $LIBS"
7969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970/* end confdefs.h. */
7971
7972/* Override any GCC internal prototype to avoid an error.
7973 Use char because int might match the return type of a GCC
7974 builtin and then its argument prototype would still apply. */
7975#ifdef __cplusplus
7976extern "C"
7977#endif
7978char pthread_kill ();
7979int
7980main ()
7981{
7982return pthread_kill ();
7983 ;
7984 return 0;
7985}
7986_ACEOF
7987if ac_fn_c_try_link "$LINENO"; then :
7988 ac_cv_lib_c_r_pthread_kill=yes
7989else
7990 ac_cv_lib_c_r_pthread_kill=no
7991fi
7992rm -f core conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7994LIBS=$ac_check_lib_save_LIBS
7995fi
7996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
7997$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
7998if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
7999 gl_have_pthread=yes
8000 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8001 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8002fi
8003
8004 fi
8005 fi
8006 if test -n "$gl_have_pthread"; then
8007 gl_threads_api=posix
8008
8009$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8010
8011 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8012 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8013
8014$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8015
8016 LIBTHREAD=
8017 LTLIBTHREAD=
8018 fi
8019 fi
8020 fi
8021 fi
8022 fi
8023 if test -z "$gl_have_pthread"; then
8024 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8025 gl_have_solaristhread=
8026 gl_save_LIBS="$LIBS"
8027 LIBS="$LIBS -lthread"
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h. */
8030
8031#include <thread.h>
8032#include <synch.h>
8033
8034int
8035main ()
8036{
8037thr_self();
8038 ;
8039 return 0;
8040}
8041_ACEOF
8042if ac_fn_c_try_link "$LINENO"; then :
8043 gl_have_solaristhread=yes
8044fi
8045rm -f core conftest.err conftest.$ac_objext \
8046 conftest$ac_exeext conftest.$ac_ext
8047 LIBS="$gl_save_LIBS"
8048 if test -n "$gl_have_solaristhread"; then
8049 gl_threads_api=solaris
8050 LIBTHREAD=-lthread
8051 LTLIBTHREAD=-lthread
8052 LIBMULTITHREAD="$LIBTHREAD"
8053 LTLIBMULTITHREAD="$LTLIBTHREAD"
8054
8055$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8056
8057 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8058
8059$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8060
8061 LIBTHREAD=
8062 LTLIBTHREAD=
8063 fi
8064 fi
8065 fi
8066 fi
8067 if test "$gl_use_threads" = pth; then
8068 gl_save_CPPFLAGS="$CPPFLAGS"
8069
8070
8071
8072
8073
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8075$as_echo_n "checking how to link with libpth... " >&6; }
8076if ${ac_cv_libpth_libs+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078else
8079
8080
8081
8082
8083
8084
8085
8086
8087 use_additional=yes
8088
8089 acl_save_prefix="$prefix"
8090 prefix="$acl_final_prefix"
8091 acl_save_exec_prefix="$exec_prefix"
8092 exec_prefix="$acl_final_exec_prefix"
8093
8094 eval additional_includedir=\"$includedir\"
8095 eval additional_libdir=\"$libdir\"
8096
8097 exec_prefix="$acl_save_exec_prefix"
8098 prefix="$acl_save_prefix"
8099
8100
8101# Check whether --with-libpth-prefix was given.
8102if test "${with_libpth_prefix+set}" = set; then :
8103 withval=$with_libpth_prefix;
8104 if test "X$withval" = "Xno"; then
8105 use_additional=no
8106 else
8107 if test "X$withval" = "X"; then
8108
8109 acl_save_prefix="$prefix"
8110 prefix="$acl_final_prefix"
8111 acl_save_exec_prefix="$exec_prefix"
8112 exec_prefix="$acl_final_exec_prefix"
8113
8114 eval additional_includedir=\"$includedir\"
8115 eval additional_libdir=\"$libdir\"
8116
8117 exec_prefix="$acl_save_exec_prefix"
8118 prefix="$acl_save_prefix"
8119
8120 else
8121 additional_includedir="$withval/include"
8122 additional_libdir="$withval/$acl_libdirstem"
8123 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8124 && ! test -d "$withval/$acl_libdirstem"; then
8125 additional_libdir="$withval/$acl_libdirstem2"
8126 fi
8127 fi
8128 fi
8129
8130fi
8131
8132 LIBPTH=
8133 LTLIBPTH=
8134 INCPTH=
8135 LIBPTH_PREFIX=
8136 HAVE_LIBPTH=
8137 rpathdirs=
8138 ltrpathdirs=
8139 names_already_handled=
8140 names_next_round='pth '
8141 while test -n "$names_next_round"; do
8142 names_this_round="$names_next_round"
8143 names_next_round=
8144 for name in $names_this_round; do
8145 already_handled=
8146 for n in $names_already_handled; do
8147 if test "$n" = "$name"; then
8148 already_handled=yes
8149 break
8150 fi
8151 done
8152 if test -z "$already_handled"; then
8153 names_already_handled="$names_already_handled $name"
8154 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8155 eval value=\"\$HAVE_LIB$uppername\"
8156 if test -n "$value"; then
8157 if test "$value" = yes; then
8158 eval value=\"\$LIB$uppername\"
8159 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8160 eval value=\"\$LTLIB$uppername\"
8161 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8162 else
8163 :
8164 fi
8165 else
8166 found_dir=
8167 found_la=
8168 found_so=
8169 found_a=
8170 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8171 if test -n "$acl_shlibext"; then
8172 shrext=".$acl_shlibext" # typically: shrext=.so
8173 else
8174 shrext=
8175 fi
8176 if test $use_additional = yes; then
8177 dir="$additional_libdir"
8178 if test -n "$acl_shlibext"; then
8179 if test -f "$dir/$libname$shrext"; then
8180 found_dir="$dir"
8181 found_so="$dir/$libname$shrext"
8182 else
8183 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8184 ver=`(cd "$dir" && \
8185 for f in "$libname$shrext".*; do echo "$f"; done \
8186 | sed -e "s,^$libname$shrext\\\\.,," \
8187 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8188 | sed 1q ) 2>/dev/null`
8189 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8190 found_dir="$dir"
8191 found_so="$dir/$libname$shrext.$ver"
8192 fi
8193 else
8194 eval library_names=\"$acl_library_names_spec\"
8195 for f in $library_names; do
8196 if test -f "$dir/$f"; then
8197 found_dir="$dir"
8198 found_so="$dir/$f"
8199 break
8200 fi
8201 done
8202 fi
8203 fi
8204 fi
8205 if test "X$found_dir" = "X"; then
8206 if test -f "$dir/$libname.$acl_libext"; then
8207 found_dir="$dir"
8208 found_a="$dir/$libname.$acl_libext"
8209 fi
8210 fi
8211 if test "X$found_dir" != "X"; then
8212 if test -f "$dir/$libname.la"; then
8213 found_la="$dir/$libname.la"
8214 fi
8215 fi
8216 fi
8217 if test "X$found_dir" = "X"; then
8218 for x in $LDFLAGS $LTLIBPTH; do
8219
8220 acl_save_prefix="$prefix"
8221 prefix="$acl_final_prefix"
8222 acl_save_exec_prefix="$exec_prefix"
8223 exec_prefix="$acl_final_exec_prefix"
8224 eval x=\"$x\"
8225 exec_prefix="$acl_save_exec_prefix"
8226 prefix="$acl_save_prefix"
8227
8228 case "$x" in
8229 -L*)
8230 dir=`echo "X$x" | sed -e 's/^X-L//'`
8231 if test -n "$acl_shlibext"; then
8232 if test -f "$dir/$libname$shrext"; then
8233 found_dir="$dir"
8234 found_so="$dir/$libname$shrext"
8235 else
8236 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8237 ver=`(cd "$dir" && \
8238 for f in "$libname$shrext".*; do echo "$f"; done \
8239 | sed -e "s,^$libname$shrext\\\\.,," \
8240 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8241 | sed 1q ) 2>/dev/null`
8242 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8243 found_dir="$dir"
8244 found_so="$dir/$libname$shrext.$ver"
8245 fi
8246 else
8247 eval library_names=\"$acl_library_names_spec\"
8248 for f in $library_names; do
8249 if test -f "$dir/$f"; then
8250 found_dir="$dir"
8251 found_so="$dir/$f"
8252 break
8253 fi
8254 done
8255 fi
8256 fi
8257 fi
8258 if test "X$found_dir" = "X"; then
8259 if test -f "$dir/$libname.$acl_libext"; then
8260 found_dir="$dir"
8261 found_a="$dir/$libname.$acl_libext"
8262 fi
8263 fi
8264 if test "X$found_dir" != "X"; then
8265 if test -f "$dir/$libname.la"; then
8266 found_la="$dir/$libname.la"
8267 fi
8268 fi
8269 ;;
8270 esac
8271 if test "X$found_dir" != "X"; then
8272 break
8273 fi
8274 done
8275 fi
8276 if test "X$found_dir" != "X"; then
8277 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8278 if test "X$found_so" != "X"; then
8279 if test "$enable_rpath" = no \
8280 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8281 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8282 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8283 else
8284 haveit=
8285 for x in $ltrpathdirs; do
8286 if test "X$x" = "X$found_dir"; then
8287 haveit=yes
8288 break
8289 fi
8290 done
8291 if test -z "$haveit"; then
8292 ltrpathdirs="$ltrpathdirs $found_dir"
8293 fi
8294 if test "$acl_hardcode_direct" = yes; then
8295 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8296 else
8297 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8298 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8299 haveit=
8300 for x in $rpathdirs; do
8301 if test "X$x" = "X$found_dir"; then
8302 haveit=yes
8303 break
8304 fi
8305 done
8306 if test -z "$haveit"; then
8307 rpathdirs="$rpathdirs $found_dir"
8308 fi
8309 else
8310 haveit=
8311 for x in $LDFLAGS $LIBPTH; do
8312
8313 acl_save_prefix="$prefix"
8314 prefix="$acl_final_prefix"
8315 acl_save_exec_prefix="$exec_prefix"
8316 exec_prefix="$acl_final_exec_prefix"
8317 eval x=\"$x\"
8318 exec_prefix="$acl_save_exec_prefix"
8319 prefix="$acl_save_prefix"
8320
8321 if test "X$x" = "X-L$found_dir"; then
8322 haveit=yes
8323 break
8324 fi
8325 done
8326 if test -z "$haveit"; then
8327 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8328 fi
8329 if test "$acl_hardcode_minus_L" != no; then
8330 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8331 else
8332 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8333 fi
8334 fi
8335 fi
8336 fi
8337 else
8338 if test "X$found_a" != "X"; then
8339 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8340 else
8341 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8342 fi
8343 fi
8344 additional_includedir=
8345 case "$found_dir" in
8346 */$acl_libdirstem | */$acl_libdirstem/)
8347 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8348 if test "$name" = 'pth'; then
8349 LIBPTH_PREFIX="$basedir"
8350 fi
8351 additional_includedir="$basedir/include"
8352 ;;
8353 */$acl_libdirstem2 | */$acl_libdirstem2/)
8354 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8355 if test "$name" = 'pth'; then
8356 LIBPTH_PREFIX="$basedir"
8357 fi
8358 additional_includedir="$basedir/include"
8359 ;;
8360 esac
8361 if test "X$additional_includedir" != "X"; then
8362 if test "X$additional_includedir" != "X/usr/include"; then
8363 haveit=
8364 if test "X$additional_includedir" = "X/usr/local/include"; then
8365 if test -n "$GCC"; then
8366 case $host_os in
8367 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8368 esac
8369 fi
8370 fi
8371 if test -z "$haveit"; then
8372 for x in $CPPFLAGS $INCPTH; do
8373
8374 acl_save_prefix="$prefix"
8375 prefix="$acl_final_prefix"
8376 acl_save_exec_prefix="$exec_prefix"
8377 exec_prefix="$acl_final_exec_prefix"
8378 eval x=\"$x\"
8379 exec_prefix="$acl_save_exec_prefix"
8380 prefix="$acl_save_prefix"
8381
8382 if test "X$x" = "X-I$additional_includedir"; then
8383 haveit=yes
8384 break
8385 fi
8386 done
8387 if test -z "$haveit"; then
8388 if test -d "$additional_includedir"; then
8389 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8390 fi
8391 fi
8392 fi
8393 fi
8394 fi
8395 if test -n "$found_la"; then
8396 save_libdir="$libdir"
8397 case "$found_la" in
8398 */* | *\\*) . "$found_la" ;;
8399 *) . "./$found_la" ;;
8400 esac
8401 libdir="$save_libdir"
8402 for dep in $dependency_libs; do
8403 case "$dep" in
8404 -L*)
8405 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8406 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8407 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8408 haveit=
8409 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8410 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8411 if test -n "$GCC"; then
8412 case $host_os in
8413 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8414 esac
8415 fi
8416 fi
8417 if test -z "$haveit"; then
8418 haveit=
8419 for x in $LDFLAGS $LIBPTH; do
8420
8421 acl_save_prefix="$prefix"
8422 prefix="$acl_final_prefix"
8423 acl_save_exec_prefix="$exec_prefix"
8424 exec_prefix="$acl_final_exec_prefix"
8425 eval x=\"$x\"
8426 exec_prefix="$acl_save_exec_prefix"
8427 prefix="$acl_save_prefix"
8428
8429 if test "X$x" = "X-L$additional_libdir"; then
8430 haveit=yes
8431 break
8432 fi
8433 done
8434 if test -z "$haveit"; then
8435 if test -d "$additional_libdir"; then
8436 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8437 fi
8438 fi
8439 haveit=
8440 for x in $LDFLAGS $LTLIBPTH; do
8441
8442 acl_save_prefix="$prefix"
8443 prefix="$acl_final_prefix"
8444 acl_save_exec_prefix="$exec_prefix"
8445 exec_prefix="$acl_final_exec_prefix"
8446 eval x=\"$x\"
8447 exec_prefix="$acl_save_exec_prefix"
8448 prefix="$acl_save_prefix"
8449
8450 if test "X$x" = "X-L$additional_libdir"; then
8451 haveit=yes
8452 break
8453 fi
8454 done
8455 if test -z "$haveit"; then
8456 if test -d "$additional_libdir"; then
8457 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8458 fi
8459 fi
8460 fi
8461 fi
8462 ;;
8463 -R*)
8464 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8465 if test "$enable_rpath" != no; then
8466 haveit=
8467 for x in $rpathdirs; do
8468 if test "X$x" = "X$dir"; then
8469 haveit=yes
8470 break
8471 fi
8472 done
8473 if test -z "$haveit"; then
8474 rpathdirs="$rpathdirs $dir"
8475 fi
8476 haveit=
8477 for x in $ltrpathdirs; do
8478 if test "X$x" = "X$dir"; then
8479 haveit=yes
8480 break
8481 fi
8482 done
8483 if test -z "$haveit"; then
8484 ltrpathdirs="$ltrpathdirs $dir"
8485 fi
8486 fi
8487 ;;
8488 -l*)
8489 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8490 ;;
8491 *.la)
8492 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8493 ;;
8494 *)
8495 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8496 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8497 ;;
8498 esac
8499 done
8500 fi
8501 else
8502 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8503 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8504 fi
8505 fi
8506 fi
8507 done
8508 done
8509 if test "X$rpathdirs" != "X"; then
8510 if test -n "$acl_hardcode_libdir_separator"; then
8511 alldirs=
8512 for found_dir in $rpathdirs; do
8513 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8514 done
8515 acl_save_libdir="$libdir"
8516 libdir="$alldirs"
8517 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8518 libdir="$acl_save_libdir"
8519 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8520 else
8521 for found_dir in $rpathdirs; do
8522 acl_save_libdir="$libdir"
8523 libdir="$found_dir"
8524 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8525 libdir="$acl_save_libdir"
8526 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8527 done
8528 fi
8529 fi
8530 if test "X$ltrpathdirs" != "X"; then
8531 for found_dir in $ltrpathdirs; do
8532 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8533 done
8534 fi
8535
8536
8537
8538
8539
8540
8541 ac_cv_libpth_libs="$LIBPTH"
8542 ac_cv_libpth_ltlibs="$LTLIBPTH"
8543 ac_cv_libpth_cppflags="$INCPTH"
8544 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8545
8546fi
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8548$as_echo "$ac_cv_libpth_libs" >&6; }
8549 LIBPTH="$ac_cv_libpth_libs"
8550 LTLIBPTH="$ac_cv_libpth_ltlibs"
8551 INCPTH="$ac_cv_libpth_cppflags"
8552 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8553
8554 for element in $INCPTH; do
8555 haveit=
8556 for x in $CPPFLAGS; do
8557
8558 acl_save_prefix="$prefix"
8559 prefix="$acl_final_prefix"
8560 acl_save_exec_prefix="$exec_prefix"
8561 exec_prefix="$acl_final_exec_prefix"
8562 eval x=\"$x\"
8563 exec_prefix="$acl_save_exec_prefix"
8564 prefix="$acl_save_prefix"
8565
8566 if test "X$x" = "X$element"; then
8567 haveit=yes
8568 break
8569 fi
8570 done
8571 if test -z "$haveit"; then
8572 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8573 fi
8574 done
8575
8576
8577
8578
8579 HAVE_LIBPTH=yes
8580
8581
8582
8583 gl_have_pth=
8584 gl_save_LIBS="$LIBS"
8585 LIBS="$LIBS $LIBPTH"
8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587/* end confdefs.h. */
8588#include <pth.h>
8589int
8590main ()
8591{
8592pth_self();
8593 ;
8594 return 0;
8595}
8596_ACEOF
8597if ac_fn_c_try_link "$LINENO"; then :
8598 gl_have_pth=yes
8599fi
8600rm -f core conftest.err conftest.$ac_objext \
8601 conftest$ac_exeext conftest.$ac_ext
8602 LIBS="$gl_save_LIBS"
8603 if test -n "$gl_have_pth"; then
8604 gl_threads_api=pth
8605 LIBTHREAD="$LIBPTH"
8606 LTLIBTHREAD="$LTLIBPTH"
8607 LIBMULTITHREAD="$LIBTHREAD"
8608 LTLIBMULTITHREAD="$LTLIBTHREAD"
8609
8610$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8611
8612 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8613 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8614
8615$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8616
8617 LIBTHREAD=
8618 LTLIBTHREAD=
8619 fi
8620 fi
8621 else
8622 CPPFLAGS="$gl_save_CPPFLAGS"
8623 fi
8624 fi
8625 if test -z "$gl_have_pthread"; then
8626 case "$gl_use_threads" in
8627 yes | windows | win32) # The 'win32' is for backward compatibility.
8628 if { case "$host_os" in
8629 mingw*) true;;
8630 *) false;;
8631 esac
8632 }; then
8633 gl_threads_api=windows
8634
8635$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8636
8637 fi
8638 ;;
8639 esac
8640 fi
8641 fi
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8643$as_echo_n "checking for multithread API to use... " >&6; }
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8645$as_echo "$gl_threads_api" >&6; }
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657 if test "$gl_threads_api" = posix; then
8658 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8659 # pthread_rwlock_* functions.
8660 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8661"
8662if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8663
8664$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8665
8666fi
8667
8668 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670/* end confdefs.h. */
8671
8672 #include <pthread.h>
8673int
8674main ()
8675{
8676
8677#if __FreeBSD__ == 4
8678error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8679#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8680 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8681error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8682#else
8683int x = (int)PTHREAD_MUTEX_RECURSIVE;
8684return !x;
8685#endif
8686
8687 ;
8688 return 0;
8689}
8690_ACEOF
8691if ac_fn_c_try_compile "$LINENO"; then :
8692
8693$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8694
8695fi
8696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 fi
8698 :
8699
8700
8701
8702
8703
8704
8705
8706
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008707
8708
8709
8710
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008711 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008712
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008713 acl_save_prefix="$prefix"
8714 prefix="$acl_final_prefix"
8715 acl_save_exec_prefix="$exec_prefix"
8716 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008717
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008718 eval additional_includedir=\"$includedir\"
8719 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008720
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008721 exec_prefix="$acl_save_exec_prefix"
8722 prefix="$acl_save_prefix"
8723
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008724
Theodore Ts'oe1052142006-10-21 21:46:47 -04008725# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008726if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008727 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008728 if test "X$withval" = "Xno"; then
8729 use_additional=no
8730 else
8731 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008732
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008733 acl_save_prefix="$prefix"
8734 prefix="$acl_final_prefix"
8735 acl_save_exec_prefix="$exec_prefix"
8736 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008737
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008738 eval additional_includedir=\"$includedir\"
8739 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008740
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008741 exec_prefix="$acl_save_exec_prefix"
8742 prefix="$acl_save_prefix"
8743
8744 else
8745 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008746 additional_libdir="$withval/$acl_libdirstem"
8747 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8748 && ! test -d "$withval/$acl_libdirstem"; then
8749 additional_libdir="$withval/$acl_libdirstem2"
8750 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008751 fi
8752 fi
8753
Theodore Ts'oe1052142006-10-21 21:46:47 -04008754fi
8755
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008756 LIBICONV=
8757 LTLIBICONV=
8758 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008759 LIBICONV_PREFIX=
8760 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008761 rpathdirs=
8762 ltrpathdirs=
8763 names_already_handled=
8764 names_next_round='iconv '
8765 while test -n "$names_next_round"; do
8766 names_this_round="$names_next_round"
8767 names_next_round=
8768 for name in $names_this_round; do
8769 already_handled=
8770 for n in $names_already_handled; do
8771 if test "$n" = "$name"; then
8772 already_handled=yes
8773 break
8774 fi
8775 done
8776 if test -z "$already_handled"; then
8777 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008778 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008779 eval value=\"\$HAVE_LIB$uppername\"
8780 if test -n "$value"; then
8781 if test "$value" = yes; then
8782 eval value=\"\$LIB$uppername\"
8783 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8784 eval value=\"\$LTLIB$uppername\"
8785 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8786 else
8787 :
8788 fi
8789 else
8790 found_dir=
8791 found_la=
8792 found_so=
8793 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008794 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8795 if test -n "$acl_shlibext"; then
8796 shrext=".$acl_shlibext" # typically: shrext=.so
8797 else
8798 shrext=
8799 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008800 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008801 dir="$additional_libdir"
8802 if test -n "$acl_shlibext"; then
8803 if test -f "$dir/$libname$shrext"; then
8804 found_dir="$dir"
8805 found_so="$dir/$libname$shrext"
8806 else
8807 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8808 ver=`(cd "$dir" && \
8809 for f in "$libname$shrext".*; do echo "$f"; done \
8810 | sed -e "s,^$libname$shrext\\\\.,," \
8811 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8812 | sed 1q ) 2>/dev/null`
8813 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8814 found_dir="$dir"
8815 found_so="$dir/$libname$shrext.$ver"
8816 fi
8817 else
8818 eval library_names=\"$acl_library_names_spec\"
8819 for f in $library_names; do
8820 if test -f "$dir/$f"; then
8821 found_dir="$dir"
8822 found_so="$dir/$f"
8823 break
8824 fi
8825 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008826 fi
8827 fi
8828 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008829 if test "X$found_dir" = "X"; then
8830 if test -f "$dir/$libname.$acl_libext"; then
8831 found_dir="$dir"
8832 found_a="$dir/$libname.$acl_libext"
8833 fi
8834 fi
8835 if test "X$found_dir" != "X"; then
8836 if test -f "$dir/$libname.la"; then
8837 found_la="$dir/$libname.la"
8838 fi
8839 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008840 fi
8841 if test "X$found_dir" = "X"; then
8842 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008843
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008844 acl_save_prefix="$prefix"
8845 prefix="$acl_final_prefix"
8846 acl_save_exec_prefix="$exec_prefix"
8847 exec_prefix="$acl_final_exec_prefix"
8848 eval x=\"$x\"
8849 exec_prefix="$acl_save_exec_prefix"
8850 prefix="$acl_save_prefix"
8851
8852 case "$x" in
8853 -L*)
8854 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008855 if test -n "$acl_shlibext"; then
8856 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008857 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008858 found_so="$dir/$libname$shrext"
8859 else
8860 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8861 ver=`(cd "$dir" && \
8862 for f in "$libname$shrext".*; do echo "$f"; done \
8863 | sed -e "s,^$libname$shrext\\\\.,," \
8864 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8865 | sed 1q ) 2>/dev/null`
8866 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8867 found_dir="$dir"
8868 found_so="$dir/$libname$shrext.$ver"
8869 fi
8870 else
8871 eval library_names=\"$acl_library_names_spec\"
8872 for f in $library_names; do
8873 if test -f "$dir/$f"; then
8874 found_dir="$dir"
8875 found_so="$dir/$f"
8876 break
8877 fi
8878 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008879 fi
8880 fi
8881 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008882 if test "X$found_dir" = "X"; then
8883 if test -f "$dir/$libname.$acl_libext"; then
8884 found_dir="$dir"
8885 found_a="$dir/$libname.$acl_libext"
8886 fi
8887 fi
8888 if test "X$found_dir" != "X"; then
8889 if test -f "$dir/$libname.la"; then
8890 found_la="$dir/$libname.la"
8891 fi
8892 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008893 ;;
8894 esac
8895 if test "X$found_dir" != "X"; then
8896 break
8897 fi
8898 done
8899 fi
8900 if test "X$found_dir" != "X"; then
8901 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8902 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008903 if test "$enable_rpath" = no \
8904 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8905 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008906 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8907 else
8908 haveit=
8909 for x in $ltrpathdirs; do
8910 if test "X$x" = "X$found_dir"; then
8911 haveit=yes
8912 break
8913 fi
8914 done
8915 if test -z "$haveit"; then
8916 ltrpathdirs="$ltrpathdirs $found_dir"
8917 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008918 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008919 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8920 else
Theodore Ts'o93613952014-07-03 23:44:13 -04008921 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008922 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8923 haveit=
8924 for x in $rpathdirs; do
8925 if test "X$x" = "X$found_dir"; then
8926 haveit=yes
8927 break
8928 fi
8929 done
8930 if test -z "$haveit"; then
8931 rpathdirs="$rpathdirs $found_dir"
8932 fi
8933 else
8934 haveit=
8935 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008936
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008937 acl_save_prefix="$prefix"
8938 prefix="$acl_final_prefix"
8939 acl_save_exec_prefix="$exec_prefix"
8940 exec_prefix="$acl_final_exec_prefix"
8941 eval x=\"$x\"
8942 exec_prefix="$acl_save_exec_prefix"
8943 prefix="$acl_save_prefix"
8944
8945 if test "X$x" = "X-L$found_dir"; then
8946 haveit=yes
8947 break
8948 fi
8949 done
8950 if test -z "$haveit"; then
8951 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8952 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008953 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008954 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8955 else
8956 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8957 fi
8958 fi
8959 fi
8960 fi
8961 else
8962 if test "X$found_a" != "X"; then
8963 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8964 else
8965 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8966 fi
8967 fi
8968 additional_includedir=
8969 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04008970 */$acl_libdirstem | */$acl_libdirstem/)
8971 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8972 if test "$name" = 'iconv'; then
8973 LIBICONV_PREFIX="$basedir"
8974 fi
8975 additional_includedir="$basedir/include"
8976 ;;
8977 */$acl_libdirstem2 | */$acl_libdirstem2/)
8978 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8979 if test "$name" = 'iconv'; then
8980 LIBICONV_PREFIX="$basedir"
8981 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008982 additional_includedir="$basedir/include"
8983 ;;
8984 esac
8985 if test "X$additional_includedir" != "X"; then
8986 if test "X$additional_includedir" != "X/usr/include"; then
8987 haveit=
8988 if test "X$additional_includedir" = "X/usr/local/include"; then
8989 if test -n "$GCC"; then
8990 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04008991 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008992 esac
8993 fi
8994 fi
8995 if test -z "$haveit"; then
8996 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008997
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008998 acl_save_prefix="$prefix"
8999 prefix="$acl_final_prefix"
9000 acl_save_exec_prefix="$exec_prefix"
9001 exec_prefix="$acl_final_exec_prefix"
9002 eval x=\"$x\"
9003 exec_prefix="$acl_save_exec_prefix"
9004 prefix="$acl_save_prefix"
9005
9006 if test "X$x" = "X-I$additional_includedir"; then
9007 haveit=yes
9008 break
9009 fi
9010 done
9011 if test -z "$haveit"; then
9012 if test -d "$additional_includedir"; then
9013 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9014 fi
9015 fi
9016 fi
9017 fi
9018 fi
9019 if test -n "$found_la"; then
9020 save_libdir="$libdir"
9021 case "$found_la" in
9022 */* | *\\*) . "$found_la" ;;
9023 *) . "./$found_la" ;;
9024 esac
9025 libdir="$save_libdir"
9026 for dep in $dependency_libs; do
9027 case "$dep" in
9028 -L*)
9029 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009030 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9031 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009032 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009033 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9034 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009035 if test -n "$GCC"; then
9036 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009037 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009038 esac
9039 fi
9040 fi
9041 if test -z "$haveit"; then
9042 haveit=
9043 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009044
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009045 acl_save_prefix="$prefix"
9046 prefix="$acl_final_prefix"
9047 acl_save_exec_prefix="$exec_prefix"
9048 exec_prefix="$acl_final_exec_prefix"
9049 eval x=\"$x\"
9050 exec_prefix="$acl_save_exec_prefix"
9051 prefix="$acl_save_prefix"
9052
9053 if test "X$x" = "X-L$additional_libdir"; then
9054 haveit=yes
9055 break
9056 fi
9057 done
9058 if test -z "$haveit"; then
9059 if test -d "$additional_libdir"; then
9060 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9061 fi
9062 fi
9063 haveit=
9064 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009065
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009066 acl_save_prefix="$prefix"
9067 prefix="$acl_final_prefix"
9068 acl_save_exec_prefix="$exec_prefix"
9069 exec_prefix="$acl_final_exec_prefix"
9070 eval x=\"$x\"
9071 exec_prefix="$acl_save_exec_prefix"
9072 prefix="$acl_save_prefix"
9073
9074 if test "X$x" = "X-L$additional_libdir"; then
9075 haveit=yes
9076 break
9077 fi
9078 done
9079 if test -z "$haveit"; then
9080 if test -d "$additional_libdir"; then
9081 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9082 fi
9083 fi
9084 fi
9085 fi
9086 ;;
9087 -R*)
9088 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9089 if test "$enable_rpath" != no; then
9090 haveit=
9091 for x in $rpathdirs; do
9092 if test "X$x" = "X$dir"; then
9093 haveit=yes
9094 break
9095 fi
9096 done
9097 if test -z "$haveit"; then
9098 rpathdirs="$rpathdirs $dir"
9099 fi
9100 haveit=
9101 for x in $ltrpathdirs; do
9102 if test "X$x" = "X$dir"; then
9103 haveit=yes
9104 break
9105 fi
9106 done
9107 if test -z "$haveit"; then
9108 ltrpathdirs="$ltrpathdirs $dir"
9109 fi
9110 fi
9111 ;;
9112 -l*)
9113 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9114 ;;
9115 *.la)
9116 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9117 ;;
9118 *)
9119 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9120 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9121 ;;
9122 esac
9123 done
9124 fi
9125 else
9126 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9127 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9128 fi
9129 fi
9130 fi
9131 done
9132 done
9133 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009134 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009135 alldirs=
9136 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009137 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009138 done
9139 acl_save_libdir="$libdir"
9140 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009141 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009142 libdir="$acl_save_libdir"
9143 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9144 else
9145 for found_dir in $rpathdirs; do
9146 acl_save_libdir="$libdir"
9147 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009148 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009149 libdir="$acl_save_libdir"
9150 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9151 done
9152 fi
9153 fi
9154 if test "X$ltrpathdirs" != "X"; then
9155 for found_dir in $ltrpathdirs; do
9156 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9157 done
9158 fi
9159
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009160
9161
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009162
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009163
9164
9165
9166
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009167
9168
9169
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009170
9171 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009172
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009173 for element in $INCICONV; do
9174 haveit=
9175 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009176
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009177 acl_save_prefix="$prefix"
9178 prefix="$acl_final_prefix"
9179 acl_save_exec_prefix="$exec_prefix"
9180 exec_prefix="$acl_final_exec_prefix"
9181 eval x=\"$x\"
9182 exec_prefix="$acl_save_exec_prefix"
9183 prefix="$acl_save_prefix"
9184
9185 if test "X$x" = "X$element"; then
9186 haveit=yes
9187 break
9188 fi
9189 done
9190 if test -z "$haveit"; then
9191 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9192 fi
9193 done
9194
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009195
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009197$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009198if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009199 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009200else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009201
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009202 am_cv_func_iconv="no, consider installing GNU libiconv"
9203 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009205/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009206
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009207#include <stdlib.h>
9208#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009209
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009210int
9211main ()
9212{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009213iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009214 iconv(cd,NULL,NULL,NULL,NULL);
9215 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009216 ;
9217 return 0;
9218}
9219_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009220if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009221 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009222fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009223rm -f core conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009225 if test "$am_cv_func_iconv" != yes; then
9226 am_save_LIBS="$LIBS"
9227 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009229/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009230
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009231#include <stdlib.h>
9232#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009234int
9235main ()
9236{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009237iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009238 iconv(cd,NULL,NULL,NULL,NULL);
9239 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009240 ;
9241 return 0;
9242}
9243_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009244if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009245 am_cv_lib_iconv=yes
9246 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009247fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009248rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009250 LIBS="$am_save_LIBS"
9251 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009252
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009253fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009255$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009256 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9258$as_echo_n "checking for working iconv... " >&6; }
9259if ${am_cv_func_iconv_works+:} false; then :
9260 $as_echo_n "(cached) " >&6
9261else
9262
9263 am_save_LIBS="$LIBS"
9264 if test $am_cv_lib_iconv = yes; then
9265 LIBS="$LIBS $LIBICONV"
9266 fi
9267 if test "$cross_compiling" = yes; then :
9268
9269 case "$host_os" in
9270 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9271 *) am_cv_func_iconv_works="guessing yes" ;;
9272 esac
9273
9274else
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276/* end confdefs.h. */
9277
9278#include <iconv.h>
9279#include <string.h>
9280int main ()
9281{
9282 int result = 0;
9283 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9284 returns. */
9285 {
9286 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9287 if (cd_utf8_to_88591 != (iconv_t)(-1))
9288 {
9289 static const char input[] = "\342\202\254"; /* EURO SIGN */
9290 char buf[10];
9291 const char *inptr = input;
9292 size_t inbytesleft = strlen (input);
9293 char *outptr = buf;
9294 size_t outbytesleft = sizeof (buf);
9295 size_t res = iconv (cd_utf8_to_88591,
9296 (char **) &inptr, &inbytesleft,
9297 &outptr, &outbytesleft);
9298 if (res == 0)
9299 result |= 1;
9300 iconv_close (cd_utf8_to_88591);
9301 }
9302 }
9303 /* Test against Solaris 10 bug: Failures are not distinguishable from
9304 successful returns. */
9305 {
9306 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9307 if (cd_ascii_to_88591 != (iconv_t)(-1))
9308 {
9309 static const char input[] = "\263";
9310 char buf[10];
9311 const char *inptr = input;
9312 size_t inbytesleft = strlen (input);
9313 char *outptr = buf;
9314 size_t outbytesleft = sizeof (buf);
9315 size_t res = iconv (cd_ascii_to_88591,
9316 (char **) &inptr, &inbytesleft,
9317 &outptr, &outbytesleft);
9318 if (res == 0)
9319 result |= 2;
9320 iconv_close (cd_ascii_to_88591);
9321 }
9322 }
9323 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9324 {
9325 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9326 if (cd_88591_to_utf8 != (iconv_t)(-1))
9327 {
9328 static const char input[] = "\304";
9329 static char buf[2] = { (char)0xDE, (char)0xAD };
9330 const char *inptr = input;
9331 size_t inbytesleft = 1;
9332 char *outptr = buf;
9333 size_t outbytesleft = 1;
9334 size_t res = iconv (cd_88591_to_utf8,
9335 (char **) &inptr, &inbytesleft,
9336 &outptr, &outbytesleft);
9337 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9338 result |= 4;
9339 iconv_close (cd_88591_to_utf8);
9340 }
9341 }
9342#if 0 /* This bug could be worked around by the caller. */
9343 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9344 {
9345 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9346 if (cd_88591_to_utf8 != (iconv_t)(-1))
9347 {
9348 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9349 char buf[50];
9350 const char *inptr = input;
9351 size_t inbytesleft = strlen (input);
9352 char *outptr = buf;
9353 size_t outbytesleft = sizeof (buf);
9354 size_t res = iconv (cd_88591_to_utf8,
9355 (char **) &inptr, &inbytesleft,
9356 &outptr, &outbytesleft);
9357 if ((int)res > 0)
9358 result |= 8;
9359 iconv_close (cd_88591_to_utf8);
9360 }
9361 }
9362#endif
9363 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9364 provided. */
9365 if (/* Try standardized names. */
9366 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9367 /* Try IRIX, OSF/1 names. */
9368 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9369 /* Try AIX names. */
9370 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9371 /* Try HP-UX names. */
9372 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9373 result |= 16;
9374 return result;
9375}
9376_ACEOF
9377if ac_fn_c_try_run "$LINENO"; then :
9378 am_cv_func_iconv_works=yes
9379else
9380 am_cv_func_iconv_works=no
9381fi
9382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9383 conftest.$ac_objext conftest.beam conftest.$ac_ext
9384fi
9385
9386 LIBS="$am_save_LIBS"
9387
9388fi
9389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9390$as_echo "$am_cv_func_iconv_works" >&6; }
9391 case "$am_cv_func_iconv_works" in
9392 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9393 *) am_func_iconv=yes ;;
9394 esac
9395 else
9396 am_func_iconv=no am_cv_lib_iconv=no
9397 fi
9398 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009399
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009400$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009401
9402 fi
9403 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009405$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009407$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009408 else
9409 CPPFLAGS="$am_save_CPPFLAGS"
9410 LIBICONV=
9411 LTLIBICONV=
9412 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009413
9414
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009415
9416 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009418$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009419 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009420 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009421else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009422
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009424/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009425
9426#include <stdlib.h>
9427#include <iconv.h>
9428extern
9429#ifdef __cplusplus
9430"C"
9431#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009432#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009433size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9434#else
9435size_t iconv();
9436#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009437
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009438int
9439main ()
9440{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009442 ;
9443 return 0;
9444}
9445_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009446if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009447 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009448else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009449 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009450fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009452 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 +00009453fi
9454
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009455 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009456 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9457 $am_cv_proto_iconv" >&5
9458$as_echo "
9459 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009460
9461cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009462#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009463_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009464
Theodore Ts'o93613952014-07-03 23:44:13 -04009465
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009466 fi
9467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009468
Theodore Ts'o93613952014-07-03 23:44:13 -04009469
9470
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009472/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009473int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009474int
9475main ()
9476{
Theodore Ts'o93613952014-07-03 23:44:13 -04009477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009478 ;
9479 return 0;
9480}
9481_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009482if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009483
9484$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009486fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009487rm -f core conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009489
Theodore Ts'o93613952014-07-03 23:44:13 -04009490 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9491do :
9492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9493ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9494if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9495 cat >>confdefs.h <<_ACEOF
9496#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009497_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009498
9499fi
9500
9501done
9502
9503 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9504 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9505 argz_stringify argz_next __fsetlocking
9506do :
9507 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9508ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9509if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9510 cat >>confdefs.h <<_ACEOF
9511#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9512_ACEOF
9513
9514fi
9515done
9516
9517
9518 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9519"
9520if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9521 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009522else
Theodore Ts'o93613952014-07-03 23:44:13 -04009523 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009524fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009525
9526cat >>confdefs.h <<_ACEOF
9527#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9528_ACEOF
9529ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9530"
9531if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9532 ac_have_decl=1
9533else
9534 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009535fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009536
Theodore Ts'o93613952014-07-03 23:44:13 -04009537cat >>confdefs.h <<_ACEOF
9538#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9539_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009540
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009541
Theodore Ts'o93613952014-07-03 23:44:13 -04009542
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009543
9544 for ac_prog in bison
9545do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009546 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009547set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009549$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009550if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009551 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009552else
9553 if test -n "$INTLBISON"; then
9554 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9555else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009561 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009563 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009565 break 2
9566 fi
9567done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009568 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009569IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009570
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009571fi
9572fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009573INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009574if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009576$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009577else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009579$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009580fi
9581
Theodore Ts'oe1052142006-10-21 21:46:47 -04009582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009583 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009584done
9585
9586 if test -z "$INTLBISON"; then
9587 ac_verc_fail=yes
9588 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009590$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009591 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9592 case $ac_prog_version in
9593 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9594 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9595 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9596 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9597 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009599$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009600 fi
9601 if test $ac_verc_fail = yes; then
9602 INTLBISON=:
9603 fi
9604
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009605
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009606
Theodore Ts'o93613952014-07-03 23:44:13 -04009607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9608$as_echo_n "checking for long long int... " >&6; }
9609if ${ac_cv_type_long_long_int+:} false; then :
9610 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009611else
Theodore Ts'o93613952014-07-03 23:44:13 -04009612 ac_cv_type_long_long_int=yes
9613 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9614 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9615 if test $ac_cv_type_long_long_int = yes; then
9616 if test "$cross_compiling" = yes; then :
9617 :
9618else
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620/* end confdefs.h. */
9621#include <limits.h>
9622 #ifndef LLONG_MAX
9623 # define HALF \
9624 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9625 # define LLONG_MAX (HALF - 1 + HALF)
9626 #endif
9627int
9628main ()
9629{
9630long long int n = 1;
9631 int i;
9632 for (i = 0; ; i++)
9633 {
9634 long long int m = n << i;
9635 if (m >> i != n)
9636 return 1;
9637 if (LLONG_MAX / 2 < m)
9638 break;
9639 }
9640 return 0;
9641 ;
9642 return 0;
9643}
9644_ACEOF
9645if ac_fn_c_try_run "$LINENO"; then :
9646
9647else
9648 ac_cv_type_long_long_int=no
9649fi
9650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9651 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009652fi
9653
Theodore Ts'o93613952014-07-03 23:44:13 -04009654 fi
9655 fi
9656fi
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9658$as_echo "$ac_cv_type_long_long_int" >&6; }
9659 if test $ac_cv_type_long_long_int = yes; then
9660
9661$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9662
9663 fi
9664
9665
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9667$as_echo_n "checking for wchar_t... " >&6; }
9668if ${gt_cv_c_wchar_t+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670else
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672/* end confdefs.h. */
9673#include <stddef.h>
9674 wchar_t foo = (wchar_t)'\0';
9675int
9676main ()
9677{
9678
9679 ;
9680 return 0;
9681}
9682_ACEOF
9683if ac_fn_c_try_compile "$LINENO"; then :
9684 gt_cv_c_wchar_t=yes
9685else
9686 gt_cv_c_wchar_t=no
9687fi
9688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689fi
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9691$as_echo "$gt_cv_c_wchar_t" >&6; }
9692 if test $gt_cv_c_wchar_t = yes; then
9693
9694$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9695
9696 fi
9697
9698
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9700$as_echo_n "checking for wint_t... " >&6; }
9701if ${gt_cv_c_wint_t+:} false; then :
9702 $as_echo_n "(cached) " >&6
9703else
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705/* end confdefs.h. */
9706
9707/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9708 <wchar.h>.
9709 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9710 before <wchar.h>. */
9711#include <stddef.h>
9712#include <stdio.h>
9713#include <time.h>
9714#include <wchar.h>
9715 wint_t foo = (wchar_t)'\0';
9716int
9717main ()
9718{
9719
9720 ;
9721 return 0;
9722}
9723_ACEOF
9724if ac_fn_c_try_compile "$LINENO"; then :
9725 gt_cv_c_wint_t=yes
9726else
9727 gt_cv_c_wint_t=no
9728fi
9729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730fi
9731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9732$as_echo "$gt_cv_c_wint_t" >&6; }
9733 if test $gt_cv_c_wint_t = yes; then
9734
9735$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9736
9737 fi
9738
9739
9740
9741
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9743$as_echo_n "checking for intmax_t... " >&6; }
9744if ${gt_cv_c_intmax_t+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746else
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h. */
9749
9750#include <stddef.h>
9751#include <stdlib.h>
9752#if HAVE_STDINT_H_WITH_UINTMAX
9753#include <stdint.h>
9754#endif
9755#if HAVE_INTTYPES_H_WITH_UINTMAX
9756#include <inttypes.h>
9757#endif
9758
9759int
9760main ()
9761{
9762intmax_t x = -1;
9763 return !x;
9764 ;
9765 return 0;
9766}
9767_ACEOF
9768if ac_fn_c_try_compile "$LINENO"; then :
9769 gt_cv_c_intmax_t=yes
9770else
9771 gt_cv_c_intmax_t=no
9772fi
9773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774fi
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9776$as_echo "$gt_cv_c_intmax_t" >&6; }
9777 if test $gt_cv_c_intmax_t = yes; then
9778
9779$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9780
9781 fi
9782
9783
9784
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9786$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9787if ${gt_cv_func_printf_posix+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789else
9790
9791 if test "$cross_compiling" = yes; then :
9792
9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794/* end confdefs.h. */
9795
9796#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9797 notposix
9798#endif
9799
9800_ACEOF
9801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9802 $EGREP "notposix" >/dev/null 2>&1; then :
9803 gt_cv_func_printf_posix="guessing no"
9804else
9805 gt_cv_func_printf_posix="guessing yes"
9806fi
9807rm -f conftest*
9808
9809
9810else
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h. */
9813
9814#include <stdio.h>
9815#include <string.h>
9816/* The string "%2$d %1$d", with dollar characters protected from the shell's
9817 dollar expansion (possibly an autoconf bug). */
9818static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9819static char buf[100];
9820int main ()
9821{
9822 sprintf (buf, format, 33, 55);
9823 return (strcmp (buf, "55 33") != 0);
9824}
9825_ACEOF
9826if ac_fn_c_try_run "$LINENO"; then :
9827 gt_cv_func_printf_posix=yes
9828else
9829 gt_cv_func_printf_posix=no
9830fi
9831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9832 conftest.$ac_objext conftest.beam conftest.$ac_ext
9833fi
9834
9835
9836fi
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9838$as_echo "$gt_cv_func_printf_posix" >&6; }
9839 case $gt_cv_func_printf_posix in
9840 *yes)
9841
9842$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9843
9844 ;;
9845 esac
9846
9847
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9849$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9850if ${ac_cv_gnu_library_2_1+:} false; then :
9851 $as_echo_n "(cached) " >&6
9852else
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854/* end confdefs.h. */
9855
9856#include <features.h>
9857#ifdef __GNU_LIBRARY__
9858 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9859 Lucky GNU user
9860 #endif
9861#endif
9862#ifdef __UCLIBC__
9863 Lucky user
9864#endif
9865
9866_ACEOF
9867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9868 $EGREP "Lucky" >/dev/null 2>&1; then :
9869 ac_cv_gnu_library_2_1=yes
9870else
9871 ac_cv_gnu_library_2_1=no
9872fi
9873rm -f conftest*
9874
9875
9876
9877fi
9878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9879$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9880
9881 GLIBC21="$ac_cv_gnu_library_2_1"
9882
9883
9884
9885 for ac_header in stdint.h
9886do :
9887 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9888if test "x$ac_cv_header_stdint_h" = xyes; then :
9889 cat >>confdefs.h <<_ACEOF
9890#define HAVE_STDINT_H 1
9891_ACEOF
9892
9893fi
9894
9895done
9896
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9898$as_echo_n "checking for SIZE_MAX... " >&6; }
9899if ${gl_cv_size_max+:} false; then :
9900 $as_echo_n "(cached) " >&6
9901else
9902
9903 gl_cv_size_max=
9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905/* end confdefs.h. */
9906
9907#include <limits.h>
9908#if HAVE_STDINT_H
9909#include <stdint.h>
9910#endif
9911#ifdef SIZE_MAX
9912Found it
9913#endif
9914
9915_ACEOF
9916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9917 $EGREP "Found it" >/dev/null 2>&1; then :
9918 gl_cv_size_max=yes
9919fi
9920rm -f conftest*
9921
9922 if test -z "$gl_cv_size_max"; then
9923 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9924#include <limits.h>"; then :
9925
9926else
9927 size_t_bits_minus_1=
9928fi
9929
9930 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9931
9932else
9933 fits_in_uint=
9934fi
9935
9936 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9937 if test $fits_in_uint = 1; then
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939/* end confdefs.h. */
9940#include <stddef.h>
9941 extern size_t foo;
9942 extern unsigned long foo;
9943
9944int
9945main ()
9946{
9947
9948 ;
9949 return 0;
9950}
9951_ACEOF
9952if ac_fn_c_try_compile "$LINENO"; then :
9953 fits_in_uint=0
9954fi
9955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956 fi
9957 if test $fits_in_uint = 1; then
9958 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9959 else
9960 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9961 fi
9962 else
9963 gl_cv_size_max='((size_t)~(size_t)0)'
9964 fi
9965 fi
9966
9967fi
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9969$as_echo "$gl_cv_size_max" >&6; }
9970 if test "$gl_cv_size_max" != yes; then
9971
9972cat >>confdefs.h <<_ACEOF
9973#define SIZE_MAX $gl_cv_size_max
9974_ACEOF
9975
9976 fi
9977
9978
9979
9980
9981 for ac_header in stdint.h
9982do :
9983 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9984if test "x$ac_cv_header_stdint_h" = xyes; then :
9985 cat >>confdefs.h <<_ACEOF
9986#define HAVE_STDINT_H 1
9987_ACEOF
9988
9989fi
9990
9991done
9992
9993
9994
9995
9996
9997 for ac_func in $ac_func_list
9998do :
9999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10000ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10001if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10002 cat >>confdefs.h <<_ACEOF
10003#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10004_ACEOF
10005
10006fi
10007done
10008
10009
10010
10011
10012
10013
10014
10015
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10017$as_echo_n "checking for working fcntl.h... " >&6; }
10018if ${gl_cv_header_working_fcntl_h+:} false; then :
10019 $as_echo_n "(cached) " >&6
10020else
10021 if test "$cross_compiling" = yes; then :
10022 gl_cv_header_working_fcntl_h=cross-compiling
10023else
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025/* end confdefs.h. */
10026#include <sys/types.h>
10027 #include <sys/stat.h>
10028 #if HAVE_UNISTD_H
10029 # include <unistd.h>
10030 #else /* on Windows with MSVC */
10031 # include <io.h>
10032 # include <stdlib.h>
10033 # defined sleep(n) _sleep ((n) * 1000)
10034 #endif
10035 #include <fcntl.h>
10036 #ifndef O_NOATIME
10037 #define O_NOATIME 0
10038 #endif
10039 #ifndef O_NOFOLLOW
10040 #define O_NOFOLLOW 0
10041 #endif
10042 static int const constants[] =
10043 {
10044 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10045 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10046 };
10047
10048int
10049main ()
10050{
10051
10052 int result = !constants;
10053 #if HAVE_SYMLINK
10054 {
10055 static char const sym[] = "conftest.sym";
10056 if (symlink ("/dev/null", sym) != 0)
10057 result |= 2;
10058 else
10059 {
10060 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10061 if (fd >= 0)
10062 {
10063 close (fd);
10064 result |= 4;
10065 }
10066 }
10067 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10068 result |= 2;
10069 else
10070 {
10071 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10072 if (fd >= 0)
10073 {
10074 close (fd);
10075 result |= 4;
10076 }
10077 }
10078 unlink (sym);
10079 }
10080 #endif
10081 {
10082 static char const file[] = "confdefs.h";
10083 int fd = open (file, O_RDONLY | O_NOATIME);
10084 if (fd < 0)
10085 result |= 8;
10086 else
10087 {
10088 struct stat st0;
10089 if (fstat (fd, &st0) != 0)
10090 result |= 16;
10091 else
10092 {
10093 char c;
10094 sleep (1);
10095 if (read (fd, &c, 1) != 1)
10096 result |= 24;
10097 else
10098 {
10099 if (close (fd) != 0)
10100 result |= 32;
10101 else
10102 {
10103 struct stat st1;
10104 if (stat (file, &st1) != 0)
10105 result |= 40;
10106 else
10107 if (st0.st_atime != st1.st_atime)
10108 result |= 64;
10109 }
10110 }
10111 }
10112 }
10113 }
10114 return result;
10115 ;
10116 return 0;
10117}
10118_ACEOF
10119if ac_fn_c_try_run "$LINENO"; then :
10120 gl_cv_header_working_fcntl_h=yes
10121else
10122 case $? in #(
10123 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10124 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10125 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10126 *) gl_cv_header_working_fcntl_h='no';;
10127 esac
10128fi
10129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10130 conftest.$ac_objext conftest.beam conftest.$ac_ext
10131fi
10132
10133fi
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10135$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10136
10137 case $gl_cv_header_working_fcntl_h in #(
10138 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10139 *) ac_val=1;;
10140 esac
10141
10142cat >>confdefs.h <<_ACEOF
10143#define HAVE_WORKING_O_NOATIME $ac_val
10144_ACEOF
10145
10146
10147 case $gl_cv_header_working_fcntl_h in #(
10148 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10149 *) ac_val=1;;
10150 esac
10151
10152cat >>confdefs.h <<_ACEOF
10153#define HAVE_WORKING_O_NOFOLLOW $ac_val
10154_ACEOF
10155
10156
10157
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10159$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10160if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10161 $as_echo_n "(cached) " >&6
10162else
10163 gt_save_LIBS="$LIBS"
10164 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166/* end confdefs.h. */
10167#include <CoreFoundation/CFPreferences.h>
10168int
10169main ()
10170{
10171CFPreferencesCopyAppValue(NULL, NULL)
10172 ;
10173 return 0;
10174}
10175_ACEOF
10176if ac_fn_c_try_link "$LINENO"; then :
10177 gt_cv_func_CFPreferencesCopyAppValue=yes
10178else
10179 gt_cv_func_CFPreferencesCopyAppValue=no
10180fi
10181rm -f core conftest.err conftest.$ac_objext \
10182 conftest$ac_exeext conftest.$ac_ext
10183 LIBS="$gt_save_LIBS"
10184fi
10185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10186$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10187 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10188
10189$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10190
10191 fi
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10193$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10194if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196else
10197 gt_save_LIBS="$LIBS"
10198 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200/* end confdefs.h. */
10201#include <CoreFoundation/CFLocale.h>
10202int
10203main ()
10204{
10205CFLocaleCopyCurrent();
10206 ;
10207 return 0;
10208}
10209_ACEOF
10210if ac_fn_c_try_link "$LINENO"; then :
10211 gt_cv_func_CFLocaleCopyCurrent=yes
10212else
10213 gt_cv_func_CFLocaleCopyCurrent=no
10214fi
10215rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 LIBS="$gt_save_LIBS"
10218fi
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10220$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10221 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10222
10223$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10224
10225 fi
10226 INTL_MACOSX_LIBS=
10227 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10228 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10229 fi
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240 case "$enable_silent_rules" in
10241 yes) INTL_DEFAULT_VERBOSITY=0;;
10242 no) INTL_DEFAULT_VERBOSITY=1;;
10243 *) INTL_DEFAULT_VERBOSITY=1;;
10244 esac
10245
10246
10247 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10248if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10249
10250else
10251
10252$as_echo "#define ptrdiff_t long" >>confdefs.h
10253
10254
10255fi
10256
10257 for ac_header in features.h stddef.h stdlib.h string.h
10258do :
10259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10260ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10261if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10262 cat >>confdefs.h <<_ACEOF
10263#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10264_ACEOF
10265
10266fi
10267
10268done
10269
10270 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10271 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10272do :
10273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10274ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10275if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10276 cat >>confdefs.h <<_ACEOF
10277#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10278_ACEOF
10279
10280fi
10281done
10282
10283
10284 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10285"
10286if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10287 ac_have_decl=1
10288else
10289 ac_have_decl=0
10290fi
10291
10292cat >>confdefs.h <<_ACEOF
10293#define HAVE_DECL__SNPRINTF $ac_have_decl
10294_ACEOF
10295ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10296"
10297if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10298 ac_have_decl=1
10299else
10300 ac_have_decl=0
10301fi
10302
10303cat >>confdefs.h <<_ACEOF
10304#define HAVE_DECL__SNWPRINTF $ac_have_decl
10305_ACEOF
10306
10307
10308 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10309"
10310if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10311 ac_have_decl=1
10312else
10313 ac_have_decl=0
10314fi
10315
10316cat >>confdefs.h <<_ACEOF
10317#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10318_ACEOF
10319
10320
10321 case $gt_cv_func_printf_posix in
10322 *yes) HAVE_POSIX_PRINTF=1 ;;
10323 *) HAVE_POSIX_PRINTF=0 ;;
10324 esac
10325
10326 if test "$ac_cv_func_asprintf" = yes; then
10327 HAVE_ASPRINTF=1
10328 else
10329 HAVE_ASPRINTF=0
10330 fi
10331
10332 if test "$ac_cv_func_snprintf" = yes; then
10333 HAVE_SNPRINTF=1
10334 else
10335 HAVE_SNPRINTF=0
10336 fi
10337
10338 if test "$ac_cv_func_newlocale" = yes; then
10339 HAVE_NEWLOCALE=1
10340 else
10341 HAVE_NEWLOCALE=0
10342 fi
10343
10344 if test "$ac_cv_func_wprintf" = yes; then
10345 HAVE_WPRINTF=1
10346 else
10347 HAVE_WPRINTF=0
10348 fi
10349
10350
10351
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10353$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10354if ${am_cv_langinfo_codeset+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356else
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358/* end confdefs.h. */
10359#include <langinfo.h>
10360int
10361main ()
10362{
10363char* cs = nl_langinfo(CODESET); return !cs;
10364 ;
10365 return 0;
10366}
10367_ACEOF
10368if ac_fn_c_try_link "$LINENO"; then :
10369 am_cv_langinfo_codeset=yes
10370else
10371 am_cv_langinfo_codeset=no
10372fi
10373rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375
10376fi
10377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10378$as_echo "$am_cv_langinfo_codeset" >&6; }
10379 if test $am_cv_langinfo_codeset = yes; then
10380
10381$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10382
10383 fi
10384
10385
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10387$as_echo_n "checking for LC_MESSAGES... " >&6; }
10388if ${gt_cv_val_LC_MESSAGES+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390else
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392/* end confdefs.h. */
10393#include <locale.h>
10394int
10395main ()
10396{
10397return LC_MESSAGES
10398 ;
10399 return 0;
10400}
10401_ACEOF
10402if ac_fn_c_try_link "$LINENO"; then :
10403 gt_cv_val_LC_MESSAGES=yes
10404else
10405 gt_cv_val_LC_MESSAGES=no
10406fi
10407rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409fi
10410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10411$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10412 if test $gt_cv_val_LC_MESSAGES = yes; then
10413
10414$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10415
10416 fi
10417
10418
10419 if test "$enable_shared" = yes; then
10420 case "$host_os" in
10421 mingw* | cygwin*) is_woe32dll=yes ;;
10422 *) is_woe32dll=no ;;
10423 esac
10424 else
10425 is_woe32dll=no
10426 fi
10427 WOE32DLL=$is_woe32dll
10428
10429
10430 case "$host_os" in
10431 mingw* | cygwin*) is_woe32=yes ;;
10432 *) is_woe32=no ;;
10433 esac
10434 WOE32=$is_woe32
10435
10436 if test $WOE32 = yes; then
10437 if test -n "$ac_tool_prefix"; then
10438 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10439set dummy ${ac_tool_prefix}windres; ac_word=$2
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441$as_echo_n "checking for $ac_word... " >&6; }
10442if ${ac_cv_prog_WINDRES+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444else
10445 if test -n "$WINDRES"; then
10446 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10447else
10448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $PATH
10450do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10458 fi
10459done
10460 done
10461IFS=$as_save_IFS
10462
10463fi
10464fi
10465WINDRES=$ac_cv_prog_WINDRES
10466if test -n "$WINDRES"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10468$as_echo "$WINDRES" >&6; }
10469else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471$as_echo "no" >&6; }
10472fi
10473
10474
10475fi
10476if test -z "$ac_cv_prog_WINDRES"; then
10477 ac_ct_WINDRES=$WINDRES
10478 # Extract the first word of "windres", so it can be a program name with args.
10479set dummy windres; ac_word=$2
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481$as_echo_n "checking for $ac_word... " >&6; }
10482if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10483 $as_echo_n "(cached) " >&6
10484else
10485 if test -n "$ac_ct_WINDRES"; then
10486 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10487else
10488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489for as_dir in $PATH
10490do
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
10493 for ac_exec_ext in '' $ac_executable_extensions; do
10494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10495 ac_cv_prog_ac_ct_WINDRES="windres"
10496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497 break 2
10498 fi
10499done
10500 done
10501IFS=$as_save_IFS
10502
10503fi
10504fi
10505ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10506if test -n "$ac_ct_WINDRES"; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10508$as_echo "$ac_ct_WINDRES" >&6; }
10509else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511$as_echo "no" >&6; }
10512fi
10513
10514 if test "x$ac_ct_WINDRES" = x; then
10515 WINDRES=""
10516 else
10517 case $cross_compiling:$ac_tool_warned in
10518yes:)
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10521ac_tool_warned=yes ;;
10522esac
10523 WINDRES=$ac_ct_WINDRES
10524 fi
10525else
10526 WINDRES="$ac_cv_prog_WINDRES"
10527fi
10528
10529 fi
10530
10531 case "$host_os" in
10532 hpux*) LTLIBC="" ;;
10533 *) LTLIBC="-lc" ;;
10534 esac
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10563$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10564if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10565 $as_echo_n "(cached) " >&6
10566else
10567 gt_save_LIBS="$LIBS"
10568 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570/* end confdefs.h. */
10571#include <CoreFoundation/CFPreferences.h>
10572int
10573main ()
10574{
10575CFPreferencesCopyAppValue(NULL, NULL)
10576 ;
10577 return 0;
10578}
10579_ACEOF
10580if ac_fn_c_try_link "$LINENO"; then :
10581 gt_cv_func_CFPreferencesCopyAppValue=yes
10582else
10583 gt_cv_func_CFPreferencesCopyAppValue=no
10584fi
10585rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 LIBS="$gt_save_LIBS"
10588fi
10589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10590$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10591 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10592
10593$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10594
10595 fi
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10597$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10598if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10599 $as_echo_n "(cached) " >&6
10600else
10601 gt_save_LIBS="$LIBS"
10602 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604/* end confdefs.h. */
10605#include <CoreFoundation/CFLocale.h>
10606int
10607main ()
10608{
10609CFLocaleCopyCurrent();
10610 ;
10611 return 0;
10612}
10613_ACEOF
10614if ac_fn_c_try_link "$LINENO"; then :
10615 gt_cv_func_CFLocaleCopyCurrent=yes
10616else
10617 gt_cv_func_CFLocaleCopyCurrent=no
10618fi
10619rm -f core conftest.err conftest.$ac_objext \
10620 conftest$ac_exeext conftest.$ac_ext
10621 LIBS="$gt_save_LIBS"
10622fi
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10624$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10625 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10626
10627$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10628
10629 fi
10630 INTL_MACOSX_LIBS=
10631 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10632 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10633 fi
10634
10635
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010636
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010637
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010638
10639
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010640 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010641 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010642
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010643 LIBINTL=
10644 LTLIBINTL=
10645 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010646
Theodore Ts'o93613952014-07-03 23:44:13 -040010647 case " $gt_needs " in
10648 *" need-formatstring-macros "*) gt_api_version=3 ;;
10649 *" need-ngettext "*) gt_api_version=2 ;;
10650 *) gt_api_version=1 ;;
10651 esac
10652 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10653 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10654
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010655 if test "$USE_NLS" = "yes"; then
10656 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010657
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010659$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010660
Theodore Ts'oe1052142006-10-21 21:46:47 -040010661# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010662if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010663 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010664else
10665 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010666fi
10667
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010669$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010670
10671 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10672 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010673
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010674
Theodore Ts'o93613952014-07-03 23:44:13 -040010675 if test $gt_api_version -ge 3; then
10676 gt_revision_test_code='
10677#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10678#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10679#endif
10680typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10681'
10682 else
10683 gt_revision_test_code=
10684 fi
10685 if test $gt_api_version -ge 2; then
10686 gt_expression_test_code=' + * ngettext ("", "", 0)'
10687 else
10688 gt_expression_test_code=
10689 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010690
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010692$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010693if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010694 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010695else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010697/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010698
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010699#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010700$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010701extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010702extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010703
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010704int
10705main ()
10706{
Theodore Ts'o93613952014-07-03 23:44:13 -040010707
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010708bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010709return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010711 ;
10712 return 0;
10713}
10714_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010715if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010716 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010717else
Theodore Ts'o93613952014-07-03 23:44:13 -040010718 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010719fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010720rm -f core conftest.err conftest.$ac_objext \
10721 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010722fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010723eval ac_res=\$$gt_func_gnugettext_libc
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10725$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010726
Theodore Ts'o93613952014-07-03 23:44:13 -040010727 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10728
10729
10730
10731
10732
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010733
10734
10735
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010736 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010737
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010738 acl_save_prefix="$prefix"
10739 prefix="$acl_final_prefix"
10740 acl_save_exec_prefix="$exec_prefix"
10741 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010742
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010743 eval additional_includedir=\"$includedir\"
10744 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010746 exec_prefix="$acl_save_exec_prefix"
10747 prefix="$acl_save_prefix"
10748
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010749
Theodore Ts'oe1052142006-10-21 21:46:47 -040010750# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010751if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010752 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010753 if test "X$withval" = "Xno"; then
10754 use_additional=no
10755 else
10756 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010757
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010758 acl_save_prefix="$prefix"
10759 prefix="$acl_final_prefix"
10760 acl_save_exec_prefix="$exec_prefix"
10761 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010762
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010763 eval additional_includedir=\"$includedir\"
10764 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010765
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010766 exec_prefix="$acl_save_exec_prefix"
10767 prefix="$acl_save_prefix"
10768
10769 else
10770 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010771 additional_libdir="$withval/$acl_libdirstem"
10772 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10773 && ! test -d "$withval/$acl_libdirstem"; then
10774 additional_libdir="$withval/$acl_libdirstem2"
10775 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010776 fi
10777 fi
10778
Theodore Ts'oe1052142006-10-21 21:46:47 -040010779fi
10780
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010781 LIBINTL=
10782 LTLIBINTL=
10783 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010784 LIBINTL_PREFIX=
10785 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010786 rpathdirs=
10787 ltrpathdirs=
10788 names_already_handled=
10789 names_next_round='intl '
10790 while test -n "$names_next_round"; do
10791 names_this_round="$names_next_round"
10792 names_next_round=
10793 for name in $names_this_round; do
10794 already_handled=
10795 for n in $names_already_handled; do
10796 if test "$n" = "$name"; then
10797 already_handled=yes
10798 break
10799 fi
10800 done
10801 if test -z "$already_handled"; then
10802 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010803 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010804 eval value=\"\$HAVE_LIB$uppername\"
10805 if test -n "$value"; then
10806 if test "$value" = yes; then
10807 eval value=\"\$LIB$uppername\"
10808 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10809 eval value=\"\$LTLIB$uppername\"
10810 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10811 else
10812 :
10813 fi
10814 else
10815 found_dir=
10816 found_la=
10817 found_so=
10818 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010819 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10820 if test -n "$acl_shlibext"; then
10821 shrext=".$acl_shlibext" # typically: shrext=.so
10822 else
10823 shrext=
10824 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010825 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010826 dir="$additional_libdir"
10827 if test -n "$acl_shlibext"; then
10828 if test -f "$dir/$libname$shrext"; then
10829 found_dir="$dir"
10830 found_so="$dir/$libname$shrext"
10831 else
10832 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10833 ver=`(cd "$dir" && \
10834 for f in "$libname$shrext".*; do echo "$f"; done \
10835 | sed -e "s,^$libname$shrext\\\\.,," \
10836 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10837 | sed 1q ) 2>/dev/null`
10838 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10839 found_dir="$dir"
10840 found_so="$dir/$libname$shrext.$ver"
10841 fi
10842 else
10843 eval library_names=\"$acl_library_names_spec\"
10844 for f in $library_names; do
10845 if test -f "$dir/$f"; then
10846 found_dir="$dir"
10847 found_so="$dir/$f"
10848 break
10849 fi
10850 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010851 fi
10852 fi
10853 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010854 if test "X$found_dir" = "X"; then
10855 if test -f "$dir/$libname.$acl_libext"; then
10856 found_dir="$dir"
10857 found_a="$dir/$libname.$acl_libext"
10858 fi
10859 fi
10860 if test "X$found_dir" != "X"; then
10861 if test -f "$dir/$libname.la"; then
10862 found_la="$dir/$libname.la"
10863 fi
10864 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010865 fi
10866 if test "X$found_dir" = "X"; then
10867 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010868
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010869 acl_save_prefix="$prefix"
10870 prefix="$acl_final_prefix"
10871 acl_save_exec_prefix="$exec_prefix"
10872 exec_prefix="$acl_final_exec_prefix"
10873 eval x=\"$x\"
10874 exec_prefix="$acl_save_exec_prefix"
10875 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010876
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010877 case "$x" in
10878 -L*)
10879 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010880 if test -n "$acl_shlibext"; then
10881 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010882 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010883 found_so="$dir/$libname$shrext"
10884 else
10885 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10886 ver=`(cd "$dir" && \
10887 for f in "$libname$shrext".*; do echo "$f"; done \
10888 | sed -e "s,^$libname$shrext\\\\.,," \
10889 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10890 | sed 1q ) 2>/dev/null`
10891 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10892 found_dir="$dir"
10893 found_so="$dir/$libname$shrext.$ver"
10894 fi
10895 else
10896 eval library_names=\"$acl_library_names_spec\"
10897 for f in $library_names; do
10898 if test -f "$dir/$f"; then
10899 found_dir="$dir"
10900 found_so="$dir/$f"
10901 break
10902 fi
10903 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010904 fi
10905 fi
10906 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010907 if test "X$found_dir" = "X"; then
10908 if test -f "$dir/$libname.$acl_libext"; then
10909 found_dir="$dir"
10910 found_a="$dir/$libname.$acl_libext"
10911 fi
10912 fi
10913 if test "X$found_dir" != "X"; then
10914 if test -f "$dir/$libname.la"; then
10915 found_la="$dir/$libname.la"
10916 fi
10917 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010918 ;;
10919 esac
10920 if test "X$found_dir" != "X"; then
10921 break
10922 fi
10923 done
10924 fi
10925 if test "X$found_dir" != "X"; then
10926 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10927 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010928 if test "$enable_rpath" = no \
10929 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10930 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010931 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10932 else
10933 haveit=
10934 for x in $ltrpathdirs; do
10935 if test "X$x" = "X$found_dir"; then
10936 haveit=yes
10937 break
10938 fi
10939 done
10940 if test -z "$haveit"; then
10941 ltrpathdirs="$ltrpathdirs $found_dir"
10942 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010943 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010944 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10945 else
Theodore Ts'o93613952014-07-03 23:44:13 -040010946 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010947 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10948 haveit=
10949 for x in $rpathdirs; do
10950 if test "X$x" = "X$found_dir"; then
10951 haveit=yes
10952 break
10953 fi
10954 done
10955 if test -z "$haveit"; then
10956 rpathdirs="$rpathdirs $found_dir"
10957 fi
10958 else
10959 haveit=
10960 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010961
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010962 acl_save_prefix="$prefix"
10963 prefix="$acl_final_prefix"
10964 acl_save_exec_prefix="$exec_prefix"
10965 exec_prefix="$acl_final_exec_prefix"
10966 eval x=\"$x\"
10967 exec_prefix="$acl_save_exec_prefix"
10968 prefix="$acl_save_prefix"
10969
10970 if test "X$x" = "X-L$found_dir"; then
10971 haveit=yes
10972 break
10973 fi
10974 done
10975 if test -z "$haveit"; then
10976 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10977 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010978 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010979 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10980 else
10981 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10982 fi
10983 fi
10984 fi
10985 fi
10986 else
10987 if test "X$found_a" != "X"; then
10988 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10989 else
10990 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10991 fi
10992 fi
10993 additional_includedir=
10994 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040010995 */$acl_libdirstem | */$acl_libdirstem/)
10996 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10997 if test "$name" = 'intl'; then
10998 LIBINTL_PREFIX="$basedir"
10999 fi
11000 additional_includedir="$basedir/include"
11001 ;;
11002 */$acl_libdirstem2 | */$acl_libdirstem2/)
11003 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11004 if test "$name" = 'intl'; then
11005 LIBINTL_PREFIX="$basedir"
11006 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011007 additional_includedir="$basedir/include"
11008 ;;
11009 esac
11010 if test "X$additional_includedir" != "X"; then
11011 if test "X$additional_includedir" != "X/usr/include"; then
11012 haveit=
11013 if test "X$additional_includedir" = "X/usr/local/include"; then
11014 if test -n "$GCC"; then
11015 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011016 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011017 esac
11018 fi
11019 fi
11020 if test -z "$haveit"; then
11021 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011022
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011023 acl_save_prefix="$prefix"
11024 prefix="$acl_final_prefix"
11025 acl_save_exec_prefix="$exec_prefix"
11026 exec_prefix="$acl_final_exec_prefix"
11027 eval x=\"$x\"
11028 exec_prefix="$acl_save_exec_prefix"
11029 prefix="$acl_save_prefix"
11030
11031 if test "X$x" = "X-I$additional_includedir"; then
11032 haveit=yes
11033 break
11034 fi
11035 done
11036 if test -z "$haveit"; then
11037 if test -d "$additional_includedir"; then
11038 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11039 fi
11040 fi
11041 fi
11042 fi
11043 fi
11044 if test -n "$found_la"; then
11045 save_libdir="$libdir"
11046 case "$found_la" in
11047 */* | *\\*) . "$found_la" ;;
11048 *) . "./$found_la" ;;
11049 esac
11050 libdir="$save_libdir"
11051 for dep in $dependency_libs; do
11052 case "$dep" in
11053 -L*)
11054 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011055 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11056 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011057 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011058 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11059 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011060 if test -n "$GCC"; then
11061 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011062 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011063 esac
11064 fi
11065 fi
11066 if test -z "$haveit"; then
11067 haveit=
11068 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011069
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011070 acl_save_prefix="$prefix"
11071 prefix="$acl_final_prefix"
11072 acl_save_exec_prefix="$exec_prefix"
11073 exec_prefix="$acl_final_exec_prefix"
11074 eval x=\"$x\"
11075 exec_prefix="$acl_save_exec_prefix"
11076 prefix="$acl_save_prefix"
11077
11078 if test "X$x" = "X-L$additional_libdir"; then
11079 haveit=yes
11080 break
11081 fi
11082 done
11083 if test -z "$haveit"; then
11084 if test -d "$additional_libdir"; then
11085 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11086 fi
11087 fi
11088 haveit=
11089 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011090
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011091 acl_save_prefix="$prefix"
11092 prefix="$acl_final_prefix"
11093 acl_save_exec_prefix="$exec_prefix"
11094 exec_prefix="$acl_final_exec_prefix"
11095 eval x=\"$x\"
11096 exec_prefix="$acl_save_exec_prefix"
11097 prefix="$acl_save_prefix"
11098
11099 if test "X$x" = "X-L$additional_libdir"; then
11100 haveit=yes
11101 break
11102 fi
11103 done
11104 if test -z "$haveit"; then
11105 if test -d "$additional_libdir"; then
11106 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11107 fi
11108 fi
11109 fi
11110 fi
11111 ;;
11112 -R*)
11113 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11114 if test "$enable_rpath" != no; then
11115 haveit=
11116 for x in $rpathdirs; do
11117 if test "X$x" = "X$dir"; then
11118 haveit=yes
11119 break
11120 fi
11121 done
11122 if test -z "$haveit"; then
11123 rpathdirs="$rpathdirs $dir"
11124 fi
11125 haveit=
11126 for x in $ltrpathdirs; do
11127 if test "X$x" = "X$dir"; then
11128 haveit=yes
11129 break
11130 fi
11131 done
11132 if test -z "$haveit"; then
11133 ltrpathdirs="$ltrpathdirs $dir"
11134 fi
11135 fi
11136 ;;
11137 -l*)
11138 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11139 ;;
11140 *.la)
11141 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11142 ;;
11143 *)
11144 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11145 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11146 ;;
11147 esac
11148 done
11149 fi
11150 else
11151 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11152 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11153 fi
11154 fi
11155 fi
11156 done
11157 done
11158 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011159 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011160 alldirs=
11161 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011162 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011163 done
11164 acl_save_libdir="$libdir"
11165 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011166 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011167 libdir="$acl_save_libdir"
11168 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11169 else
11170 for found_dir in $rpathdirs; do
11171 acl_save_libdir="$libdir"
11172 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011173 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011174 libdir="$acl_save_libdir"
11175 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11176 done
11177 fi
11178 fi
11179 if test "X$ltrpathdirs" != "X"; then
11180 for found_dir in $ltrpathdirs; do
11181 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11182 done
11183 fi
11184
Theodore Ts'o93613952014-07-03 23:44:13 -040011185
11186
11187
11188
11189
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011191$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011192if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011193 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011194else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011195 gt_save_CPPFLAGS="$CPPFLAGS"
11196 CPPFLAGS="$CPPFLAGS $INCINTL"
11197 gt_save_LIBS="$LIBS"
11198 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011200/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011201
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011202#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011203$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011204extern int _nl_msg_cat_cntr;
11205extern
11206#ifdef __cplusplus
11207"C"
11208#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011209const char *_nl_expand_alias (const char *);
11210
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011211int
11212main ()
11213{
Theodore Ts'o93613952014-07-03 23:44:13 -040011214
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011215bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011216return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11217
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011218 ;
11219 return 0;
11220}
11221_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011222if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011223 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011224else
Theodore Ts'o93613952014-07-03 23:44:13 -040011225 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011226fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011227rm -f core conftest.err conftest.$ac_objext \
11228 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011229 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011230 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011232/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011233
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011234#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011235$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011236extern int _nl_msg_cat_cntr;
11237extern
11238#ifdef __cplusplus
11239"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011240#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011241const char *_nl_expand_alias (const char *);
11242
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011243int
11244main ()
11245{
Theodore Ts'o93613952014-07-03 23:44:13 -040011246
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011247bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011248return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11249
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011250 ;
11251 return 0;
11252}
11253_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011254if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011255 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011256 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11257 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011258
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011259fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011260rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011262 fi
11263 CPPFLAGS="$gt_save_CPPFLAGS"
11264 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011265fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011266eval ac_res=\$$gt_func_gnugettext_libintl
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11268$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011269 fi
11270
Theodore Ts'o93613952014-07-03 23:44:13 -040011271 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11272 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011273 && test "$PACKAGE" != gettext-runtime \
11274 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011275 gt_use_preinstalled_gnugettext=yes
11276 else
11277 LIBINTL=
11278 LTLIBINTL=
11279 INCINTL=
11280 fi
11281
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011282
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011283 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11284 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011285 fi
11286 fi
11287
11288 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011289 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011290 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011291 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11292 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011293 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011294 fi
11295
Theodore Ts'o93613952014-07-03 23:44:13 -040011296 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011297 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11298 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11299 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011300 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011301
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011302
Theodore Ts'o93613952014-07-03 23:44:13 -040011303 if test -n "$INTL_MACOSX_LIBS"; then
11304 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11305 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11306 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11307 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11308 fi
11309 fi
11310
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011311 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11312 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011313
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011314$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011315
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011316 else
11317 USE_NLS=no
11318 fi
11319 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011320
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011322$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011324$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011325 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011327$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011328 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011329 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011330 gt_source="external libintl"
11331 else
11332 gt_source="libc"
11333 fi
11334 else
11335 gt_source="included intl directory"
11336 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011338$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011339 fi
11340
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011341 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011342
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011343 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011344 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011346$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011348$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011349
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011350 for element in $INCINTL; do
11351 haveit=
11352 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011353
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011354 acl_save_prefix="$prefix"
11355 prefix="$acl_final_prefix"
11356 acl_save_exec_prefix="$exec_prefix"
11357 exec_prefix="$acl_final_exec_prefix"
11358 eval x=\"$x\"
11359 exec_prefix="$acl_save_exec_prefix"
11360 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011361
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011362 if test "X$x" = "X$element"; then
11363 haveit=yes
11364 break
11365 fi
11366 done
11367 if test -z "$haveit"; then
11368 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11369 fi
11370 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011371
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011372 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011373
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011374
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011375$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011376
11377
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011378$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011379
11380 fi
11381
11382 POSUB=po
11383 fi
11384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011385
11386 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011387 BUILD_INCLUDED_LIBINTL=yes
11388 fi
11389
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011390
11391
11392
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011393
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011394 nls_cv_header_intl=
11395 nls_cv_header_libgt=
11396
11397 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011398
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011399
11400 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011401
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011402
11403 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011404
11405
Theodore Ts'o93613952014-07-03 23:44:13 -040011406 INTLOBJS=
11407 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011408 INTLOBJS="\$(GETTOBJS)"
11409 fi
11410
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011411
11412 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011413
11414
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011415
11416 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011417
11418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011419
11420
11421
11422
11423
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011425$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11426set x ${MAKE-make}
11427ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011428if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011429 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011430else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011431 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011432SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011433all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011434 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011435_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011436# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011437case `${MAKE-make} -f conftest.make 2>/dev/null` in
11438 *@@@%%%=?*=@@@%%%*)
11439 eval ac_cv_prog_make_${ac_make}_set=yes;;
11440 *)
11441 eval ac_cv_prog_make_${ac_make}_set=no;;
11442esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011443rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011444fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011445if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011447$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011448 SET_MAKE=
11449else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011451$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011452 SET_MAKE="MAKE=${MAKE-make}"
11453fi
11454
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011456$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011457if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011458 $as_echo_n "(cached) " >&6
11459else
11460 _cv_gnu_make_command='' ;
11461 for a in "$MAKE" make gmake gnumake ; do
11462 if test -z "$a" ; then continue ; fi ;
11463 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11464 _cv_gnu_make_command=$a ;
11465 break;
11466 fi
11467 done ;
11468
11469fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011471$as_echo "$_cv_gnu_make_command" >&6; } ;
11472 if test "x$_cv_gnu_make_command" != "x" ; then
11473 ifGNUmake='' ;
11474 ifNotGNUmake='#' ;
11475 else
11476 ifGNUmake='#' ;
11477 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011479$as_echo "\"Not found\"" >&6; };
11480 fi
11481
11482
11483
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011484# Extract the first word of "ln", so it can be a program name with args.
11485set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011487$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011488if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011489 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011490else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011491 case $LN in
11492 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011493 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11494 ;;
11495 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497for as_dir in $PATH
11498do
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011501 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011503 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011505 break 2
11506 fi
11507done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011508 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011509IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011510
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011511 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11512 ;;
11513esac
11514fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011515LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011516if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011518$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011519else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011521$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011522fi
11523
Theodore Ts'oe1052142006-10-21 21:46:47 -040011524
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011526$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011527LN_S=$as_ln_s
11528if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011530$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011531else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011533$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011534fi
11535
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011536# Extract the first word of "mv", so it can be a program name with args.
11537set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011539$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011540if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011541 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011542else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011543 case $MV in
11544 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011545 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11546 ;;
11547 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549for as_dir in $PATH
11550do
11551 IFS=$as_save_IFS
11552 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011553 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011555 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011557 break 2
11558 fi
11559done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011560 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011561IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011562
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011563 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11564 ;;
11565esac
11566fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011567MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011568if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011570$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011571else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011573$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011574fi
11575
Theodore Ts'oe1052142006-10-21 21:46:47 -040011576
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011577# Extract the first word of "cp", so it can be a program name with args.
11578set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011580$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011581if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011582 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011583else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011584 case $CP in
11585 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011586 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11587 ;;
11588 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590for as_dir in $PATH
11591do
11592 IFS=$as_save_IFS
11593 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011594 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011596 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011598 break 2
11599 fi
11600done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011601 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011602IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011603
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011604 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11605 ;;
11606esac
11607fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011608CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011609if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011611$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011612else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011614$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011615fi
11616
Theodore Ts'oe1052142006-10-21 21:46:47 -040011617
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011618# Extract the first word of "rm", so it can be a program name with args.
11619set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011621$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011622if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011623 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011624else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011625 case $RM in
11626 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011627 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11628 ;;
11629 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631for as_dir in $PATH
11632do
11633 IFS=$as_save_IFS
11634 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011635 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011637 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011639 break 2
11640 fi
11641done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011642 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011643IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011644
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011645 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11646 ;;
11647esac
11648fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011649RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011650if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011652$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011653else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011655$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011656fi
11657
Theodore Ts'oe1052142006-10-21 21:46:47 -040011658
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011659# Extract the first word of "chmod", so it can be a program name with args.
11660set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011662$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011663if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011664 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011665else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011666 case $CHMOD in
11667 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011668 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11669 ;;
11670 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672for as_dir in $PATH
11673do
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011676 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011678 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011680 break 2
11681 fi
11682done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011683 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011684IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011685
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011686 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11687 ;;
11688esac
11689fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011690CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011691if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011693$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011694else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011696$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011697fi
11698
Theodore Ts'oe1052142006-10-21 21:46:47 -040011699
Theodore Ts'o32237012005-01-17 19:13:39 -050011700for ac_prog in gawk mawk nawk awk
11701do
11702 # Extract the first word of "$ac_prog", so it can be a program name with args.
11703set dummy $ac_prog; 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_prog_AWK+:} 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'o32237012005-01-17 19:13:39 -050011709 if test -n "$AWK"; then
11710 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11711else
11712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011713for as_dir in $PATH
11714do
11715 IFS=$as_save_IFS
11716 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011717 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011719 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011721 break 2
11722 fi
11723done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011724 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011725IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011726
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011727fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011728fi
11729AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011730if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011732$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011733else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011735$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011736fi
11737
Theodore Ts'oe1052142006-10-21 21:46:47 -040011738
Theodore Ts'o32237012005-01-17 19:13:39 -050011739 test -n "$AWK" && break
11740done
11741
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011743$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011744if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011745 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011746else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011747 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11748 then ac_cv_path_EGREP="$GREP -E"
11749 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011750 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011751 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011752 # Loop through the user's path and test for each of PROGNAME-LIST
11753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11755do
11756 IFS=$as_save_IFS
11757 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011758 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011761 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011762# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011763 # Check for GNU $ac_path_EGREP
11764case `"$ac_path_EGREP" --version 2>&1` in
11765*GNU*)
11766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11767*)
11768 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011769 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011770 while :
11771 do
11772 cat "conftest.in" "conftest.in" >"conftest.tmp"
11773 mv "conftest.tmp" "conftest.in"
11774 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011775 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011778 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11780 # Best one so far, save it but keep looking for a better one
11781 ac_cv_path_EGREP="$ac_path_EGREP"
11782 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011783 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011784 # 10*(2^10) chars as input seems more than enough
11785 test $ac_count -gt 10 && break
11786 done
11787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11788esac
11789
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011790 $ac_path_EGREP_found && break 3
11791 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011792 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011793 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011794IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011795 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011796 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 +010011797 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011798else
11799 ac_cv_path_EGREP=$EGREP
11800fi
11801
Theodore Ts'oe1052142006-10-21 21:46:47 -040011802 fi
11803fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011805$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011806 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011807
11808
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011809# Extract the first word of "sed", so it can be a program name with args.
11810set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011812$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011813if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011814 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011815else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011816 case $SED in
11817 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011818 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11819 ;;
11820 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822for as_dir in $PATH
11823do
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011826 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011828 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011830 break 2
11831 fi
11832done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011833 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011834IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011835
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011836 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11837 ;;
11838esac
11839fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011840SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011841if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011843$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011844else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011846$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011847fi
11848
Theodore Ts'oe1052142006-10-21 21:46:47 -040011849
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011850# Extract the first word of "perl", so it can be a program name with args.
11851set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011853$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011854if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011855 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011856else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011857 case $PERL in
11858 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011859 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11860 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011861 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863for as_dir in $PATH
11864do
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011867 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011869 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011871 break 2
11872 fi
11873done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011874 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011875IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011876
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011877 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11878 ;;
11879esac
11880fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011881PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011882if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011884$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011885else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011887$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011888fi
11889
Theodore Ts'oe1052142006-10-21 21:46:47 -040011890
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011891# Extract the first word of "ldconfig", so it can be a program name with args.
11892set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011894$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011895if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011896 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011897else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011898 case $LDCONFIG in
11899 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011900 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11901 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011902 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904for as_dir in $PATH
11905do
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011908 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011910 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011912 break 2
11913 fi
11914done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011915 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011916IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011917
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011918 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11919 ;;
11920esac
11921fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011922LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011923if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011925$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011926else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011928$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011929fi
11930
Theodore Ts'oe1052142006-10-21 21:46:47 -040011931
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011932if test -n "$ac_tool_prefix"; then
11933 # 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 +000011934set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011936$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011937if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011938 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011939else
11940 if test -n "$AR"; then
11941 ac_cv_prog_AR="$AR" # Let the user override the test.
11942else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944for as_dir in $PATH
11945do
11946 IFS=$as_save_IFS
11947 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011948 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011950 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011952 break 2
11953 fi
11954done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011955 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011956IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011957
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011958fi
11959fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011960AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011961if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011963$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011964else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011966$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011967fi
11968
Theodore Ts'oe1052142006-10-21 21:46:47 -040011969
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011970fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011971if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011972 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011973 # Extract the first word of "ar", so it can be a program name with args.
11974set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011976$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011977if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011978 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011979else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011980 if test -n "$ac_ct_AR"; then
11981 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011982else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11984for as_dir in $PATH
11985do
11986 IFS=$as_save_IFS
11987 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011988 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011990 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011992 break 2
11993 fi
11994done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011995 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011996IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011997
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011998fi
11999fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012000ac_ct_AR=$ac_cv_prog_ac_ct_AR
12001if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012003$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012004else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012006$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012007fi
12008
Theodore Ts'oe1052142006-10-21 21:46:47 -040012009 if test "x$ac_ct_AR" = x; then
12010 AR="ar"
12011 else
12012 case $cross_compiling:$ac_tool_warned in
12013yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012014{ $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 +010012015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012016ac_tool_warned=yes ;;
12017esac
12018 AR=$ac_ct_AR
12019 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012020else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012021 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012022fi
12023
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012024if test -n "$ac_tool_prefix"; then
12025 # 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 +000012026set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012028$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012029if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012030 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012031else
12032 if test -n "$RANLIB"; then
12033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12034else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036for as_dir in $PATH
12037do
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012040 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012044 break 2
12045 fi
12046done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012047 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012048IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012049
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012050fi
12051fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012052RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012053if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012055$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012056else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012058$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012059fi
12060
Theodore Ts'oe1052142006-10-21 21:46:47 -040012061
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012062fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012063if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012065 # Extract the first word of "ranlib", so it can be a program name with args.
12066set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012068$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012069if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012070 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012071else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012072 if test -n "$ac_ct_RANLIB"; then
12073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012074else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076for as_dir in $PATH
12077do
12078 IFS=$as_save_IFS
12079 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012080 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012082 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012084 break 2
12085 fi
12086done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012087 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012088IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012089
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012090fi
12091fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012092ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12093if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012095$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012096else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012098$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012099fi
12100
Theodore Ts'oe1052142006-10-21 21:46:47 -040012101 if test "x$ac_ct_RANLIB" = x; then
12102 RANLIB=":"
12103 else
12104 case $cross_compiling:$ac_tool_warned in
12105yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012106{ $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 +010012107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012108ac_tool_warned=yes ;;
12109esac
12110 RANLIB=$ac_ct_RANLIB
12111 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012112else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012113 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012114fi
12115
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012116if test -n "$ac_tool_prefix"; then
12117 # 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 +000012118set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012120$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012121if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012122 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012123else
12124 if test -n "$STRIP"; then
12125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12126else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012132 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012134 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012136 break 2
12137 fi
12138done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012139 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012140IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012141
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012142fi
12143fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012144STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012145if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012147$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012148else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012150$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012151fi
12152
Theodore Ts'oe1052142006-10-21 21:46:47 -040012153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012154fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012155if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012156 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012157 # Extract the first word of "strip", so it can be a program name with args.
12158set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012160$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012161if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012162 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012163else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012164 if test -n "$ac_ct_STRIP"; then
12165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012166else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168for as_dir in $PATH
12169do
12170 IFS=$as_save_IFS
12171 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012172 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012174 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012176 break 2
12177 fi
12178done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012179 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012180IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012181
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012182fi
12183fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12185if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012187$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012188else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012190$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012191fi
12192
Theodore Ts'oe1052142006-10-21 21:46:47 -040012193 if test "x$ac_ct_STRIP" = x; then
12194 STRIP=":"
12195 else
12196 case $cross_compiling:$ac_tool_warned in
12197yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012198{ $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 +010012199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012200ac_tool_warned=yes ;;
12201esac
12202 STRIP=$ac_ct_STRIP
12203 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012204else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012205 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012206fi
12207
Manish Katiyar7321d942008-04-14 17:20:03 +053012208# Extract the first word of "makeinfo", so it can be a program name with args.
12209set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012211$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012212if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012213 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012214else
12215 if test -n "$MAKEINFO"; then
12216 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12217else
12218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219for as_dir in $PATH
12220do
12221 IFS=$as_save_IFS
12222 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012223 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012225 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012227 break 2
12228 fi
12229done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012230 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012231IFS=$as_save_IFS
12232
12233fi
12234fi
12235MAKEINFO=$ac_cv_prog_MAKEINFO
12236if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012238$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012239else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012241$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012242fi
12243
12244
12245if test "_$MAKEINFO" = "_"; then
12246 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12247else
12248 case "$MAKEINFO" in
12249 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012251*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012252$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012253*** Makeinfo is missing. Info documentation will not be built." >&2;}
12254 ;;
12255 *)
12256 ;;
12257 esac
12258fi
12259
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012260
Theodore Ts'o6c133521999-07-03 20:37:03 +000012261# See if we need a separate native compiler.
12262if test $cross_compiling = no; then
12263 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012264
Theodore Ts'o6c133521999-07-03 20:37:03 +000012265else
12266 for ac_prog in gcc cc
12267do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012268 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012269set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012271$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012272if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012273 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012274else
12275 if test -n "$BUILD_CC"; then
12276 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12277else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012280do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012283 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012285 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012287 break 2
12288 fi
12289done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012290 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012291IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012293fi
12294fi
12295BUILD_CC=$ac_cv_prog_BUILD_CC
12296if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012298$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012299else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012301$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012302fi
12303
Theodore Ts'oe1052142006-10-21 21:46:47 -040012304
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012305 test -n "$BUILD_CC" && break
12306done
12307
12308fi
Theodore Ts'o74f2c4a2015-06-19 19:28:25 -040012309for 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/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.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 -050012310do :
12311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12312ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012313if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012314 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012315#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012316_ACEOF
12317
12318fi
12319
12320done
12321
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012322for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012323do :
12324 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012325#if HAVE_SYS_TYPES_H
12326#include <sys/types.h>
12327#endif
12328#if HAVE_SYS_SOCKET
12329#include <sys/socket.h>
12330#endif
12331
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012332"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012333if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012334 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012335#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012336_ACEOF
12337
12338fi
12339
12340done
12341
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012342for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012343do :
12344 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012345if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012346 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012347#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012348_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012349
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012350ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012351if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012352
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012353$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012354
12355fi
12356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012357fi
12358done
12359
12360
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012361ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12362"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012363if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012364
12365$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012366
12367fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012368
Theodore Ts'o28739272014-01-03 00:26:43 -050012369ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12370if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12371
12372cat >>confdefs.h <<_ACEOF
12373#define HAVE_STRUCT_STAT_ST_ATIM 1
12374_ACEOF
12375
12376
12377fi
12378
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012379ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12380"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012381if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012382
12383$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012384
Theodore Ts'offf45482003-04-13 00:44:19 -040012385fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012386
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012387ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12388"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012389if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012390
12391$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012392
12393fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012394
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012395ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012396 #define _LARGEFILE64_SOURCE
12397 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012398"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012399if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012400
12401$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012402
12403fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012404
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012405# The cast to long int works around a bug in the HP C Compiler
12406# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12407# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12408# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012410$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012411if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012412 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012413else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012414 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 -050012415
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012416else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012417 if test "$ac_cv_type_short" = yes; then
12418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012420as_fn_error 77 "cannot compute sizeof (short)
12421See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012422 else
12423 ac_cv_sizeof_short=0
12424 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012425fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012426
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012427fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012429$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012430
12431
12432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012433cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012434#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012435_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012436
12437
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012438# The cast to long int works around a bug in the HP C Compiler
12439# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12440# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12441# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012443$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012444if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012445 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012446else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012447 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 -050012448
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012449else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012450 if test "$ac_cv_type_int" = yes; then
12451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012453as_fn_error 77 "cannot compute sizeof (int)
12454See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012455 else
12456 ac_cv_sizeof_int=0
12457 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012458fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012459
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012460fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012462$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012463
12464
12465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012466cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012467#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012468_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012469
12470
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012471# The cast to long int works around a bug in the HP C Compiler
12472# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12473# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12474# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012476$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012477if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012478 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012479else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012480 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 -050012481
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012482else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012483 if test "$ac_cv_type_long" = yes; then
12484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012486as_fn_error 77 "cannot compute sizeof (long)
12487See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012488 else
12489 ac_cv_sizeof_long=0
12490 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012491fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012493fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012495$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012496
12497
12498
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012499cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012500#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012501_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012502
12503
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012504# The cast to long int works around a bug in the HP C Compiler
12505# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12506# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12507# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012509$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012510if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012511 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012512else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012513 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 -050012514
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012515else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012516 if test "$ac_cv_type_long_long" = yes; then
12517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012519as_fn_error 77 "cannot compute sizeof (long long)
12520See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012521 else
12522 ac_cv_sizeof_long_long=0
12523 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012524fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012525
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012526fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012528$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012529
12530
12531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012533#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012534_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012535
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012536
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012537# The cast to long int works around a bug in the HP C Compiler
12538# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12539# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12540# This bug is HP SR number 8606223364.
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12542$as_echo_n "checking size of off_t... " >&6; }
12543if ${ac_cv_sizeof_off_t+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545else
12546 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12547
12548else
12549 if test "$ac_cv_type_off_t" = yes; then
12550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12552as_fn_error 77 "cannot compute sizeof (off_t)
12553See \`config.log' for more details" "$LINENO" 5; }
12554 else
12555 ac_cv_sizeof_off_t=0
12556 fi
12557fi
12558
12559fi
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12561$as_echo "$ac_cv_sizeof_off_t" >&6; }
12562
12563
12564
12565cat >>confdefs.h <<_ACEOF
12566#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12567_ACEOF
12568
12569
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012570SIZEOF_SHORT=$ac_cv_sizeof_short
12571SIZEOF_INT=$ac_cv_sizeof_int
12572SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012573SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012574SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12575
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012576
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012577
12578
12579
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012581$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012582if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012583 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012584else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012585 ac_cv_c_bigendian=unknown
12586 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012588/* end confdefs.h. */
12589#ifndef __APPLE_CC__
12590 not a universal capable compiler
12591 #endif
12592 typedef int dummy;
12593
12594_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012595if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012596
12597 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012598 # there are at least two -arch flags with different values.
12599 ac_arch=
12600 ac_prev=
12601 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12602 if test -n "$ac_prev"; then
12603 case $ac_word in
12604 i?86 | x86_64 | ppc | ppc64)
12605 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12606 ac_arch=$ac_word
12607 else
12608 ac_cv_c_bigendian=universal
12609 break
12610 fi
12611 ;;
12612 esac
12613 ac_prev=
12614 elif test "x$ac_word" = "x-arch"; then
12615 ac_prev=arch
12616 fi
12617 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012618fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620 if test $ac_cv_c_bigendian = unknown; then
12621 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012623/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012624#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012625 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012626
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012627int
12628main ()
12629{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012630#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12631 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12632 && LITTLE_ENDIAN)
12633 bogus endian macros
12634 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012635
12636 ;
12637 return 0;
12638}
12639_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012640if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012641 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012643/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012644#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012645 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012646
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012647int
12648main ()
12649{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012650#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012651 not big endian
12652 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012653
12654 ;
12655 return 0;
12656}
12657_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012658if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012659 ac_cv_c_bigendian=yes
12660else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012661 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012662fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012664fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12666 fi
12667 if test $ac_cv_c_bigendian = unknown; then
12668 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012670/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012671#include <limits.h>
12672
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012673int
12674main ()
12675{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012676#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12677 bogus endian macros
12678 #endif
12679
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012680 ;
12681 return 0;
12682}
12683_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012684if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012685 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012687/* end confdefs.h. */
12688#include <limits.h>
12689
12690int
12691main ()
12692{
12693#ifndef _BIG_ENDIAN
12694 not big endian
12695 #endif
12696
12697 ;
12698 return 0;
12699}
12700_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012701if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012702 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012703else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012704 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012705fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012707fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12709 fi
12710 if test $ac_cv_c_bigendian = unknown; then
12711 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012712 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012713 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012715/* end confdefs.h. */
12716short int ascii_mm[] =
12717 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12718 short int ascii_ii[] =
12719 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12720 int use_ascii (int i) {
12721 return ascii_mm[i] + ascii_ii[i];
12722 }
12723 short int ebcdic_ii[] =
12724 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12725 short int ebcdic_mm[] =
12726 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12727 int use_ebcdic (int i) {
12728 return ebcdic_mm[i] + ebcdic_ii[i];
12729 }
12730 extern int foo;
12731
12732int
12733main ()
12734{
12735return use_ascii (foo) == use_ebcdic (foo);
12736 ;
12737 return 0;
12738}
12739_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012740if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012741 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12742 ac_cv_c_bigendian=yes
12743 fi
12744 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12745 if test "$ac_cv_c_bigendian" = unknown; then
12746 ac_cv_c_bigendian=no
12747 else
12748 # finding both strings is unlikely to happen, but who knows?
12749 ac_cv_c_bigendian=unknown
12750 fi
12751 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012752fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012754else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012756/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012757$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012758int
12759main ()
12760{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012761
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012762 /* Are we little or big endian? From Harbison&Steele. */
12763 union
12764 {
12765 long int l;
12766 char c[sizeof (long int)];
12767 } u;
12768 u.l = 1;
12769 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012770
12771 ;
12772 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012773}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012774_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012775if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012776 ac_cv_c_bigendian=no
12777else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012778 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012779fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12781 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012782fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012783
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012784 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012785fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012787$as_echo "$ac_cv_c_bigendian" >&6; }
12788 case $ac_cv_c_bigendian in #(
12789 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012790 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012791;; #(
12792 no)
12793 ;; #(
12794 universal)
12795
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012796$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012797
12798 ;; #(
12799 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012800 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012801 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012802 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012803
Chen Qi91f04682014-05-05 21:08:42 -040012804if test $cross_compiling = no; then
12805 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12806else
12807 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12808fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012809ASM_TYPES_HEADER=./asm_types.h
12810
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012811echo "/* These defines are needed for the public ext2fs.h header file */" \
12812 > public_config.h
12813if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12814 uniq tmp_config.$$ >> public_config.h
12815else
12816 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12817fi
12818if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12819 uniq tmp_config.$$ >> public_config.h
12820else
12821 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12822fi
12823rm -f tmp_config.$$
12824PUBLIC_CONFIG_HEADER=./public_config.h
12825
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012826for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012827do :
12828 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012829if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012830 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012831#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012832_ACEOF
12833
12834fi
12835
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012836done
12837
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012838ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012839if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012840
12841cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012842#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012843_ACEOF
12844
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012845
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012846fi
12847
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012848{ $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 +010012849$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012850if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012851 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012852else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012854/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012855#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012856int
12857main ()
12858{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012859struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012860 ;
12861 return 0;
12862}
12863_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012864if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012865 e2fsprogs_cv_struct_st_flags=yes
12866else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012867 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012868fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870fi
12871
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012873$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012874if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012876$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012877 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012878 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012879else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012881/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012882#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012883int
12884main ()
12885{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012886struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012887 ;
12888 return 0;
12889}
12890_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012891if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012892 e2fsprogs_cv_struct_st_flags_immut=yes
12893else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012894 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012895fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897fi
12898
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012900$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012901 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012902
12903$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012904
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012905 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012906fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012907ac_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 -050012908 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012909"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012910if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012911
12912cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012913#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012914_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012915
12916fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012917
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012918if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012920$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012921if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012922 $as_echo_n "(cached) " >&6
12923else
12924 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012926/* end confdefs.h. */
12927
12928/* Override any GCC internal prototype to avoid an error.
12929 Use char because int might match the return type of a GCC
12930 builtin and then its argument prototype would still apply. */
12931#ifdef __cplusplus
12932extern "C"
12933#endif
12934char blkid_probe_all ();
12935int
12936main ()
12937{
12938return blkid_probe_all ();
12939 ;
12940 return 0;
12941}
12942_ACEOF
12943for ac_lib in '' blkid; do
12944 if test -z "$ac_lib"; then
12945 ac_res="none required"
12946 else
12947 ac_res=-l$ac_lib
12948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12949 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012950 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012951 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012952fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012953rm -f core conftest.err conftest.$ac_objext \
12954 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012955 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012956 break
12957fi
12958done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012959if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012960
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012961else
12962 ac_cv_search_blkid_probe_all=no
12963fi
12964rm conftest.$ac_ext
12965LIBS=$ac_func_search_save_LIBS
12966fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012968$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12969ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012970if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12972
12973fi
12974
12975fi
Theodore Ts'o74f2c4a2015-06-19 19:28:25 -040012976for ac_func in __secure_getenv add_key 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 keyctl 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 -050012977do :
12978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12979ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012980if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012981 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012982#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012983_ACEOF
12984
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012985fi
12986done
12987
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012988SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012990$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012991if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012992 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012993else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012994 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012995LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012997/* end confdefs.h. */
12998
Theodore Ts'oe1052142006-10-21 21:46:47 -040012999/* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013002#ifdef __cplusplus
13003extern "C"
13004#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013005char socket ();
13006int
13007main ()
13008{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013009return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013010 ;
13011 return 0;
13012}
13013_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013014if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013015 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013016else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013017 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013018fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013019rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013021LIBS=$ac_check_lib_save_LIBS
13022fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013024$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013025if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013026 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013027fi
13028
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013029
Darrick J. Wongb291c112014-09-13 15:12:46 -070013030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13031$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13032if ${ac_cv_lib_magic_magic_file+:} false; then :
13033 $as_echo_n "(cached) " >&6
13034else
13035 ac_check_lib_save_LIBS=$LIBS
13036LIBS="-lmagic $LIBS"
13037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038/* end confdefs.h. */
13039
13040/* Override any GCC internal prototype to avoid an error.
13041 Use char because int might match the return type of a GCC
13042 builtin and then its argument prototype would still apply. */
13043#ifdef __cplusplus
13044extern "C"
13045#endif
13046char magic_file ();
13047int
13048main ()
13049{
13050return magic_file ();
13051 ;
13052 return 0;
13053}
13054_ACEOF
13055if ac_fn_c_try_link "$LINENO"; then :
13056 ac_cv_lib_magic_magic_file=yes
13057else
13058 ac_cv_lib_magic_magic_file=no
13059fi
13060rm -f core conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
13062LIBS=$ac_check_lib_save_LIBS
13063fi
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13065$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13066if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13067 MAGIC_LIB=-lmagic
13068for ac_header in magic.h
13069do :
13070 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13071if test "x$ac_cv_header_magic_h" = xyes; then :
13072 cat >>confdefs.h <<_ACEOF
13073#define HAVE_MAGIC_H 1
13074_ACEOF
13075
13076fi
13077
13078done
13079
13080fi
13081
Theodore Ts'od2e3c0d2014-09-21 01:25:58 -040013082if test "$ac_cv_lib_dl_dlopen" = yes ; then
13083 MAGIC_LIB=$DLOPEN_LIB
13084fi
Darrick J. Wongb291c112014-09-13 15:12:46 -070013085
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -070013086FUSE_CMT=
13087FUSE_LIB=
13088# Check whether --enable-fuse2fs was given.
13089if test "${enable_fuse2fs+set}" = set; then :
13090 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13091then
13092 FUSE_CMT="#"
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13094$as_echo "Disabling fuse2fs" >&6; }
13095else
13096 for ac_header in pthread.h fuse.h
13097do :
13098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13099ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13100#define FUSE_USE_VERSION 29
13101"
13102if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13103 cat >>confdefs.h <<_ACEOF
13104#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13105_ACEOF
13106
13107else
13108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13110as_fn_error $? "Cannot find fuse2fs headers.
13111See \`config.log' for more details" "$LINENO" 5; }
13112fi
13113
13114done
13115
13116
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118/* end confdefs.h. */
13119#define FUSE_USE_VERSION 29
13120#ifdef __linux__
13121#include <linux/fs.h>
13122#include <linux/falloc.h>
13123#include <linux/xattr.h>
13124#endif
13125
13126int
13127main ()
13128{
13129
13130 ;
13131 return 0;
13132}
13133_ACEOF
13134if ac_fn_c_try_cpp "$LINENO"; then :
13135
13136else
13137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13139as_fn_error $? "Cannot find fuse2fs Linux headers.
13140See \`config.log' for more details" "$LINENO" 5; }
13141fi
13142rm -f conftest.err conftest.i conftest.$ac_ext
13143
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13145$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13146if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148else
13149 ac_check_lib_save_LIBS=$LIBS
13150LIBS="-losxfuse $LIBS"
13151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152/* end confdefs.h. */
13153
13154/* Override any GCC internal prototype to avoid an error.
13155 Use char because int might match the return type of a GCC
13156 builtin and then its argument prototype would still apply. */
13157#ifdef __cplusplus
13158extern "C"
13159#endif
13160char fuse_main ();
13161int
13162main ()
13163{
13164return fuse_main ();
13165 ;
13166 return 0;
13167}
13168_ACEOF
13169if ac_fn_c_try_link "$LINENO"; then :
13170 ac_cv_lib_osxfuse_fuse_main=yes
13171else
13172 ac_cv_lib_osxfuse_fuse_main=no
13173fi
13174rm -f core conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext conftest.$ac_ext
13176LIBS=$ac_check_lib_save_LIBS
13177fi
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13179$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13180if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13181 FUSE_LIB=-losxfuse
13182else
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13184$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13185if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13186 $as_echo_n "(cached) " >&6
13187else
13188 ac_check_lib_save_LIBS=$LIBS
13189LIBS="-lfuse $LIBS"
13190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191/* end confdefs.h. */
13192
13193/* Override any GCC internal prototype to avoid an error.
13194 Use char because int might match the return type of a GCC
13195 builtin and then its argument prototype would still apply. */
13196#ifdef __cplusplus
13197extern "C"
13198#endif
13199char fuse_main ();
13200int
13201main ()
13202{
13203return fuse_main ();
13204 ;
13205 return 0;
13206}
13207_ACEOF
13208if ac_fn_c_try_link "$LINENO"; then :
13209 ac_cv_lib_fuse_fuse_main=yes
13210else
13211 ac_cv_lib_fuse_fuse_main=no
13212fi
13213rm -f core conftest.err conftest.$ac_objext \
13214 conftest$ac_exeext conftest.$ac_ext
13215LIBS=$ac_check_lib_save_LIBS
13216fi
13217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13218$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13219if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13220 FUSE_LIB=-lfuse
13221else
13222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13224as_fn_error $? "Cannot find fuse library.
13225See \`config.log' for more details" "$LINENO" 5; }
13226fi
13227
13228fi
13229
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13231$as_echo "Enabling fuse2fs" >&6; }
13232fi
13233
13234else
13235 for ac_header in pthread.h fuse.h
13236do :
13237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13238ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13239#define FUSE_USE_VERSION 29
13240#ifdef __linux__
13241# include <linux/fs.h>
13242# include <linux/falloc.h>
13243# include <linux/xattr.h>
13244#endif
13245"
13246if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13247 cat >>confdefs.h <<_ACEOF
13248#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13249_ACEOF
13250
13251else
13252 FUSE_CMT="#"
13253fi
13254
13255done
13256
13257if test -z "$FUSE_CMT"
13258then
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13260$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13261if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13262 $as_echo_n "(cached) " >&6
13263else
13264 ac_check_lib_save_LIBS=$LIBS
13265LIBS="-losxfuse $LIBS"
13266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267/* end confdefs.h. */
13268
13269/* Override any GCC internal prototype to avoid an error.
13270 Use char because int might match the return type of a GCC
13271 builtin and then its argument prototype would still apply. */
13272#ifdef __cplusplus
13273extern "C"
13274#endif
13275char fuse_main ();
13276int
13277main ()
13278{
13279return fuse_main ();
13280 ;
13281 return 0;
13282}
13283_ACEOF
13284if ac_fn_c_try_link "$LINENO"; then :
13285 ac_cv_lib_osxfuse_fuse_main=yes
13286else
13287 ac_cv_lib_osxfuse_fuse_main=no
13288fi
13289rm -f core conftest.err conftest.$ac_objext \
13290 conftest$ac_exeext conftest.$ac_ext
13291LIBS=$ac_check_lib_save_LIBS
13292fi
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13294$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13295if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13296 FUSE_LIB=-losxfuse
13297else
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13299$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13300if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13301 $as_echo_n "(cached) " >&6
13302else
13303 ac_check_lib_save_LIBS=$LIBS
13304LIBS="-lfuse $LIBS"
13305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306/* end confdefs.h. */
13307
13308/* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13311#ifdef __cplusplus
13312extern "C"
13313#endif
13314char fuse_main ();
13315int
13316main ()
13317{
13318return fuse_main ();
13319 ;
13320 return 0;
13321}
13322_ACEOF
13323if ac_fn_c_try_link "$LINENO"; then :
13324 ac_cv_lib_fuse_fuse_main=yes
13325else
13326 ac_cv_lib_fuse_fuse_main=no
13327fi
13328rm -f core conftest.err conftest.$ac_objext \
13329 conftest$ac_exeext conftest.$ac_ext
13330LIBS=$ac_check_lib_save_LIBS
13331fi
13332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13333$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13334if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13335 FUSE_LIB=-lfuse
13336else
13337 FUSE_CMT="#"
13338fi
13339
13340fi
13341
13342fi
13343if test -z "$FUSE_CMT"
13344then
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13346$as_echo "Enabling fuse2fs by default." >&6; }
13347fi
13348
13349fi
13350
13351
13352
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013354$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013355if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013356 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013357else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013359/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013360#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013361
13362_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013364 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013365 ac_cv_have_optreset=yes
13366else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013367 ac_cv_have_optreset=no
13368fi
13369rm -f conftest*
13370
13371fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013373$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013374if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013375
13376$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013377
13378fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013379
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013380SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013381ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013382if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013383
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013384else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013386$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013387if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013388 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013389else
13390 ac_check_lib_save_LIBS=$LIBS
13391LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013393/* end confdefs.h. */
13394
13395/* Override any GCC internal prototype to avoid an error.
13396 Use char because int might match the return type of a GCC
13397 builtin and then its argument prototype would still apply. */
13398#ifdef __cplusplus
13399extern "C"
13400#endif
13401char sem_init ();
13402int
13403main ()
13404{
13405return sem_init ();
13406 ;
13407 return 0;
13408}
13409_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013410if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013411 ac_cv_lib_pthread_sem_init=yes
13412else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013413 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013414fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013415rm -f core conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013417LIBS=$ac_check_lib_save_LIBS
13418fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013420$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013421if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013422 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013423
13424 SEM_INIT_LIB=-lpthread
13425else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013427$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013428if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013429 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013430else
13431 ac_check_lib_save_LIBS=$LIBS
13432LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013434/* end confdefs.h. */
13435
13436/* Override any GCC internal prototype to avoid an error.
13437 Use char because int might match the return type of a GCC
13438 builtin and then its argument prototype would still apply. */
13439#ifdef __cplusplus
13440extern "C"
13441#endif
13442char sem_init ();
13443int
13444main ()
13445{
13446return sem_init ();
13447 ;
13448 return 0;
13449}
13450_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013451if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013452 ac_cv_lib_rt_sem_init=yes
13453else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013454 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013455fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013456rm -f core conftest.err conftest.$ac_objext \
13457 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013458LIBS=$ac_check_lib_save_LIBS
13459fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013461$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013462if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013463 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013464
13465 SEM_INIT_LIB=-lrt
13466else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013468$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013469if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013470 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013471else
13472 ac_check_lib_save_LIBS=$LIBS
13473LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013475/* end confdefs.h. */
13476
13477/* Override any GCC internal prototype to avoid an error.
13478 Use char because int might match the return type of a GCC
13479 builtin and then its argument prototype would still apply. */
13480#ifdef __cplusplus
13481extern "C"
13482#endif
13483char sem_init ();
13484int
13485main ()
13486{
13487return sem_init ();
13488 ;
13489 return 0;
13490}
13491_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013492if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013493 ac_cv_lib_posix4_sem_init=yes
13494else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013495 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013496fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013497rm -f core conftest.err conftest.$ac_objext \
13498 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013499LIBS=$ac_check_lib_save_LIBS
13500fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013502$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013503if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013504 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013505
13506 SEM_INIT_LIB=-lposix4
13507fi
13508
13509fi
13510
13511fi
13512
13513fi
13514
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013516$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013517if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013518 UNI_DIFF_OPTS=-u
13519else
13520 UNI_DIFF_OPTS=-c
13521fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013523$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013524
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013525case "$host_os" in
13526linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013527
13528$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013529
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013530 ;;
13531esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013532LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013533CYGWIN_CMT="#"
13534UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013535case "$host_os" in
13536linux*)
13537 LINUX_CMT=
13538 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013539cygwin)
13540 CYGWIN_CMT=
13541 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013542 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013543esac
13544
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013545
13546
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013547case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013548linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013549 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13550 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013551 { $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 +010013552$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013553 fi
13554 ;;
13555esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013556case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013557linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013558 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013559 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013560 { $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 +010013561$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013562 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013564$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013565 mandir=/usr/share/man
13566 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013567 fi
13568;;
13569esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013570if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013571 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013572 root_prefix="$ac_default_prefix"
13573 else
13574 root_prefix="$prefix"
13575 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013576 root_bindir=$bindir
13577 root_sbindir=$sbindir
13578 root_libdir=$libdir
13579 root_sysconfdir=$sysconfdir
13580else
13581 root_bindir='${root_prefix}/bin'
13582 root_sbindir='${root_prefix}/sbin'
13583 root_libdir='${root_prefix}/lib'
13584 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013585fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013586if test "$bindir" != '${exec_prefix}/bin'; then
13587 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013589$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013590fi
13591if test "$sbindir" != '${exec_prefix}/sbin'; then
13592 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013594$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013595fi
13596if test "$libdir" != '${exec_prefix}/lib'; then
13597 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013599$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013600fi
13601if test "$sysconfdir" != '${prefix}/etc'; then
13602 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013604$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013605fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013606
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013607
13608
13609
13610
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013611
13612# Check whether --with-multiarch was given.
13613if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013614 withval=$with_multiarch; if test "$withval" = "lib64"; then
13615 libdir=/usr/lib64
13616 root_libdir=/lib64
13617else
13618 libdir=$libdir/$withval
13619 root_libdir=$root_libdir/$withval
13620fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013621
13622fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13624$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013625if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013626 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013627else
13628 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013630/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013631#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013632int
13633main ()
13634{
Theodore Ts'oae851481997-04-29 18:13:24 +000013635fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013636 ;
13637 return 0;
13638}
13639_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013640if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013641 ac_cv_e2fsprogs_use_static=yes
13642else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013643 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013644fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013645rm -f core conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013647LDFLAGS=$SAVE_LDFLAGS
13648fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013649
Theodore Ts'odefde781999-01-04 07:39:19 +000013650case "$host_os" in
13651solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013652 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013653;;
13654esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013656$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000013657LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000013658if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013659 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000013660fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013661
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013662case "$host_os" in
13663darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013665$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013666
13667$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013668
13669 ;;
13670esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013671SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13672ET_DIR=`cd ${srcdir}/lib/et; pwd`
13673
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013674
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013675if test "$cross_compiling" = yes ; then
13676 DO_TEST_SUITE=
13677else
13678 DO_TEST_SUITE=check
13679fi
13680
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013681INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13682if test -n "$CPPFLAGS" ; then
13683 INCLUDES="$INCLUDES $CPPFLAGS"
13684fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013685if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013686 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013687fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013688if test -n "$WITH_DIET_LIBC" ; then
13689 INCLUDES="$INCLUDES -D_REENTRANT"
13690fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013691
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013692
13693 MKINSTALLDIRS=
13694 if test -n "$ac_aux_dir"; then
13695 case "$ac_aux_dir" in
13696 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13697 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13698 esac
13699 fi
13700 if test -z "$MKINSTALLDIRS"; then
13701 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13702 fi
13703
13704
Theodore Ts'odd947da2005-11-09 18:37:07 -040013705if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013706 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013707 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013708fi
13709
13710
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013711test -d lib || mkdir lib
13712test -d include || mkdir include
13713test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013714test -d include/asm || mkdir include/asm
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013715if test -z "$UUID_CMT" ; then
13716 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13717 lib/uuid/uuid_types.h"
13718fi
13719if test -z "$BLKID_CMT" ; then
13720 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13721 lib/blkid/blkid_types.h"
13722fi
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013723for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013724 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013725 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13726 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'of34af412015-07-11 23:05:57 -040013727 $uuid_out_list $blkid_out_list lib/support/Makefile \
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013728 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050013729 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013730 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013731 resize/Makefile doc/Makefile intl/Makefile \
13732 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013733 if test -d `dirname ${srcdir}/$i` ; then
13734 outlist="$outlist $i"
13735 fi
13736done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013737ac_config_files="$ac_config_files $outlist"
13738
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013739cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013740# This file is a shell script that caches the results of configure
13741# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013742# scripts and configure runs, see configure's option --config-cache.
13743# It is not useful on other systems. If it contains results you don't
13744# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013745#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013746# config.status only pays attention to the cache file if you give it
13747# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013748#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013749# `ac_cv_env_foo' variables (set or unset) will be overridden when
13750# loading this file, other *unset* `ac_cv_foo' will be assigned the
13751# following values.
13752
13753_ACEOF
13754
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013755# The following way of writing the cache mishandles newlines in values,
13756# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013757# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013758# Ultrix sh set writes to stderr and can't be redirected directly,
13759# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013760(
13761 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13762 eval ac_val=\$$ac_var
13763 case $ac_val in #(
13764 *${as_nl}*)
13765 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013766 *_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 +010013767$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013768 esac
13769 case $ac_var in #(
13770 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013772 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013773 esac ;;
13774 esac
13775 done
13776
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013777 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013778 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13779 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013780 # `set' does not quote correctly, so add quotes: double-quote
13781 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013782 sed -n \
13783 "s/'/'\\\\''/g;
13784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013785 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013786 *)
13787 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013789 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013790 esac |
13791 sort
13792) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013793 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013794 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013795 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013796 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013797 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13798 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013799 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13800 :end' >>confcache
13801if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13802 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013803 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013804 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013805$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013806 if test ! -f "$cache_file" || test -h "$cache_file"; then
13807 cat confcache >"$cache_file"
13808 else
13809 case $cache_file in #(
13810 */* | ?:*)
13811 mv -f confcache "$cache_file"$$ &&
13812 mv -f "$cache_file"$$ "$cache_file" ;; #(
13813 *)
13814 mv -f confcache "$cache_file" ;;
13815 esac
13816 fi
13817 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013818 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013819 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013820$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013821 fi
13822fi
13823rm -f confcache
13824
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013825test "x$prefix" = xNONE && prefix=$ac_default_prefix
13826# Let make expand exec_prefix.
13827test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13828
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013829DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013830
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013831ac_libobjs=
13832ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013833U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013834for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13835 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013836 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013837 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013838 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13839 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013840 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13841 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013842done
13843LIBOBJS=$ac_libobjs
13844
13845LTLIBOBJS=$ac_ltlibobjs
13846
13847
13848
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013849
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013850: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013851ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013852ac_clean_files_save=$ac_clean_files
13853ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013854{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013855$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013856as_write_fail=0
13857cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013858#! $SHELL
13859# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013860# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013861# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013862# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013863
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013864debug=false
13865ac_cs_recheck=false
13866ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013867
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013868SHELL=\${CONFIG_SHELL-$SHELL}
13869export SHELL
13870_ASEOF
13871cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13872## -------------------- ##
13873## M4sh Initialization. ##
13874## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013875
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013876# Be more Bourne compatible
13877DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013878if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013879 emulate sh
13880 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013881 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013882 # is contrary to our usage. Disable this feature.
13883 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013884 setopt NO_GLOB_SUBST
13885else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013886 case `(set -o) 2>/dev/null` in #(
13887 *posix*) :
13888 set -o posix ;; #(
13889 *) :
13890 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013891esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013892fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013893
13894
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013895as_nl='
13896'
13897export as_nl
13898# Printing a long string crashes Solaris 7 /usr/bin/printf.
13899as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13900as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13901as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013902# Prefer a ksh shell builtin over an external printf program on Solaris,
13903# but without wasting forks for bash or zsh.
13904if test -z "$BASH_VERSION$ZSH_VERSION" \
13905 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13906 as_echo='print -r --'
13907 as_echo_n='print -rn --'
13908elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013909 as_echo='printf %s\n'
13910 as_echo_n='printf %s'
13911else
13912 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13913 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13914 as_echo_n='/usr/ucb/echo -n'
13915 else
13916 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13917 as_echo_n_body='eval
13918 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013919 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013920 *"$as_nl"*)
13921 expr "X$arg" : "X\\(.*\\)$as_nl";
13922 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13923 esac;
13924 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13925 '
13926 export as_echo_n_body
13927 as_echo_n='sh -c $as_echo_n_body as_echo'
13928 fi
13929 export as_echo_body
13930 as_echo='sh -c $as_echo_body as_echo'
13931fi
13932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013933# The user is always right.
13934if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013935 PATH_SEPARATOR=:
13936 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13937 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13938 PATH_SEPARATOR=';'
13939 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013940fi
13941
Theodore Ts'oe1052142006-10-21 21:46:47 -040013942
13943# IFS
13944# We need space, tab and new line, in precisely that order. Quoting is
13945# there to prevent editors from complaining about space-tab.
13946# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13947# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013948IFS=" "" $as_nl"
13949
13950# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013951as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013952case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013953 *[\\/]* ) as_myself=$0 ;;
13954 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013955for as_dir in $PATH
13956do
13957 IFS=$as_save_IFS
13958 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013959 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13960 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013961IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013962
Theodore Ts'oe1052142006-10-21 21:46:47 -040013963 ;;
13964esac
13965# We did not find ourselves, most probably we were run as `sh COMMAND'
13966# in which case we are not to be found in the path.
13967if test "x$as_myself" = x; then
13968 as_myself=$0
13969fi
13970if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013971 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013972 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040013973fi
13974
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013975# Unset variables that we do not need and which cause bugs (e.g. in
13976# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13977# suppresses any "Segmentation fault" message there. '((' could
13978# trigger a bug in pdksh 5.2.14.
13979for as_var in BASH_ENV ENV MAIL MAILPATH
13980do eval test x\${$as_var+set} = xset \
13981 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040013982done
13983PS1='$ '
13984PS2='> '
13985PS4='+ '
13986
13987# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013988LC_ALL=C
13989export LC_ALL
13990LANGUAGE=C
13991export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040013992
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013993# CDPATH.
13994(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13995
13996
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013997# as_fn_error STATUS ERROR [LINENO LOG_FD]
13998# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013999# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14000# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014001# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014002as_fn_error ()
14003{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014004 as_status=$1; test $as_status -eq 0 && as_status=1
14005 if test "$4"; then
14006 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14007 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014008 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014009 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014010 as_fn_exit $as_status
14011} # as_fn_error
14012
14013
14014# as_fn_set_status STATUS
14015# -----------------------
14016# Set $? to STATUS, without forking.
14017as_fn_set_status ()
14018{
14019 return $1
14020} # as_fn_set_status
14021
14022# as_fn_exit STATUS
14023# -----------------
14024# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14025as_fn_exit ()
14026{
14027 set +e
14028 as_fn_set_status $1
14029 exit $1
14030} # as_fn_exit
14031
14032# as_fn_unset VAR
14033# ---------------
14034# Portably unset VAR.
14035as_fn_unset ()
14036{
14037 { eval $1=; unset $1;}
14038}
14039as_unset=as_fn_unset
14040# as_fn_append VAR VALUE
14041# ----------------------
14042# Append the text in VALUE to the end of the definition contained in VAR. Take
14043# advantage of any shell optimizations that allow amortized linear growth over
14044# repeated appends, instead of the typical quadratic growth present in naive
14045# implementations.
14046if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14047 eval 'as_fn_append ()
14048 {
14049 eval $1+=\$2
14050 }'
14051else
14052 as_fn_append ()
14053 {
14054 eval $1=\$$1\$2
14055 }
14056fi # as_fn_append
14057
14058# as_fn_arith ARG...
14059# ------------------
14060# Perform arithmetic evaluation on the ARGs, and store the result in the
14061# global $as_val. Take advantage of shells that can avoid forks. The arguments
14062# must be portable across $(()) and expr.
14063if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14064 eval 'as_fn_arith ()
14065 {
14066 as_val=$(( $* ))
14067 }'
14068else
14069 as_fn_arith ()
14070 {
14071 as_val=`expr "$@" || test $? -eq 1`
14072 }
14073fi # as_fn_arith
14074
14075
Theodore Ts'oe1052142006-10-21 21:46:47 -040014076if expr a : '\(a\)' >/dev/null 2>&1 &&
14077 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14078 as_expr=expr
14079else
14080 as_expr=false
14081fi
14082
14083if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14084 as_basename=basename
14085else
14086 as_basename=false
14087fi
14088
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014089if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14090 as_dirname=dirname
14091else
14092 as_dirname=false
14093fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014094
Theodore Ts'oe1052142006-10-21 21:46:47 -040014095as_me=`$as_basename -- "$0" ||
14096$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14097 X"$0" : 'X\(//\)$' \| \
14098 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014099$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014100 sed '/^.*\/\([^/][^/]*\)\/*$/{
14101 s//\1/
14102 q
14103 }
14104 /^X\/\(\/\/\)$/{
14105 s//\1/
14106 q
14107 }
14108 /^X\/\(\/\).*/{
14109 s//\1/
14110 q
14111 }
14112 s/.*/./; q'`
14113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014114# Avoid depending upon Character Ranges.
14115as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14116as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14117as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14118as_cr_digits='0123456789'
14119as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040014120
14121ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014122case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014123-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014124 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014125 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014126 xy) ECHO_C='\c';;
14127 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14128 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014129 esac;;
14130*)
14131 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014132esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014133
14134rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040014135if test -d conf$$.dir; then
14136 rm -f conf$$.dir/conf$$.file
14137else
14138 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014139 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040014140fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014141if (echo >conf$$.file) 2>/dev/null; then
14142 if ln -s conf$$.file conf$$ 2>/dev/null; then
14143 as_ln_s='ln -s'
14144 # ... but there are two gotchas:
14145 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14146 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014147 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014148 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014149 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014150 elif ln conf$$.file conf$$ 2>/dev/null; then
14151 as_ln_s=ln
14152 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014153 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014154 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014155else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014156 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014157fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014158rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14159rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014160
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014161
14162# as_fn_mkdir_p
14163# -------------
14164# Create "$as_dir" as a directory, including parents if necessary.
14165as_fn_mkdir_p ()
14166{
14167
14168 case $as_dir in #(
14169 -*) as_dir=./$as_dir;;
14170 esac
14171 test -d "$as_dir" || eval $as_mkdir_p || {
14172 as_dirs=
14173 while :; do
14174 case $as_dir in #(
14175 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14176 *) as_qdir=$as_dir;;
14177 esac
14178 as_dirs="'$as_qdir' $as_dirs"
14179 as_dir=`$as_dirname -- "$as_dir" ||
14180$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14181 X"$as_dir" : 'X\(//\)[^/]' \| \
14182 X"$as_dir" : 'X\(//\)$' \| \
14183 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14184$as_echo X"$as_dir" |
14185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14186 s//\1/
14187 q
14188 }
14189 /^X\(\/\/\)[^/].*/{
14190 s//\1/
14191 q
14192 }
14193 /^X\(\/\/\)$/{
14194 s//\1/
14195 q
14196 }
14197 /^X\(\/\).*/{
14198 s//\1/
14199 q
14200 }
14201 s/.*/./; q'`
14202 test -d "$as_dir" && break
14203 done
14204 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014205 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014206
14207
14208} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014209if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014210 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014211else
14212 test -d ./-p && rmdir ./-p
14213 as_mkdir_p=false
14214fi
14215
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014216
14217# as_fn_executable_p FILE
14218# -----------------------
14219# Test if FILE is an executable regular file.
14220as_fn_executable_p ()
14221{
14222 test -f "$1" && test -x "$1"
14223} # as_fn_executable_p
14224as_test_x='test -x'
14225as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014226
14227# Sed expression to map a string onto a valid CPP name.
14228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14229
14230# Sed expression to map a string onto a valid variable name.
14231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14232
14233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014234exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014235## ----------------------------------- ##
14236## Main body of $CONFIG_STATUS script. ##
14237## ----------------------------------- ##
14238_ASEOF
14239test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014240
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14242# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014243# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014244# values after options handling.
14245ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014246This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014247generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014248
14249 CONFIG_FILES = $CONFIG_FILES
14250 CONFIG_HEADERS = $CONFIG_HEADERS
14251 CONFIG_LINKS = $CONFIG_LINKS
14252 CONFIG_COMMANDS = $CONFIG_COMMANDS
14253 $ $0 $@
14254
Theodore Ts'oe1052142006-10-21 21:46:47 -040014255on `(hostname || uname -n) 2>/dev/null | sed 1q`
14256"
14257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014258_ACEOF
14259
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014260case $ac_config_files in *"
14261"*) set x $ac_config_files; shift; ac_config_files=$*;;
14262esac
14263
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014264case $ac_config_headers in *"
14265"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14266esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014267
14268
14269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014270# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014271config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014272config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014273config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014274
Theodore Ts'oe1052142006-10-21 21:46:47 -040014275_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014276
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014278ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014279\`$as_me' instantiates files and other configuration actions
14280from templates according to the current configuration. Unless the files
14281and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014282
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014283Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014284
14285 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014286 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014287 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014288 -q, --quiet, --silent
14289 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014290 -d, --debug don't remove temporary files
14291 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014292 --file=FILE[:TEMPLATE]
14293 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014294 --header=FILE[:TEMPLATE]
14295 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014296
14297Configuration files:
14298$config_files
14299
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014300Configuration headers:
14301$config_headers
14302
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014303Configuration commands:
14304$config_commands
14305
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014306Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014307
Theodore Ts'oe1052142006-10-21 21:46:47 -040014308_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014310ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014311ac_cs_version="\\
14312config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014313configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014314 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014315
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014316Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014317This config.status script is free software; the Free Software Foundation
14318gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014319
14320ac_pwd='$ac_pwd'
14321srcdir='$srcdir'
14322INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014323MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014324AWK='$AWK'
14325test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014326_ACEOF
14327
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14329# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014330ac_need_defaults=:
14331while test $# != 0
14332do
14333 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014334 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014335 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14336 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014337 ac_shift=:
14338 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014339 --*=)
14340 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14341 ac_optarg=
14342 ac_shift=:
14343 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014344 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014345 ac_option=$1
14346 ac_optarg=$2
14347 ac_shift=shift
14348 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014349 esac
14350
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014351 case $ac_option in
14352 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14354 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014355 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014356 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014357 --config | --confi | --conf | --con | --co | --c )
14358 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014359 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014360 debug=: ;;
14361 --file | --fil | --fi | --f )
14362 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014363 case $ac_optarg in
14364 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014365 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014366 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014367 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014368 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014369 --header | --heade | --head | --hea )
14370 $ac_shift
14371 case $ac_optarg in
14372 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14373 esac
14374 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14375 ac_need_defaults=false;;
14376 --he | --h)
14377 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014378 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014379Try \`$0 --help' for more information.";;
14380 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014381 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14383 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14384 ac_cs_silent=: ;;
14385
14386 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014387 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014388Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014389
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014390 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014391 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014392
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014393 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014394 shift
14395done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014396
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014397ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014398
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014399if $ac_cs_silent; then
14400 exec 6>/dev/null
14401 ac_configure_extra_args="$ac_configure_extra_args --silent"
14402fi
14403
14404_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014406if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014407 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014408 shift
14409 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14410 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014411 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014412 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014413fi
14414
14415_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014417exec 5>>config.log
14418{
14419 echo
14420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14421## Running $as_me. ##
14422_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014423 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014424} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014425
Theodore Ts'oe1052142006-10-21 21:46:47 -040014426_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014428#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014429# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014430#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014431# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014432 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014433 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014434 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014435 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14436 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014437
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014438
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014439_ACEOF
14440
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014442
14443# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014444for ac_config_target in $ac_config_targets
14445do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014446 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014447 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014448 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014449 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14450
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014451 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014452 esac
14453done
14454
Theodore Ts'oe1052142006-10-21 21:46:47 -040014455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014456# If the user did not use the arguments to specify the items to instantiate,
14457# then the envvar interface is used. Set only those that are not.
14458# We use the long form for the default assignment because of an extremely
14459# bizarre bug on SunOS 4.1.3.
14460if $ac_need_defaults; then
14461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14464fi
14465
14466# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014467# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014468# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014469# Hook for its removal unless debugging.
14470# Note that there is a small window in which the directory will not be cleaned:
14471# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014472$debug ||
14473{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014474 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014475 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014476 : "${ac_tmp:=$tmp}"
14477 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014478' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014479 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014481# Create a (secure) tmp directory for tmp files.
14482
14483{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014484 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014485 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014486} ||
14487{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014488 tmp=./conf$$-$RANDOM
14489 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014490} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14491ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014492
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014493# Set up the scripts for CONFIG_FILES section.
14494# No need to generate them if there are no CONFIG_FILES.
14495# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014496if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014497
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014498if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14499 ac_cs_awk_getline=:
14500 ac_cs_awk_pipe_init=
14501 ac_cs_awk_read_file='
14502 while ((getline aline < (F[key])) > 0)
14503 print(aline)
14504 close(F[key])'
14505 ac_cs_awk_pipe_fini=
14506else
14507 ac_cs_awk_getline=false
14508 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14509 ac_cs_awk_read_file='
14510 print "|#_!!_#|"
14511 print "cat " F[key] " &&"
14512 '$ac_cs_awk_pipe_init
14513 # The final `:' finishes the AND list.
14514 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14515fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014516ac_cr=`echo X | tr X '\015'`
14517# On cygwin, bash can eat \r inside `` if the user requested igncr.
14518# But we know of no other shell where ac_cr would be empty at this
14519# point, so we can use a bashism as a fallback.
14520if test "x$ac_cr" = x; then
14521 eval ac_cr=\$\'\\r\'
14522fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014523ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14524if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014525 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014526else
14527 ac_cs_awk_cr=$ac_cr
14528fi
14529
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014530echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014531_ACEOF
14532
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014533# Create commands to substitute file output variables.
14534{
14535 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014536 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014537 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14538 echo "_ACAWK" &&
14539 echo "_ACEOF"
14540} >conf$$files.sh &&
14541. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014543rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014544
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014545{
14546 echo "cat >conf$$subs.awk <<_ACEOF" &&
14547 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14548 echo "_ACEOF"
14549} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014550 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14551ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014552ac_delim='%!_!# '
14553for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014554 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014555 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014556
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014557 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14558 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014559 break
14560 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014561 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014562 else
14563 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014564 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014565done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014566rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014567
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014569cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014570_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014571sed -n '
14572h
14573s/^/S["/; s/!.*/"]=/
14574p
14575g
14576s/^[^!]*!//
14577:repl
14578t repl
14579s/'"$ac_delim"'$//
14580t delim
14581:nl
14582h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014583s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014584t more1
14585s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14586p
14587n
14588b repl
14589:more1
14590s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14591p
14592g
14593s/.\{148\}//
14594t nl
14595:delim
14596h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014597s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014598t more2
14599s/["\\]/\\&/g; s/^/"/; s/$/"/
14600p
14601b
14602:more2
14603s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14604p
14605g
14606s/.\{148\}//
14607t delim
14608' <conf$$subs.awk | sed '
14609/^[^""]/{
14610 N
14611 s/\n//
14612}
14613' >>$CONFIG_STATUS || ac_write_fail=1
14614rm -f conf$$subs.awk
14615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14616_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014617cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014618 for (key in S) S_is_set[key] = 1
14619 FS = ""
14620 \$ac_cs_awk_pipe_init
14621}
14622{
14623 line = $ 0
14624 nfields = split(line, field, "@")
14625 substed = 0
14626 len = length(field[1])
14627 for (i = 2; i < nfields; i++) {
14628 key = field[i]
14629 keylen = length(key)
14630 if (S_is_set[key]) {
14631 value = S[key]
14632 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14633 len += length(value) + length(field[++i])
14634 substed = 1
14635 } else
14636 len += 1 + keylen
14637 }
14638 if (nfields == 3 && !substed) {
14639 key = field[2]
14640 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14641 \$ac_cs_awk_read_file
14642 next
14643 }
14644 }
14645 print line
14646}
14647\$ac_cs_awk_pipe_fini
14648_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014649_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14651if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14652 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14653else
14654 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014655fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14656 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014657_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014658
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014659# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14660# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014661# trailing colons and then remove the whole line if VPATH becomes empty
14662# (actually we leave an empty line to preserve line numbers).
14663if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014664 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14665h
14666s///
14667s/^/:/
14668s/[ ]*$/:/
14669s/:\$(srcdir):/:/g
14670s/:\${srcdir}:/:/g
14671s/:@srcdir@:/:/g
14672s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014673s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014674x
14675s/\(=[ ]*\).*/\1/
14676G
14677s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014678s/^[^=]*=[ ]*$//
14679}'
14680fi
14681
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014683fi # test -n "$CONFIG_FILES"
14684
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014685# Set up the scripts for CONFIG_HEADERS section.
14686# No need to generate them if there are no CONFIG_HEADERS.
14687# This happens for instance with `./config.status Makefile'.
14688if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014689cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014690BEGIN {
14691_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014692
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014693# Transform confdefs.h into an awk script `defines.awk', embedded as
14694# here-document in config.status, that substitutes the proper values into
14695# config.h.in to produce config.h.
14696
14697# Create a delimiter string that does not exist in confdefs.h, to ease
14698# handling of long lines.
14699ac_delim='%!_!# '
14700for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014701 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14702 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014703 break
14704 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014705 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014706 else
14707 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14708 fi
14709done
14710
14711# For the awk script, D is an array of macro values keyed by name,
14712# likewise P contains macro parameters if any. Preserve backslash
14713# newline sequences.
14714
14715ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14716sed -n '
14717s/.\{148\}/&'"$ac_delim"'/g
14718t rset
14719:rset
14720s/^[ ]*#[ ]*define[ ][ ]*/ /
14721t def
14722d
14723:def
14724s/\\$//
14725t bsnl
14726s/["\\]/\\&/g
14727s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14728D["\1"]=" \3"/p
14729s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14730d
14731:bsnl
14732s/["\\]/\\&/g
14733s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14734D["\1"]=" \3\\\\\\n"\\/p
14735t cont
14736s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14737t cont
14738d
14739:cont
14740n
14741s/.\{148\}/&'"$ac_delim"'/g
14742t clear
14743:clear
14744s/\\$//
14745t bsnlc
14746s/["\\]/\\&/g; s/^/"/; s/$/"/p
14747d
14748:bsnlc
14749s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14750b cont
14751' <confdefs.h | sed '
14752s/'"$ac_delim"'/"\\\
14753"/g' >>$CONFIG_STATUS || ac_write_fail=1
14754
14755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14756 for (key in D) D_is_set[key] = 1
14757 FS = ""
14758}
14759/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14760 line = \$ 0
14761 split(line, arg, " ")
14762 if (arg[1] == "#") {
14763 defundef = arg[2]
14764 mac1 = arg[3]
14765 } else {
14766 defundef = substr(arg[1], 2)
14767 mac1 = arg[2]
14768 }
14769 split(mac1, mac2, "(") #)
14770 macro = mac2[1]
14771 prefix = substr(line, 1, index(line, defundef) - 1)
14772 if (D_is_set[macro]) {
14773 # Preserve the white space surrounding the "#".
14774 print prefix "define", macro P[macro] D[macro]
14775 next
14776 } else {
14777 # Replace #undef with comments. This is necessary, for example,
14778 # in the case of _POSIX_SOURCE, which is predefined and required
14779 # on some systems where configure will not decide to define it.
14780 if (defundef == "undef") {
14781 print "/*", prefix defundef, macro, "*/"
14782 next
14783 }
14784 }
14785}
14786{ print }
14787_ACAWK
14788_ACEOF
14789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014790 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014791fi # test -n "$CONFIG_HEADERS"
14792
14793
14794eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014795shift
14796for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014797do
14798 case $ac_tag in
14799 :[FHLC]) ac_mode=$ac_tag; continue;;
14800 esac
14801 case $ac_mode$ac_tag in
14802 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014803 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014804 :[FH]-) ac_tag=-:-;;
14805 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14806 esac
14807 ac_save_IFS=$IFS
14808 IFS=:
14809 set x $ac_tag
14810 IFS=$ac_save_IFS
14811 shift
14812 ac_file=$1
14813 shift
14814
14815 case $ac_mode in
14816 :L) ac_source=$1;;
14817 :[FH])
14818 ac_file_inputs=
14819 for ac_f
14820 do
14821 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014822 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014823 *) # Look for the file first in the build tree, then in the source tree
14824 # (if the path is not absolute). The absolute path cannot be DOS-style,
14825 # because $ac_f cannot contain `:'.
14826 test -f "$ac_f" ||
14827 case $ac_f in
14828 [\\/$]*) false;;
14829 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14830 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014831 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014832 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014833 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014834 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014835 done
14836
14837 # Let's still pretend it is `configure' which instantiates (i.e., don't
14838 # use $as_me), people would be surprised to read:
14839 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014840 configure_input='Generated from '`
14841 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14842 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014843 if test x"$ac_file" != x-; then
14844 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014846$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014847 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014848 # Neutralize special characters interpreted by sed in replacement strings.
14849 case $configure_input in #(
14850 *\&* | *\|* | *\\* )
14851 ac_sed_conf_input=`$as_echo "$configure_input" |
14852 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14853 *) ac_sed_conf_input=$configure_input;;
14854 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014855
14856 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014857 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014859 esac
14860 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014861 esac
14862
Theodore Ts'oe1052142006-10-21 21:46:47 -040014863 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014864$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14865 X"$ac_file" : 'X\(//\)[^/]' \| \
14866 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040014867 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014868$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14870 s//\1/
14871 q
14872 }
14873 /^X\(\/\/\)[^/].*/{
14874 s//\1/
14875 q
14876 }
14877 /^X\(\/\/\)$/{
14878 s//\1/
14879 q
14880 }
14881 /^X\(\/\).*/{
14882 s//\1/
14883 q
14884 }
14885 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014886 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014887 ac_builddir=.
14888
Theodore Ts'oe1052142006-10-21 21:46:47 -040014889case "$ac_dir" in
14890.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14891*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014892 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014893 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014894 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014895 case $ac_top_builddir_sub in
14896 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14897 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14898 esac ;;
14899esac
14900ac_abs_top_builddir=$ac_pwd
14901ac_abs_builddir=$ac_pwd$ac_dir_suffix
14902# for backward compatibility:
14903ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014904
14905case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014906 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014907 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014908 ac_top_srcdir=$ac_top_builddir_sub
14909 ac_abs_top_srcdir=$ac_pwd ;;
14910 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014911 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014912 ac_top_srcdir=$srcdir
14913 ac_abs_top_srcdir=$srcdir ;;
14914 *) # Relative name.
14915 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14916 ac_top_srcdir=$ac_top_build_prefix$srcdir
14917 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014918esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014919ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014920
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014921
Theodore Ts'oe1052142006-10-21 21:46:47 -040014922 case $ac_mode in
14923 :F)
14924 #
14925 # CONFIG_FILE
14926 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014927
14928 case $INSTALL in
14929 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014930 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014931 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014932 ac_MKDIR_P=$MKDIR_P
14933 case $MKDIR_P in
14934 [\\/$]* | ?:[\\/]* ) ;;
14935 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14936 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014937_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014938
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014940# If the template does not know about datarootdir, expand it.
14941# FIXME: This hack should be removed a few years after 2.60.
14942ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014943ac_sed_dataroot='
14944/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014945 p
14946 q
14947}
14948/@datadir@/p
14949/@docdir@/p
14950/@infodir@/p
14951/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014952/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014953case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014954*datarootdir*) ac_datarootdir_seen=yes;;
14955*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014956 { $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 +010014957$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014958_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014960 ac_datarootdir_hack='
14961 s&@datadir@&$datadir&g
14962 s&@docdir@&$docdir&g
14963 s&@infodir@&$infodir&g
14964 s&@localedir@&$localedir&g
14965 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014966 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014967esac
14968_ACEOF
14969
14970# Neutralize VPATH when `$srcdir' = `.'.
14971# Shell code in configure.ac might set extrasub.
14972# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14974ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014975$extrasub
14976_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014978:t
14979/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014980s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014981s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014982s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014983s&@srcdir@&$ac_srcdir&;t t
14984s&@abs_srcdir@&$ac_abs_srcdir&;t t
14985s&@top_srcdir@&$ac_top_srcdir&;t t
14986s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14987s&@builddir@&$ac_builddir&;t t
14988s&@abs_builddir@&$ac_abs_builddir&;t t
14989s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14990s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040014991s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014992$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014993"
14994eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14995if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014996 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014997else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014998 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14999fi \
15000 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015001
Theodore Ts'oe1052142006-10-21 21:46:47 -040015002test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015003 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15004 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15005 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015007which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015008$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015009which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015010
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015011 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015012 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015013 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15014 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015015 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015017 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015018 :H)
15019 #
15020 # CONFIG_HEADER
15021 #
15022 if test x"$ac_file" != x-; then
15023 {
15024 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015025 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15026 } >"$ac_tmp/config.h" \
15027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15028 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015029 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15030$as_echo "$as_me: $ac_file is unchanged" >&6;}
15031 else
15032 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015033 mv "$ac_tmp/config.h" "$ac_file" \
15034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015035 fi
15036 else
15037 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15039 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015040 fi
15041 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015042
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015043 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015044$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015045 ;;
15046 esac
15047
15048
15049 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040015050 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015051 for ac_file in $CONFIG_FILES; do
15052 # Support "outfile[:infile[:infile...]]"
15053 case "$ac_file" in
15054 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015055 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015056 # PO directories have a Makefile.in generated from Makefile.in.in.
15057 case "$ac_file" in */Makefile.in)
15058 # Adjust a relative srcdir.
15059 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040015060 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015061 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15062 # In autoconf-2.13 it is called $ac_given_srcdir.
15063 # In autoconf-2.50 it is called $srcdir.
15064 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15065 case "$ac_given_srcdir" in
15066 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15067 /*) top_srcdir="$ac_given_srcdir" ;;
15068 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15069 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015070 # Treat a directory as a PO directory if and only if it has a
15071 # POTFILES.in file. This allows packages to have multiple PO
15072 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015073 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15074 rm -f "$ac_dir/POTFILES"
15075 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040015076 gt_tab=`printf '\t'`
15077 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 -050015078 POMAKEFILEDEPS="POTFILES.in"
15079 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015080 # on $ac_dir but don't depend on user-specified configuration
15081 # parameters.
15082 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15083 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015084 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015085 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15086 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040015087 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15088 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015089 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015090 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15091 else
15092 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040015093 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015094 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015095 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015096 # Compute POFILES
15097 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15098 # Compute UPDATEPOFILES
15099 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15100 # Compute DUMMYPOFILES
15101 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15102 # Compute GMOFILES
15103 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015104 case "$ac_given_srcdir" in
15105 .) srcdirpre= ;;
15106 *) srcdirpre='$(srcdir)/' ;;
15107 esac
15108 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015109 UPDATEPOFILES=
15110 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015111 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015112 for lang in $ALL_LINGUAS; do
15113 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015114 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15115 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015116 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015117 done
15118 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15119 # environment variable.
15120 INST_LINGUAS=
15121 if test -n "$ALL_LINGUAS"; then
15122 for presentlang in $ALL_LINGUAS; do
15123 useit=no
15124 if test "%UNSET%" != "$LINGUAS"; then
15125 desiredlanguages="$LINGUAS"
15126 else
15127 desiredlanguages="$ALL_LINGUAS"
15128 fi
15129 for desiredlang in $desiredlanguages; do
15130 # Use the presentlang catalog if desiredlang is
15131 # a. equal to presentlang, or
15132 # b. a variant of presentlang (because in this case,
15133 # presentlang can be used as a fallback for messages
15134 # which are not translated in the desiredlang catalog).
15135 case "$desiredlang" in
15136 "$presentlang"*) useit=yes;;
15137 esac
15138 done
15139 if test $useit = yes; then
15140 INST_LINGUAS="$INST_LINGUAS $presentlang"
15141 fi
15142 done
15143 fi
15144 CATALOGS=
15145 if test -n "$INST_LINGUAS"; then
15146 for lang in $INST_LINGUAS; do
15147 CATALOGS="$CATALOGS $lang.gmo"
15148 done
15149 fi
15150 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015151 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 -040015152 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15153 if test -f "$f"; then
15154 case "$f" in
15155 *.orig | *.bak | *~) ;;
15156 *) cat "$f" >> "$ac_dir/Makefile" ;;
15157 esac
15158 fi
15159 done
15160 fi
15161 ;;
15162 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015163 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015164
Theodore Ts'oe1052142006-10-21 21:46:47 -040015165 esac
15166done # for ac_tag
15167
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015168
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015169as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015170_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015171ac_clean_files=$ac_clean_files_save
15172
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015173test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015174 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015175
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015176
15177# configure is writing to config.log, and then calls config.status.
15178# config.status does its own redirection, appending to config.log.
15179# Unfortunately, on DOS this fails, as config.log is still kept open
15180# by configure, so config.status won't be able to write to it; its
15181# output is simply discarded. So we exec the FD to /dev/null,
15182# effectively closing config.log, so it can be properly (re)opened and
15183# appended to by config.status. When coming back to configure, we
15184# need to make the FD available again.
15185if test "$no_create" != yes; then
15186 ac_cs_success=:
15187 ac_config_status_args=
15188 test "$silent" = yes &&
15189 ac_config_status_args="$ac_config_status_args --quiet"
15190 exec 5>/dev/null
15191 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15192 exec 5>>config.log
15193 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15194 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015195 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015196fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015197if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015199$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15200fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015201
Theodore Ts'oee683a12005-02-05 15:53:56 -050015202if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi